xref: /illumos-gate/usr/src/data/terminfo/termcap.src (revision 503609a9)
1######## TERMINAL TYPE DESCRIPTIONS SOURCE FILE
2#
3# This version of terminfo.src is distributed with ncurses and is maintained
4# by Thomas E. Dickey (TD).
5#
6# Report bugs and new terminal descriptions to
7#	bug-ncurses@gnu.org
8#
9#	$Revision: 1.162 $
10#	$Date: 2011/08/20 20:52:51 $
11#
12# The original header is preserved below for reference.  It is noted that there
13# is a "newer" version which differs in some cosmetic details (but actually
14# stopped updates several years ago); we have decided to not change the header
15# unless there is also a change in content.
16#
17# To further muddy the waters, it is noted that changes to this file as part of
18# maintenance of ncurses (since 1996) are generally conceded to be copyright
19# under the ncurses MIT-style license.  That was the effect of the agreement
20# which the principal authors of ncurses made in 1998.  However, since much of
21# the file itself is of unknown authorship (and the disclaimer below makes it
22# obvious that Raymond cannot or will not convey rights over those parts),
23# there is no explicit copyright notice on the file itself.
24#
25# It would also be a nuisance to split the file into unknown/known authorship
26# and move pieces as they are maintained, since many of the maintenance changes
27# have been small corrections to Raymond's translations to/from termcap format,
28# correcting the data but not the accompanying annotations.
29#
30# In any case, note that almost half of this file is not data but annotations
31# which reflect creative effort.  Furthermore, the structure of entries to
32# reuse common chunks also is creative (and subject to copyright).  Finally,
33# some portions of the data are derivative work under a compatible MIT-style
34# license from xterm.
35#
36#------------------------------------------------------------------------------
37#	Version 10.2.1
38#	terminfo syntax
39#
40#	Eric S. Raymond		(current maintainer)
41#	John Kunze, Berkeley
42#	Craig Leres, Berkeley
43#
44# Please e-mail changes to terminfo@thyrsus.com; the old termcap@berkeley.edu
45# address is no longer valid.  The latest version can always be found at
46# <http://www.tuxedo.org/terminfo>.
47#
48# PURPOSE OF THIS FILE:
49#
50# This file describes the capabilities of various character-cell terminals,
51# as needed by software such as screen-oriented editors.
52#
53# Other terminfo and termcap files exist, supported by various OS vendors
54# or as relics of various older versions of UNIX.  This one is the longest
55# and most comprehensive one in existence.  It subsumes not only the entirety
56# of the historical 4.4BSD, GNU, System V and SCO termcap files and the BRL
57# termcap file, but also large numbers of vendor-maintained termcap and
58# terminfo entries more complete and carefully tested than those in historical
59# termcap/terminfo versions.
60#
61# Pointers to related resources (including the ncurses distribution) may
62# be found at <http://www.tuxedo.org/terminfo>.
63#
64# INTERNATIONALIZATION:
65#
66# This file uses only the US-ASCII character set (no ISO8859 characters).
67#
68# This file assumes a US-ASCII character set. If you need to fix this, start
69# by global-replacing \E(B and \E)B with the appropriate ISO 6429 enablers
70# for your character set.  \E(A and \E)A enables the British character set
71# with the pound sign at position 2/3.
72#
73# In a Japanese-processing environment using EUC/Japanese or Shift-JIS,
74# C1 characters are considered the first-byte set of the Japanese encodings,
75# so \E)0 should be avoided in <enacs> and initialization strings.
76#
77# FILE FORMAT:
78#
79# The version you are looking at may be in any of three formats: master
80# (terminfo with OT capabilities), stock terminfo, or termcap.  You can tell
81# which by the format given in the header above.
82#
83# The master format is accepted and generated by the terminfo tools in the
84# ncurses suite; it differs from stock (System V-compatible) terminfo only
85# in that it admits a group of capabilities (prefixed `OT') equivalent to
86# various obsolete termcap capabilities.  You can, thus, convert from master
87# to stock terminfo simply by filtering with `sed "/OT[^,]*,/s///"'; but if
88# you have ncurses `tic -I' is nicer (among other things, it automatically
89# outputs entries in a canonical form).
90#
91# The termcap version is generated automatically from the master version
92# using tic -C.  This filtering leaves in the OT capabilities under their
93# original termcap names.  All translated entries fit within the 1023-byte
94# string-table limit of archaic termcap libraries except where explicitly
95# noted below.  Note that the termcap translation assumes that your termcap
96# library can handle multiple tc capabilities in an entry. 4.4BSD has this
97# capability.  Older versions of GNU termcap, through 1.3, do not.
98#
99# For details on these formats, see terminfo(5) in the ncurses distribution,
100# and termcap(5) in the 4.4BSD Unix Programmer's Manual.  Be aware that 4.4BSD
101# curses has been declared obsolete by the caretakers of the 4.4BSD sources
102# as of June 1995; they are encouraging everyone to migrate to ncurses.
103#
104# Note: unlike some other distributed terminfo files (Novell Unix & SCO's),
105# no entry in this file has embedded comments.  This is so source translation
106# to termcap only has to carry over leading comments.  Also, no name field
107# contains embedded whitespace (such whitespace confuses rdist).
108#
109# Further note: older versions of this file were often installed with an editor
110# script (reorder) that moved the most common terminal types to the front of
111# the file.  This should no longer be necessary, as the file is now ordered
112# roughly by type frequency with ANSI/VT100 and other common types up front.
113#
114# Some information has been merged in from terminfo files distributed by
115# USL and SCO (see COPYRIGHTS AND OTHER DELUSIONS below).  Much information
116# comes from vendors who maintain official terminfos for their hardware
117# (notably DEC and Wyse).
118#
119# A detailed change history is included at the end of this file.
120#
121# FILE ORGANIZATION:
122#
123# Comments in this file begin with # - they cannot appear in the middle
124# of a terminfo/termcap entry (this feature had to be sacrificed in order
125# to allow standard terminfo and termcap syntax to be generated cleanly from
126# the master format).  Individual capabilities are commented out by
127# placing a period between the colon and the capability name.
128#
129# The file is divided up into major sections (headed by lines beginning with
130# the string "########") and minor sections (beginning with "####"); do
131#
132#	grep "^####" <file> | more
133#
134# to see a listing of section headings.  The intent of the divisions is
135# (a) to make it easier to find things, and (b) to order the database so
136# that important and frequently-encountered terminal types are near the
137# front (so that you'll get reasonable search efficiency from a linear
138# search of the termcap form even if you don't use reorder).  Minor sections
139# usually correspond to manufacturers or standard terminal classes.
140# Parenthesized words following manufacturer names are type prefixes or
141# product line names used by that manufacturers.
142#
143# HOW TO READ THE ENTRIES:
144#
145# The first name in an entry is the canonical name for the model or
146# type, last entry is a verbose description.  Others are mnemonic synonyms for
147# the terminal.
148#
149# Terminal names look like <manufacturer> <model> - <modes/options>
150# The part to the left of the dash, if a dash is present, describes the
151# particular hardware of the terminal.  The part to the right may be used
152# for flags indicating special ROMs, extra memory, particular terminal modes,
153# or user preferences.
154#
155# All names should be in lower case, for consistency in typing.
156#
157# The following are conventionally used suffixes:
158#	-2p	Has two pages of memory.  Likewise 4p, 8p, etc.
159#	-am	Enable auto-margin.
160#	-m	Monochrome.  Suppress color support
161#	-mc	Magic-cookie.  Some terminals (notably older Wyses) can
162#		only support one attribute without magic-cookie lossage.
163#		Their base entry is usually paired with another that
164#		uses magic cookies to support multiple attributes.
165#	-nam	No auto-margin - suppress :am: capability
166#	-nl	No labels - suppress soft labels
167#	-ns	No status line - suppress status line
168#	-rv	Terminal in reverse video mode (black on white)
169#	-s	Enable status line.
170#	-vb	Use visible bell (:vb:) rather than :bl:.
171#	-w	Wide - in 132 column mode.
172# If a name has multiple suffixes and one is a line height, that one should
173# go first.  Thus `aaa-30-s-rv' is recommended over `aaa-s-rv-30'.
174#
175# Entries with embedded plus signs are designed to be included through use/tc
176# capabilities, not used as standalone entries.
177#
178# To avoid search clashes, some older all-numeric names for terminals have
179# been removed (i.e., "33" for the Model 33 Teletype, "2621" for the HP2621).
180# All primary names of terminals now have alphanumeric prefixes.
181#
182# Comments marked "esr" are mostly results of applying the termcap-compiler
183# code packaged with ncurses and contemplating the resulting error messages.
184# In many cases, these indicated obvious fixes to syntax garbled by the
185# composers.  In a few cases, I was able to deduce corrected forms for garbled
186# capabilities by looking at context.  All the information in the original
187# entries is preserved in the comments.
188#
189# In the comments, terminfo capability names are bracketed with <> (angle
190# brackets).  Termcap capability names are bracketed with :: (colons).
191#
192# INTERPRETATION OF USER CAPABILITIES
193#
194# The System V Release 4 and XPG4 terminfo format defines ten string
195# capabilities for use by applications, <u0>...<u9>.   In this file, we use
196# certain of these capabilities to describe functions which are not covered
197# by terminfo.  The mapping is as follows:
198#
199#	u9	terminal enquire string (equiv. to ANSI/ECMA-48 DA)
200#	u8	terminal answerback description
201#	u7	cursor position request (equiv. to VT100/ANSI/ECMA-48 DSR 6)
202#	u6	cursor position report (equiv. to ANSI/ECMA-48 CPR)
203#
204# The terminal enquire string <u9> should elicit an answerback response
205# from the terminal.  Common values for <u9> will be ^E (on older ASCII
206# terminals) or \E[c (on newer VT100/ANSI/ECMA-48-compatible terminals).
207#
208# The cursor position request (<u7>) string should elicit a cursor position
209# report.  A typical value (for VT100 terminals) is \E[6n.
210#
211# The terminal answerback description (u8) must consist of an expected
212# answerback string.  The string may contain the following scanf(3)-like
213# escapes:
214#
215#	%c	Accept any character
216#	%[...]	Accept any number of characters in the given set
217#
218# The cursor position report (<u6>) string must contain two scanf(3)-style
219# %d format elements.  The first of these must correspond to the Y coordinate
220# and the second to the %d.  If the string contains the sequence %i, it is
221# taken as an instruction to decrement each value after reading it (this is
222# the inverse sense from the cup string).  The typical CPR value is
223# \E[%i%d;%dR (on VT100/ANSI/ECMA-48-compatible terminals).
224#
225# These capabilities are used by tack(1m), the terminfo action checker
226# (distributed with ncurses 5.0).
227#
228# TABSET FILES
229#
230# All the entries in this file have been edited to assume that the tabset
231# files directory is /usr/share/tabset, in conformance with the File Hierarchy
232# Standard for Linux and open-source BSD systems.  Some vendors (notably Sun)
233# use /usr/lib/tabset or (more recently) /usr/share/lib/tabset.
234#
235# No curses package we know of actually uses these files.  If their location
236# is an issue, you will have to hand-patch the file locations before compiling
237# this file.
238#
239# REQUEST FOR CONTACT INFORMATION AND HISTORICAL MATERIAL
240#
241# As the ANSI/ECMA-48 standard and variants take firmer hold, and as
242# character-cell terminals are increasingly replaced by X displays, much of
243# this file is becoming a historical document (this is part of the reason for
244# the new organization, which puts ANSI types, xterm, Unix consoles,
245# and vt100 up front in confidence that this will catch 95% of new hardware).
246#
247# For the terminal types still alive, I'd like to have manufacturer's
248# contact data (Internet address and/or snail-mail + phone).
249#
250# I'm also interested in enriching the comments so that the latter portions of
251# the file do in fact become a potted history of VDT technology as seen by
252# UNIX hackers.  Ideally, I'd like the headers for each manufacturer to
253# include its live/dead/out-of-the-business status, and for as many
254# terminal types as possible to be tagged with information like years
255# of heaviest use, popularity, and interesting features.
256#
257# I'm especially interested in identifying the obscure entries listed under
258# `Miscellaneous obsolete terminals, manufacturers unknown' before the tribal
259# wisdom about them gets lost.  If you know a lot about obscure old terminals,
260# please go to the terminfo resource page, grab the UFO file (ufo.ti), and
261# eyeball it for things you can identify and describe.
262#
263# If you have been around long enough to contribute, please read the file
264# with this in mind and send me your annotations.
265#
266# COPYRIGHTS AND OTHER DELUSIONS
267#
268# The BSD ancestor of this file had a standard Regents of the University of
269# California copyright with dates from 1980 to 1993.
270#
271# Some information has been merged in from a terminfo file SCO distributes.
272# It has an obnoxious boilerplate copyright which I'm ignoring because they
273# took so much of the content from the ancestral BSD versions of this file
274# and didn't attribute it, thereby violating the BSD Regents' copyright.
275#
276# Not that anyone should care.  However many valid functions copyrights may
277# serve, putting one on a termcap/terminfo file with hundreds of anonymous
278# contributors makes about as much sense as copyrighting a wall-full of
279# graffiti -- it's legally dubious, ethically bogus, and patently ridiculous.
280#
281# This file deliberately has no copyright.  It belongs to no one and everyone.
282# If you claim you own it, you will merely succeed in looking like a fool.
283# Use it as you like.  Use it at your own risk.  Copy and redistribute freely.
284# There are no guarantees anywhere.  Svaha!
285#
286
287######## ANSI, UNIX CONSOLE, AND SPECIAL TYPES
288#
289# This section describes terminal classes and brands that are still
290# quite common.
291#
292
293#### Specials
294#
295# Special "terminals".  These are used to label tty lines when you don't
296# know what kind of terminal is on it.  The characteristics of an unknown
297# terminal are the lowest common denominator - they look about like a ti 700.
298#
299
300dumb|80-column dumb tty:\
301	:am:\
302	:co#80:\
303	:bl=^G:cr=^M:do=^J:sf=^J:
304unknown|unknown terminal type:\
305	:gn:tc=dumb:
306lpr|printer|line printer:\
307	:bs:hc:os:\
308	:co#132:li#66:\
309	:bl=^G:cr=^M:do=^J:ff=^L:le=^H:sf=^J:
310glasstty|classic glass tty interpreting ASCII control characters:\
311	:am:bs:\
312	:co#80:\
313	:bl=^G:cl=^L:cr=^M:do=^J:kd=^J:kl=^H:le=^H:nw=^M^J:ta=^I:
314
315vanilla|dumb tty:\
316	:bs:\
317	:bl=^G:cr=^M:do=^J:sf=^J:
318
319# This is almost the same as "dumb", but with no prespecified width.
320# DEL and ^C are hardcoded to act as kill characters.
321# ^D acts as a line break (just like newline).
322# It also interprets
323#      \033];xxx\007
324# for compatibility with xterm -TD
3259term|Plan9 terminal emulator for X:\
326	:am:\
327	:bl=^G:do=^J:nl=^J:
328
329#### ANSI.SYS/ISO 6429/ECMA-48 Capabilities
330#
331# See the end-of-file comment for more on these.
332#
333
334# ANSI capabilities are broken up into pieces, so that a terminal
335# implementing some ANSI subset can use many of them.
336ansi+local1:\
337	:do=\E[B:le=\E[D:nd=\E[C:up=\E[A:
338ansi+local:\
339	:DO=\E[%dB:LE=\E[%dD:RI=\E[%dC:UP=\E[%dA:tc=ansi+local1:
340ansi+tabs:\
341	:bt=\E[Z:ct=\E[3g:st=\EH:ta=^I:
342ansi+inittabs:\
343	:it#8:tc=ansi+tabs:
344ansi+erase:\
345	:cd=\E[J:ce=\E[K:cl=\E[H\E[J:
346ansi+rca:\
347	:ch=\E[%+^AG:cv=\E[%+^Ad:
348ansi+cup:\
349	:cm=\E[%i%d;%dH:ho=\E[H:
350ansi+rep:
351ansi+idl1:\
352	:al=\E[L:dl=\E[M:
353ansi+idl:\
354	:AL=\E[%dL:DL=\E[%dM:tc=ansi+idl1:
355ansi+idc:\
356	:IC=\E[%d@:dc=\E[P:ei=\E6:ic=\E[@:im=\E6:
357ansi+arrows:\
358	:kb=^H:kd=\E[B:kh=\E[H:kl=\E[D:kr=\E[C:ku=\E[A:
359ansi+sgr|ansi graphic renditions:\
360	:mb=\E[5m:me=\E[0m:mk=\E[8m:mr=\E[7m:
361ansi+sgrso|ansi standout only:\
362	:se=\E[m:so=\E[7m:
363ansi+sgrul|ansi underline only:\
364	:ue=\E[m:us=\E[4m:
365ansi+sgrbold|ansi graphic renditions; assuming terminal has bold; not dim:\
366	:md=\E[1m:tc=ansi+sgr:tc=ansi+sgrso:tc=ansi+sgrul:
367ansi+sgrdim|ansi graphic renditions; assuming terminal has dim; not bold:\
368	:mh=\E[2m:tc=ansi+sgr:tc=ansi+sgrso:tc=ansi+sgrul:
369ansi+pp|ansi printer port:\
370	:pf=\E[4i:po=\E[5i:ps=\E[0i:
371ansi+csr|ansi scroll-region plus cursor save & restore:\
372	:cs=\E[%i%d;%dr:rc=\E8:sc=\E7:
373
374# The IBM PC alternate character set.  Plug this into any Intel console entry.
375# We use \E[11m for rmacs rather than \E[12m so the <acsc> string can use the
376# ROM graphics for control characters such as the diamond, up- and down-arrow.
377# This works with the System V, Linux, and BSDI consoles.  It's a safe bet this
378# will work with any Intel console, they all seem to have inherited \E[11m
379# from the ANSI.SYS de-facto standard.
380klone+acs|alternate character set for ansi.sys displays:\
381	:ac=+\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:\
382	:ae=\E[10m:as=\E[11m:
383
384# Highlight controls corresponding to the ANSI.SYS standard.  Most
385# console drivers for Intel boxes obey these.  Makes the same assumption
386# about \E[11m as klone+acs.  True ANSI/ECMA-48 would have :se=\E[27m:,
387# :ue=\E[24m:, but this isn't a documented feature of ANSI.SYS.
388klone+sgr|attribute control for ansi.sys displays:\
389	:S2=\E[11m:S3=\E[10m:mb=\E[5m:md=\E[1m:me=\E[0m:mr=\E[7m:\
390	:se=\E[m:so=\E[7m:ue=\E[m:us=\E[4m:tc=klone+acs:
391
392# Most Intel boxes do not treat "invis" (invisible) text.
393klone+sgr8|attribute control for ansi.sys displays:\
394	:mk=\E[8m:tc=klone+sgr:
395
396# Highlight controls corresponding to the ANSI.SYS standard.  *All*
397# console drivers for Intel boxes obey these.  Does not assume \E[11m will
398# work; uses \E[12m instead, which is pretty bulletproof but loses you the ACS
399# diamond and arrow characters under curses.
400klone+sgr-dumb|attribute control for ansi.sys displays (no ESC [ 11 m):\
401	:as=\E[12m:mb=\E[5m:md=\E[1m:me=\E[0m:mk=\E[8m:mr=\E[7m:\
402	:se=\E[m:so=\E[7m:ue=\E[m:us=\E[4m:tc=klone+acs:
403
404# KOI8-R (RFC1489) acs (alternate character set)
405# From: Qing Long <qinglong@Bolizm.ihep.su>, 24 Feb 1996.
406klone+koi8acs|alternate character set for ansi.sys displays with KOI8 charset:\
407	:ac=+\020,\021-\036.^_0\215`\004a\237f\234g\232h\222i\220j\205k\203l\202m\204n\212o\213p\216q\200r\217s\214t\206u\207v\210w\211x\201y\230z\231{\267|\274}L~\225:\
408	:ae=\E[10m:as=\E[11m:
409
410# ANSI.SYS color control.  The setab/setaf caps depend on the coincidence
411# between SVr4/XPG4's color numbers and ANSI.SYS attributes.  Here are longer
412# but equivalent strings that don't rely on that coincidence:
413# setb=\E[4%?%p1%{1}%=%t4%e%p1%{3}%=%t6%e%p1%{4}%=%t1%e%p1%{6}%=%t3%e%p1%d%;m,
414# setf=\E[3%?%p1%{1}%=%t4%e%p1%{3}%=%t6%e%p1%{4}%=%t1%e%p1%{6}%=%t3%e%p1%d%;m,
415# The DOS 5 manual asserts that these sequences meet the ISO 6429 standard.
416# They match a subset of ECMA-48.
417klone+color|color control for ansi.sys and ISO6429-compatible displays:\
418	:Co#8:NC#3:pa#64:\
419	:AB=\E[4%dm:AF=\E[3%dm:op=\E[37;40m:
420
421# This is better than klone+color, it doesn't assume white-on-black as the
422# default color pair,  but many `ANSI' terminals don't grok the <op> cap.
423ecma+color|color control for ECMA-48-compatible terminals:\
424	:AX:\
425	:Co#8:NC#3:pa#64:\
426	:AB=\E[4%dm:AF=\E[3%dm:op=\E[39;49m:
427
428# Attribute control for ECMA-48-compatible terminals
429ecma+sgr|attribute capabilities for true ECMA-48 terminals:\
430	:se=\E[27m:ue=\E[24m:tc=klone+sgr8:
431
432# For comparison, here are all the capabilities implied by the Intel
433# Binary Compatibility Standard (level 2) that fit within terminfo.
434# For more detail on this rather pathetic standard, see the comments
435# near the end of this file.
436ibcs2|Intel Binary Compatibility Standard prescriptions:\
437	:AL=\E[%dL:DC=\E[%dP:DO=\E[%dB:IC=\E[%d@:LE=\E[%dD:\
438	:RA=\E[?7l:RI=\E[%dC:S1=\E=%dg:SA=\E[?7h:SF=\E[%dS:\
439	:SR=\E[%dT:UP=\E[%dA:bt=\E[Z:ch=\E[%i%dG:cl=\Ec:\
440	:cm=\E[%i%d;%dH:ct=\E[g:cv=\E[%i%dd:do=\E[1B:ec=\E[%dX:\
441	:ei=:im=:le=\E[1D:nd=\E[1C:rc=\E7:sc=\E7:st=\EH:up=\E[1A:
442
443#### ANSI/ECMA-48 terminals and terminal emulators
444#
445# See near the end of this file for details on ANSI conformance.
446# Don't mess with these entries!  Lots of other entries depend on them!
447#
448# This section lists entries in a least-capable to most-capable order.
449# if you're in doubt about what `ANSI' matches yours, try them in that
450# order and back off from the first that breaks.
451
452# ansi-mr is for ANSI terminals with ONLY relative cursor addressing
453# and more than one page of memory.  It uses local motions instead of
454# direct cursor addressing, and makes almost no assumptions. It does
455# assume auto margins, no padding and/or xon/xoff, and a 24x80 screen.
456ansi-mr|mem rel cup ansi:\
457	:am:xo:\
458	:co#80:li#24:tc=vanilla:tc=ansi+erase:tc=ansi+local1:
459
460# ansi-mini is a bare minimum ANSI terminal. This should work on anything, but
461# beware of screen size problems and memory relative cursor addressing.
462ansi-mini|any ansi terminal with pessimistic assumptions:\
463	:am:xo:\
464	:co#80:li#24:tc=vanilla:tc=ansi+cup:tc=ansi+erase:
465
466# ansi-mtabs adds relative addressing and minimal tab support
467ansi-mtabs|any ansi terminal with pessimistic assumptions:\
468	:it#8:\
469	:ta=^I:tc=ansi+local1:tc=ansi-mini:
470
471# ANSI X3.64 from emory!mlhhh (Hugh Hansard) via BRL
472#
473# The following is an entry for the full ANSI 3.64 (1977).  It lacks
474# padding, but most terminals using the standard are "fast" enough
475# not to require any -- even at 9600 bps.  If you encounter problems,
476# try including the padding specifications.
477#
478# Note: the :as: and :ae: specifications are not implemented here, for
479# the available termcap documentation does not make clear WHICH alternate
480# character set to specify.  ANSI 3.64 seems to make allowances for several.
481# Please make the appropriate adjustments to fit your needs -- that is
482# if you will be using alternate character sets.
483#
484# There are very few terminals running the full ANSI 3.64 standard,
485# so I could only test this entry on one verified terminal (Visual 102).
486# I would appreciate the results on other terminals sent to me.
487#
488# Please report comments, changes, and problems to:
489#
490# U.S. MAIL:   Hugh Hansard
491#              Box: 22830
492#              Emory University
493#              Atlanta, GA. 30322.
494#
495# USENET {akgua,msdc,sb1,sb6,gatech}!emory!mlhhh.
496#
497# (Added vt100 :rc:,:sc: to quiet a tic warning --esr)
498ansi77|ansi 3.64 standard 1977 version:\
499	:am:bs:mi:\
500	:co#80:it#8:li#24:\
501	:al=5*\E[L:bl=^G:cd=\E[J:ce=\E[K:cl=\E[;H\E[2J:\
502	:cm=\E[%i%d;%dH:cr=^M:cs=\E[%i%d;%dr:dc=\E[P:dl=5*\E[M:\
503	:do=\E[B:ei=\E[4l:ho=\E[H:im=\E[4h:k1=\EOP:k2=\EOR:k4=\EOS:\
504	:kb=^H:kd=\E[B:kh=\E[H:kl=\E[D:kr=\E[C:ku=\E[A:le=^H:\
505	:nd=\E[C:nw=^M\ED:rc=\E8:sc=\E7:se=\E[m:sf=\ED:so=\E[7m:\
506	:sr=\EM:ta=^I:ue=\E[m:up=\E[A:us=\E[4m:
507
508# Procomm and some other ANSI emulations don't recognize all of the ANSI-
509# standard capabilities.  This entry deletes :UP:, :RI:, :DO:, :LE:, and
510# <vpa>/<hpa> capabilities, forcing curses to use repetitions of :up:,
511# :nd:, :do: and :le:.  Also deleted :IC: and :ic:, as QModem up to
512# 5.03 doesn't recognize these.  Finally, we delete :rp: and :sr:, which seem
513# to confuse many emulators.  On the other hand, we can count on these programs
514# doing :ae:/:as:/:sa:. Older versions of this entry featured
515# <invis=\E[9m>, but <invis=\E[8m> now seems to be more common under
516# ANSI.SYS influence.
517# From: Eric S. Raymond <esr@snark.thyrsus.com> Oct 30 1995
518pcansi-m|pcansi-mono|ibm-pc terminal programs claiming to be ansi (mono mode):\
519	:am:bs:mi:ms:\
520	:co#80:it#8:li#24:\
521	:al=\E[L:bl=^G:bt=\E[Z:cd=\E[J:ce=\E[K:cl=\E[H\E[J:\
522	:cm=\E[%i%d;%dH:cr=^M:ct=\E[3g:dc=\E[P:dl=\E[M:do=\E[B:\
523	:ho=\E[H:kb=^H:kd=\E[B:kh=\E[H:kl=\E[D:kr=\E[C:ku=\E[A:\
524	:le=\E[D:nd=\E[C:sf=^J:st=\EH:ta=^I:up=\E[A:\
525	:tc=klone+sgr-dumb:
526pcansi-25-m|pcansi25m|ibm-pc terminal programs with 25 lines (mono mode):\
527	:li#25:tc=pcansi-m:
528pcansi-33-m|pcansi33m|ibm-pc terminal programs with 33 lines (mono mode):\
529	:li#33:tc=pcansi-m:
530pcansi-43-m|ansi43m|ibm-pc terminal programs with 43 lines (mono mode):\
531	:li#43:tc=pcansi-m:
532# The color versions.  All PC emulators do color...
533pcansi|ibm-pc terminal programs claiming to be ansi:\
534	:tc=klone+color:tc=pcansi-m:
535pcansi-25|pcansi25|ibm-pc terminal programs with 25 lines:\
536	:li#25:tc=pcansi:
537pcansi-33|pcansi33|ibm-pc terminal programs with 33 lines:\
538	:li#33:tc=pcansi:
539pcansi-43|pcansi43|ibm-pc terminal programs with 43 lines:\
540	:li#43:tc=pcansi:
541
542# ansi-m -- full ANSI X3.64 with ANSI.SYS-compatible attributes, no color.
543# If you want pound signs rather than dollars, replace `B' with `A'
544# in the <s0ds>, <s1ds>, <s2ds>, and <s3ds> capabilities.
545# From: Eric S. Raymond <esr@snark.thyrsus.com> Nov 6 1995
546ansi-m|ansi-mono|ANSI X3.64-1979 terminal with ANSI.SYS compatible attributes:\
547	:5i:\
548	:AL=\E[%dL:DC=\E[%dP:DL=\E[%dM:DO=\E[%dB:IC=\E[%d@:\
549	:LE=\E[%dD:RI=\E[%dC:SF=\E[%dS:SR=\E[%dT:UP=\E[%dA:\
550	:cb=\E[1K:ch=\E[%i%dG:ct=\E[3g:cv=\E[%i%dd:ec=\E[%dX:ei=:\
551	:im=:kB=\E[Z:kI=\E[L:kb=^H:kd=\E[B:kl=\E[D:kr=\E[C:ku=\E[A:\
552	:nw=\r\E[S:pf=\E[4i:po=\E[5i:s0=\E(B:s1=\E)B:s2=\E*B:\
553	:s3=\E+B:ta=\E[I:tc=pcansi-m:
554
555ansi+enq|ncurses extension for ANSI ENQ:\
556	:u6=\E[%i%d;%dR:u7=\E[6n:u9=\E[c:
557
558# ansi -- this terminfo expresses the largest subset of X3.64 that will fit in
559# standard terminfo.  Assumes ANSI.SYS-compatible attributes and color.
560# From: Eric S. Raymond <esr@snark.thyrsus.com> Nov 6 1995
561ansi|ansi/pc-term compatible with color:\
562	:tc=ansi+enq:tc=ecma+color:tc=klone+sgr8:tc=ansi-m:
563
564# ansi-generic is a vanilla ANSI terminal. This is assumed to implement
565# all the normal ANSI stuff with no extensions. It assumes
566# insert/delete line/char is there, so it won't work with
567# vt100 clones. It assumes video attributes for bold, blink,
568# underline, and reverse, which won't matter much if the terminal
569# can't do some of those. Padding is assumed to be zero, which
570# shouldn't hurt since xon/xoff is assumed.
571ansi-generic|generic ansi standard terminal:\
572	:am:xo:\
573	:co#80:li#24:tc=vanilla:tc=ansi+csr:tc=ansi+cup:\
574	:tc=ansi+rca:tc=ansi+erase:tc=ansi+tabs:tc=ansi+local:\
575	:tc=ansi+idc:tc=ansi+idl:tc=ansi+rep:tc=ansi+sgrbold:\
576	:tc=ansi+arrows:
577
578#### DOS ANSI.SYS variants
579#
580# This completely describes the sequences specified in the DOS 2.1 ANSI.SYS
581# documentation (except for the keyboard key reassignment feature, which
582# doesn't fit the <pfkey> model well).  The klone+acs sequences were valid
583# though undocumented.  The <pfkey> capability is untested but should work for
584# keys F1-F10 (%p1 values outside this range will yield unpredictable results).
585# From: Eric S. Raymond <esr@snark.thyrsus.com> Nov 7 1995
586ansi.sys-old|ANSI.SYS under PC-DOS 2.1:\
587	:am:bs:mi:ms:xo:\
588	:co#80:li#25:\
589	:RA=\E[?7l:SA=\E[?7h:ce=\E[k:cl=\E[2J:cm=\E[%i%d;%dH:\
590	:do=\E[B:ho=\E[H:is=\E[m\E[?7h:kd=^J:kh=^^:kl=^H:kr=^L:\
591	:ku=^K:le=^H:nd=\E[C:rc=\E[u:sc=\E[s:u6=\E[%i%d;%dR:\
592	:u7=\E[6n:up=\E[A:tc=klone+color:tc=klone+sgr8:
593
594# Keypad:	Home=\0G	Up=\0H	PrPag=\0I
595#		ka1,kh		kcuu1		kpp,ka3
596#
597#		Left=\0K	5=\0L		Right=\0M
598#		kcub1		kb2		kcuf1
599#
600#		End=\0O		Down=\0P	NxPag=\0Q
601#		kc1,kend	kcud1		kc3,knp
602#
603#		Ins=\0R		Del=\0S
604#		kich1		kdch1
605#
606# On keyboard with 12 function keys,
607#	shifted f-keys: F13-F24
608#	control f-keys: F25-F36
609#	alt f-keys:     F37-F48
610# The shift/control/alt keys do not modify each other, but alt overrides both,
611# and control overrides shift.
612#
613# <pfkey> capability for F1-F48 -TD
614ansi.sys|ANSI.SYS 3.1 and later versions:\
615	:@7=\200O:F1=\200\205:F2=\200\206:F3=\200T:F4=\200U:\
616	:F5=\200V:F6=\200W:F7=\200X:F8=\200Y:F9=\200Z:FA=\200[:\
617	:FB=\200\\:FC=\200]:FD=\200\207:FE=\200\210:FF=\200\136:\
618	:FG=\200_:FH=\200`:FI=\200a:FJ=\200b:FK=\200c:FL=\200d:\
619	:FM=\200e:FN=\200f:FO=\200g:FP=\200\211:FQ=\200\212:\
620	:FR=\200h:FS=\200i:FT=\200j:FU=\200k:FV=\200l:FW=\200m:\
621	:FX=\200n:FY=\200o:FZ=\200p:Fa=\200q:Fb=\200\213:\
622	:Fc=\200\214:K1=\200G:K2=\200L:K3=\200I:K4=\200O:K5=\200Q:\
623	:ce=\E[K:k1=\200;:k2=\200<:k3=\200=:k4=\200>:k5=\200?:\
624	:k6=\200@:k7=\200A:k8=\200B:k9=\200C:k;=\200D:kB=\200^O:\
625	:kD=\200S:kI=\200R:kN=\200Q:kP=\200I:kb=^H:kd=\200P:\
626	:kh=\200G:kl=\200K:kr=\200M:ku=\200H:tc=ansi.sys-old:
627
628#
629# Define IBM PC keypad keys for vi as per MS-Kermit while using ANSI.SYS.
630# This should only be used when the terminal emulator cannot redefine the keys.
631# Since redefining keys with ansi.sys also affects PC-DOS programs, the key
632# definitions must be restored.  If the terminal emulator is quit while in vi
633# or others using :ks:/:ke:, the keypad will not be defined as per PC-DOS.
634# The PgUp and PgDn are prefixed with ESC so that tn3270 can be used on Unix
635# (^U and ^D are already defined for tn3270).  The ESC is safe for vi but it
636# does "beep".  ESC ESC i is used for Ins to avoid tn3270 ESC i for coltab.
637# Note that :kl: is always BS, because PC-dos can tolerate this change.
638# Caution: vi is limited to 256 string bytes, longer crashes or weirds out vi.
639# Consequently the End keypad key could not be set (it is relatively safe and
640# actually useful because it sends ^@ O, which beeps and opens a line above).
641ansi.sysk|ansisysk|PC-DOS 3.1 ANSI.SYS with keypad redefined for vi:\
642	:is=U2 PC-DOS 3.1 ANSI.SYS with keypad redefined for vi 9-29-86\n\E[;75;8p:\
643	:ke=\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:\
644	:ks=\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:\
645	:tc=ansi.sys:
646#
647# Adds ins/del line/character, hence vi reverse scrolls/inserts/deletes nicer.
648nansi.sys|nansisys|PC-DOS Public Domain NANSI.SYS:\
649	:al=\E[1L:dc=\E[1P:dl=\E[1M:ei=:ic=\E[1@:im=:\
650	:is=U3 PC-DOS Public Domain NANSI.SYS 9-23-86\n:\
651	:tc=ansi.sys:
652#
653# See ansi.sysk and nansi.sys above.
654nansi.sysk|nansisysk|PC-DOS Public Domain NANSI.SYS with keypad redefined for vi:\
655	:al=\E[1L:dc=\E[1P:dl=\E[1M:ei=:ic=\E[1@:im=:\
656	:is=U4 PC-DOS Public Domain NANSI.SYS with keypad redefined for vi 9-29-86\n\E[;75;8p:\
657	:tc=ansi.sysk:
658
659#### ANSI console types
660
661#
662# Atari ST terminals.
663# From Guido Flohr <gufl0000@stud.uni-sb.de>.
664#
665tw52|tw52-color|Toswin window manager with color:\
666	:ut:\
667	:Co#16:pa#256:\
668	:oc=\Eb?\Ec0:op=\Eb?\Ec0:tc=tw52-m:
669tw52-m|Toswin window manager monochrome:\
670	:ul:\
671	:ma#999:\
672	:dc=\Ea:is=\Ev\Eq\Ez_\Ee\Ei\Eb?\Ec0:md=\Eya:me=\Ez_:\
673	:mh=\EyB:mr=\EyP:rs=\Ev\Eq\Ez_\Ee\Ei\Eb?\Ec0:se=\EzQ:\
674	:so=\EyQ:ue=\EzH:us=\EyH:tc=at-m:
675tt52|Atari TT medium and high resolution:\
676	:li#30:tc=at-color:
677st52-color|at-color|atari-color|atari_st-color|Atari ST with color:\
678	:ut:\
679	:Co#16:pa#256:\
680	:is=\Ev\Eq\Ee\Eb1\Ec0:rs=\Ev\Eq\Ee\Eb1\Ec0:tc=st52:
681st52|st52-m|at|at-m|atari|atari-m|atari_st|atarist-m|Atari ST:\
682	:NP:am:eo:mi:\
683	:co#80:it#8:li#24:\
684	:#4=\Ed:%1=\EH:%i=\Ec:&8=\EK:F1=\Ep:F2=\Eq:F3=\Er:F4=\Es:\
685	:F5=\Et:F6=\Eu:F7=\Ev:F8=\Ew:F9=\Ex:FA=\Ey:al=\EL:bl=^G:\
686	:cb=\Eo:cd=\EJ:ce=\EK:cl=\EE:cm=\EY%+ %+ :cr=^M:dl=\EM:\
687	:do=\EB:ho=\EH:is=\Ev\Eq\Ee:k1=\EP:k2=\EQ:k3=\ER:k4=\ES:\
688	:k5=\ET:k6=\EU:k7=\EV:k8=\EW:k9=\EX:k;=\EY:kD=\177:kI=\EI:\
689	:kN=\Eb:kP=\Ea:kb=^H:kd=\EB:kh=\EE:kl=\ED:kr=\EC:ku=\EA:\
690	:le=\ED:me=\Eq:mr=\Ep:nd=\EC:nw=^M^J:rc=\Ek:rs=\Ev\Eq\Ee:\
691	:sc=\Ej:se=\Eq:sf=^J:so=\Ep:sr=\EI:ta=^I:up=\EA:ve=\Ee:\
692	:vi=\Ef:
693tw100|toswin vt100 window mgr:\
694	:eo:mi:ms:xo:\
695	:Co#8:co#80:it#8:li#24:pa#64:vt#3:\
696	:%1=\EH:&8=\EK:DL=\E[%dM:DO=\E[%dB:F1=\Ep:F2=\Eq:F3=\Er:\
697	:F4=\Es:F5=\Et:F6=\Eu:F7=\Ev:F8=\Ew:F9=\Ex:FA=\Ey:IC=\E[%d@:\
698	:LE=\E[%dD:RI=\E[%dC:UP=\E[%dA:\
699	:ac=++,,--..00II``aaffgghhjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~:\
700	:ae=^O:al=\EL:as=^N:bl=^G:cb=\E[1K:cd=\E[J:ce=\E[K:\
701	:cl=\E[2J\E[H:cm=\E[%i%d;%dH:cr=^M:cs=\E[%i%d;%dr:\
702	:ct=\E[3g:dc=\Ea:dl=\E[M:do=\EB:ei=\Ei:ho=\E[H:im=\Eh:\
703	:is=\E<\E)0:k1=\EOP:k2=\EOQ:k3=\EOR:k4=\EOS:k5=\EOT:\
704	:k6=\EOU:k7=\EOV:k8=\EOW:k9=\EOX:k;=\EOY:kD=\177:kI=\EI:\
705	:kN=\Eb:kP=\E\Ea:kb=^H:kd=\EOB:ke=\E[?1l\E>:kh=\E\EE:\
706	:kl=\EOD:kr=\EOC:ks=\E[?1h\E=:ku=\EOA:le=^H:ll=\E[24H:\
707	:mb=\E[5m:md=\E[1m:me=\E[m:mh=\E[2m:mr=\E[7m:nd=\EC:nw=\EE:\
708	:oc=\E[30;47m:op=\E[30;47m:\
709	:r1=\E<\E[20l\E[?3;6;9l\E[r\Eq\E(B\017\E)0\E>:rc=\E8:\
710	:sc=\E7:se=\E[m:sf=^J:so=\E[7m:sr=\EM:st=\EH:ta=^I:\
711	:te=\E[?7h:ti=\E[?7l:ue=\E[m:up=\EA:us=\E[4m:ve=\Ee:vi=\Ef:
712# The entries for stv52 and stv52pc probably need a revision.
713stv52|MiNT virtual console:\
714	:am:ms:\
715	:co#80:it#8:li#30:\
716	:%1=\EH:&8=\EK:F1=\Ep:F2=\Eq:F3=\Er:F4=\Es:F5=\Et:F6=\Eu:\
717	:F7=\Ev:F8=\Ew:F9=\Ex:FA=\Ey:al=\EL:bl=^G:cd=\EJ:ce=\EK:\
718	:cl=\EE:cm=\EY%+ %+ :cr=^M:dl=\EM:do=\EB:ho=\EH:k1=\EP:\
719	:k2=\EQ:k3=\ER:k4=\ES:k5=\ET:k6=\EU:k7=\EV:k8=\EW:k9=\EX:\
720	:k;=\EY:kD=\177:kI=\EI:kN=\Eb:kP=\Ea:kb=^H:kd=\EB:kh=\EE:\
721	:kl=\ED:kr=\EC:ku=\EA:le=^H:mb=\Er:md=\EyA:me=\Ez_:mh=\Em:\
722	:mr=\Ep:nd=\EC:nw=2*\r\n:op=\Eb@\EcO:r1=\Ez_\Eb@\EcA:\
723	:se=\Eq:sf=2*\n:so=\Ep:sr=2*\EI:ta=^I:te=\Ev\E. \Ee\Ez_:\
724	:ti=\Ev\Ee\Ez_:ue=\EzH:up=\EA:us=\EyH:ve=\E. \Ee:vi=\Ef:\
725	:vs=\E.":
726stv52pc|MiNT virtual console with PC charset:\
727	:am:ms:\
728	:co#80:it#8:li#30:\
729	:%1=\EH:&8=\EK:F1=\Ep:F2=\Eq:F3=\Er:F4=\Es:F5=\Et:F6=\Eu:\
730	:F7=\Ev:F8=\Ew:F9=\Ex:FA=\Ey:\
731	:ac=+\257,\256-\136.v0\333I\374`\177a\260f\370g\361h\261j\331k\277l\332m\300n\305o\377p-q\304r-s_t+u+v+w+x\263y\363z\362{\343|\366}\234~\371:\
732	:al=\EL:bl=^G:cd=\EJ:ce=\EK:cl=\EE:cm=\EY%+ %+ :cr=^M:\
733	:dl=\EM:do=\EB:ho=\EH:k1=\EP:k2=\EQ:k3=\ER:k4=\ES:k5=\ET:\
734	:k6=\EU:k7=\EV:k8=\EW:k9=\EX:k;=\EY:kD=\177:kI=\EI:kN=\Eb:\
735	:kP=\Ea:kb=^H:kd=\EB:kh=\EE:kl=\ED:kr=\EC:ku=\EA:le=^H:\
736	:mb=\Er:md=\EyA:me=\Ez_:mh=\Em:mr=\Ep:nd=\EC:nw=2*\r\n:\
737	:r1=\Ez_\Eb@\EcA:se=\Eq:sf=2*\n:so=\Ep:sr=2*\EI:ta=^I:\
738	:te=\Ev\E. \Ee\Ez_:ti=\Ev\Ee\Ez_:ue=\EzH:up=\EA:us=\EyH:\
739	:ve=\E. \Ee:vi=\Ef:vs=\E.":
740
741#### Atari ST
742#
743
744# From: Simson L. Garfinkel <simsong@media-lab.mit.edu>
745atari-old|atari st:\
746	:am:bs:\
747	:co#80:it#8:li#25:\
748	:al=\EL:cd=\EJ:ce=\EK:cl=\EH\EJ:cm=\EY%+ %+ :dl=\EM:do=\EB:\
749	:kd=\EB:kl=\ED:kr=\EC:ku=\EA:le=\ED:me=\Eq:nd=\EC:se=\Eq:\
750	:so=\Ep:sr=\EI:ta=^I:up=\EA:
751# UniTerm terminal program for the Atari ST:  49-line VT220 emulation mode
752# From: Paul M. Aoki <aoki@ucbvax.berkeley.edu>
753uniterm|uniterm49|UniTerm VT220 emulator with 49 lines:\
754	:li#49:\
755	:is=\E>\E[?3l\E[?4l\E[?5l\E[?7h\E[?8h\E[1;49r\E[49;1H:\
756	:tc=vt220:
757# MiNT VT52 emulation. 80 columns, 25 rows.
758# MiNT is Now TOS, the operating system which comes with all Ataris now
759# (mainly Atari Falcon). This termcap is for the VT52 emulation you get
760# under tcsh/zsh/bash/sh/ksh/ash/csh when you run MiNT in `console' mode
761# From: Per Persson <pp@gnu.ai.mit.edu>, 27 Feb 1996
762st52-old|Atari ST with VT52 emulation:\
763	:am:km:\
764	:co#80:li#25:\
765	:K1=\E#7:K2=\E#9:K3=\E#5:K4=\E#1:K5=\E#3:al=\EL:bl=^G:\
766	:cd=\EJ:ce=\EK:cl=\EH\EJ:cm=\EY%+ %+ :cr=^M:dl=\EM:do=\EB:\
767	:ho=\EH:k0=\E#D:k1=\E#;:k2=\E#<:k3=\E#=:k4=\E#>:k5=\E#?:\
768	:k6=\E#@:k7=\E#A:k8=\E#B:k9=\E#C:kA=\E#R:kC=\E#7:kF=\E#2:\
769	:kR=\E#8:kb=^H:kd=\E#P:kh=\E#G:kl=\E#K:kr=\E#M:ku=\E#H:\
770	:l0=f10:le=\ED:me=\Eq:nd=\EC:nw=^M^J:r1=\Ez_\Eb@\EcA:\
771	:rc=\Ek:sc=\Ej:se=\Eq:sf=^J:so=\Ep:sr=\EI:ta=^I:te=:ti=\Ee:\
772	:up=\EA:ve=\Ee:vi=\Ef:
773
774#### BeOS
775#
776# BeOS entry for Terminal program Seems to be almost ANSI
777beterm|BeOS Terminal:\
778	:am:eo:mi:ms:xn:xo:\
779	:Co#8:NC#5:co#80:it#8:li#25:pa#64:\
780	:&7=^Z:@7=\E[4~:AB=\E[4%dm:AF=\E[3%dm:AL=\E[%dL:DC=\E[%dP:\
781	:DL=\E[%dM:DO=\E[%dB:F1=\E[21~:F2=\E[22~:IC=\E[%d@:\
782	:LE=\E[%dD:RI=\E[%dC:Sb=\E[%+(m:Sf=\E[%+^^m:UP=\E[%dA:\
783	:al=\E[L:bl=^G:cb=\E[1K:cd=\E[J:ce=\E[K:ch=\E[%i%dG:\
784	:cl=\E[H\E[J:cm=\E[%i%d;%dH:cr=^M:cs=\E[%i%d;%dr:\
785	:cv=\E[%i%dd:dc=\E[P:dl=\E[M:do=^J:ec=\E[%dX:ei=\E[4l:\
786	:ho=\E[H:ic=\E[@:im=\E[4h:k1=\E[11~:k2=\E[12~:k3=\E[13~:\
787	:k4=\E[14~:k5=\E[15~:k6=\E[16~:k7=\E[17~:k8=\E[18~:\
788	:k9=\E[19~:k;=\E[20~:kD=\E[3~:kI=\E[2~:kN=\E[6~:kP=\E[5~:\
789	:kb=^H:kd=\E[B:ke=\E[?4l:kh=\E[1~:kl=\E[D:kr=\E[C:\
790	:ks=\E[?4h:ku=\E[A:le=^H:md=\E[1m:me=\E[0;10m:mr=\E[7m:\
791	:nd=\E[C:nw=^M^J:op=\E[m:r1=\Ec:rc=\E8:sc=\E7:se=\E[m:sf=^J:\
792	:so=\E[7m:sr=\EM:st=\EH:ta=^I:u6=\E[%i%d;%dR:u7=\E[6n:\
793	:ue=\E[24m:up=\E[A:us=\E[4m:
794
795#### Linux consoles
796#
797
798# This entry is good for the 1.2.13 or later version of the Linux console.
799#
800# ***************************************************************************
801# *                                                                         *
802# *                           WARNING:                                      *
803# * Linuxes come with a default keyboard mapping kcbt=^I.  This entry, in   *
804# * response to user requests, assumes kcbt=\E[Z, the ANSI/ECMA reverse-tab *
805# * character. Here are the keymap replacement lines that will set this up: *
806# *                                                                         *
807#	keycode  15 = Tab             Tab
808#		alt     keycode  15 = Meta_Tab
809#		shift	keycode  15 = F26
810#	string F26 ="\033[Z"
811# *                                                                         *
812# * This has to use a key slot which is unfortunate (any unused one will    *
813# * do, F26 is the higher-numbered one).  The change ought to be built      *
814# * into the kernel tables.                                                 *
815# *                                                                         *
816# ***************************************************************************
817#
818# All linux kernels since 1.2.13 (at least) set the screen size
819# themselves; this entry assumes that capability.
820#
821# (sgr removed to fit entry within 1023 bytes)
822# (rmacs/smacs removed for consistency)
823# (acsc removed to fit entry within 1023 bytes)
824linux-basic|linux console:\
825	:am:eo:mi:ms:ut:xn:xo:\
826	:NC#18:it#8:U8#1:\
827	:&7=^Z:@7=\E[4~:AL=\E[%dL:DC=\E[%dP:DL=\E[%dM:DO=\E[%dB:\
828	:F1=\E[23~:F2=\E[24~:F3=\E[25~:F4=\E[26~:F5=\E[28~:\
829	:F6=\E[29~:F7=\E[31~:F8=\E[32~:F9=\E[33~:FA=\E[34~:\
830	:IC=\E[%d@:K2=\E[G:Km=\E[M:LE=\E[%dD:RA=\E[?7l:RI=\E[%dC:\
831	:SA=\E[?7h:UP=\E[%dA:al=\E[L:bl=^G:cb=\E[1K:cd=\E[J:\
832	:ce=\E[K:ch=\E[%i%dG:cl=\E[H\E[J:cm=\E[%i%d;%dH:cr=^M:\
833	:cs=\E[%i%d;%dr:ct=\E[3g:cv=\E[%i%dd:dc=\E[P:dl=\E[M:\
834	:do=^J:ec=\E[%dX:ei=\E[4l:ho=\E[H:ic=\E[@:im=\E[4h:\
835	:k1=\E[[A:k2=\E[[B:k3=\E[[C:k4=\E[[D:k5=\E[[E:k6=\E[17~:\
836	:k7=\E[18~:k8=\E[19~:k9=\E[20~:k;=\E[21~:kB=\E[Z:kD=\E[3~:\
837	:kI=\E[2~:kN=\E[6~:kP=\E[5~:kb=\177:kd=\E[B:kh=\E[1~:\
838	:kl=\E[D:kr=\E[C:ku=\E[A:le=^H:mh=\E[2m:mr=\E[7m:nd=\E[C:\
839	:nw=^M^J:r1=\Ec\E]R:rc=\E8:sc=\E7:se=\E[27m:sf=^J:sr=\EM:\
840	:st=\EH:ta=^I:ue=\E[24m:up=\E[A:us=\E[4m:\
841	:vb=200\E[?5h\E[?5l:tc=vt102+enq:tc=klone+sgr:\
842	:tc=ecma+color:
843
844linux-m|Linux console no color:\
845	:Co@:pa@:\
846	:AB@:AF@:Sb@:Sf@:tc=linux:
847
848# The 1.3.x kernels add color-change capabilities; if yours doesn't have this
849# and it matters, turn off <ccc>.  The %02x escape used to implement this is
850# not supposedly back-portable to older SV curses (although it has worked fine
851# on Solaris for several years) and not supported in ncurses versions before
852# 1.9.9.
853linux-c-nc|linux console with color-change:\
854	:cc:\
855	:oc=\E]R:tc=linux-basic:
856# From: Dennis Henriksen <opus@osrl.dk>, 9 July 1996
857linux-c|linux console 1.3.6+ for older ncurses:\
858	:cc:\
859	:oc=\E]R:tc=linux-basic:
860
861# The 2.2.x kernels add a private mode that sets the cursor type; use that to
862# get a block cursor for cvvis.
863# reported by Frank Heckenbach <frank@g-n-u.de>.
864linux2.2|linux 2.2.x console:\
865	:ve=\E[?25h\E[?0c:vi=\E[?25l\E[?1c:vs=\E[?25h\E[?8c:\
866	:tc=linux-c-nc:
867
868# Linux 2.6.x has a fix for SI/SO to work with UTF-8 encoding added here:
869#	http://lkml.indiana.edu/hypermail/linux/kernel/0602.2/0868.html
870# Using SI/SO has the drawback that it confuses screen.  SCS would work.
871# However, SCS is buggy (see comment in Debian #515609) -TD
872linux2.6|linux 2.6.x console:\
873	:ae=^O:as=^N:me=\E[m\017:tc=linux2.2:
874
875# The 3.0 kernel adds support for clearing scrollback buffer (capability E3).
876linux3.0|linux 3.0 kernels:\
877	:E3=\E[3;J:tc=linux2.6:
878
879linux|linux console:\
880	:tc=linux3.0:
881
882# Subject: linux 2.6.26 vt back_color_erase
883# Changes to the Linux console driver broke bce model as reported in
884#	https://bugzilla.novell.com/show_bug.cgi?id=418613
885# apparently from
886#	http://lkml.org/lkml/2008/4/26/305
887#	http://groups.google.com/group/fa.linux.kernel/browse_thread/thread/87f98338f0d636bb/aa96e8b86cee0d1e?lnk=st&q=#aa96e8b86cee0d1e
888linux2.6.26|linux console w/o bce:\
889	:ut@:tc=linux2.6:
890
891# See the note on ICH/ICH1 VERSUS RMIR/SMIR near the end of file
892linux-nic|linux with ich/ich1 suppressed for non-curses programs:\
893	:IC@:ic@:tc=linux:
894
895# This assumes you have used setfont(8) to load one of the Linux koi8-r fonts.
896# acsc entry from Pavel Roskin" <pavel@absolute.spb.su>, 29 Sep 1997.
897linux-koi8|linux with koi8 alternate character set:\
898	:ac=+\020,\021-\030.^Y0\215`\004a\221f\234g\237h\220i\276j\205k\203l\202m\204n\212o~p\200q\200r\200s_t\206u\207v\211w\210x\201y\230z\231{\267|\274~\224:\
899	:tc=linux:tc=klone+koi8acs:
900
901# Another entry for KOI8-r with Qing Long's acsc.
902# (which one better complies with the standard?)
903linux-koi8r|linux with koi8-r alternate character set:\
904	:tc=linux:tc=klone+koi8acs:
905
906# Entry for the latin1 and latin2 fonts
907linux-lat|linux with latin1 or latin2 alternate character set:\
908	:ac=+\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:\
909	:tc=linux:
910
911# This uses graphics from VT codeset instead of from cp437.
912# reason: cp437 (aka "straight to font") is not functional under luit.
913# from: Andrey V Lukyanov <land@long.yar.ru>.
914linux-vt|linux console using VT codes for graphics:\
915	:S2@:S3@:\
916	:ac=++,,--..00``aaffgghhiijjkkllmmnnooppqqrrssttuuvvwwxxyyzz~~:\
917	:ae=\E(K:as=\E(0:me=\E[0m\E(K\017:sa@:tc=linux:
918
919# This is based on the Linux console (relies on the console to perform some
920# of the functionality), but does not recognize as many control sequences.
921# The program comes bundled with an old (circa 1998) copy of the Linux
922# console terminfo.  It recognizes some non-ANSI/VT100 sequences such as
923#	\E*	move cursor to home, as as \E[H
924#	\E,X	same as \E(X
925#	\EE	move cursor to beginning of row
926#	\E[y,xf	same as \E[y,xH
927#
928# Note: The status-line support is buggy (dsl does not work).
929kon|kon2|jfbterm|Kanji ON Linux console:\
930	:cc@:hs:\
931	:Ic@:Ip@:ds=\E[?H:fs=\E[?F:kB@:oc@:op=\E[37;40m:r1=\Ec:\
932	:ts=\E[?T:vb@:ve@:vi@:vs@:tc=linux:
933
934# 16-color linux console entry; this works with a 256-character
935# console font but bright background colors turn into dim ones when
936# you use a 512-character console font. This uses bold for bright
937# foreground colors and blink for bright background colors.
938linux-16color|linux console with 16 colors:\
939	:Co#16:NC#54:pa#256:tc=linux:
940
941# bterm (bogl 0.1.18)
942# Implementation is in bogl-term.c
943# Key capabilities from linux terminfo entry
944#
945# Notes:
946# bterm only supports acs using wide-characters, has case for these: qjxamlkut
947# bterm does not support sgr, since it only processes one parameter -TD
948bterm|bogl virtual terminal:\
949	:am:ut:\
950	:Co#8:co#80:li#24:pa#64:\
951	:&7=^Z:@7=\E[4~:AB=\E[4%dm:AF=\E[3%dm:F1=\E[23~:F2=\E[24~:\
952	:F3=\E[25~:F4=\E[26~:F5=\E[28~:F6=\E[29~:F7=\E[31~:\
953	:F8=\E[32~:F9=\E[33~:FA=\E[34~:K2=\E[G:Km=\E[M:\
954	:ac=aajjkkllmmqqttuuxx:ae=^O:as=^N:cd=\E[J:ce=\E[K:\
955	:cl=\E[H\E[2J:cm=\E[%i%d;%dH:cr=^M:do=^J:ho=\E[H:k1=\E[[A:\
956	:k2=\E[[B:k3=\E[[C:k4=\E[[D:k5=\E[[E:k6=\E[17~:k7=\E[18~:\
957	:k8=\E[19~:k9=\E[20~:k;=\E[21~:kB=\E[Z:kD=\E[3~:kI=\E[2~:\
958	:kN=\E[6~:kP=\E[5~:kb=\177:kd=\E[B:kh=\E[1~:kl=\E[D:\
959	:kr=\E[C:ku=\E[A:le=^H:md=\E[1m:me=\E[0m:mr=\E[7m:nw=^M^J:\
960	:op=\E49;39m:se=\E[27m:sf=^J:so=\E[7m:sr=\EM:ue=\E[24m:\
961	:us=\E[4m:ve=\E[?25h:vi=\E[?25l:
962
963#### Mach
964#
965
966# From: Matthew Vernon <mcv21@pick.sel.cam.ac.uk>
967mach|Mach Console:\
968	:am:km:\
969	:co#80:it#8:li#25:\
970	:@7=\E[Y:AL=\E[%dL:DL=\E[%dM:DO=\E[%dB:LE=\E[%dD:\
971	:RI=\E[%dC:UP=\E[%dA:al=\E[L:bl=^G:cd=\E[J:ce=\E[K:cl=\Ec:\
972	:cm=\E[%i%d;%dH:cr=^M:dl=\E[M:do=^J:ho=\E[H:k1=\EOP:\
973	:k2=\EOQ:k3=\EOR:k4=\EOS:k5=\EOT:k6=\EOU:k7=\EOV:k8=\EOW:\
974	:k9=\EOX:k;=\EOY:kD=\E[9:kH=\E[F:kI=\E[@:kN=\E[U:kP=\E[V:\
975	:kb=\177:kd=\E[B:kh=\E[H:kl=\E[D:kr=\E[C:ku=\E[A:le=^H:\
976	:mb=\E[5m:md=\E[1m:me=\E[0m:mr=\E[7m:nd=\E[C:se=\E[0m:\
977	:sf=^J:so=\E[7m:ta=^I:ue=\E[24m:up=\E[A:us=\E[4m:
978mach-bold|Mach Console with bold instead of underline:\
979	:ue=\E[0m:us=\E[1m:tc=mach:
980mach-color|Mach Console with ANSI color:\
981	:Co#8:pa#64:\
982	:AB=\E[4%dm:AF=\E[3%dm:mh=\E[2m:mk=\E[8m:op=\E[37;40m:\
983	:se=\E[27m:tc=mach:
984
985# From: Marcus Brinkmann
986# http://savannah.gnu.org/cgi-bin/viewcvs/*checkout*/hurd/hurd/console/
987#
988# Comments in the original are summarized here:
989#
990# hurd uses 8-bit characters (km).
991#
992# Although it doesn't do XON/XOFF, we don't want padding characters (xon).
993#
994# Regarding compatibility to vt100:  hurd doesn't specify :xn:, as we don't
995# have the eat_newline_glitch.  It doesn't support setting or removing tab
996# stops (hts/tbc).
997#
998# hurd uses ^H instead of \E[D for cub1, as only ^H implements :bw: and it is
999# one byte instead three.
1000#
1001# :ic: is not included because hurd has insert mode.
1002#
1003# hurd doesn't use ^J for scrolling, because this could put things into the
1004# scrollback buffer.
1005#
1006# gsbom/grbom are used to enable/disable real bold (not intensity bright) mode.
1007# This is a GNU extension.
1008#
1009# The original has commented-out ncv, but is restored here.
1010#
1011# Reading the source, RIS resets cnorm, but not xmous.
1012# (acsc removed to fit entry within 1023 bytes)
1013# (terminfo-only capabilities suppressed to fit entry within 1023 bytes)
1014hurd|The GNU Hurd console server:\
1015	:am:bw:eo:km:mi:ms:xo:\
1016	:it#8:\
1017	:AL=\E[%dL:DC=\E[%dP:DL=\E[%dM:DO=\E[%dB:IC=\E[%d@:\
1018	:K2=\E[G:LE=\E[%dD:RI=\E[%dC:SF=\E[%dS:SR=\E[%dT:\
1019	:UP=\E[%dA:ae=\E[10m:al=\E[L:as=\E[11m:bl=^G:bt=\E[Z:\
1020	:cd=\E[J:ce=\E[K:cl=\Ec:cm=\E[%i%d;%dH:cr=^M:\
1021	:cs=\E[%i%d;%dr:dc=\E[P:dl=\E[M:do=\E[B:ec=\E[%dX:\
1022	:ei=\E[4l:ho=\E[H:im=\E[4h:k1=\EOP:k2=\EOQ:k3=\EOR:k4=\EOS:\
1023	:k5=\E[15~:k6=\E[17~:k7=\E[18~:k8=\E[19~:k9=\E[20~:\
1024	:kD=\E[3~:kI=\E[2~:kN=\E[6~:kP=\E[5~:kb=\177:kd=\EOB:\
1025	:kh=\E[1~:kl=\EOD:kr=\EOC:ku=\EOA:le=^H:mb=\E[5m:md=\E[1m:\
1026	:me=\E[0m:mh=\E[2m:mr=\E[7m:nd=\E[C:nw=^M^J:rc=\E8:sc=\E7:\
1027	:se=\E[27m:sf=\E[S:so=\E[7m:sr=\E[T:ta=^I:ue=\E[24m:\
1028	:up=\E[A:us=\E[4m:vb=\Eg:ve=\E[?25h:vi=\E[?25l:vs=\E[34l:
1029
1030#### OSF Unix
1031#
1032
1033# OSF/1 1.1 Snapshot 2
1034pmcons|pmconsole|PMAX console:\
1035	:am:\
1036	:co#128:li#57:\
1037	:bl=^G:cl=^L:cr=^M:do=^J:k1=\EOP:k2=\EOQ:k3=\EOR:k4=\EOS:\
1038	:kd=\E[B:kl=\E[D:kr=\E[C:ku=\E[A:le=^H:sf=^J:ta=^I:up=^K:
1039
1040# SCO console and SOS-Syscons console for 386bsd
1041# (scoansi: had unknown capabilities
1042#	:Gc=N:Gd=K:Gh=M:Gl=L:Gu=J:Gv=\072:\
1043#	:GC=E:GD=B:GH=D:GL=\64:GU=A:GV=\63:GR=C:
1044#	:G1=?:G2=Z:G3=@:G4=Y:G5=;:G6=I:G7=H:G8=<:\
1045#	:CW=\E[M:NU=\E[N:RF=\E[O:RC=\E[P:\
1046#	:WL=\E[S:WR=\E[T:CL=\E[U:CR=\E[V:\
1047# I renamed GS/GE/HM/EN/PU/PD/RT and added klone+sgr-dumb, based
1048# on the :as:=\E[12m  -- esr)
1049#
1050# klone+sgr-dumb is an error since the acsc does not match -TD
1051#
1052# In this description based on SCO's keyboard(HW) manpage list of default
1053# function key values:
1054#	F13-F24 are shifted F1-F12
1055#	F25-F36 are control F1-F12
1056#	F37-F48 are shift+control F1-F12
1057#
1058# hpa/vpa work in the console, but not in scoterm:
1059#	hpa=\E[%p1%dG,
1060#	vpa=\E[%p1%dd,
1061#
1062# SCO's terminfo uses
1063#	kLFT=\E[d,
1064#	kRIT=\E[c,
1065# which do not work (console or scoterm).
1066#
1067# Console documents only 3 attributes can be set with SGR (so we don't use sgr).
1068# (rmacs/smacs removed for consistency)
1069# (acsc removed to fit entry within 1023 bytes)
1070# (terminfo-only capabilities suppressed to fit entry within 1023 bytes)
1071scoansi-old|SCO Extended ANSI standard crt (5.0.5):\
1072	:am:bs:eo:xo:\
1073	:co#80:it#8:li#25:\
1074	:AL=\E[%dL:DC=\E[%dP:DL=\E[%dM:DO=\E[%dB:IC=\E[%d@:\
1075	:LE=\E[%dD:RI=\E[%dC:SF=\E[%dS:SR=\E[%dT:UP=\E[%dA:\
1076	:al=\E[L:bl=^G:bt=\E[Z:cd=\E[m\E[J:ce=\E[m\E[K:\
1077	:cl=\E[H\E[2J:cm=\E[%i%d;%dH:dc=\E[P:dl=\E[M:do=\E[B:ei=:\
1078	:ho=\E[H:ic=\E[@:im=:k1=\E[M:k2=\E[N:k3=\E[O:k4=\E[P:\
1079	:k5=\E[Q:k6=\E[R:k7=\E[S:k8=\E[T:k9=\E[U:kD=\177:kI=\E[L:\
1080	:kN=\E[G:kP=\E[I:kb=^H:kd=\E[B:kh=\E[H:kl=\E[D:kr=\E[C:\
1081	:ku=\E[A:le=^H:mb=\E[5m:md=\E[1m:me=\E[0;10m:mr=\E[7m:\
1082	:nd=\E[C:rc=\E8:sc=\E7:se=\E[m:sf=\E[S:so=\E[7m:sr=\E[T:\
1083	:st=\EH:ta=^I:ue=\E[m:up=\E[A:us=\E[4m:ve=\E[=10;12C:\
1084	:vi=\E[=14;12C:vs=\E[=0;12C:
1085scoansi-new|SCO Extended ANSI standard crt (5.0.6):\
1086	:km:\
1087	:MC=\E[=r:MR=\E[=3;0m:Zk=\E[=1;0m:Zl=\E[=1;%i%dm:\
1088	:Zm=\E[=2;%i%dm:Zn=\E[=3;%i%dm:Zo=\E[=0;0m:\
1089	:Zp=\E[=0;%i%dm:cs=\E[%i%d;%dr:mm=\E[=10L:mo=\E[=11L:\
1090	:oc=\E[51m:op=\E[50m:rp=\E[%d;%db:ve=\E[=1c:vi=\E[=0c:\
1091	:vs=\E[=2c:tc=scoansi-old:
1092# make this easy to change...
1093scoansi|SCO Extended ANSI standard crt:\
1094	:tc=scoansi-old:
1095
1096# This actually describes the generic SVr4 display driver for Intel boxes.
1097# The :mh=\E[2m: isn't documented and therefore may not be reliable.
1098# From: Eric Raymond <esr@snark.thyrsus.com> Mon Nov 27 19:00:53 EST 1995
1099att6386|at386|386at|AT&T WGS 6386 console:\
1100	:am:bw:eo:xo:\
1101	:co#80:it#8:li#25:\
1102	:@7=\E[Y:AL=\E[%dL:DC=\E[%dP:DL=\E[%dM:DO=\E[%dB:F1=\EOZ:\
1103	:F2=\EOA:IC=\E[%d@:LE=\E[%dD:RI=\E[%dC:SF=\E[%dS:\
1104	:SR=\E[%dT:UP=\E[%dA:\
1105	:ac=``a1fxgqh0jYk?lZm@nEooppqDrrsstCu4vAwBx3yyzz{{||}}~~:\
1106	:ae=\E[10m:al=\E[1L:as=\E[12m:bl=^G:bt=\E[Z:cd=\E[J:\
1107	:ce=\E[K:ch=\E[%i%dG:cl=\E[2J\E[H:cm=\E[%i%d;%dH:cr=^M:\
1108	:ct=\E[3g:cv=\E[%i%dd:dc=\E[P:dl=\E[1M:do=\E[B:ec=\E[%dX:\
1109	:ei=:ho=\E[H:ic=\E[1@:im=:is=\E[0;10;39m:k1=\EOP:k2=\EOQ:\
1110	:k3=\EOR:k4=\EOS:k5=\EOT:k6=\EOU:k7=\EOV:k8=\EOW:k9=\EOX:\
1111	:k;=\EOY:kB=^]:kD=\E[P:kI=\E[@:kM=\E0:kN=\E[U:kP=\E[V:kb=^H:\
1112	:kd=\E[B:kh=\E[H:kl=\E[D:kr=\E[C:ku=\E[A:le=\E[D:mb=\E[5m:\
1113	:md=\E[1m:me=\E[0;10m:mh=\E[2m:mk=\E[9m:mr=\E[7m:nd=\E[C:\
1114	:nw=\r\E[S:rc=\E8:sc=\E7:se=\E[m:sf=\E[S:so=\E[7m:sr=\E[T:\
1115	:st=\EH:ta=^I:ue=\E[m:up=\E[A:us=\E[4m:ve=\E[=1C:vi=\E[=C:\
1116	:tc=klone+color:
1117# (pc6300plus: removed ":KM=/usr/lib/ua/kmap.s5:"; renamed BO/EE/CI/CV -- esr)
1118pc6300plus|AT&T 6300 plus:\
1119	:am:bs:xo:\
1120	:co#80:li#24:\
1121	:al=\E[1L:bl=^G:cd=\E[0J:ce=\E[0K:cl=\E[2J\E[H:\
1122	:cm=\E[%i%2;%2H:cr=^M:ct=\E[3g:dc=\E[1P:dl=\E[1M:do=\E[B:\
1123	:ei=:ho=\E[H:ic=\E[1@:im=:k1=\EOc:k2=\EOd:k3=\EOe:k4=\EOf:\
1124	:k5=\EOg:k6=\EOh:k7=\EOi:k8=\EOj:k9=\EOk:k;=\EOu:kb=^H:\
1125	:kd=\E[B:kl=\E[D:kr=\E[C:ku=\E[A:le=^H:mb=\E[5m:md=\E[1m:\
1126	:me=\E[m:mh=\E[2m:mk=\E[9m:mr=\E[7m:nd=\E[C:nw=^M^J:\
1127	:se=\E[m:sf=^J:so=\E[7m:st=\EH:ue=\E[m:up=\E[A:us=\E[4m:\
1128	:ve=\E[=1C:vi=\E[=C:
1129
1130# From: Benjamin C. W. Sittler <bsittler@nmt.edu>
1131#
1132# I have a UNIX PC which I use as a terminal attached to my Linux PC.
1133# Unfortunately, the UNIX PC terminfo entry that comes with ncurses
1134# is broken. All the special key sequences are broken, making it unusable
1135# with Emacs. The problem stems from the following:
1136#
1137# The UNIX PC has a plethora of keys (103 of them, and there's no numeric
1138# keypad!), loadable fonts, and strange highlighting modes ("dithered"
1139# half-intensity, "smeared" bold, and real strike-out, for example.) It also
1140# uses resizable terminal windows, but the bundled terminal program always
1141# uses an 80x24 window (and doesn't support seem to support a 132-column
1142# mode.)
1143#
1144# HISTORY: The UNIX PC was one of the first machines with a GUI, and used a
1145# library which was a superset of SVr3.5 curses (called tam, for "terminal
1146# access method".) tam includes support for real, overlapping windows,
1147# onscreen function key labels, and bitmap graphics. But since the primary
1148# user interface on the UNIX PC was a GUI program (ua, for "user
1149# assistant",) and remote administration was considered important for the
1150# machine, tam also supported VT100-compatible terminals attached to the
1151# serial port or used across the StarLan network. To simulate the extra keys
1152# not present on a VT100, users could press ESC and a two-letter sequence,
1153# such as u d (Undo) or U D (Shift-Undo.) These two-letter sequences,
1154# however, were not the same as those sent by the actual Undo key. The
1155# actual Undo key sends ESC 0 s unshifted, and ESC 0 S shifted, for example.
1156# (If you're interested in adding some of the tam calls to ncurses, btw, I
1157# have the full documentation and several programs which use tam. It also
1158# used an extended terminfo format to describe key sequences, special
1159# highlighting modes, etc.)
1160#
1161# KEYS: This means that ncurses would quite painful on the UNIX PC, since
1162# there are two sequences for every key-modifier combination (local keyboard
1163# sequence and remote "VT100" sequence.) But I doubt many people are trying
1164# to use ncurses on the UNIX PC, since ncurses doesn't properly handle the
1165# GUI. Unfortunately, the terminfo entry (and the termcap, too, I presume)
1166# seem to have been built from the manual describing the VT100 sequences.
1167# This means it doesn't work for a real live UNIX PC.
1168#
1169# FONTS: The UNIX PC also has a strange interpretation of "alternate
1170# character set". Rather than the VT100 graphics you might expect, it allows
1171# up to 8 custom fonts to be loaded at any given time. This means that
1172# programs expecting VT100 graphics will usually be disappointed. For this
1173# reason I have disabled the smacs/rmacs sequences, but they could easily be
1174# re-enabled. Here are the relevant control sequences (from the ESCAPE(7)
1175# manpage), should you wish to do so:
1176#
1177# SGR10 - Select font 0 - ESC [ 10 m or SO
1178# SGR11 - Select font 1 - ESC [ 11 m or SI
1179# SGR12 - Select font 2 - ESC [ 12 m
1180# ... (etc.)
1181# SGR17 - Select font 7 - ESC [ 17 m
1182#
1183# Graphics for line drawing are not reliably found at *any* character
1184# location because the UNIX PC has dynamically reloadable fonts. I use font
1185# 0 for regular text and font 1 for italics, but this is by no means
1186# universal. So ASCII line drawing is in order if smacs/rmacs are enabled.
1187#
1188# MISC: The cursor visible/cursor invisible sequences were swapped in the
1189# distributed terminfo.
1190#
1191# To ameliorate these problems (and fix a few highlighting bugs) I rewrote
1192# the UNIX PC terminfo entry. The modified version works great with Lynx,
1193# Emacs, and XEmacs running on my Linux PC and displaying on the UNIX PC
1194# attached by serial cable. In Emacs, even the Undo key works, and many
1195# applications can now use the F1-F8 keys.
1196#
1197# esr's notes:
1198#	Terminfo entry for the AT&T Unix PC 7300
1199#	from escape(7) in Unix PC 7300 Manual.
1200#	Somewhat similar to a vt100-am (but different enough
1201#	to redo this from scratch.)
1202#
1203#	/***************************************************************
1204#	*
1205#	*           FONT LOADING PROGRAM FOR THE UNIX PC
1206#	*
1207#	*     This routine loads a font defined in the file ALTFONT
1208#	*     into font memory slot #1.  Once the font has been loaded,
1209#	*     it can be used as an alternative character set.
1210#	*
1211#	*     The call to ioctl with the argument WIOCLFONT is the key
1212#	*     to this routine.  For more information, see window(7) in
1213#	*     the PC 7300 documentation.
1214#	***************************************************************/
1215#	#include <string.h>		/* needed for strcpy call */
1216#	#include <sys/window.h>         /* needed for ioctl call */
1217#	#define FNSIZE	60		/* font name size */
1218#	#define ALTFONT  "/usr/lib/wfont/special.8.ft"  /* font file */
1219#	/*
1220#	*     The file /usr/lib/wfont/special.8.ft comes with the
1221#	*     standard PC software.  It defines a graphics character set
1222#	*     similar to that of the Teletype 5425 terminal.  To view
1223#	*     this or other fonts in /usr/lib/wfont, use the command
1224#	*     cfont <filename>.  For further information on fonts see
1225#	*     cfont(1) in the PC 7300 documentation.
1226#	*/
1227#
1228#	struct altfdata 	/* structure for alt font data */
1229#	{
1230#	short	altf_slot;		/* memory slot number */
1231#	char	altf_name[FNSIZE];	/* font name (file name) */
1232#	};
1233#	ldfont()
1234#	{
1235#		int wd;		/* window in which altfont will be */
1236#		struct altfdata altf;
1237#		altf.altf_slot=1;
1238#		strcpy(altf.altf_name,ALTFONT);
1239#		for (wd =1; wd < 12; wd++) {
1240#		     ioctl(wd, WIOCLFONT,&altf);
1241#	        }
1242#	}
1243#
1244# (att7300: added :vi:/:ve:/:ic:/<invis> from the BSDI entry,
1245# they're confirmed by the man page for the System V display---esr)
1246#
1247# (terminfo-only capabilities suppressed to fit entry within 1023 bytes)
1248att7300|unixpc|pc7300|3b1|s4|AT&T UNIX PC Model 7300:\
1249	:am:xo:\
1250	:co#80:it#8:li#24:\
1251	:AL=\E[%dL:DL=\E[%dM:DO=\E[%dB:LE=\E[%dD:RI=\E[%dC:\
1252	:UP=\E[%dA:al=\E[L:bl=^G:bt=\E^I:cd=\E[0J:ce=\E[0K:\
1253	:cl=\E[2J\E[H:cm=\E[%i%d;%dH:cr=^M:dc=\E[P:dl=\E[M:\
1254	:do=\E[B:ei=:ho=\E[H:i1=\017\E[=1w:ic=\E[@:im=:k1=\EOc:\
1255	:k2=\EOd:k3=\EOe:k4=\EOf:k5=\EOg:k6=\EOh:k7=\EOi:k8=\EOj:\
1256	:kD=\ENf:kI=\ENj:kN=\E[U:kP=\E[V:kb=^H:kd=\E[B:kh=\E[H:\
1257	:kl=\E[D:kr=\E[C:ku=\E[A:le=^H:mb=\E[9m:md=\E[1m:\
1258	:me=\E[0;10m:mh=\E[2m:mr=\E[7m:nd=\E[C:nw=\EE:se=\E[m:\
1259	:sf=^J:so=\E[7m:sr=\EM:ue=\E[m:up=\E[A:us=\E[4m:ve=\E[=0C:\
1260	:vi=\E[=1C:
1261
1262# Sent by Stefan Stapelberg <stefan@rent-a-guru.de>, 24 Feb 1997, this is
1263# from SGI's terminfo database.  SGI's entry shows F9-F12 with the codes
1264# for the application keypad mode.  We have added iris-ansi-ap rather than
1265# change the original to keypad mode.
1266#
1267# (iris-ansi: added rmam/smam based on init string -- esr)
1268#
1269# This entry, and those derived from it, is used in xwsh (also known as
1270# winterm).  Some capabilities that do not fit into the terminfo model
1271# include the shift- and control-functionkeys:
1272#
1273# F1-F12 generate different codes when shift or control modifiers are used.
1274# For example:
1275#	F1      	\E[001q
1276#	shift F1	\E[013q
1277#	control-F1	\E[025q
1278#
1279# In application keypad mode, F9-F12 generate codes like vt100 PF1-PF4, i.e.,
1280# \EOP to \EOS.  The shifted and control modifiers still do the same thing.
1281#
1282# The cursor keys also have different codes:
1283#	control-up	\E[162q
1284#	control-down	\E[165q
1285#	control-left	\E[159q
1286#	control-right	\E[168q
1287#
1288#	shift-up	\E[161q
1289#	shift-down	\E[164q
1290#	shift-left	\E[158q
1291#	shift-right	\E[167q
1292#
1293#	control-tab	\[072q
1294#
1295iris-ansi|iris-ansi-net|IRIS emulating 40 line ANSI terminal (almost VT100):\
1296	:am:\
1297	:co#80:it#8:li#40:\
1298	:!2=\E[218q:#2=\E[143q:#4=\E[158q:%9=\E[209q:%f=\E[210q:\
1299	:%i=\E[167q:&7=\E[217q:*4=\E[P:*7=\E[147q:@7=\E[146q:\
1300	:@8=^M:AL=\E[%dL:DL=\E[%dM:DO=\E[%dB:F1=\E[011q:\
1301	:F2=\E[012q:LE=\E[%dD:RA=\E[?7l:RI=\E[%dC:SA=\E[?7h:\
1302	:UP=\E[%dA:al=\E[L:bl=^G:cb=\E[1K:cd=\E[J:ce=\E[K:\
1303	:cl=\E[H\E[2J:cm=\E[%i%d;%dH:cr=^M:ct=\E[3g:dl=\E[M:do=^J:\
1304	:ho=\E[H:is=\E[?1l\E>\E[?7h\E[100g\E[0m\E7\E[r\E8:\
1305	:k1=\E[001q:k2=\E[002q:k3=\E[003q:k4=\E[004q:k5=\E[005q:\
1306	:k6=\E[006q:k7=\E[007q:k8=\E[008q:k9=\E[009q:k;=\E[010q:\
1307	:kB=\E[Z:kD=\177:kI=\E[139q:kM=\E[146q:kN=\E[154q:\
1308	:kP=\E[150q:kb=^H:kd=\E[B:kh=\E[H:kl=\E[D:kr=\E[C:ku=\E[A:\
1309	:le=\E[D:md=\E[1m:me=\E[m:mr=\E[7m:nd=\E[C:nw=\EE:rc=\E8:\
1310	:sc=\E7:se=\E[m:sf=\ED:so=\E[1;7m:sr=\EM:st=\EH:ta=^I:\
1311	:ue=\E[m:up=\E[A:us=\E[4m:ve=\E[9/y\E[12/y\E[=6l:\
1312	:vs=\E[10/y\E[=1h\E[=2l\E[=6h:
1313iris-ansi-ap|IRIS ANSI in application-keypad mode:\
1314	:@8=\EOM:F1=\E[011q:F2=\E[012q:is=\E[?1l\E=\E[?7h:\
1315	:k9=\E[009q:k;=\E[010q:tc=iris-ansi:
1316
1317# From the man-page, this is a quasi-vt100 emulator that runs on SGI's IRIX
1318# (T.Dickey 98/1/24)
1319iris-color|xwsh|IRIX ANSI with color:\
1320	:NC#33:\
1321	:DC=\E[%dP:IC=\E[%d@:ZH=\E[3m:ZR=\E[23m:cs=\E[%i%d;%dr:\
1322	:ec=\E[%dX:ei=:im=:mh=\E[2m:r1=\Ec:\
1323	:r2=\E>\E[?3l\E[?4l\E[?5l\E[?7h\E[?8h:rc=\E8:sc=\E7:\
1324	:ue=\E[24m:tc=vt100+enq:tc=klone+color:tc=iris-ansi-ap:
1325
1326# The following is a version of the ibm-pc entry distributed with PC/IX,
1327# (Interactive Systems' System 3 for the Big Blue), modified by Richard
1328# McIntosh at UCB/CSM.  The :pt: and :uc: have been removed from the original,
1329# (the former is untrue, and the latter failed under UCB/man); standout and
1330# underline modes have been added.  Note: this entry describes the "native"
1331# capabilities of the PC monochrome display, without ANY emulation; most
1332# communications packages (but NOT PC/IX connect) do some kind of emulation.
1333pcix|PC/IX console:\
1334	:am:bw:eo:\
1335	:co#80:li#24:\
1336	:cd=\E[J:ce=\E[K:cl=\Ec:cm=\E[%i%2;%2H:do=\E[B:ho=\E[H:\
1337	:le=^H:me=\E[m:nd=\E[C:se=\E[m:so=\E[7m:ue=\E[m:up=\E[A:\
1338	:us=\E[4m:
1339
1340# (ibmpcx: this entry used to be known as ibmx.
1341# It formerly included the following extension capabilities:
1342#	:GC=b:GL=v:GR=t:RT=^J:\
1343#	:GH=\E[196g:GV=\E[179g:\
1344#	:GU=\E[193g:GD=\E[194g:\
1345#	:G1=\E[191g:G2=\E[218g:G3=\E[192g:G4=\E[217g:\
1346#	:CW=\E[E:NU=\E[F:RF=\E[G:RC=\E[H:\
1347#	:WL=\E[K:WR=\E[L:CL=\E[M:CR=\E[N:\
1348# I renamed GS/GE/WL/WR/CL/CR/PU/PD/HM/EN; also, removed a duplicate
1349# ":kh=\E[Y:".  Added IBM-PC forms characters and highlights, they match
1350# what was there before. -- esr)
1351ibmpcx|xenix|ibmx|IBM PC xenix console display:\
1352	:am:bs:ms:\
1353	:co#80:li#25:\
1354	:@7=\E[d:al=\E[L:cd=\E[J:ce=\E[K:cl=^L:cm=\E[%d;%dH:\
1355	:dc=\E[P:dl=\E[M:do=\E[B:ei=:ho=\E[H:ic=\E[@:im=:k1=\E[K:\
1356	:k2=\E[L:k3=\E[M:k4=\E[N:kN=\E[e:kP=\E[Z:kb=^H:kd=\E[B:\
1357	:kh=\E[Y:kl=\E[D:kr=\E[C:ku=\E[A:le=^H:nd=\E[C:up=\E[A:\
1358	:tc=klone+acs:tc=klone+sgr8:
1359
1360#### QNX
1361#
1362
1363# QNX 4.0 Console
1364# Michael's original version of this entry had <am@>, :ti=\Ei:,
1365# :te=\Eh\ER:; this was so terminfo applications could write the lower
1366# right corner without triggering a scroll.  The ncurses terminfo library can
1367# handle this case with the :ic: capability, and prefers :am: for better
1368# optimization.  Bug: The <op> capability resets attributes.
1369# From: Michael Hunter <mphunter@qnx.com> 30 Jul 1996
1370# (removed: :sa=%?%p1%t\E<%;%p2%t\E[%;%p3%t\E(%;%p4%t\E{%;%p6%t\E<%;,:)
1371# (rmacs/smacs removed for consistency)
1372# (acsc removed to fit entry within 1023 bytes)
1373# (terminfo-only capabilities suppressed to fit entry within 1023 bytes)
1374qnx|qnx4|qnx console:\
1375	:km:mi:ms:xt:\
1376	:co#80:it#4:li#25:\
1377	:al=\EE:bl=^G:cd=\EJ:ce=\EK:cl=\EH\EJ:cm=\EY%+ %+ :cr=^M:\
1378	:dc=\Ef:dl=\EF:do=^J:ei=:ho=\EH:ic=\Ee:im=:k1=\377\201:\
1379	:k2=\377\202:k3=\377\203:k4=\377\204:k5=\377\205:\
1380	:k6=\377\206:k7=\377\207:k8=\377\210:k9=\377\211:\
1381	:kD=\377\254:kI=\377\253:kN=\377\252:kP=\377\242:\
1382	:kd=\377\251:kh=\377\240:kl=\377\244:kr=\377\246:\
1383	:ku=\377\241:le=^H:mb=\E{:md=\E<:me=\E}\E]\E>\E):mr=\E(:\
1384	:nd=\EC:rp=\Eg%r%+ %.:se=\E):sf=^J:so=\E(:sr=\EI:ta=^I:\
1385	:te=\Eh\ER:ti=\Ei:ue=\E]:up=\EA:us=\E[:ve=\Ey1:vi=\Ey0:\
1386	:vs=\Ey2:
1387#
1388#
1389qnxt|qnxt4|QNX4 terminal:\
1390	:YB:tc=qnx4:
1391#
1392qnxm|QNX4 with mouse events:\
1393	:Yd#1:\
1394	:ZC=\E/:ZD=\E":ZJ=\E/>2h:ZT=\E/>2l:ZZ=\E/>1l\E/>9h:\
1395	:Za=\E/>7h:Zb=\E/>7l:Zd=\E/>6l:Zf=\E/>1h:Zg=\E/>1h:\
1396	:Zh=\E/>1h\E/>9l:Zi=\E/>6h:i1=\E/0t:tc=qnx4:
1397#
1398qnxw|QNX4 windows:\
1399	:YD:tc=qnxm:
1400#
1401#	Monochrome QNX4 terminal or console. Setting this terminal type will
1402#	allow an application running on a color console to behave as if it
1403#	were a monochrome terminal. Output will be through stdout instead of
1404#	console writes because the term routines will recognize that the
1405#	terminal name starts with 'qnxt'.
1406#
1407qnxtmono|Monochrome QNX4 terminal or console:\
1408	:Co@:pa@:\
1409	:sp@:tc=qnx4:
1410
1411# From: Federico Bianchi <bianchi@pc-arte2.arte.unipi.it>, 1 Jul 1998
1412# (esr: commented out <scp> and :te: to avoid warnings.)
1413# (TD: derive from original qnx4 entry)
1414qnxt2|qnx 2.15 serial terminal:\
1415	:am:\
1416	:!3@:%h@:%j@:&7@:Sb@:Sf@:dc@:ic@:rp@:se=\E>:so=\E<:te@:ti@:ve@:vi@:\
1417	:vs@:tc=qnx4:
1418
1419# QNX ANSI terminal definition
1420# (sgr removed to fit entry within 1023 bytes)
1421# (acsc removed to fit entry within 1023 bytes)
1422# (terminfo-only capabilities suppressed to fit entry within 1023 bytes)
1423qansi-g|QNX ANSI:\
1424	:am:es:hs:xo:\
1425	:co#80:it#8:li#25:ws#80:\
1426	:AL=\E[%dL:DC=\E[%dP:DL=\E[%dM:DO=\E[%dB:IC=\E[%d@:\
1427	:LE=\E[%dD:RI=\E[%dC:SF=\E[%dS:SR=\E[%dT:UP=\E[%dA:ae=^O:\
1428	:al=\E[1L:as=^N:bl=^G:bt=\E[Z:cd=\E[J:ce=\E[K:cl=\E[2J\E[H:\
1429	:cm=5\E[%i%d;%dH:cr=^M:cs=\E[%i%d;%dr:ct=\E[3g:dc=\E[P:\
1430	:dl=\E[1M:do=\E[B:ds=\E[r:ec=\E[%dX:ei=:fs=\E[?6h\E8:\
1431	:ho=\E[H:i2=\E(B\E)0:ic=\E[1@:im=:\
1432	:is=\E>\E[?1l\E[?7h\E[0;10;39;49m:k1=\EOP:k2=\EOQ:\
1433	:k3=\EOR:k4=\EOS:k5=\EOT:k6=\EOU:k7=\EOV:k8=\EOW:k9=\EOX:\
1434	:kD=\E[P:kI=\E[@:kN=\E[U:kP=\E[V:kb=^H:kd=\E[B:kh=\E[H:\
1435	:kl=\E[D:kr=\E[C:ku=\E[A:le=\E[D:ll=\E[99H:mb=\E[5m:\
1436	:md=\E[1m:me=\E[0m:mh=\E[2m:mr=\E[7m:nd=\E[C:nw=\EE:\
1437	:se=\E[27m:sf=\E[S:so=\E[7m:sr=\E[T:st=\EH:ta=^I:\
1438	:ts=\E7\E1;24r\E[?6l\E[25;%i%dH:ue=\E[24m:up=\E[A:\
1439	:us=\E[4m:vb=\E[?5h\E[?5l:ve=\E[?25h\E[?12l:vi=\E[?25l:\
1440	:vs=\E[?12;25h:
1441#
1442qansi|QNX ansi with console writes:\
1443	:YA:YC:tc=qansi-g:
1444#
1445qansi-t|QNX ansi without console writes:\
1446	:YB:tc=qansi:
1447#
1448qansi-m|QNX ansi with mouse:\
1449	:Yd#1:\
1450	:ZC=\E[:ZD=\E]:ZJ=\E[>2h:ZT=\E[>2l:ZZ=\E[>1l\E[>9h:\
1451	:Za=\E[>7h:Zb=\E[>7l:Zd=\E[>6l:Zf=\E[>1h:Zg=\E[>1h:\
1452	:Zh=\E[>1h\E[>9l:Zi=\E[>6h:i1=\E[0t:tc=qansi:
1453#
1454qansi-w|QNX ansi for windows:\
1455	:YD:tc=qansi-m:
1456
1457#### NetBSD consoles
1458#
1459# pcvt termcap database entries (corresponding to release 3.31)
1460# Author's last edit-date: [Fri Sep 15 20:29:10 1995]
1461#
1462# (For the terminfo master file, I translated these into terminfo syntax.
1463# Then I dropped all the pseudo-HP entries. we don't want and can't use
1464# the :Xs: flag. Then I split :is: into a size-independent :i1: and a
1465# size-dependent :is:.  Finally, I added <rmam>/<smam> -- esr)
1466
1467# NOTE: :ic: has been taken out of this entry. for reference, it should
1468# be <ich1=\E[@>.  For discussion, see ICH/ICH1 VERSUS RMIR/SMIR below.
1469# (esr: added :vi: and :ve: to resolve NetBSD Problem Report #4583)
1470pcvtXX|pcvt vt200 emulator (DEC VT220):\
1471	:am:km:mi:ms:xn:\
1472	:it#8:vt#3:\
1473	:AL=\E[%dL:DC=\E[%dP:DL=\E[%dM:DO=\E[%dB:IC=\E[%d@:\
1474	:LE=\E[%dD:RA=\E[?7l:RI=\E[%dC:SA=\E[?7h:SF=\E[%dS:\
1475	:SR=\E[%dT:UP=\E[%dA:\
1476	:ac=++,,--..00``aaffgghhiijjkkllmmnnooppqqrrssttuuvvwwxxyyzz~~:\
1477	:ae=\E(B:al=\E[L:as=\E(0:bl=^G:cb=\E[1K:cd=\E[J:ce=\E[K:\
1478	:cl=\E[H\E[J:cm=\E[%i%d;%dH:cr=^M:cs=\E[%i%d;%dr:\
1479	:ct=\E[3g:dc=\E[P:dl=\E[M:do=\E[B:ei=\E[4l:ho=\E[H:\
1480	:i1=\E>\E[?3l\E[?4l\E[?5l\E[?7h\E[?8h:im=\E[4h:\
1481	:k1=\E[17~:k2=\E[18~:k3=\E[19~:k4=\E[20~:k5=\E[21~:\
1482	:k6=\E[23~:k7=\E[24~:k8=\E[25~:kD=\E[3~:kH=\E[4~:kI=\E[2~:\
1483	:kN=\E[6~:kP=\E[5~:kb=\177:kd=\EOB:ke=\E[?1l\E>:kh=\E[1~:\
1484	:kl=\EOD:kr=\EOC:ks=\E[?1h\E=:ku=\EOA:le=^H:mb=\E[5m:\
1485	:md=\E[1m:me=\E[m:mr=\E[7m:nd=\E[C:nw=\EE:\
1486	:r1=\Ec\E>\E[?3l\E[?4l\E[?5l\E[?7h\E[?8h:rc=\E8:\
1487	:rf=/usr/share/tabset/vt100:sc=\E7:se=\E[27m:sf=\ED:\
1488	:so=\E[7m:sr=\EM:st=\EH:ta=^I:ue=\E[24m:up=\E[A:us=\E[4m:\
1489	:ve=\E[?25h:vi=\E[?25l:
1490
1491#	NetBSD/FreeBSD vt220 terminal emulator console (pc keyboard & monitor)
1492#	termcap entries for pure VT220-Emulation and 25, 28, 35, 40, 43 and
1493#	50 lines entries; 80 columns
1494pcvt25|dec vt220 emulation with 25 lines:\
1495	:co#80:li#25:\
1496	:is=\E[1;25r\E[25;1H:tc=pcvtXX:
1497pcvt28|dec vt220 emulation with 28 lines:\
1498	:co#80:li#28:\
1499	:is=\E[1;28r\E[28;1H:tc=pcvtXX:
1500pcvt35|dec vt220 emulation with 35 lines:\
1501	:co#80:li#35:\
1502	:is=\E[1;35r\E[35;1H:tc=pcvtXX:
1503pcvt40|dec vt220 emulation with 40 lines:\
1504	:co#80:li#40:\
1505	:is=\E[1;40r\E[40;1H:tc=pcvtXX:
1506pcvt43|dec vt220 emulation with 43 lines:\
1507	:co#80:li#43:\
1508	:is=\E[1;43r\E[43;1H:tc=pcvtXX:
1509pcvt50|dec vt220 emulation with 50 lines:\
1510	:co#80:li#50:\
1511	:is=\E[1;50r\E[50;1H:tc=pcvtXX:
1512
1513#	NetBSD/FreeBSD vt220 terminal emulator console (pc keyboard & monitor)
1514#	termcap entries for pure VT220-Emulation and 25, 28, 35, 40, 43 and
1515#	50 lines entries; 132 columns
1516pcvt25w|dec vt220 emulation with 25 lines and 132 cols:\
1517	:co#132:li#25:\
1518	:is=\E[1;25r\E[25;1H:tc=pcvtXX:
1519pcvt28w|dec vt220 emulation with 28 lines and 132 cols:\
1520	:co#132:li#28:\
1521	:is=\E[1;28r\E[28;1H:tc=pcvtXX:
1522pcvt35w|dec vt220 emulation with 35 lines and 132 cols:\
1523	:co#132:li#35:\
1524	:is=\E[1;35r\E[35;1H:tc=pcvtXX:
1525pcvt40w|dec vt220 emulation with 40 lines and 132 cols:\
1526	:co#132:li#40:\
1527	:is=\E[1;40r\E[40;1H:tc=pcvtXX:
1528pcvt43w|dec vt220 emulation with 43 lines and 132 cols:\
1529	:co#132:li#43:\
1530	:is=\E[1;43r\E[43;1H:tc=pcvtXX:
1531pcvt50w|dec vt220 emulation with 50 lines and 132 cols:\
1532	:co#132:li#50:\
1533	:is=\E[1;50r\E[50;1H:tc=pcvtXX:
1534
1535#	OpenBSD implements a color variation
1536pcvt25-color|dec vt220 emulation with 25 lines and color:\
1537	:co#80:li#25:\
1538	:F1=\E[23~:F2=\E[24~:F3=\E[25~:F4=\E[26~:F5=\E[28~:\
1539	:F6=\E[29~:F7=\E[31~:F8=\E[32~:F9=\E[33~:FA=\E[34~:\
1540	:is=\E[1;25r\E[25;1H:k1=\EOP:k2=\EOQ:k3=\EOR:k4=\EOS:\
1541	:k5=\E[17~:k6=\E[18~:k7=\E[19~:k8=\E[20~:k9=\E[21~:\
1542	:k;=\E[29~:tc=pcvtXX:tc=ecma+color:
1543
1544# Terminfo entries to enable the use of the ncurses library in colour on a
1545# NetBSD-arm32 console (only tested on a RiscPC).
1546# Created by Dave Millen <dmill@globalnet.co.uk> 22.07.98
1547# modified codes for setf/setb to setaf/setab, then to klone+color, corrected
1548# typo in invis - TD
1549arm100|arm100-am|Arm(RiscPC) ncurses compatible (for 640x480):\
1550	:am:ms:ut:xn:xo:\
1551	:co#80:it#8:li#30:\
1552	:@8=\E[M:DO=\E[%dB:K1=\E[q:K2=\E[r:K3=\E[s:K4=\E[p:K5=\E[n:\
1553	:LE=\E[%dD:RA=\E[?7l:RI=\E[%dC:SA=\E[?7h:UP=\E[%dA:\
1554	:ac=``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~:\
1555	:ae=^O:as=^N:bl=^G:cb=3\E[1K:cd=50\E[J:ce=3\E[K:\
1556	:cl=50\E[H\E[J:cm=5\E[%i%d;%dH:cr=^M:cs=\E[%i%d;%dr:\
1557	:ct=\E[3g:do=^J:eA=\E(B\E)0:ho=\E[H:k0=\E[y:k1=\E[P:\
1558	:k2=\E[Q:k3=\E[R:k4=\E[S:k5=\E[t:k6=\E[u:k7=\E[v:k8=\E[l:\
1559	:k9=\E[w:k;=\E[x:kb=^H:kd=\E[B:ke=\E[?1l\E>:kl=\E[D:\
1560	:kr=\E[C:ks=\E[?1h\E=:ku=\E[A:le=^H:mb=2\E[5m:md=2\E[1m:\
1561	:me=2\E[0m:mk=2\E[8m:mr=2\E[7m:nd=2\E[C:rc=\E8:\
1562	:rs=\E>\E[?3l\E[?4l\E[?5l\E[?7h\E[?8h:sc=\E7:se=2\E[m:\
1563	:sf=^J:so=2\E[7m:sr=5\EM:st=\EH:ta=^I:ue=2\E[m:up=2\E[A:\
1564	:us=2\E[4m:tc=ecma+sgr:tc=klone+color:
1565
1566arm100-w|arm100-wam|Arm(RiscPC) ncurses compatible (for 1024x768):\
1567	:co#132:li#50:tc=arm100:
1568
1569# NetBSD/x68k console vt200 emulator. This port runs on a 68K machine
1570# manufactured by Sharp for the Japenese market.
1571# From Minoura Makoto <minoura@netlaputa.or.jp>, 12 May 1996
1572x68k|x68k-ite|NetBSD/x68k ITE:\
1573	:co#96:li#32:\
1574	:%1=\E[28~:kC=\E[9~:tc=vt220:
1575
1576# <tv@pobox.com>:
1577# Entry for the DNARD OpenFirmware console, close to ANSI but not quite.
1578#
1579# (still unfinished, but good enough so far.)
1580ofcons|DNARD OpenFirmware console:\
1581	:bw:\
1582	:co#80:li#30:\
1583	:AL=\233%dL:DC=\233%dP:DL=\233%dM:DO=\233%dB:IC=\233%d@:\
1584	:LE=\233%dD:RI=\233%dC:UP=\233%dA:al=\233L:bl=^G:cd=\233J:\
1585	:ce=\233K:cl=^L:cm=\233%i%d;%dH:cr=^M:dc=\233P:dl=\233M:\
1586	:do=\233B:ei=:ic=\233@:im=:k1=\2330P:k2=\2330Q:k3=\2330W:\
1587	:k4=\2330x:k5=\2330t:k6=\2330u:k7=\2330q:k8=\2330r:\
1588	:k9=\2330p:k;=\2330M:kD=\233P:kN=\233/:kP=\233?:kb=^H:\
1589	:kd=\233B:kl=\233D:kr=\233C:ku=\233A:le=\233D:mb=\2337;2m:\
1590	:md=\2331m:me=\2330m:mh=\2332m:mk=\2338m:mr=\2337m:\
1591	:nd=\233C:nw=^M^J:se=\2330m:sf=^J:ta=^I:ue=\2330m:up=\233A:\
1592	:vb=^G:
1593
1594# NetBSD "wscons" emulator in vt220 mode.
1595# This entry is based on the NetBSD termcap entry, correcting the ncv value.
1596# The emulator renders underlined text in red.  Colors are otherwise usable.
1597#
1598# Testing the emulator and reading the source code (NetBSD 2.0), it appears
1599# that "vt220" is inaccurate.  There are a few vt220-features, but most of the
1600# vt220 screens in vttest do not work with this emulator.  For instance, it
1601# identifies itself (primary DA response) as a vt220 with selective erase.  But
1602# the selective erase feature does not work.  The secondary response is copied
1603# from Kermit's emulation of vt220, does not correspond to actual vt220.  At
1604# the level of detail in a termcap, it is a passable emulator, since ECH does
1605# work.  Don't use it on a VMS system -TD
1606wsvt25|NetBSD wscons in 25 line DEC VT220 mode:\
1607	:ms:ut:\
1608	:Co#8:NC#2:co#80:it#8:li#25:pa#64:\
1609	:@7=\E[8~:AB=\E[4%dm:AF=\E[3%dm:F1=\E[23~:F2=\E[24~:\
1610	:is=\E[r\E[25;1H:k1=\E[11~:k2=\E[12~:k3=\E[13~:k4=\E[14~:\
1611	:k5=\E[15~:k6=\E[17~:k7=\E[18~:k8=\E[19~:k9=\E[20~:\
1612	:k;=\E[21~:kh=\E[7~:op=\E[m:r1=\Ec:tc=vt220:
1613
1614wsvt25m|NetBSD wscons in 25 line DEC VT220 mode with Meta:\
1615	:km:tc=wsvt25:
1616
1617# `rasterconsole' provided by 4.4BSD, NetBSD and OpenBSD on SPARC, and
1618# DECstation/pmax.
1619rcons|BSD rasterconsole:\
1620	:tc=sun-il:
1621# Color version of above. Color currently only provided by NetBSD.
1622rcons-color|BSD rasterconsole with ANSI color:\
1623	:ut:\
1624	:Co#8:pa#64:\
1625	:AB=\E[4%dm:AF=\E[3%dm:op=\E[m:tc=rcons:
1626
1627# mgterm -- MGL/MGL2, MobileGear Graphic Library
1628# for PocketBSD,PocketLinux,NetBSD/{hpcmips,mac68k}
1629# -- the setf/setb are probably incorrect, more likely setaf/setab -TD
1630# -- compare with cons25w
1631mgterm:\
1632	:NP:am:bs:bw:eo:km:ms:pt:ut:\
1633	:Co#8:co#80:it#8:li#18:pa#64:\
1634	:@7=\E[F:AL=\E[%dL:DC=\E[%dP:DL=\E[%dM:DO=\E[%dB:F1=\E[W:\
1635	:F2=\E[X:IC=\E[%d@:K2=\E[E:LE=\E[%dD:RI=\E[%dC:SF=\E[%dS:\
1636	:SR=\E[%dT:Sb=\E[4%dm:Sf=\E[3%dm:UP=\E[%dA:al=\E[L:bl=^G:\
1637	:bt=\E[Z:cb=\E[1K:cd=\E[J:ce=\E[K:ch=\E[%i%d`:cl=\E[H\E[J:\
1638	:cm=\E[%i%d;%dH:cr=^M:cs=\E[%i%d;%dr:cv=\E[%i%dd:dc=\E[P:\
1639	:dl=\E[M:do=\E[B:ec=\E[%dX:ei=:ho=\E[H:ic=\E[@:im=:k1=\E[M:\
1640	:k2=\E[N:k3=\E[O:k4=\E[P:k5=\E[Q:k6=\E[R:k7=\E[S:k8=\E[T:\
1641	:k9=\E[U:k;=\E[V:kB=\E[Z:kD=\177:kI=\E[L:kN=\E[G:kP=\E[I:\
1642	:kb=^H:kd=\E[B:kh=\E[H:kl=\E[D:kr=\E[C:ku=\E[A:le=^H:\
1643	:mb=\E[5m:md=\E[1m:me=\E[m:mh=\E[30;1m:mr=\E[7m:nd=\E[C:\
1644	:nw=\E[E:op=\E[x:rc=\E8:rs=\E[x\E[m\Ec:sc=\E7:se=\E[m:\
1645	:sf=\E[S:so=\E[7m:sr=\E[T:ta=^I:up=\E[A:
1646
1647#### FreeBSD console entries
1648#
1649# From: Andrey Chernov <ache@astral.msk.su> 29 Mar 1996
1650# Andrey Chernov maintains the FreeBSD termcap distributions.
1651#
1652# Note: Users of FreeBSD 2.1.0 and older versions must either upgrade
1653# or comment out the :cb: capability in the console entry.
1654#
1655# Alexander Lukyanov reports:
1656# I have seen FreeBSD-2.1.5R... The old el1 bug changed, but it is still there.
1657# Now el1 clears not only to the line beginning, but also a large chunk
1658# of previous line. But there is another bug - ech does not work at all.
1659#
1660
1661# for syscons
1662# common entry without semigraphics
1663# Bug: The <op> capability resets attributes.
1664# Bug? The ech and el1 attributes appear to move the cursor in some cases; for
1665# instance el1 does if the cursor is moved to the right margin first.  Removed
1666# by T.Dickey 97/5/3 (ech=\E[%p1%dX, el1=\E[1K)
1667#
1668# Setting colors turns off reverse; we cannot guarantee order, so use ncv.
1669# Note that this disables standout with color.
1670#
1671# The emulator sends difference strings based on shift- and control-keys,
1672# like scoansi:
1673#	F13-F24 are shifted F1-F12
1674#	F25-F36 are control F1-F12
1675#	F37-F48 are shift+control F1-F12
1676# (sgr removed to fit entry within 1023 bytes)
1677# (terminfo-only capabilities suppressed to fit entry within 1023 bytes)
1678cons25w|ansiw|ansi80x25-raw|freebsd console (25-line raw mode):\
1679	:am:bw:eo:ms:\
1680	:co#80:it#8:li#25:\
1681	:AL=\E[%dL:DC=\E[%dP:DL=\E[%dM:DO=\E[%dB:IC=\E[%d@:\
1682	:K2=\E[E:LE=\E[%dD:RI=\E[%dC:SF=\E[%dS:SR=\E[%dT:\
1683	:UP=\E[%dA:al=\E[L:bl=^G:bt=\E[Z:cd=\E[J:ce=\E[K:\
1684	:cl=\E[H\E[J:cm=\E[%i%d;%dH:cr=^M:dc=\E[P:dl=\E[M:do=\E[B:\
1685	:ec=\E[%dX:ei=:ho=\E[H:ic=\E[@:im=:k1=\E[M:k2=\E[N:k3=\E[O:\
1686	:k4=\E[P:k5=\E[Q:k6=\E[R:k7=\E[S:k8=\E[T:k9=\E[U:kD=\177:\
1687	:kI=\E[L:kN=\E[G:kP=\E[I:kb=^H:kd=\E[B:kh=\E[H:kl=\E[D:\
1688	:kr=\E[C:ku=\E[A:le=^H:mb=\E[5m:md=\E[1m:me=\E[m:\
1689	:mh=\E[30;1m:mr=\E[7m:nd=\E[C:nw=\E[E:rc=\E8:\
1690	:rs=\E[x\E[m\Ec:sc=\E7:se=\E[m:sf=\E[S:so=\E[7m:sr=\E[T:\
1691	:ta=^I:up=\E[A:ve=\E[=0C:vs=\E[=1C:
1692cons25|ansis|ansi80x25|freebsd console (25-line ansi mode):\
1693	:ac=-\030.^Y0\333`\004a\260f\370g\361h\261i\025j\331k\277l\332m\300n\305q\304t\303u\264v\301w\302x\263y\363z\362~\371:\
1694	:tc=cons25w:
1695cons25-debian|freebsd console with debian backspace (25-line ansi mode):\
1696	:kD=\E[3~:kb=\177:tc=cons25:
1697cons25-m|ansis-mono|ansi80x25-mono|freebsd console (25-line mono ansi mode):\
1698	:Co@:pa@:\
1699	:AB@:AF@:md@:mh@:op@:ue=\E[m:us=\E[4m:tc=cons25:
1700cons30|ansi80x30|freebsd console (30-line ansi mode):\
1701	:li#30:tc=cons25:
1702cons30-m|ansi80x30-mono|freebsd console (30-line mono ansi mode):\
1703	:li#30:tc=cons25-m:
1704cons43|ansi80x43|freebsd console (43-line ansi mode):\
1705	:li#43:tc=cons25:
1706cons43-m|ansi80x43-mono|freebsd console (43-line mono ansi mode):\
1707	:li#43:tc=cons25-m:
1708cons50|ansil|ansi80x50|freebsd console (50-line ansi mode):\
1709	:li#50:tc=cons25:
1710cons50-m|ansil-mono|ansi80x50-mono|freebsd console (50-line mono ansi mode):\
1711	:li#50:tc=cons25-m:
1712cons60|ansi80x60|freebsd console (60-line ansi mode):\
1713	:li#60:tc=cons25:
1714cons60-m|ansi80x60-mono|freebsd console (60-line mono ansi mode):\
1715	:li#60:tc=cons25-m:
1716cons25r|pc3r|ibmpc3r|cons25-koi8-r|freebsd console w/koi8-r cyrillic:\
1717	:ac=-\030.^Y0\215`\004a\220f\234h\221i\025j\205k\203l\202m\204n\212q\200t\206u\207v\211w\210x\201y\230z\231~\225:\
1718	:tc=cons25w:
1719cons25r-m|pc3r-m|ibmpc3r-mono|cons25-koi8r-m|freebsd console w/koi8-r cyrillic (mono):\
1720	:Co@:pa@:\
1721	:AB@:AF@:op@:ue=\E[m:us=\E[4m:tc=cons25r:
1722cons50r|cons50-koi8r|freebsd console w/koi8-r cyrillic (50 lines):\
1723	:li#50:tc=cons25r:
1724cons50r-m|cons50-koi8r-m|freebsd console w/koi8-r cyrillic (50-line mono):\
1725	:li#50:tc=cons25r-m:
1726cons60r|cons60-koi8r|freebsd console w/koi8-r cyrillic (60 lines):\
1727	:li#60:tc=cons25r:
1728cons60r-m|cons60-koi8r-m|freebsd console w/koi8-r cyrillic (60-line mono):\
1729	:li#60:tc=cons25r-m:
1730# ISO 8859-1 FreeBSD console
1731cons25l1|cons25-iso8859|freebsd console w/iso 8859-1 chars:\
1732	:ac=+\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:\
1733	:tc=cons25w:
1734cons25l1-m|cons25-iso-m|freebsd console w/iso 8859-1 chars (mono):\
1735	:Co@:pa@:\
1736	:AB@:AF@:md@:mh@:op@:ue=\E[m:us=\E[4m:tc=cons25l1:
1737cons50l1|cons50-iso8859|freebsd console w/iso 8859-1 chars (50 lines):\
1738	:li#50:tc=cons25l1:
1739cons50l1-m|cons50-iso-m|freebsd console w/iso 8859-1 chars (50-line mono):\
1740	:li#50:tc=cons25l1-m:
1741cons60l1|cons60-iso|freebsd console w/iso 8859-1 chars (60 lines):\
1742	:li#60:tc=cons25l1:
1743cons60l1-m|cons60-iso-m|freebsd console w/iso 8859-1 chars (60-line mono):\
1744	:li#60:tc=cons25l1-m:
1745
1746#### 386BSD and BSD/OS Consoles
1747#
1748
1749# This was the original 386BSD console entry (I think).
1750# Some places it's named oldpc3|oldibmpc3.
1751# From: Alex R.N. Wetmore <aw2t@andrew.cmu.edu>
1752origpc3|origibmpc3|IBM PC 386BSD Console:\
1753	:am:bs:bw:eo:xo:\
1754	:co#80:li#25:\
1755	:ac=j\331k\277l\332m\300n\305q\304t\303u\264v\301w\302x\263:\
1756	:cd=\E[J:ce=\E[K:cl=\Ec:cm=\E[%i%2;%2H:do=\E[B:ho=\E[H:\
1757	:kd=\E[B:kh=\E[Y:kl=\E[D:kr=\E[C:ku=\E[A:le=^H:md=\E[7m:\
1758	:me=\E[m\E[1;0x\E[2;7x:nd=\E[C:se=\E[1;0x\E[2;7x:\
1759	:sf=\E[S:so=\E[1;7x\E[2;0x:sr=\E[T:ue=\E[1;0x\E[2;7x:\
1760	:up=\E[A:us=\E[1;7x\E[2;0x:
1761
1762# description of BSD/386 console emulator in version 1.0 (supplied by BSDI)
1763oldpc3|oldibmpc3|old IBM PC BSD/386 Console:\
1764	:bs:km:\
1765	:li#25:\
1766	:al=\E[L:bl=^G:cr=^M:dl=\E[M:do=^J:kH=\E[F:kI=\E[L:kN=\E[G:\
1767	:kP=\E[I:kb=^H:kd=\E[B:kh=\E[H:kl=\E[D:kr=\E[C:ku=\E[A:\
1768	:md=\E[=15F:me=\E[=R:mh=\E[=8F:nw=^M^J:sf=^J:ta=^I:
1769
1770# Description of BSD/OS console emulator in version 1.1, 2.0, 2.1
1771# Note, the emulator supports many of the additional console features
1772# listed in the iBCS2 (e.g. character-set selection) though not all
1773# are described here.  This entry really ought to be upgraded.
1774# Also note, the console will also work with fewer lines after doing
1775# "stty rows NN", e.g. to use 24 lines.
1776# (Color support from Kevin Rosenberg <kevin@cyberport.com>, 2 May 1996)
1777# Bug: The <op> capability resets attributes.
1778bsdos-pc|IBM PC BSD/OS Console:\
1779	:tc=bsdos-pc-nobold:
1780
1781bsdos-pc-nobold|BSD/OS PC console w/o bold:\
1782	:tc=klone+color:tc=bsdos-pc-m:
1783
1784bsdos-pc-m|bsdos-pc-mono|BSD/OS PC console mono:\
1785	:am:bs:eo:km:xo:\
1786	:co#80:it#8:li#25:\
1787	:AL=\E[%dL:DL=\E[%dM:DO=\E[%dB:LE=\E[%dD:RI=\E[%dC:\
1788	:UP=\E[%dA:al=\E[L:bl=^G:cd=\E[J:ce=\E[K:cl=\Ec:\
1789	:cm=\E[%i%d;%dH:cr=^M:dl=\E[M:do=^J:ho=\E[H:kH=\E[F:\
1790	:kI=\E[L:kN=\E[G:kP=\E[I:kb=^H:kd=\E[B:kh=\E[H:kl=\E[D:\
1791	:kr=\E[C:ku=\E[A:le=^H:nd=\E[C:nw=^M^J:rc=\E8:sc=\E7:sf=^J:\
1792	:ta=^I:up=\E[A:tc=klone+sgr8:
1793
1794# Old names for BSD/OS PC console used in releases before 4.1.
1795pc3|BSD/OS on the PC Console:\
1796	:tc=bsdos-pc-nobold:
1797ibmpc3|pc3-bold|BSD/OS on the PC Console with bold instead of underline:\
1798	:tc=bsdos-pc:
1799
1800# BSD/OS on the SPARC
1801bsdos-sparc|Sun SPARC BSD/OS Console:\
1802	:tc=sun:
1803
1804# BSD/OS on the PowerPC
1805bsdos-ppc|PowerPC BSD/OS Console:\
1806	:tc=bsdos-pc:
1807
1808#### DEC VT52
1809# (<acsc>/:ae:/:as: capabilities aren't in DEC's official entry -- esr)
1810#
1811# Actually (TD pointed this out at the time the acsc string was added):
1812# vt52 shouldn't define full acsc since most of the cells don't match.
1813# see vt100 manual page A-31.  This is the list that does match:
1814#	f degree
1815#	g plus/minus
1816#	h right-arrow
1817#	k down-arrow
1818#	m scan-1
1819#	o scan-3
1820#	q scan-5
1821#	s scan-7
1822# The line-drawing happens to work in several terminal emulators, but should
1823# not be used as a guide to the capabilities of the vt52.  Note in particular
1824# that vt52 does not support line-drawing characters (the scan-X values refer
1825# to a crude plotting feature) -TD
1826vt52|dec vt52:\
1827	:bs:\
1828	:co#80:it#8:li#24:\
1829	:ac=+h.k0affggolpnqprrss:ae=\EG:as=\EF:bl=^G:cd=\EJ:\
1830	:ce=\EK:cl=\EH\EJ:cm=\EY%+ %+ :cr=^M:do=\EB:ho=\EH:kb=^H:\
1831	:kd=\EB:kl=\ED:kr=\EC:ku=\EA:le=\ED:nd=\EC:nw=^M^J:sf=^J:\
1832	:sr=\EI:ta=^I:up=\EA:
1833
1834#### DEC VT100 and compatibles
1835#
1836# DEC terminals from the vt100 forward are collected here. Older DEC terminals
1837# and micro consoles can be found in the `obsolete' section.  More details on
1838# the relationship between the VT100 and ANSI X3.64/ISO 6429/ECMA-48 may be
1839# found near the end of this file.
1840#
1841# Except where noted, these entries are DEC's official terminfos.
1842# Contact Bill Hedberg <hedberg@hannah.enet.dec.com> of Terminal Support
1843# Engineering for more information.  Updated terminfos and termcaps
1844# are kept available at ftp://gatekeeper.dec.com/pub/DEC/termcaps.
1845#
1846# In October 1995 DEC sold its terminals business, including the VT and Dorio
1847# line and trademark, to SunRiver Data Systems.  SunRiver has since changed
1848# its name to Boundless Technologies; see http://www.boundless.com.
1849#
1850
1851# NOTE:  Any VT100 emulation, whether in hardware or software, almost
1852# certainly includes what DEC called the `Level 1 editing extension' codes;
1853# only the very oldest VT100s lacked these and there probably aren't any of
1854# those left alive.  To capture these, use one of the VT102 entries.
1855#
1856# Note that the :xn: glitch in vt100 is not quite the same as on the Concept,
1857# since the cursor is left in a different position while in the
1858# weird state (concept at beginning of next line, vt100 at end
1859# of this line) so all versions of vi before 3.7 don't handle
1860# :xn: right on vt100. The correct way to handle :xn: is when
1861# you output the char in column 80, immediately output CR LF
1862# and then assume you are in column 1 of the next line. If :xn:
1863# is on, am should be on too.
1864#
1865# I assume you have smooth scroll off or are at a slow enough baud
1866# rate that it doesn't matter (1200? or less). Also this assumes
1867# that you set auto-nl to "on", if you set it off use vt100-nam
1868# below.
1869#
1870# The padding requirements listed here are guesses. It is strongly
1871# recommended that xon/xoff be enabled, as this is assumed here.
1872#
1873# The vt100 uses <rs2> and <rf> rather than :is:/:ct:/:st: because the
1874# tab settings are in non-volatile memory and don't need to be
1875# reset upon login. Also setting the number of columns glitches
1876# the screen annoyingly. You can type "reset" to get them set.
1877#
1878# The VT100 series terminals have cursor ("arrows") keys which can operate
1879# in two different modes: Cursor Mode and Application Mode.  Cursor Mode
1880# is the reset state, and is assumed to be the normal state.  Application
1881# Mode is the "set" state.  In Cursor Mode, the cursor keys transmit
1882# "Esc [ {code}" sequences, conforming to ANSI standards.  In Application
1883# Mode, the cursor keys transmit "Esc O <code>" sequences.  Application Mode
1884# was provided primarily as an aid to the porting of VT52 applications.  It is
1885# assumed that the cursor keys are normally in Cursor Mode, and expected that
1886# applications such as vi will always transmit the :ks: string.  Therefore,
1887# the definitions for the cursor keys are made to match what the terminal
1888# transmits after the :ks: string is transmitted.  If the :ks: string
1889# is a null string or is not defined, then cursor keys are assumed to be in
1890# "Cursor Mode", and the cursor keys definitions should match that assumption,
1891# else the application may fail.  It is also expected that applications will
1892# always transmit the :ke: string to the terminal before they exit.
1893#
1894# The VT100 series terminals have an auxiliary keypad, commonly referred to as
1895# the "Numeric Keypad", because it is a cluster of numeric and function keys.
1896# The Numeric Keypad which can operate in two different modes: Numeric Mode and
1897# Application Mode.  Numeric Mode is the reset state, and is assumed to be
1898# the normal state.  Application Mode is the "set" state.  In Numeric Mode,
1899# the numeric and punctuation keys transmit ASCII 7-bit characters, and the
1900# Enter key transmits the same as the Return key (Note: the Return key
1901# can be configured to send either LF (\015) or CR LF).  In Application Mode,
1902# all the keypad keys transmit "Esc O {code}" sequences.  The PF1 - PF4 keys
1903# always send the same "Esc O {code}" sequences.  It is assumed that the keypad
1904# is normally in Numeric Mode.  If an application requires that the keypad be
1905# in Application Mode then it is expected that the user, or the application,
1906# will set the TERM environment variable to point to a terminfo entry which has
1907# defined the :ks: string to include the codes that switch the keypad into
1908# Application Mode, and the terminfo entry will also define function key
1909# fields to match the Application Mode control codes.  If the :ks: string
1910# is a null string or is not defined, then the keypad is assumed to be in
1911# Numeric Mode.  If the :ks: string switches the keypad into Application
1912# Mode, it is expected that the :ke: string will contain the control codes
1913# necessary to reset the keypad to "Normal" mode, and it is also expected that
1914# applications which transmit the :ks: string will also always transmit the
1915# :ke: string to the terminal before they exit.
1916#
1917# Here's a diagram of the VT100 keypad keys with their bindings.
1918# The top line is the name of the key (some DEC keyboards have the keys
1919# labelled somewhat differently, like GOLD instead of PF1, but this is
1920# the most "official" name).  The second line is the escape sequence it
1921# generates in Application Keypad mode (where "$" means the ESC
1922# character).  The third line contains two items, first the mapping of
1923# the key in terminfo, and then in termcap.
1924#   _______________________________________
1925#  |   PF1   |   PF2   |   PF3   |   PF4   |
1926#  |   $OP   |   $OQ   |   $OR   |   $OS   |
1927#  |_kf1__k1_|_kf2__k2_|_kf3__k3_|_kf4__k4_|
1928#  |    7         8         9         -    |
1929#  |   $Ow   |   $Ox   |   $Oy   |   $Om   |
1930#  |_kf9__k9_|_kf10_k;_|_kf0__k0_|_________|
1931#  |    4    |    5    |    6    |    ,    |
1932#  |   $Ot   |   $Ou   |   $Ov   |   $Ol   |
1933#  |_kf5__k5_|_kf6__k6_|_kf7__k7_|_kf8__k8_|
1934#  |    1    |    2    |    3    |         |
1935#  |   $Oq   |   $Or   |   $Os   |  enter  |
1936#  |_ka1__K1_|_kb2__K2_|_ka3__K3_|  $OM    |
1937#  |         0         |   .     |         |
1938#  |        $Op        |  $On    |         |
1939#  |___kc1_______K4____|_kc3__K5_|_kent_@8_|
1940#
1941# Note however, that the arrangement of the 5-key ka1-kc3 do not follow the
1942# terminfo guidelines.  That is a compromise used to assign the remaining
1943# keys on the keypad to kf5-kf0, used on older systems with legacy termcap
1944# support:
1945vt100+keypad|dec vt100 numeric keypad no fkeys:\
1946	:K1=\EOq:K2=\EOr:K3=\EOs:K4=\EOp:K5=\EOn:
1947vt100+pfkeys|dec vt100 numeric keypad:\
1948	:@8=\EOM:k1=\EOP:k2=\EOQ:k3=\EOR:k4=\EOS:tc=vt100+keypad:
1949vt100+fnkeys|dec vt100 numeric keypad:\
1950	:k0=\EOy:k5=\EOt:k6=\EOu:k7=\EOv:k8=\EOl:k9=\EOw:k;=\EOx:\
1951	:tc=vt100+pfkeys:
1952#
1953# A better adaptation to modern keyboards such as the PC's, which have a dozen
1954# function keys and the keypad 2,4,6,8 keys are labeled with arrows keys, is to
1955# use the 5-key arrangement to model the arrow keys as suggested in the
1956# terminfo guidelines:
1957#   _______________________________________
1958#  |   PF1   |   PF2   |   PF3   |   PF4   |
1959#  |   $OP   |   $OQ   |   $OR   |   $OS   |
1960#  |_kf1__k1_|_kf2__k2_|_kf3__k3_|_kf4__k4_|
1961#  |    7         8         9         -    |
1962#  |   $Ow   |   $Ox   |   $Oy   |   $Om   |
1963#  |_ka1__K1_|_________|_ka3__K3_|_________|
1964#  |    4    |    5    |    6    |    ,    |
1965#  |   $Ot   |   $Ou   |   $Ov   |   $Ol   |
1966#  |_________|_kb2__K2_|_________|_________|
1967#  |    1    |    2    |    3    |         |
1968#  |   $Oq   |   $Or   |   $Os   |  enter  |
1969#  |_kc1__K4_|_________|_kc3__K5_|  $OM    |
1970#  |         0         |   .     |         |
1971#  |        $Op        |  $On    |         |
1972#  |___________________|_________|_kent_@8_|
1973#
1974vt220+keypad|dec vt220 numeric keypad:\
1975	:@8=\EOM:K1=\EOw:K2=\EOu:K3=\EOy:K4=\EOq:K5=\EOs:k1=\EOP:\
1976	:k2=\EOQ:k3=\EOR:k4=\EOS:
1977#
1978vt100+enq|ncurses extension for vt100-style ENQ:\
1979	:u8=\E[?1;2c:tc=ansi+enq:
1980vt102+enq|ncurses extension for vt102-style ENQ:\
1981	:u8=\E[?6c:tc=ansi+enq:
1982#
1983# And here, for those of you with orphaned VT100s lacking documentation, is
1984# a description of the soft switches invoked when you do `Set Up'.
1985#
1986#  Scroll 0-Jump               Shifted 3   0-#
1987#  |      1-Smooth             |           1-British pound sign
1988#  | Autorepeat 0-Off          | Wrap Around 0-Off
1989#  | |          1-On           | |           1-On
1990#  | | Screen 0-Dark Bkg       | | New Line 0-Off
1991#  | | |      1-Light Bkg      | | |        1-On
1992#  | | | Cursor 0-Underline    | | | Interlace 0-Off
1993#  | | | |      1-Block        | | | |         1-On
1994#  | | | |                     | | | |
1995#  1 1 0 1       1 1 1 1       0 1 0 0       0 0 1 0       <--Standard Settings
1996#                | | | |                     | | | |
1997#                | | | Auto XON/XOFF 0-Off   | | | Power 0-60 Hz
1998#                | | |               1-On    | | |       1-50 Hz
1999#                | | Ansi/VT52 0-VT52        | | Bits Per Char. 0-7 Bits
2000#                | |           1-ANSI        | |                1-8 Bits
2001#                | Keyclick 0-Off            | Parity 0-Off
2002#                |          1-On             |        1-On
2003#                Margin Bell 0-Off           Parity Sense 0-Odd
2004#                            1-On                         1-Even
2005#
2006# The following SET-UP modes are assumed for normal operation:
2007#	ANSI_MODE	AUTO_XON/XOFF_ON	NEWLINE_OFF	80_COLUMNS
2008#	WRAP_AROUND_ON  JUMP_SCROLL_OFF
2009# Other SET-UP modes may be set for operator convenience or communication
2010# requirements; I recommend
2011#	AUTOREPEAT_ON	BLOCK_CURSOR	MARGIN_BELL_OFF    SHIFTED_3_#
2012# Unless you have a graphics add-on such as Digital Engineering's VT640
2013# (and even then, whenever it can be arranged!) you should set
2014#	INTERLACE_OFF
2015#
2016# (vt100: I added <rmam>/<smam> based on the init string, also :bs:. -- esr)
2017vt100|vt100-am|dec vt100 (w/advanced video):\
2018	:5i:am:bs:ms:xn:xo:\
2019	:co#80:it#8:li#24:vt#3:\
2020	:DO=\E[%dB:LE=\E[%dD:RA=\E[?7l:RI=\E[%dC:SA=\E[?7h:\
2021	:UP=\E[%dA:\
2022	:ac=``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~:\
2023	:ae=^O:as=^N:bl=^G:cb=3\E[1K:cd=50\E[J:ce=3\E[K:\
2024	:cl=50\E[H\E[J:cm=5\E[%i%d;%dH:cr=^M:cs=\E[%i%d;%dr:\
2025	:ct=\E[3g:do=^J:eA=\E(B\E)0:ho=\E[H:kb=^H:kd=\EOB:\
2026	:ke=\E[?1l\E>:kl=\EOD:kr=\EOC:ks=\E[?1h\E=:ku=\EOA:l1=pf1:\
2027	:l2=pf2:l3=pf3:l4=pf4:le=^H:mb=2\E[5m:md=2\E[1m:me=2\E[0m:\
2028	:mr=2\E[7m:nd=2\E[C:pf=\E[4i:po=\E[5i:ps=\E[0i:rc=\E8:\
2029	:rs=\E>\E[?3l\E[?4l\E[?5l\E[?7h\E[?8h:sc=\E7:se=2\E[m:\
2030	:sf=^J:so=2\E[7m:sr=5\EM:st=\EH:ta=^I:ue=2\E[m:up=2\E[A:\
2031	:us=2\E[4m:tc=vt100+fnkeys:
2032vt100nam|vt100-nam|vt100 no automargins:\
2033	:am@:xn@:tc=vt100-am:
2034vt100-vb|dec vt100 (w/advanced video) & no beep:\
2035	:bl@:vb=\E[?5h\E[?5l:tc=vt100:
2036
2037# Ordinary vt100 in 132 column ("wide") mode.
2038vt100-w|vt100-w-am|dec vt100 132 cols (w/advanced video):\
2039	:co#132:li#24:\
2040	:rs=\E>\E[?3h\E[?4l\E[?5l\E[?8h:tc=vt100-am:
2041vt100-w-nam|vt100-nam-w|dec vt100 132 cols (w/advanced video no automargin):\
2042	:co#132:li#14:vt@:\
2043	:rs=\E>\E[?3h\E[?4l\E[?5l\E[?8h:tc=vt100-nam:
2044
2045# vt100 with no advanced video.
2046vt100-nav|vt100 without advanced video option:\
2047	:sg#1:\
2048	:mb@:md@:me@:mr@:sa@:se=\E[m:so=\E[7m:ue@:us@:tc=vt100:
2049vt100-nav-w|vt100-w-nav|dec vt100 132 cols 14 lines (no advanced video option):\
2050	:co#132:li#14:tc=vt100-nav:
2051
2052# vt100 with one of the 24 lines used as a status line.
2053# We put the status line on the top.
2054vt100-s|vt100-s-top|vt100-top-s|vt100 for use with top sysline:\
2055	:es:hs:\
2056	:li#23:\
2057	:cl=50\E[2;1H\E[J:cm=5\E[%i%+^A;%dH:cs=\E[%i%i%d;%dr:\
2058	:ds=\E7\E[1;24r\E8:fs=\E8:ho=\E[2;1H:is=\E7\E[2;24r\E8:\
2059	:ts=\E7\E[1;%dH\E[1K:tc=vt100-am:
2060
2061# Status line at bottom.
2062# Clearing the screen will clobber status line.
2063vt100-s-bot|vt100-bot-s|vt100 for use with bottom sysline:\
2064	:es:hs:\
2065	:li#23:\
2066	:ds=\E7\E[1;24r\E8:fs=\E8:is=\E[1;23r\E[23;1H:\
2067	:ts=\E7\E[24;%dH\E[1K:tc=vt100-am:
2068
2069# Most of the `vt100' emulators out there actually emulate a vt102
2070# This entry (or vt102-nsgr) is probably the right thing to use for
2071# these.
2072vt102|dec vt102:\
2073	:al=\E[L:dc=\E[P:dl=\E[M:ei=\E[4l:im=\E[4h:tc=vt100:
2074vt102-w|dec vt102 in wide mode:\
2075	:co#132:\
2076	:r3=\E[?3h:tc=vt102:
2077
2078# Many brain-dead PC comm programs that pretend to be `vt100-compatible'
2079# fail to interpret the ^O and ^N escapes properly.  Symptom: the :me:
2080# string in the canonical vt100 entry above leaves the screen littered
2081# with little  snowflake or star characters (IBM PC ROM character \017 = ^O)
2082# after highlight turnoffs.  This entry should fix that, and even leave
2083# ACS support working, at the cost of making multiple-highlight changes
2084# slightly more expensive.
2085# From: Eric S. Raymond <esr@snark.thyrsus.com> July 22 1995
2086vt102-nsgr|vt102 no sgr (use if you see snowflakes after highlight changes):\
2087	:me=\E[m:sa@:tc=vt102:
2088
2089# VT125 Graphics CRT.  Clear screen also erases graphics
2090# Some vt125's came configured with vt102 support.
2091vt125|vt125 graphics terminal:\
2092	:mi:\
2093	:cl=50\E[H\E[2J\EPpS(E)\E\\:tc=vt100:
2094
2095# This isn't a DEC entry, it came from University of Wisconsin.
2096# (vt131: I added <rmam>/<smam> based on the init string, also :bs: -- esr)
2097vt131|dec vt131:\
2098	:am:bs:xn:\
2099	:co#80:it#8:li#24:vt#3:\
2100	:RA=\E[?7h:SA=\E[?7h:bl=^G:cd=50\E[J:ce=3\E[K:\
2101	:cl=50\E[;H\E[2J:cm=5\E[%i%d;%dH:cr=^M:cs=\E[%i%d;%dr:\
2102	:do=^J:ho=\E[H:is=\E[1;24r\E[24;1H:k1=\EOP:k2=\EOQ:\
2103	:k3=\EOR:k4=\EOS:kb=^H:kd=\EOB:ke=\E[?1l\E>:kl=\EOD:\
2104	:kr=\EOC:ks=\E[?1h\E=:ku=\EOA:le=^H:mb=2\E[5m:md=2\E[1m:\
2105	:me=2\E[m:mr=2\E[7m:nd=2\E[C:nw=^M^J:\
2106	:r1=\E>\E[?3l\E[?4l\E[?5l\E[?7h\E[?8h:rc=\E8:sc=\E7:\
2107	:se=2\E[m:so=2\E[7m:sr=5\EM:ta=^I:ue=2\E[m:up=2\E[A:\
2108	:us=2\E[4m:
2109
2110# vt132 - like vt100 but slower and has ins/del line and such.
2111# I'm told that :im:/:ei: are backwards in the terminal from the
2112# manual and from the ANSI standard, this describes the actual
2113# terminal. I've never actually used a vt132 myself, so this
2114# is untested.
2115#
2116vt132|DEC vt132:\
2117	:xn:\
2118	:al=99\E[L:dc=7\E[P:dl=99\E[M:ei=\E[4h:im=\E[4l:ip=7:\
2119	:sf=30\n:tc=vt100:
2120
2121# This vt220 description maps F5--F9 to the second block of function keys
2122# at the top of the keyboard.  The "DO" key is used as F10 to avoid conflict
2123# with the key marked (ESC) on the vt220.  See vt220d for an alternate mapping.
2124# PF1--PF4 are used as F1--F4.
2125#
2126vt220-old|vt200-old|DEC VT220 in vt100 emulation mode:\
2127	:am:bs:mi:pt:xn:xo:\
2128	:co#80:li#24:vt#3:\
2129	:@7=\E[4~:RA=\E[?7l:SA=\E[?7h:\
2130	:ac=``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~:\
2131	:ae=4\E(B:al=\E[L:as=2\E(0:bl=^G:cd=50\E[J:ce=3\E[K:\
2132	:cl=50\E[H\E[2J:cm=10\E[%i%d;%dH:cr=^M:cs=\E[%i%d;%dr:\
2133	:dc=\E[P:dl=\E[M:do=\E[B:ei=\E[4l:ho=\E[H:\
2134	:if=/usr/share/tabset/vt100:im=\E[4h:\
2135	:is=\E[1;24r\E[24;1H:k1=\EOP:k2=\EOQ:k3=\EOR:k4=\EOS:\
2136	:k5=\E[17~:k6=\E[18~:k7=\E[19~:k8=\E[20~:k9=\E[21~:\
2137	:k;=\E[29~:kD=\E[3~:kI=\E[2~:kN=\E[6~:kP=\E[5~:kb=^H:\
2138	:kd=\E[B:kh=\E[1~:kl=\E[D:kr=\E[C:ku=\E[A:le=^H:mb=2\E[5m:\
2139	:md=2\E[1m:me=2\E[m:mr=2\E[7m:nd=\E[C:nl=^J:rc=\E8:\
2140	:rf=/usr/share/tabset/vt100:\
2141	:rs=\E>\E[?3l\E[?4l\E[?5l\E[?7h\E[?8h:sc=\E7:se=\E[27m:\
2142	:sf=20\ED:so=\E[7m:sr=14\EM:ta=^I:ue=\E[24m:up=\E[A:\
2143	:us=\E[4m:ve=\E[?25h:vi=\E[?25l:
2144
2145# A much better description of the VT200/220; used to be vt220-8
2146# changed rmacs/smacs from shift-in/shift-out to vt200-old's explicit G0/G1
2147# designation to accommodate bug in pcvt -TD
2148# (sgr removed to fit entry within 1023 bytes)
2149# (acsc removed to fit entry within 1023 bytes)
2150vt220|vt200|dec vt220:\
2151	:5i:am:bs:mi:ms:xn:xo:\
2152	:co#80:it#8:li#24:vt#3:\
2153	:%0=\E[29~:%1=\E[28~:*6=\E[4~:@0=\E[1~:AL=\E[%dL:\
2154	:DC=\E[%dP:DL=\E[%dM:DO=\E[%dB:F1=\E[23~:F2=\E[24~:\
2155	:F3=\E[25~:F4=\E[26~:F7=\E[31~:F8=\E[32~:F9=\E[33~:\
2156	:FA=\E[34~:IC=\E[%d@:LE=\E[%dD:RA=\E[?7l:RI=\E[%dC:\
2157	:SA=\E[?7h:UP=\E[%dA:ae=4\E(B:al=\E[L:as=2\E(0:bl=^G:\
2158	:cb=\E[1K:cd=\E[J:ce=\E[K:cl=\E[H\E[J:cm=\E[%i%d;%dH:\
2159	:cr=^M:cs=\E[%i%d;%dr:ct=\E[3g:dc=\E[P:dl=\E[M:do=^J:\
2160	:eA=\E)0:ec=\E[%dX:ei=\E[4l:ho=\E[H:\
2161	:if=/usr/share/tabset/vt100:im=\E[4h:\
2162	:is=\E[?7h\E[>\E[?1h\E F\E[?4l:k1=\EOP:k2=\EOQ:k3=\EOR:\
2163	:k4=\EOS:k6=\E[17~:k7=\E[18~:k8=\E[19~:k9=\E[20~:\
2164	:k;=\E[21~:kI=\E[2~:kN=\E[6~:kP=\E[5~:kb=^H:kd=\E[B:\
2165	:kl=\E[D:kr=\E[C:ku=\E[A:l1=pf1:l2=pf2:l3=pf3:l4=pf4:le=^H:\
2166	:mb=\E[5m:md=\E[1m:me=2\E[0m:mr=\E[7m:nd=\E[C:nw=\EE:\
2167	:pf=\E[4i:po=\E[5i:ps=\E[i:r1=\E[?3l:rc=\E8:sc=\E7:\
2168	:se=\E[27m:sf=\ED:so=\E[7m:sr=\EM:st=\EH:ta=^I:ue=\E[24m:\
2169	:up=\E[A:us=\E[4m:vb=\E[?5h\E[?5l:
2170vt220-w|vt200-w|DEC vt220 in wide mode:\
2171	:co#132:\
2172	:r3=\E[?3h:tc=vt220:
2173# (sgr removed to fit entry within 1023 bytes)
2174# (acsc removed to fit entry within 1023 bytes)
2175# (terminfo-only capabilities suppressed to fit entry within 1023 bytes)
2176vt220-8bit|vt220-8|vt200-8bit|vt200-8|dec vt220/200 in 8-bit mode:\
2177	:am:bs:mi:ms:xn:xo:\
2178	:co#80:it#8:li#24:vt#3:\
2179	:AL=\233%dL:DC=\233%dP:DL=\233%dM:DO=\233%dB:IC=\233%d@:\
2180	:LE=\233%dD:RI=\233%dC:UP=\233%dA:ae=\E(B:al=\233L:\
2181	:as=\E(0:bl=^G:cd=\233J:ce=\233K:cl=\233H\233J:\
2182	:cm=\233%i%d;%dH:cr=^M:cs=\233%i%d;%dr:ct=\2333g:\
2183	:dc=\233P:dl=\233M:do=^J:ec=\233%dX:ei=\2334l:ho=\233H:\
2184	:if=/usr/share/tabset/vt100:im=\2334h:\
2185	:is=\233?7h\233>\233?1h\E F\233?4l:k1=\EOP:k2=\EOQ:\
2186	:k3=\EOR:k4=\EOS:k6=\23317~:k7=\23318~:k8=\23319~:\
2187	:k9=\23320~:kI=\2332~:kN=\2336~:kP=\2335~:kb=^H:kd=\233B:\
2188	:kh=\233H:kl=\233D:kr=\233C:ku=\233A:le=^H:mb=\2335m:\
2189	:md=\2331m:me=2\2330m:mr=\2337m:nd=\233C:nw=\EE:rc=\E8:\
2190	:sc=\E7:se=\23327m:sf=\ED:so=\2337m:sr=\EM:st=\EH:ta=^I:\
2191	:ue=\23324m:up=\233A:us=\2334m:vb=\233?5h\233?5l:
2192
2193# vt220d:
2194# This vt220 description regards F6--F10 as the second block of function keys
2195# at the top of the keyboard.  This mapping follows the description given
2196# in the VT220 Programmer Reference Manual and agrees with the labeling
2197# on some terminals that emulate the vt220.  There is no support for an F5.
2198# See vt220 for an alternate mapping.
2199#
2200vt220d|DEC VT220 in vt100 mode with DEC function key labeling:\
2201	:F1=\E[23~:F2=\E[24~:F3=\E[25~:F4=\E[26~:F5=\E[28~:\
2202	:F6=\E[29~:F7=\E[31~:F8=\E[32~:F9=\E[33~:FA=\E[34~:k5@:\
2203	:k6=\E[17~:k7=\E[18~:k8=\E[19~:k9=\E[20~:k;=\E[21~:\
2204	:tc=vt220-old:
2205
2206vt220-nam|v200-nam|VT220 in vt100 mode with no auto margins:\
2207	:am@:\
2208	:rs=\E>\E[?3l\E[?4l\E[?5l\E[?7l\E[?8h:tc=vt220:
2209
2210# vt220 termcap written Tue Oct 25 20:41:10 1988 by Alex Latzko
2211# (not an official DEC entry!)
2212# The problem with real vt220 terminals is they don't send escapes when in
2213# in vt220 mode.  This can be gotten around two ways.  1> don't send
2214# escapes or 2> put the vt220 into vt100 mode and use all the nifty
2215# features of vt100 advanced video which it then has.
2216#
2217# This entry takes the view of putting a vt220 into vt100 mode so
2218# you can use the escape key in emacs and everything else which needs it.
2219#
2220# You probably don't want to use this on a VMS machine since VMS will think
2221# it has a vt220 and will get fouled up coming out of emacs
2222#
2223# From: Alexander Latzko <latzko@marsenius.rutgers.edu>, 30 Dec 1996
2224# (Added vt100 :rc:,:sc: to quiet a tic warning -- esr)
2225vt200-js|vt220-js|dec vt200 series with jump scroll:\
2226	:am:\
2227	:co#80:\
2228	:al=\E[L:bl=^G:cd=\E[J:ce=\E[K:cl=\E[H\E[J:cm=\E[%i%d;%dH:\
2229	:cr=^M:cs=\E[%i%d;%dr:dc=\E[P:dl=\E[M:dm=:do=^J:ed=:\
2230	:ei=\E[4l:ho=\E[H:im=\E[4h:\
2231	:is=\E[61"p\E[H\E[?3l\E[?4l\E[?1l\E[?5l\E[?6l\E[?7h\E[?8h\E[?25h\E>\E[m:\
2232	:k1=\EOP:k2=\EOQ:k3=\EOR:k4=\EOS:kb=^H:kd=\EOB:\
2233	:ke=\E[?1l\E>:kl=\EOD:kr=\EOC:ks=\E[?1h\E=:ku=\EOA:le=^H:\
2234	:nd=\E[C:nw=^M\ED:r1=\E>\E[?3l\E[?4l\E[?5l\E[?7h\E[?8h:\
2235	:rc=\E8:rf=/usr/share/tabset/vt100:sc=\E7:se=5\E[27m:\
2236	:sf=\ED:so=5\E[7m:sr=\EM:ta=^I:ue=\E[24m:up=\E[A:us=\E[4m:
2237
2238# This was DEC's vt320.  Use the purpose-built one below instead
2239#vt320|DEC VT320 in vt100 emulation mode,
2240#	use=vt220,
2241
2242# Use v320n for SCO's LYRIX.  Otherwise, use Adam Thompson's vt320-nam.
2243#
2244vt320nam|v320n|DEC VT320 in vt100 emul. mode with NO AUTO WRAP mode:\
2245	:am@:\
2246	:rs=\E>\E[?3l\E[?4l\E[?5l\E[?7l\E[?8h:tc=vt220:
2247
2248# These entries are not DEC's official ones, they were purpose-built for the
2249# VT320.  Here are the designer's notes:
2250# <kel> is end on a PC kbd.  Actually 'select' on a VT.  Mapped to
2251# 'Erase to End of Field'... since nothing seems to use 'end' anyways...
2252# khome is Home on a PC kbd.  Actually 'FIND' on a VT.
2253# Things that use <knxt> usually use tab anyways... and things that don't use
2254# tab usually use <knxt> instead...
2255# kprv is same as tab - Backtab is useless...
2256# I left out :sa: because of its RIDICULOUS complexity,
2257# and the resulting fact that it causes the termcap translation of the entry
2258# to SMASH the 1k-barrier...
2259# From: Adam Thompson <athompso@pangea.ca> Sept 10 1995
2260# (vt320: uncommented :fs: --esr)
2261# (sgr removed to fit entry within 1023 bytes)
2262# (acsc removed to fit entry within 1023 bytes)
2263# (terminfo-only capabilities suppressed to fit entry within 1023 bytes)
2264vt320|vt300|dec vt320 7 bit terminal:\
2265	:am:es:hs:mi:ms:xn:\
2266	:co#80:li#24:ws#80:\
2267	:AL=\E[%dL:DC=\E[%dP:DL=\E[%dM:DO=\E[%dB:IC=\E[%d@:\
2268	:LE=\E[%dD:RI=\E[%dC:UP=\E[%dA:ae=\E(B:al=\E[L:as=\E(0:\
2269	:bl=^G:cd=\E[J:ce=\E[K:cl=\E[H\E[2J:cm=\E[%i%d;%dH:cr=^M:\
2270	:cs=\E[%i%d;%dr:ct=\E[3g:dc=\E[P:dl=\E[M:do=^J:ec=\E[%dX:\
2271	:ei=\E[4l:fs=\E[0$}:ho=\E[H:im=\E[4h:\
2272	:is=\E>\E[?3l\E[?4l\E[?5l\E[?7h\E[?8h\E[1;24r\E[24;1H:\
2273	:k6=\E[17~:k7=\E[18~:k8=\E[19~:k9=\E[20~:kD=\E[3~:\
2274	:kI=\E[2~:kN=\E[6~:kP=\E[5~:kb=\177:kd=\EOB:ke=\E[?1l\E>:\
2275	:kh=\E[1~:kl=\EOD:kr=\EOC:ks=\E[?1h\E=:ku=\EOA:le=^H:\
2276	:mb=\E[5m:md=\E[1m:me=2\E[0m:mr=\E[7m:nd=\E[C:nw=\EE:\
2277	:rc=\E8:\
2278	:rs=\E>\E[?3l\E[?4l\E[?5l\E[?7h\E[?8h\E[1;24r\E[24;1H:\
2279	:sc=\E7:se=\E[m:sf=\ED:so=\E[7m:sr=\EM:st=\EH:ta=^I:\
2280	:ts=\E[1$}\E[H\E[K:ue=\E[m:up=\E[A:us=\E[4m:ve=\E[?25h:\
2281	:vi=\E[?25l:tc=vt220+keypad:
2282vt320-nam|vt300-nam|dec vt320 7 bit terminal with no am to make SAS happy:\
2283	:am@:\
2284	:is=\E>\E[?3l\E[?4l\E[?5l\E[?7l\E[?8h\E[1;24r\E[24;1H:\
2285	:rs=\E>\E[?3l\E[?4l\E[?5l\E[?7l\E[?8h\E[1;24r\E[24;1H:\
2286	:tc=vt320:
2287# We have to init 132-col mode, not 80-col mode.
2288vt320-w|vt300-w|dec vt320 wide 7 bit terminal:\
2289	:co#132:ws#132:\
2290	:is=\E>\E[?3h\E[?4l\E[?5l\E[?7h\E[?8h\E[1;24r\E[24;1H:\
2291	:rs=\E>\E[?3h\E[?4l\E[?5l\E[?7h\E[?8h\E[1;24r\E[24;1H:\
2292	:tc=vt320:
2293vt320-w-nam|vt300-w-nam|dec vt320 wide 7 bit terminal with no am:\
2294	:am@:\
2295	:is=\E>\E[?3h\E[?4l\E[?5l\E[?7l\E[?8h\E[1;24r\E[24;1H:\
2296	:rs=\E>\E[?3h\E[?4l\E[?5l\E[?7l\E[?8h\E[1;24r\E[24;1H:\
2297	:tc=vt320-w:
2298
2299# VT330 and VT340 -- These are ReGIS and SIXEL graphics terminals
2300#   which are pretty much a superset of the VT320.  They have the
2301#   host writable status line, yet another different DRCS matrix size,
2302#   and such, but they add the DEC Technical character set, Multiple text
2303#   pages, selectable length pages, and the like.  The difference between
2304#   the vt330 and vt340 is that the latter has only 2 planes and a monochrome
2305#   monitor, the former has 4 planes and a color monitor.  These terminals
2306#   support VT131 and ANSI block mode, but as with much of these things,
2307#   termcap/terminfo doesn't deal with these features.
2308#
2309# Note that this entry is are set up in what was the standard way for GNU
2310# Emacs v18 terminal modes to deal with the cursor keys in that the arrow
2311# keys were switched into application mode at the same time the numeric pad
2312# is switched into application mode.  This changes the definitions of the
2313# arrow keys.  Emacs v19 is smarter and mines its keys directly out of
2314# your termcap or terminfo entry,
2315#
2316# From: Daniel Glasser <dag@persoft.persoft.com>, 13 Oct 1993
2317# (vt340: string capability "sb=\E[M" corrected to "sr";
2318# also, added <rmam>/<smam> based on the init string -- esr)
2319vt340|dec-vt340|vt330|dec-vt330|dec vt340 graphics terminal with 24 line page:\
2320	:am:es:hs:mi:ms:xn:xo:\
2321	:co#80:it#8:li#24:vt#3:\
2322	:AL=\E[%dL:DC=\E[%dP:DL=\E[%dM:DO=\E[%dB:IC=\E[%d@:\
2323	:LE=\E[%dD:RA=\E[?7l:RI=\E[%dC:SA=\E[?7h:UP=\E[%dA:\
2324	:ac=``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~:\
2325	:ae=\E(B:al=\E[L:as=\E(0:cd=\E[J:ce=\E[K:cl=\E[H\E[J:\
2326	:cm=\E[%i%d;%dH:cr=^M:cs=\E[%i%d;%dr:ct=\E[3g:dc=\E[P:\
2327	:dl=\E[M:do=^J:ds=\E[2$~\r\E[1$}\E[K\E[$}:ei=\E[4l:\
2328	:fs=\E[$}:ho=\E[H:im=\E[4h:\
2329	:is=\E<\E F\E>\E[?1h\E[?3l\E[?4l\E[?5l\E[?7h\E[?8h\E[1;24r\E[24;1H:\
2330	:k1=\EOP:k2=\EOQ:k3=\EOR:k4=\EOS:k6=\E[17~:k7=\E[18~:\
2331	:k8=\E[19~:k9=\E[20~:kb=^H:kd=\EOB:ke=\E[?1l\E>:kl=\EOD:\
2332	:kr=\EOC:ks=\E[?1h\E=:ku=\EOA:l1=pf1:l2=pf2:l3=pf3:l4=pf4:\
2333	:le=^H:mb=\E[5m:md=\E[1m:me=2\E[0m:mr=\E[7m:nd=\E[C:\
2334	:nw=^M\ED:r1=\E[?3l:rc=\E8:rf=/usr/share/tabset/vt300:\
2335	:sc=\E7:se=\E[27m:sf=\ED:so=\E[7m:sr=\EM:st=\EH:ta=^I:\
2336	:ts=\E[2$~\E[1$}\E[1;%dH:ue=\E[24m:up=\E[A:us=\E[4m:\
2337	:vb=200\E[?5h\E[?5l:ve=\E[?25h:vi=\E[?25l:
2338
2339# DEC doesn't supply a vt400 description, so we add Daniel Glasser's
2340# (originally written with vt420 as its primary name, and usable for it).
2341#
2342# VT400/420 -- This terminal is a superset of the vt320.  It adds the multiple
2343#    text pages and long text pages with selectable length of the vt340, along
2344#    with left and right margins, rectangular area text copy, fill, and erase
2345#    operations, selected region character attribute change operations,
2346#    page memory and rectangle checksums, insert/delete column, reception
2347#    macros, and other features too numerous to remember right now.  TERMCAP
2348#    can only take advantage of a few of these added features.
2349#
2350# Note that this entry is are set up in what was the standard way for GNU
2351# Emacs v18 terminal modes to deal with the cursor keys in that the arrow
2352# keys were switched into application mode at the same time the numeric pad
2353# is switched into application mode.  This changes the definitions of the
2354# arrow keys.  Emacs v19 is smarter and mines its keys directly out of
2355# your termcap entry,
2356#
2357# From: Daniel Glasser <dag@persoft.persoft.com>, 13 Oct 1993
2358# (vt400: string capability ":sb=\E[M:" corrected to ":sr=\E[M:";
2359# also, added <rmam>/<smam> based on the init string -- esr)
2360vt400|vt400-24|dec-vt400|dec vt400 24x80 column autowrap:\
2361	:am:es:hs:mi:ms:xn:xo:\
2362	:co#80:it#8:li#24:vt#3:\
2363	:AL=\E[%dL:DC=\E[%dP:DL=\E[%dM:DO=\E[%dB:IC=\E[%d@:\
2364	:LE=\E[%dD:RA=\E[?7l:RI=\E[%dC:SA=\E[?7h:UP=\E[%dA:\
2365	:ac=``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~:\
2366	:ae=\E(B:al=\E[L:as=\E(0:cd=10\E[J:ce=4\E[K:cl=10\E[H\E[J:\
2367	:cm=\E[%i%d;%dH:cr=^M:cs=\E[%i%d;%dr:ct=\E[3g:dc=\E[P:\
2368	:dl=\E[M:do=^J:ds=\E[2$~\r\E[1$}\E[K\E[$}:ei=\E[4l:\
2369	:fs=\E[$}:ho=\E[H:ic=\E[@:im=\E[4h:\
2370	:is=\E<\E F\E>\E[?1h\E[?3l\E[?4l\E[?5l\E[?7h\E[?8h\E[1;24r\E[24;1H:\
2371	:k1=\EOP:k2=\EOQ:k3=\EOR:k4=\EOS:k6=\E[17~:k7=\E[18~:\
2372	:k8=\E[19~:k9=\E[20~:kb=^H:kd=\EOB:ke=\E[?1l\E>:kl=\EOD:\
2373	:kr=\EOC:ks=\E[?1h\E=:ku=\EOA:l1=pf1:l2=pf2:l3=pf3:l4=pf4:\
2374	:le=^H:mb=\E[5m:md=\E[1m:me=2\E[0m:mr=\E[7m:nd=\E[C:\
2375	:nw=^M\ED:r1=\E<\E[?3l\E[!p\E[?7h:rc=\E8:\
2376	:rf=/usr/share/tabset/vt300:sc=\E7:se=\E[27m:sf=\ED:\
2377	:so=\E[7m:sr=\EM:st=\EH:ta=^I:ts=\E[2$~\E[1$}\E[1;%dH:\
2378	:ue=\E[24m:up=\E[A:us=\E[4m:vb=200\E[?5h\E[?5l:\
2379	:ve=\E[?25h:vi=\E[?25l:
2380
2381# (vt420: I removed :k0:, it collided with <kf10>.  I also restored
2382# a missing :sc: -- esr)
2383vt420|DEC VT420:\
2384	:am:mi:xn:xo:\
2385	:co#80:li#24:vt#3:\
2386	:*6=\E[4~:@0=\E[1~:RA=\E[?7l:\
2387	:S5=\E[?0;0r\E>\E[?3l\E[?4l\E[?5l\E[?7h\E[?8h:\
2388	:SA=\E[?7h:\
2389	:ac=``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~:\
2390	:ae=4\E(B:al=\E[L:as=2\E(0:bl=^G:cd=50\E[J:ce=3\E[K:\
2391	:cl=50\E[H\E[2J:cm=10\E[%i%d;%dH:cr=^M:cs=\E[%i%d;%dr:\
2392	:dc=\E[P:dl=\E[M:do=\E[B:ei=\E[4l:ho=\E[H:\
2393	:i2=\E[?67h\E[64;1"p:if=/usr/share/tabset/vt300:\
2394	:im=\E[4h:is=\E[1;24r\E[24;1H:k1=\EOP:k2=\EOQ:k3=\EOR:\
2395	:k4=\EOS:k5=\E[17~:k6=\E[18~:k7=\E[19~:k8=\E[20~:\
2396	:k9=\E[21~:k;=\E[29~:kD=\E[3~:kI=\E[2~:kN=\E[6~:kP=\E[5~:\
2397	:kb=^H:kd=\E[B:ke=\E>:kl=\E[D:kr=\E[C:ks=\E=:ku=\E[A:le=^H:\
2398	:mb=2\E[5m:md=2\E[1m:me=2\E[m:mr=2\E[7m:nd=\E[C:\
2399	:r3=\E[?67h\E[64;1"p:rc=\E8:rf=/usr/share/tabset/vt300:\
2400	:sc=\E7:se=\E[m:sf=\ED:so=\E[7m:sr=\EM:ta=^I:ue=\E[m:\
2401	:up=\E[A:us=\E[4m:
2402
2403# DEC VT220 and up support DECUDK (user-defined keys).  DECUDK (i.e., pfx)
2404# takes two parameters, the key and the string.  Translating the key is
2405# straightforward (keys 1-5 are not defined on real terminals, though some
2406# emulators define these):
2407#
2408#               if (key < 16) then  value = key;
2409#               else if (key < 21) then value = key + 1;
2410#               else if (key < 25) then value = key + 2;
2411#               else if (key < 27) then value = key + 3;
2412#               else if (key < 30) then value = key + 4;
2413#               else value = key + 5;
2414#
2415# The string must be the hexadecimal equivalent, e.g., "5052494E" for "PRINT".
2416# There's no provision in terminfo for emitting a string in this format, so the
2417# application has to know it.
2418#
2419vt420pc|DEC VT420 w/PC keyboard:\
2420	:@7=\E[4~:F1=\E[23~:F2=\E[24~:F3=\E[11;2~:F4=\E[12;2~:\
2421	:F5=\E[13;2~:F6=\E[14;2~:F7=\E[15;2~:F8=\E[17;2~:\
2422	:F9=\E[18;2~:FA=\E[19;2~:FB=\E[20;2~:FC=\E[21;2~:\
2423	:FD=\E[23;2~:FE=\E[24;2~:FF=\E[23~:FG=\E[24~:FH=\E[25~:\
2424	:FI=\E[26~:FJ=\E[28~:FK=\E[29~:FL=\E[31~:FM=\E[32~:\
2425	:FN=\E[33~:FO=\E[34~:FP=\E[35~:FQ=\E[36~:FR=\E[23;2~:\
2426	:FS=\E[24;2~:FT=\E[25;2~:FU=\E[26;2~:FV=\E[28;2~:\
2427	:FW=\E[29;2~:FX=\E[31;2~:FY=\E[32;2~:FZ=\E[33;2~:\
2428	:Fa=\E[34;2~:Fb=\E[35;2~:Fc=\E[36;2~:\
2429	:S6=USR_TERM\072vt420pcdos\072:k1=\E[11~:k2=\E[12~:\
2430	:k3=\E[13~:k4=\E[14~:k5=\E[15~:k6=\E[17~:k7=\E[18~:\
2431	:k8=\E[19~:k9=\E[20~:k;=\E[21~:kD=\177:kh=\E[H:tc=vt420:
2432
2433vt420pcdos|DEC VT420 w/PC for DOS Merge:\
2434	:li#25:\
2435	:S4=\E[?1;2r\E[34h:\
2436	:S5=\E[?0;0r\E>\E[?3l\E[?4l\E[?5l\E[?7h\E[?8h:S6@:\
2437	:me=\E[m:sa@:tc=vt420pc:
2438
2439vt420f|DEC VT420 with VT kbd; VT400 mode; F1-F5 used as Fkeys:\
2440	:F1=\E[23~:F2=\E[24~:F3=\E[25~:F4=\E[26~:F5=\E[28~:\
2441	:F6=\E[29~:F7=\E[31~:F8=\E[32~:F9=\E[33~:FA=\E[34~:\
2442	:k1=\E[11~:k2=\E[12~:k3=\E[13~:k4=\E[14~:k5=\E[15~:\
2443	:k6=\E[17~:k7=\E[18~:k8=\E[19~:k9=\E[20~:k;=\E[21~:\
2444	:kD=\177:kh=\E[H:l1=\EOP:l2=\EOQ:l3=\EOR:l4=\EOS:tc=vt420:
2445
2446vt510|DEC VT510:\
2447	:tc=vt420:
2448vt510pc|DEC VT510 w/PC keyboard:\
2449	:tc=vt420pc:
2450vt510pcdos|DEC VT510 w/PC for DOS Merge:\
2451	:tc=vt420pcdos:
2452
2453# VT520/VT525
2454#
2455# The VT520 is a monochrome text terminal capable of managing up to
2456# four independent sessions in the terminal.  It has multiple ANSI
2457# emulations (VT520, VT420, VT320, VT220, VT100, VT PCTerm, SCO Console)
2458# and ASCII emulations (WY160/60, PCTerm, 50/50+, 150/120, TVI 950,
2459# 925 910+, ADDS A2).  This terminfo data is for the ANSI emulations only.
2460#
2461# Terminal Set-Up is entered by pressing [F3], [Caps Lock]/[F3] or
2462# [Alt]/[Print Screen] depending upon which keyboard and which
2463# terminal mode is being used.  If Set-Up has been disabled or
2464# assigned to an unknown key, Set-Up may be entered by pressing
2465# [F3] as the first key after power up, regardless of keyboard type.
2466# (vt520: I added <rmam>/<smam> based on the init string, also :sc: -- esr)
2467vt520|DEC VT520:\
2468	:am:mi:xn:xo:\
2469	:co#80:li#24:vt#3:\
2470	:*6=\E[4~:@0=\E[1~:RA=\E[?7l:\
2471	:S5=\E[?0;0r\E>\E[?3l\E[?4l\E[?5l\E[?7h\E[?8h:\
2472	:SA=\E[?7h:\
2473	:ac=``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~:\
2474	:ae=4\E(B:al=\E[L:as=2\E(0:bl=^G:cd=50\E[J:ce=3\E[K:\
2475	:cl=50\E[H\E[2J:cm=10\E[%i%d;%dH:cr=^M:cs=\E[%i%d;%dr:\
2476	:dc=\E[P:dl=\E[M:do=\E[B:ei=\E[4l:ho=\E[H:\
2477	:i2=\E[?67h\E[64;1"p:if=/usr/share/tabset/vt300:\
2478	:im=\E[4h:is=\E[1;24r\E[24;1H:k1=\EOP:k2=\EOQ:k3=\EOR:\
2479	:k4=\EOS:k5=\E[17~:k6=\E[18~:k7=\E[19~:k8=\E[20~:\
2480	:k9=\E[21~:k;=\E[29~:kD=\E[3~:kI=\E[2~:kN=\E[6~:kP=\E[5~:\
2481	:kb=^H:kd=\E[B:kl=\E[D:kr=\E[C:ku=\E[A:le=^H:mb=2\E[5m:\
2482	:md=2\E[1m:me=2\E[m:mr=2\E[7m:nd=\E[C:\
2483	:r3=\E[?67h\E[64;1"p:rc=\E8:rf=/usr/share/tabset/vt300:\
2484	:sc=\E7:se=\E[m:sf=\ED:so=\E[7m:sr=\EM:ta=^I:ue=\E[m:\
2485	:up=\E[A:us=\E[4m:
2486
2487# (vt525: I added <rmam>/<smam> based on the init string;
2488# removed :se:=\E[m, :ue:=\E[m, added :sc: -- esr)
2489vt525|DEC VT525:\
2490	:am:mi:xn:xo:\
2491	:co#80:li#24:vt#3:\
2492	:*6=\E[4~:@0=\E[1~:RA=\E[?7l:\
2493	:S5=\E[?0;0r\E>\E[?3l\E[?4l\E[?5l\E[?7h\E[?8h:\
2494	:SA=\E[?7h:\
2495	:ac=``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~:\
2496	:ae=4\E(B:al=\E[L:as=2\E(0:bl=^G:cd=50\E[J:ce=3\E[K:\
2497	:cl=50\E[H\E[2J:cm=10\E[%i%d;%dH:cr=^M:cs=\E[%i%d;%dr:\
2498	:dc=\E[P:dl=\E[M:do=\E[B:ei=\E[4l:ho=\E[H:\
2499	:i2=\E[?67h\E[64;1"p:if=/usr/share/tabset/vt300:\
2500	:im=\E[4h:is=\E[1;24r\E[24;1H:k1=\EOP:k2=\EOQ:k3=\EOR:\
2501	:k4=\EOS:k5=\E[17~:k6=\E[18~:k7=\E[19~:k8=\E[20~:\
2502	:k9=\E[21~:k;=\E[29~:kD=\E[3~:kI=\E[2~:kN=\E[6~:kP=\E[5~:\
2503	:kb=^H:kd=\E[B:kl=\E[D:kr=\E[C:ku=\E[A:le=^H:mb=2\E[5m:\
2504	:md=2\E[1m:me=2\E[m:mr=2\E[7m:nd=\E[C:\
2505	:r3=\E[?67h\E[64;1"p:rc=\E8:rf=/usr/share/tabset/vt300:\
2506	:sc=\E7:se=\E[m:sf=\ED:so=\E[7m:sr=\EM:ta=^I:ue=\E[m:\
2507	:up=\E[A:us=\E[4m:
2508
2509#### VT100 emulations
2510#
2511
2512# John Hawkinson <jhawk@MIT.EDU> tells us that the EWAN telnet for Windows
2513# (the best Windows telnet as of September 1995) presents the name `dec-vt100'
2514# to telnetd.   Michael Deutschmann <ldeutsch@mail.netshop.net> informs us
2515# that this works best with a stock vt100 entry.
2516dec-vt100|EWAN telnet's vt100 emulation:\
2517	:tc=vt100:
2518
2519# From: Adrian Garside <94ajg2@eng.cam.ac.uk>, 19 Nov 1996
2520dec-vt220|DOS tnvt200 terminal emulator:\
2521	:am@:tc=vt220:
2522
2523# Zstem340 is an (IMHO) excellent VT emulator for PC's.  I recommend it to
2524# anyone who needs PC VT340 emulation. (or anything below that level, for
2525# that matter -- DEC's ALL-in-1 seems happy with it, as does INFOPLUS's
2526# RDBM systems, it includes ReGIS and SiXel support!  I'm impressed...
2527# I can send the address if requested.
2528# (z340: changed garbled \E[5?l to \E[?5l, DEC smooth scroll off -- esr)
2529# From: Adam Thompson <athompso@pangea.ca> Sept 10 1995
2530z340|zstem vt340 terminal emulator 132col 42line:\
2531	:li#42:\
2532	:is=\E>\E[?3h\E[?4l\E[?5l\E[?7h\E[?8h\E[1;42r\E[42;1H:\
2533	:rs=\E>\E[?3h\E[?4l\E[?5l\E[?7h\E[?8h\E[1;42r\E[42;1H:\
2534	:tc=vt320-w:
2535z340-nam|zstem vt340 terminal emulator 132col 42line (no automatic margins):\
2536	:am@:\
2537	:is=\E>\E[?3h\E[?4l\E[?5l\E[?7l\E[?8h\E[1;42r\E[42;1H:\
2538	:rs=\E>\E[?3h\E[?4l\E[?5l\E[?7l\E[?8h\E[1;42r\E[42;1H:\
2539	:tc=z340:
2540
2541# CRT is shareware.  It implements some xterm features, including mouse.
2542crt|crt-vt220|CRT 2.3 emulating VT220:\
2543	:ms:ut:\
2544	:NC@:\
2545	:st=\EH:tc=vt100+enq:tc=vt220:tc=ecma+color:
2546
2547# PuTTY 0.55 (released 3 August 2004)
2548# http://www.chiark.greenend.org.uk/~sgtatham/putty/
2549#
2550# Comparing with 0.51, vttest is much better (only a few problems with the
2551# cursor position reports and wrapping).
2552#
2553# PuTTY 0.51 (released 14 December 2000)
2554#
2555# This emulates vt100 + vt52 (plus a few vt220 features:  ech, SRM, DECTCEM, as
2556# well as SCO and Atari, color palettes from Linux console).  Reading the code,
2557# it is intended to be VT102 plus selected features.  By default, it sets $TERM
2558# to xterm, which is incorrect, since several features are misimplemented:
2559#
2560#	Alt+key always sends ESC+key, so 'km' capability is removed.
2561#
2562#	Control responses, wrapping and tabs are buggy, failing a couple of
2563#	screens in vttest.
2564#
2565#	xterm mouse support is not implemented (unrelease version may).
2566#
2567# Several features such as backspace/delete are optional; this entry documents
2568# the default behavior -TD
2569
2570# (sgr removed to fit entry within 1023 bytes)
2571# (acsc removed to fit entry within 1023 bytes)
2572# (terminfo-only capabilities suppressed to fit entry within 1023 bytes)
2573putty|PuTTY terminal emulator:\
2574	:am:bw:hs:mi:ms:xn:xo:\
2575	:it#8:\
2576	:AL=\E[%dL:DC=\E[%dP:DL=\E[%dM:DO=\E[%dB:K2=\E[G:\
2577	:LE=\E[%dD:RI=\E[%dC:SF=\E[%dS:SR=\E[%dT:UP=\E[%dA:ae=^O:\
2578	:al=\E[L:as=^N:bl=^G:bt=\E[Z:cd=\E[J:ce=\E[K:cl=\E[H\E[J:\
2579	:cm=\E[%i%d;%dH:cr=^M:cs=\E[%i%d;%dr:ct=\E[3g:dc=\E[P:\
2580	:dl=\E[M:do=\ED:ds=\E]0;\007:ec=\E[%dX:ei=\E[4l:fs=^G:\
2581	:ho=\E[H:im=\E[4h:\
2582	:is=\E7\E[r\E[m\E[?7h\E[?1;4;6l\E[4l\E8\E>\E]R:\
2583	:k1=\E[11~:k2=\E[12~:k3=\E[13~:k4=\E[14~:k5=\E[15~:\
2584	:k6=\E[17~:k7=\E[18~:k8=\E[19~:k9=\E[20~:kD=\E[3~:\
2585	:kI=\E[2~:kN=\E[6~:kP=\E[5~:kb=\177:kd=\E[B:kh=\E[1~:\
2586	:kl=\E[D:kr=\E[C:ku=\E[A:le=^H:mb=\E[5m:md=\E[1m:me=\E[0m:\
2587	:mr=\E[7m:nd=\E[C:nw=^M^J:rc=\E8:\
2588	:rs=\E<\E["p\E[50;6"p\Ec\E[?3l\E]R\E[?1000l:sc=\E7:\
2589	:se=\E[27m:sf=^J:so=\E[7m:sr=\EM:st=\EH:ta=^I:\
2590	:te=\E[2J\E[?47l:ti=\E[?47h:ts=\E]0;:ue=\E[24m:up=\EM:\
2591	:us=\E[4m:vb=\E[?5h\E[?5l:ve=\E[?25h:vi=\E[?25l:\
2592	:tc=vt102+enq:
2593vt100-putty|Reset PuTTY to pure vt100:\
2594	:rs=\E<\E["p\Ec\E[?3l\E]R\E[40"p\E[61"p\E[50;1;2"p:\
2595	:tc=vt100:
2596# palette is hardcoded...
2597putty-256color|PuTTY 0.58 with xterm 256-colors:\
2598	:Ic@:tc=xterm+256color:tc=putty:
2599
2600# One of the keyboard selections is "VT100+".
2601# pterm (the X11 port) uses shifted F1-F10 as F11-F20
2602putty-vt100|VT100+ keyboard layout:\
2603	:F1=\EOZ:F2=\EO[:k1=\EOP:k2=\EOQ:k3=\EOR:k4=\EOS:k5=\EOT:\
2604	:k6=\EOU:k7=\EOV:k8=\EOW:k9=\EOX:k;=\EOY:tc=putty:
2605
2606# This entry is for Tera Term Pro version 2.3, for MS-Windows 95/NT written by
2607# T. Teranishi dated Mar 10, 1998.  It is a free software terminal emulator
2608# (communication program) which supports:
2609#
2610#	- Serial port connections.
2611#	- TCP/IP (telnet) connections.
2612#	- VT100 emulation, and selected VT200/300 emulation.
2613#	- TEK4010 emulation.
2614#	- File transfer protocols (Kermit, XMODEM, ZMODEM, B-PLUS and
2615#	  Quick-VAN).
2616#	- Scripts using the "Tera Term Language".
2617#	- Japanese and Russian character sets.
2618#
2619# The program does not come with terminfo or termcap entries.  However, the
2620# emulation (testing with vttest and ncurses) is reasonably close to vt100 (no
2621# vt52 or doublesize character support; blinking is done with color).  Besides
2622# the HPA, VPA extensions it also implements CPL and CNL.
2623#
2624# All of the function keys can be remapped.  This description shows the default
2625# mapping, as installed.  Both vt100 PF1-PF4 keys and quasi-vt220 F1-F4 keys
2626# are supported.  F13-F20 are obtained by shifting F3-F10.  The editing keypad
2627# is laid out like vt220, rather than the face codes on the PC keyboard, i.e,
2628#	kfnd	Insert
2629#	kslt	Delete
2630#	kich1	Home
2631#	kdch1	PageUp
2632#	kpp	End
2633#	knp	PageDown
2634#
2635# ANSI colors are implemented, but cannot be combined with video attributes
2636# except for reverse.
2637#
2638# No fonts are supplied with the program, so the acsc string is chosen to
2639# correspond with the default Microsoft terminal font.
2640#
2641# Tera Term recognizes some xterm sequences, including those for setting and
2642# retrieving the window title, and for setting the window size (i.e., using
2643# "resize -s"), though it does not pass SIGWINCH to the application if the
2644# user resizes the window with the mouse.
2645teraterm2.3|Tera Term Pro:\
2646	:km:xo@:\
2647	:NC#43:vt@:\
2648	:*6=\E[4~:@0=\E[1~:AL=\E[%dL:DC=\E[%dP:DL=\E[%dM:\
2649	:F1=\E[23~:F2=\E[24~:F3=\E[25~:F4=\E[26~:F5=\E[28~:\
2650	:F6=\E[29~:F7=\E[31~:F8=\E[32~:F9=\E[33~:FA=\E[34~:\
2651	:ac=+\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:\
2652	:al=\E[L:cb=\E[1K:cd=\E[J:ce=\E[K:ch=\E[%i%dG:cl=\E[H\E[J:\
2653	:cm=\E[%i%d;%dH:cv=\E[%i%dd:dc=\E[P:dl=\E[M:ec=\E[%dX:\
2654	:k1=\E[11~:k2=\E[12~:k3=\E[13~:k4=\E[14~:k5=\E[15~:\
2655	:k6=\E[17~:k7=\E[18~:k8=\E[19~:k9=\E[20~:k;=\E[21~:\
2656	:kD=\E[3~:kI=\E[2~:kN=\E[6~:kP=\E[5~:mb=\E[5m:md=\E[1m:\
2657	:me=\E[0m\017:mr=\E[7m:nd=\E[C:op=\E[100m:se=\E[27m:\
2658	:so=\E[7m:sr=\EM:ue=\E[24m:up=\E[A:us=\E[4m:\
2659	:vb=200\E[?5h\E[?5l:ve=\E[?25h:vi=\E[?25l:tc=vt100+enq:\
2660	:tc=klone+color:tc=vt100:
2661
2662# Version 4.59 has regular vt100 line-drawing (so it is no longer necessary
2663# to choose a Windows OEM font).
2664#
2665# Testing with tack:
2666#	- it does not have xenl (suppress that)
2667#	- underline seems to work with color (modify ncv).
2668# Testing with vttest:
2669#	- wrapping differs from vt100 (menu 1).
2670#	- it recognizes xterm's X10 and normal mouse tracking, but none of the
2671#	  other flavors.
2672#	- it recognizes the dtterm window controls for reporting size in
2673#	  characters and pixels.
2674#	- it passes SIGWINCH.
2675teraterm4.59|Tera Term Pro:\
2676	:ut:xn@:\
2677	:NC#41:\
2678	:Km=\E[M:\
2679	:ac=``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~:\
2680	:tc=teraterm2.3:
2681
2682teraterm|Tera Term:\
2683	:tc=teraterm4.59:
2684
2685# Tested with WinNT 4.0, the telnet application assumes the screensize is
2686# 25x80.  This entry uses the 'Terminal' font, to get line-drawing characters.
2687#
2688# Other notes:
2689# a) Fails tack's cup (cursor-addressing) test, though cup works well enough
2690#    for casual (occasional) use.  Also fails several of the vttest screens,
2691#    but that is not unusual for vt100 "emulators".
2692# b) Does not implement vt100 keypad
2693# c) Recognizes a subset of vt52 controls.
2694ms-vt100|MS telnet imitating dec vt100:\
2695	:li#25:\
2696	:@8@:K1@:K2@:K3@:K4@:K5@:\
2697	:ac=+\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:\
2698	:ct@:k0@:k1@:k2@:k3@:k4@:k5@:k6@:k7@:k8@:k9@:k;@:tc=vt102+enq:\
2699	:tc=vt100:
2700
2701# Tested with Windows 2000, the telnet application runs in a console window,
2702# also using 'Terminal' font.
2703#
2704# Other notes:
2705# a) This version has no function keys or numeric keypad.  Unlike the older
2706#    version, the numeric keypad is entirely ignored.
2707# b) The program sets $TERM to "ansi", which of course is inaccurate.
2708ms-vt100-color|vtnt|windows 2000 ansi (sic):\
2709	:ut:\
2710	:DC=\E[%dP:IC=\E[%d@:ei=:im=:tc=ecma+color:tc=ms-vt100:
2711
2712# Based on comments from Federico Bianchi:
2713#
2714#	vt100+ is basically a VT102-noSGR with ANSI.SYS colors and a different
2715#	scheme for PF keys.
2716#
2717# and PuTTY wishlist:
2718#
2719#	The modifiers are represented as the codes listed above, prefixed to
2720#	the normal sequences.  If the modifier is pressed alone, its sequence
2721#	is transmitted twice in succession.  If multiple modifiers apply,
2722#	they're transmitted in the order shift, control, alt.
2723#
2724#	Shift	\E^S
2725#	Alt	\E^A,
2726#	Ctrl	\E^C,
2727ms-vt100+|vt100+|windows XP vt100+ (sic):\
2728	:@7=\Ek:F1=\E!:F2=\E@:F3=\E\023\E1:F4=\E\023\E2:\
2729	:F5=\E\023\E3:F6=\E\023\E4:F7=\E\023\E5:F8=\E\023\E6:\
2730	:F9=\E\023\E7:FA=\E\023\E8:FB=\E\023\E9:FC=\E\023\E0:\
2731	:FD=\E\023\E!:FE=\E\023\E@:FF=\E\003\E1:FG=\E\003\E2:\
2732	:FH=\E\003\E3:FI=\E\003\E4:FJ=\E\003\E5:FK=\E\003\E6:\
2733	:FL=\E\003\E7:FM=\E\003\E8:FN=\E\003\E9:FO=\E\003\E0:\
2734	:FP=\E\003\E!:FQ=\E\003\E@:FR=\E\001\E1:FS=\E\001\E2:\
2735	:FT=\E\001\E3:FU=\E\001\E4:FV=\E\001\E5:FW=\E\001\E6:\
2736	:FX=\E\001\E7:FY=\E\001\E8:FZ=\E\001\E9:Fa=\E\001\E0:\
2737	:Fb=\E\001\E!:Fc=\E\001\E@:k1=\E1:k2=\E2:k3=\E3:k4=\E4:\
2738	:k5=\E5:k6=\E6:k7=\E7:k8=\E8:k9=\E9:k;=\E0:kD=\E-:kI=\E+:\
2739	:kN=\E/:kP=\E?:kh=\Eh:tc=ms-vt100-color:
2740
2741ms-vt-utf8|vt-utf8|UTF-8 flavor of vt100+:\
2742	:tc=ms-vt100+:
2743
2744# expect-5.44.1.15/example/tkterm
2745# a minimal subset of a vt100 (compare with "news-unk).
2746#
2747# The missing "=" in smkx is not a typo (here), but an error in tkterm.
2748tt|tkterm|Don Libes' tk text widget terminal emulator:\
2749	:cl=\E[H\E[J:cm=\E[%d;%dH:cr=^M:do=^J:k1=\EOP:k2=\EOQ:\
2750	:k3=\EOR:k4=\EOS:k5=\EOT:k6=\EOU:k7=\EOV:k8=\EOW:k9=\EOX:\
2751	:ke=\E[?1l\E>:ks=\E[?1h\E:le=^H:nd=\E[C:se=\E[m:sf=^J:\
2752	:so=\E[7m:up=\E[A:
2753
2754######## X TERMINAL EMULATORS
2755#### XTERM
2756#
2757# You can add the following line to your .Xdefaults to change the terminal type
2758# set by the xterms you start up to my-xterm:
2759#
2760# *termName:  my-xterm
2761#
2762# System administrators can change the default entry for xterm instances
2763# by adding a similar line to /usr/X11/lib/X11/app-defaults/XTerm.  In either
2764# case, xterm will detect and reject an invalid terminal type, falling back
2765# to the default of xterm.
2766#
2767
2768# X10/6.6	11/7/86, minus alternate screen, plus (csr)
2769# (xterm: ":MT:" changed to ":km:"; added <smam>/<rmam> based on init string;
2770# removed (hs, eslok, tsl=\E[?E\E[?%i%dT, fsl=\E[?F, dsl=\E[?E)
2771# as these seem not to work -- esr)
2772x10term|vs100-x10|xterm terminal emulator (X10 window system):\
2773	:am:bs:km:mi:ms:xn:xo:\
2774	:co#80:it#8:li#65:\
2775	:AL=\E[%dL:DC=\E[%dP:DL=\E[%dM:RA=\E[?7l:SA=\E[?7h:\
2776	:al=\E[L:cd=\E[J:ce=\E[K:cl=\E[H\E[2J:cm=\E[%i%d;%dH:\
2777	:cs=\E[%i%d;%dr:dc=\E[P:dl=\E[M:do=^J:ei=\E[4l:ho=\E[H:\
2778	:im=\E[4h:is=\E\E[m\E[?7h\E[?1;4l:k1=\EOP:k2=\EOQ:\
2779	:k3=\EOR:k4=\EOS:kb=^H:kd=\EOB:ke=\E[?1l\E>:kl=\EOD:\
2780	:kr=\EOC:ks=\E[?1h\E=:ku=\EOA:le=^H:md=\E[1m:me=\E[m:\
2781	:mr=\E[7m:nd=\E[C:se=\E[m:sf=^J:so=\E[7m:sr=\EM:ta=^I:\
2782	:ue=\E[m:up=\E[A:us=\E[4m:
2783# Compatible with the R5 xterm
2784# (from the XFree86 3.2 distribution, <blink=@> removed)
2785# added khome/kend, rmir/smir, rmul/smul, hts based on the R5 xterm code - TD
2786# corrected typos in rs2 string - TD
2787# added u6-u9 -TD
2788xterm-r5|xterm R5 version:\
2789	:am:bs:km:ms:xn:\
2790	:co#80:it#8:li#24:\
2791	:@7=\E[4~:AL=\E[%dL:DC=\E[%dP:DL=\E[%dM:DO=\E[%dB:\
2792	:F1=\E[23~:F2=\E[24~:IC=\E[%d@:Km=\E[M:LE=\E[%dD:\
2793	:RI=\E[%dC:UP=\E[%dA:al=\E[L:bl=^G:cd=\E[J:ce=\E[K:\
2794	:cl=\E[H\E[2J:cm=\E[%i%d;%dH:cr=^M:cs=\E[%i%d;%dr:\
2795	:ct=\E[3g:dc=\E[P:dl=\E[M:do=^J:ei=\E[4l:ho=\E[H:ic=\E[@:\
2796	:im=\E[4h:k0=\EOq:k1=\E[11~:k2=\E[12~:k3=\E[13~:k4=\E[14~:\
2797	:k5=\E[15~:k6=\E[17~:k7=\E[18~:k8=\E[19~:k9=\E[20~:\
2798	:k;=\E[21~:kA=\E[30~:kD=\E[3~:kE=\E[8~:kI=\E[2~:kL=\E[31~:\
2799	:kN=\E[6~:kP=\E[5~:kb=^H:kd=\EOB:ke=\E[?1l\E>:kh=\E[1~:\
2800	:kl=\EOD:kr=\EOC:ks=\E[?1h\E=:ku=\EOA:le=^H:md=\E[1m:\
2801	:me=\E[m:mr=\E[7m:nd=\E[C:rc=\E8:\
2802	:rs=\E>\E[?1;3;4;5;6l\E[4l\E[?7h\E[m\E[r\E[2J\E[H:\
2803	:sc=\E7:se=\E[m:sf=^J:so=\E[7m:sr=\EM:st=\EH:ta=^I:ue=\E[m:\
2804	:up=\E[A:us=\E[4m:tc=vt100+enq:
2805# Compatible with the R6 xterm
2806# (from XFree86 3.2 distribution, <acsc> and :it: added, <blink@> removed)
2807# added khome/kend, hts based on the R6 xterm code - TD
2808# (khome/kend do not actually work in X11R5 or X11R6, but many people use this
2809# for compatibility with other emulators).
2810xterm-r6|xterm-old|xterm X11R6 version:\
2811	:am:bs:km:mi:ms:xn:\
2812	:co#80:it#8:li#24:\
2813	:*6=\E[4~:@0=\E[1~:AL=\E[%dL:DC=\E[%dP:DL=\E[%dM:\
2814	:DO=\E[%dB:F1=\E[23~:F2=\E[24~:F3=\E[25~:F4=\E[26~:\
2815	:F5=\E[28~:F6=\E[29~:F7=\E[31~:F8=\E[32~:F9=\E[33~:\
2816	:FA=\E[34~:Km=\E[M:LE=\E[%dD:RI=\E[%dC:UP=\E[%dA:\
2817	:ac=``aaffggiijjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~:\
2818	:ae=^O:al=\E[L:as=^N:bl=^G:cd=\E[J:ce=\E[K:cl=\E[H\E[2J:\
2819	:cm=\E[%i%d;%dH:cr=^M:cs=\E[%i%d;%dr:ct=\E[3g:dc=\E[P:\
2820	:dl=\E[M:do=^J:eA=\E)0:ei=\E[4l:ho=\E[H:im=\E[4h:\
2821	:is=\E[m\E[?7h\E[4l\E>\E7\E[r\E[?1;3;4;6l\E8:\
2822	:k1=\E[11~:k2=\E[12~:k3=\E[13~:k4=\E[14~:k5=\E[15~:\
2823	:k6=\E[17~:k7=\E[18~:k8=\E[19~:k9=\E[20~:k;=\E[21~:\
2824	:kD=\E[3~:kI=\E[2~:kN=\E[6~:kP=\E[5~:kb=^H:kd=\EOB:\
2825	:ke=\E[?1l\E>:kl=\EOD:kr=\EOC:ks=\E[?1h\E=:ku=\EOA:le=^H:\
2826	:md=\E[1m:me=\E[m:ml=\El:mr=\E[7m:mu=\Em:nd=\E[C:rc=\E8:\
2827	:rs=\E[m\E[?7h\E[4l\E>\E7\E[r\E[?1;3;4;6l\E8:sc=\E7:\
2828	:se=\E[m:sf=^J:so=\E[7m:sr=\EM:st=\EH:ta=^I:\
2829	:te=\E[2J\E[?47l\E8:ti=\E7\E[?47h:ue=\E[m:up=\E[A:\
2830	:us=\E[4m:tc=vt100+enq:
2831# This is the base xterm entry for the xterm supplied with XFree86 3.2 & up.
2832# The name has been changed and some aliases have been removed.
2833# (sgr removed to fit entry within 1023 bytes)
2834# (acsc removed to fit entry within 1023 bytes)
2835# (terminfo-only capabilities suppressed to fit entry within 1023 bytes)
2836xterm-xf86-v32|xterm terminal emulator (XFree86 3.2 Window System):\
2837	:am:bs:km:mi:ms:xn:\
2838	:co#80:it#8:li#24:\
2839	:AL=\E[%dL:DC=\E[%dP:DL=\E[%dM:DO=\E[%dB:IC=\E[%d@:\
2840	:LE=\E[%dD:RI=\E[%dC:UP=\E[%dA:ae=^O:al=\E[L:as=^N:bl=^G:\
2841	:bt=\E[Z:cd=\E[J:ce=\E[K:cl=\E[H\E[2J:cm=\E[%i%d;%dH:\
2842	:cr=^M:cs=\E[%i%d;%dr:ct=\E[3g:dc=\E[P:dl=\E[M:do=^J:\
2843	:ec=\E[%dX:ei=\E[4l:ho=\E[H:ic=\E[@:im=\E[4h:\
2844	:is=\E7\E[r\E[m\E[?7h\E[?1;3;4;6l\E[4l\E8\E>:\
2845	:k1=\E[11~:k2=\E[12~:k3=\E[13~:k4=\E[14~:k5=\E[15~:\
2846	:k6=\E[17~:k7=\E[18~:k8=\E[19~:k9=\E[20~:kD=\177:kI=\E[2~:\
2847	:kN=\E[6~:kP=\E[5~:kb=^H:kd=\EOB:ke=\E[?1l\E>:kh=\EOH:\
2848	:kl=\EOD:kr=\EOC:ks=\E[?1h\E=:ku=\EOA:le=^H:md=\E[1m:\
2849	:me=\E[0m:mr=\E[7m:nd=\E[C:rc=\E8:sc=\E7:se=\E[27m:sf=^J:\
2850	:so=\E[7m:sr=\EM:st=\EH:ta=^I:te=\E[2J\E[?47l\E8:\
2851	:ti=\E7\E[?47h:ue=\E[24m:up=\E[A:us=\E[4m:\
2852	:vb=\E[?5h\E[?5l:ve=\E[?25h:vi=\E[?25l:tc=vt100+enq:\
2853	:tc=ecma+color:tc=vt220+keypad:
2854
2855# This is the stock xterm entry supplied with XFree86 3.3, which uses VT100
2856# codes for F1-F4 except while in VT220 mode.
2857xterm-xf86-v33|xterm terminal emulator (XFree86 3.3 Window System):\
2858	:k1=\EOP:k2=\EOQ:k3=\EOR:k4=\EOS:tc=xterm-xf86-v32:
2859
2860# This version was released in XFree86 3.3.3 (November 1998).
2861# Besides providing printer support, it exploits a new feature that allows
2862# xterm to use terminfo-based descriptions with the titeInhibit resource.
2863# -- the distribution contained incorrect khome/kend values -TD
2864xterm-xf86-v333|xterm terminal emulator (XFree86 3.3.3 Window System):\
2865	:5i:\
2866	:*6@:@0@:ic@:is=\E[!p\E[?3;4l\E[4l\E>:kD=\E[3~:mb=\E[5m:\
2867	:mk=\E[8m:pf=\E[4i:po=\E[5i:ps=\E[i:r1=\Ec:\
2868	:r2=\E[!p\E[?3;4l\E[4l\E>:te=\E[?1047l\E[?1048l:\
2869	:ti=\E[?1048h\E[?1047h:tc=xterm-xf86-v33:
2870
2871# This version was released in XFree86 4.0.
2872xterm-xf86-v40|xterm terminal emulator (XFree86 4.0 Window System):\
2873	:NP:\
2874	:#2=\EO5H:#3=\E[2;5~:#4=\EO5D:%c=\E[6;5~:%e=\E[5;5~:\
2875	:%i=\EO5C:*4=\E[3;5~:*7=\EO5F:@7=\EOF:F3=\EO2P:F4=\EO2Q:\
2876	:F5=\EO2R:F6=\EO2S:F7=\E[15;2~:F8=\E[17;2~:F9=\E[18;2~:\
2877	:FA=\E[19;2~:FB=\E[20;2~:FC=\E[21;2~:FD=\E[23;2~:\
2878	:FE=\E[24;2~:FF=\EO5P:FG=\EO5Q:FH=\EO5R:FI=\EO5S:\
2879	:FJ=\E[15;5~:FK=\E[17;5~:FL=\E[18;5~:FM=\E[19;5~:\
2880	:FN=\E[20;5~:FO=\E[21;5~:FP=\E[23;5~:FQ=\E[24;5~:\
2881	:FR=\EO6P:FS=\EO6Q:FT=\EO6R:FU=\EO6S:FV=\E[15;6~:\
2882	:FW=\E[17;6~:FX=\E[18;6~:FY=\E[19;6~:FZ=\E[20;6~:\
2883	:Fa=\E[21;6~:Fb=\E[23;6~:Fc=\E[24;6~:K1@:K2=\EOE:K3@:K4@:\
2884	:K5@:kB=\E[Z:kD=\E[3~:kh=\EOH:te=\E[?1049l:ti=\E[?1049h:\
2885	:tc=xterm-xf86-v333:
2886
2887# This version was released in XFree86 4.3.
2888xterm-xf86-v43|xterm terminal emulator (XFree86 4.3 Window System):\
2889	:#2=\E[1;2H:#3=\E[2;2~:#4=\E[1;2D:%c=\E[6;2~:%e=\E[5;2~:\
2890	:%i=\E[1;2C:*4=\E[3;2~:*7=\E[1;2F:@1@:tc=xterm-xf86-v40:
2891
2892# This version was released in XFree86 4.4.
2893xterm-xf86-v44|xterm terminal emulator (XFree86 4.4 Window System):\
2894	:SF=\E[%dS:SR=\E[%dT:ve=\E[?12l\E[?25h:vs=\E[?12;25h:\
2895	:tc=xterm-xf86-v43:
2896
2897xterm-xfree86|xterm terminal emulator (XFree86):\
2898	:tc=xterm-xf86-v44:
2899
2900# This version reflects the current xterm features.
2901xterm-new|modern xterm terminal emulator:\
2902	:NP:\
2903	:@8=\EOM:K2=\EOE:SF=\E[%dS:SR=\E[%dT:kB=\E[Z:\
2904	:tc=xterm+pcfkeys:tc=xterm+tmux:tc=xterm-basic:
2905#
2906# This fragment describes as much of XFree86 xterm's "pc-style" function
2907# keys as will fit into terminfo's 60 function keys.
2908# From ctlseqs.ms:
2909#    Code     Modifiers
2910#  ---------------------------------
2911#     2       Shift
2912#     3       Alt
2913#     4       Shift + Alt
2914#     5       Control
2915#     6       Shift + Control
2916#     7       Alt + Control
2917#     8       Shift + Alt + Control
2918#  ---------------------------------
2919# The meta key may also be used as a modifier in this scheme, adding another
2920# bit to the parameter.
2921xterm+pcfkeys|fragment for PC-style fkeys:\
2922	:tc=xterm+app:tc=xterm+pcf2:tc=xterm+pcc2:tc=xterm+pce2:
2923#
2924xterm+noapp|fragment with cursor keys in normal mode:\
2925	:@7=\E[F:kd=\E[B:kh=\E[H:kl=\E[D:kr=\E[C:ku=\E[A:
2926
2927xterm+app|fragment with cursor keys in application mode:\
2928	:@7=\EOF:kd=\EOB:kh=\EOH:kl=\EOD:kr=\EOC:ku=\EOA:
2929#
2930# The "PC-style" modifier scheme was introduced in xterm patch #94 (1999/3/27)
2931# and revised in patch #167 (2002/8/24).  Some other terminal emulators copied
2932# the earlier scheme, as noted in the "use=" clauses in this file.
2933#
2934# The original assignments from patch #94 for cursor-keys had some technical
2935# issues:
2936#
2937#	A parameter for a function-key to represent a modifier is just more
2938#	bits.  But for a cursor-key it may change the behavior of the
2939#	application.  For instance, emacs decodes the first parameter of a
2940#	cursor-key as a repeat count.
2941#
2942#	A parameterized string should (really) not begin with SS3 (\EO).
2943#	Rather, CSI (\E[) should be used.
2944#
2945# For these reasons, the original assignments were deprecated.  For
2946# compatibility reasons, they are still available as a setting of xterm's
2947# modifyCursorKeys resource.  These fragments list the modified cursor-keys
2948# that might apply to xterm+pcfkeys with different values of that resource.
2949xterm+pcc3|fragment with modifyCursorKeys=3:\
2950	:#4=\E[>1;2D:%i=\E[>1;2C:kF=\E[>1;2B:kR=\E[>1;2A:
2951
2952xterm+pcc2|fragment with modifyCursorKeys=2:\
2953	:#4=\E[1;2D:%i=\E[1;2C:kF=\E[1;2B:kR=\E[1;2A:
2954
2955xterm+pcc1|fragment with modifyCursorKeys=1:\
2956	:#4=\E[2D:%i=\E[2C:kF=\E[2B:kR=\E[2A:
2957
2958xterm+pcc0|fragment with modifyCursorKeys=0:\
2959	:#4=\EO2D:%i=\EO2C:kF=\EO2B:kR=\EO2A:
2960
2961#
2962# Here are corresponding fragments from xterm patch #216:
2963#
2964xterm+pcf0|fragment with modifyFunctionKeys=0:\
2965	:F1=\E[23~:F2=\E[24~:F3=\EO2P:F4=\EO2Q:F5=\EO2R:F6=\EO2S:\
2966	:F7=\E[15;2~:F8=\E[17;2~:F9=\E[18;2~:FA=\E[19;2~:\
2967	:FB=\E[20;2~:FC=\E[21;2~:FD=\E[23;2~:FE=\E[24;2~:\
2968	:FF=\EO5P:FG=\EO5Q:FH=\EO5R:FI=\EO5S:FJ=\E[15;5~:\
2969	:FK=\E[17;5~:FL=\E[18;5~:FM=\E[19;5~:FN=\E[20;5~:\
2970	:FO=\E[21;5~:FP=\E[23;5~:FQ=\E[24;5~:FR=\EO6P:FS=\EO6Q:\
2971	:FT=\EO6R:FU=\EO6S:FV=\E[15;6~:FW=\E[17;6~:FX=\E[18;6~:\
2972	:FY=\E[19;6~:FZ=\E[20;6~:Fa=\E[21;6~:Fb=\E[23;6~:\
2973	:Fc=\E[24;6~:Fd=\EO3P:Fe=\EO3Q:Ff=\EO3R:Fg=\EO3S:\
2974	:Fh=\E[15;3~:Fi=\E[17;3~:Fj=\E[18;3~:Fk=\E[19;3~:\
2975	:Fl=\E[20;3~:Fm=\E[21;3~:Fn=\E[23;3~:Fo=\E[24;3~:\
2976	:Fp=\EO4P:Fq=\EO4Q:Fr=\EO4R:k1=\EOP:k2=\EOQ:k3=\EOR:\
2977	:k4=\EOS:k5=\E[15~:k6=\E[17~:k7=\E[18~:k8=\E[19~:\
2978	:k9=\E[20~:k;=\E[21~:
2979#
2980xterm+pcf2|fragment with modifyFunctionKeys=2:\
2981	:F1=\E[23~:F2=\E[24~:F3=\E[1;2P:F4=\E[1;2Q:F5=\E[1;2R:\
2982	:F6=\E[1;2S:F7=\E[15;2~:F8=\E[17;2~:F9=\E[18;2~:\
2983	:FA=\E[19;2~:FB=\E[20;2~:FC=\E[21;2~:FD=\E[23;2~:\
2984	:FE=\E[24;2~:FF=\E[1;5P:FG=\E[1;5Q:FH=\E[1;5R:FI=\E[1;5S:\
2985	:FJ=\E[15;5~:FK=\E[17;5~:FL=\E[18;5~:FM=\E[19;5~:\
2986	:FN=\E[20;5~:FO=\E[21;5~:FP=\E[23;5~:FQ=\E[24;5~:\
2987	:FR=\E[1;6P:FS=\E[1;6Q:FT=\E[1;6R:FU=\E[1;6S:FV=\E[15;6~:\
2988	:FW=\E[17;6~:FX=\E[18;6~:FY=\E[19;6~:FZ=\E[20;6~:\
2989	:Fa=\E[21;6~:Fb=\E[23;6~:Fc=\E[24;6~:Fd=\E[1;3P:\
2990	:Fe=\E[1;3Q:Ff=\E[1;3R:Fg=\E[1;3S:Fh=\E[15;3~:\
2991	:Fi=\E[17;3~:Fj=\E[18;3~:Fk=\E[19;3~:Fl=\E[20;3~:\
2992	:Fm=\E[21;3~:Fn=\E[23;3~:Fo=\E[24;3~:Fp=\E[1;4P:\
2993	:Fq=\E[1;4Q:Fr=\E[1;4R:k1=\EOP:k2=\EOQ:k3=\EOR:k4=\EOS:\
2994	:k5=\E[15~:k6=\E[17~:k7=\E[18~:k8=\E[19~:k9=\E[20~:\
2995	:k;=\E[21~:
2996#
2997# Chunks from xterm #230:
2998xterm+pce2|fragment with modifyCursorKeys=2:\
2999	:#2=\E[1;2H:#3=\E[2;2~:%c=\E[6;2~:%e=\E[5;2~:*4=\E[3;2~:\
3000	:*7=\E[1;2F:kI=\E[2~:kN=\E[6~:kP=\E[5~:tc=xterm+edit:
3001
3002xterm+edit|fragment for 6-key editing-keypad:\
3003	:kD=\E[3~:kI=\E[2~:kN=\E[6~:kP=\E[5~:tc=xterm+pc+edit:
3004
3005xterm+pc+edit|fragment for pc-style editing keypad:\
3006	:@7=\E[4~:kh=\E[1~:
3007
3008xterm+vt+edit|fragment for vt220-style editing keypad:\
3009	:*6=\E[4~:@0=\E[1~:
3010
3011#
3012# Those chunks use the new-style (the xterm oldFunctionKeys resource is false).
3013# Alternatively, the same scheme with old-style function keys as in xterm-r6
3014# is shown here (because that is used in mrxvt and mlterm):
3015xterm+r6f2|xterm with oldFunctionKeys and modifyFunctionKeys=2:\
3016	:F3=\E[11;2~:F4=\E[12;2~:F5=\E[13;2~:F6=\E[14;2~:\
3017	:FF=\E[11;5~:FG=\E[12;5~:FH=\E[13;5~:FI=\E[14;5~:\
3018	:FR=\E[11;6~:FS=\E[12;6~:FT=\E[13;6~:FU=\E[14;6~:\
3019	:Fd=\E[11;3~:Fe=\E[12;3~:Ff=\E[13;3~:Fg=\E[14;3~:\
3020	:Fp=\E[11;4~:Fq=\E[12;4~:Fr=\E[13;4~:k1=\E[11~:k2=\E[12~:\
3021	:k3=\E[13~:k4=\E[14~:tc=xterm+pcf2:
3022#
3023# This chunk is used for building the VT220/Sun/PC keyboard variants.
3024xterm-basic|modern xterm terminal emulator - common:\
3025	:5i:am:bs:km:mi:ms:ut:xn:AX:\
3026	:Co#8:co#80:it#8:li#24:pa#64:\
3027	:AB=\E[4%dm:AF=\E[3%dm:AL=\E[%dL:DC=\E[%dP:DL=\E[%dM:\
3028	:DO=\E[%dB:IC=\E[%d@:Km=\E[M:LE=\E[%dD:RA=\E[?7l:\
3029	:RI=\E[%dC:SA=\E[?7h:UP=\E[%dA:\
3030	:ac=``aaffggiijjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~:\
3031	:ae=\E(B:al=\E[L:as=\E(0:bl=^G:bt=\E[Z:cb=\E[1K:cd=\E[J:\
3032	:ce=\E[K:ch=\E[%i%dG:cl=\E[H\E[2J:cm=\E[%i%d;%dH:cr=^M:\
3033	:cs=\E[%i%d;%dr:ct=\E[3g:cv=\E[%i%dd:dc=\E[P:dl=\E[M:\
3034	:do=^J:ec=\E[%dX:ei=\E[4l:ho=\E[H:im=\E[4h:\
3035	:is=\E[!p\E[?3;4l\E[4l\E>:kb=^H:ke=\E[?1l\E>:\
3036	:ks=\E[?1h\E=:le=^H:mb=\E[5m:md=\E[1m:me=\E[0m:mk=\E[8m:\
3037	:ml=\El:mm=\E[?1034h:mo=\E[?1034l:mr=\E[7m:mu=\Em:nd=\E[C:\
3038	:op=\E[39;49m:pf=\E[4i:po=\E[5i:ps=\E[i:r1=\Ec:\
3039	:r2=\E[!p\E[?3;4l\E[4l\E>:rc=\E8:sc=\E7:se=\E[27m:sf=^J:\
3040	:so=\E[7m:sr=\EM:st=\EH:ta=^I:te=\E[?1049l:ti=\E[?1049h:\
3041	:ue=\E[24m:up=\E[A:us=\E[4m:vb=\E[?5h\E[?5l:\
3042	:ve=\E[?12l\E[?25h:vi=\E[?25l:vs=\E[?12;25h:\
3043	:tc=vt100+enq:
3044
3045# From: David J. MacKenzie <djm@va.pubnix.com>, 14 Nov 1997
3046# In retrospect, something like xterm-r6 was intended here -TD
3047xterm-xi|xterm on XI Graphics Accelerated X under BSD/OS 3.1:\
3048	:se=\E[m:ue=\E[m:tc=xterm-xf86-v33:
3049
3050# 16-colors is one of the variants of XFree86 3.3 xterm, updated for 4.0 (T.Dickey)
3051# If configured to support 88- or 256-colors (which is fairly common in 2009),
3052# xterm also recognizes the control sequences for initc -TD
3053xterm-16color|xterm with 16 colors like aixterm:\
3054	:cc:tc=ibm+16color:tc=xterm-new:
3055
3056# 256-colors is a compile-time feature of XFree86 xterm beginning with
3057# patch #111 (1999/7/10) -TD
3058xterm+256color|xterm 256-color feature:\
3059	:cc:\
3060	:Co#256:pa#32767:\
3061	:AB=\E[48;5;%dm:AF=\E[38;5;%dm:Sb@:Sf@:
3062
3063# 88-colors is a compile-time feature of XFree86 xterm beginning with
3064# patch #115 (1999/9/18) -TD
3065#
3066# Note that the escape sequences used are the same as for 256-colors - xterm
3067# has a different table of default color resource values.  If built for
3068# 256-colors, it can still handle an 88-color palette by using the initc
3069# capability.
3070#
3071# At this time (2007/7/14), except for rxvt 2.7.x, none of the other terminals
3072# which support the xterm+256color feature support the associated initc
3073# capability.  So it is cancelled in the entries which use this and/or the
3074# xterm+256color block.
3075#
3076# The default color palette for the 256- and 88-colors are different.  A
3077# given executable will have one palette (perhaps compiled-in).  If the program
3078# supports xterm's control sequence, it can be programmed using initc.
3079xterm+88color|xterm 88-color feature:\
3080	:Co#88:pa#7744:tc=xterm+256color:
3081
3082# These variants of XFree86 3.9.16 xterm are built as a configure option.
3083xterm-256color|xterm with 256 colors:\
3084	:tc=xterm+256color:tc=xterm-new:
3085xterm-88color|xterm with 88 colors:\
3086	:tc=xterm+88color:tc=xterm-256color:
3087
3088# These two are used to demonstrate the any-event mouse support, i.e., by
3089# using an extended name "XM" which tells ncurses to put the terminal into
3090# a special mode when initializing the xterm mouse.
3091xterm-1002|testing xterm-mouse:\
3092	:XM=\E[?1002%?%p1%{1}%=%th%el%;:tc=xterm-new:
3093xterm-1003|testing xterm-mouse:\
3094	:XM=\E[?1003%?%p1%{1}%=%th%el%;:tc=xterm-new:
3095
3096# This chunk is based on suggestions by Ailin Nemui and Nicholas Marriott, who
3097# asked for some of xterm's advanced features to be added to its terminfo
3098# entry.  It defines extended capabilities not found in standard terminfo or
3099# termcap.  These are useful in tmux, for instance, hence the name.
3100#
3101# One caveat in adding extended capabilities in ncurses is that if the names
3102# are longer than two characters, then they will not be visible through the
3103# termcap interface.
3104#
3105# Ms modifies the selection/clipboard.  Its parameters are
3106#	p1 = the storage unit (clipboard, selection or cut buffer)
3107#	p2 = the base64-encoded clipboard content.
3108#
3109# Ss is used to set the cursor style as described by the DECSCUSR
3110#	function to a block or underline.
3111# Se resets the cursor style to the terminal power-on default.
3112#
3113# Cs and Ce set and reset the cursor colour.
3114xterm+tmux|advanced xterm features used in tmux:\
3115	:Cr=\E]112\007:Cs=\E]12;%p1%s\007:\
3116	:Ms=\E]52;%p1%s;%p2%s\007:Se=\E[2 q:Ss=\E[%p1%d q:
3117
3118# This is another variant, for XFree86 4.0 xterm (T.Dickey)
3119# This is an 8-bit version of xterm, which emulates DEC vt220 with ANSI color.
3120# To use it, your decTerminalID resource must be set to 200 or above.
3121#
3122#	HTS	\E H	\210
3123#	RI	\E M	\215
3124#	SS3	\E O	\217
3125#	CSI	\E [	\233
3126#
3127# (sgr removed to fit entry within 1023 bytes)
3128# (acsc removed to fit entry within 1023 bytes)
3129# (terminfo-only capabilities suppressed to fit entry within 1023 bytes)
3130xterm-8bit|xterm terminal emulator 8-bit controls (X Window System):\
3131	:am:bs:km:mi:ms:xn:\
3132	:co#80:it#8:li#24:\
3133	:AL=\233%dL:DC=\233%dP:DL=\233%dM:DO=\233%dB:IC=\233%d@:\
3134	:K1=\217w:K2=\217y:K3=\217u:K4=\217q:K5=\217s:LE=\233%dD:\
3135	:RI=\233%dC:UP=\233%dA:ae=\E(B:al=\233L:as=\E(0:bl=^G:\
3136	:bt=\233Z:cd=\233J:ce=\233K:cl=\233H\2332J:\
3137	:cm=\233%i%d;%dH:cr=^M:cs=\233%i%d;%dr:ct=\2333g:\
3138	:dc=\233P:dl=\233M:do=^J:ec=\233%dX:ei=\2334l:ho=\233H:\
3139	:im=\2334h:\
3140	:is=\E[62"p\E G\233m\233?7h\E>\E7\233?1;3;4;6l\2334l\233r\E8:\
3141	:k1=\23311~:k2=\23312~:k3=\23313~:k4=\23314~:k5=\23315~:\
3142	:k6=\23317~:k7=\23318~:k8=\23319~:k9=\23320~:kD=\2333~:\
3143	:kI=\2332~:kN=\2336~:kP=\2335~:kb=^H:kd=\217B:\
3144	:ke=\233?1l\E>:kh=\2331~:kl=\217D:kr=\217C:ks=\233?1h\E=:\
3145	:ku=\217A:le=^H:mb=\2335m:md=\2331m:me=\2330m:mr=\2337m:\
3146	:nd=\233C:rc=\E8:sc=\E7:se=\23327m:sf=^J:so=\2337m:sr=\215:\
3147	:st=\210:ta=^I:te=\233?1049l:ti=\233?1049h:ue=\23324m:\
3148	:up=\233A:us=\2334m:vb=\233?5h\233?5l:\
3149	:ve=\233?25l\233?25h:vi=\233?25l:vs=\233?12;25h:
3150
3151xterm-hp|xterm with hpterm function keys:\
3152	:@7=\EF:k1=\Ep:k2=\Eq:k3=\Er:k4=\Es:k5=\Et:k6=\Eu:k7=\Ev:\
3153	:k8=\Ew:kC=\EJ:kD=\EP:kI=\EQ:kN=\ES:kP=\ET:kd=\EB:kh=\Eh:\
3154	:kl=\ED:kr=\EC:ku=\EA:tc=xterm-basic:
3155
3156xterm-sco|xterm with SCO function keys:\
3157	:@1=\E[E:@7=\E[F:F1=\E[W:F2=\E[X:F3=\E[Y:F4=\E[Z:F5=\E[a:\
3158	:F6=\E[b:F7=\E[c:F8=\E[d:F9=\E[e:FA=\E[f:FB=\E[g:FC=\E[h:\
3159	:FD=\E[i:FE=\E[j:FF=\E[k:FG=\E[l:FH=\E[m:FI=\E[n:FJ=\E[o:\
3160	:FK=\E[p:FL=\E[q:FM=\E[r:FN=\E[s:FO=\E[t:FP=\E[u:FQ=\E[v:\
3161	:FR=\E[w:FS=\E[x:FT=\E[y:FU=\E[z:FV=\E[@:FW=\E[[:FX=\E[\\:\
3162	:FY=\E[]:FZ=\E[\136:Fa=\E[_:Fb=\E[`:Fc=\E[{:Km=\E[>M:\
3163	:k1=\E[M:k2=\E[N:k3=\E[O:k4=\E[P:k5=\E[Q:k6=\E[R:k7=\E[S:\
3164	:k8=\E[T:k9=\E[U:k;=\E[V:kD=\177:kI=\E[L:kN=\E[G:kP=\E[I:\
3165	:kd=\E[B:kh=\E[H:kl=\E[D:kr=\E[C:ku=\E[A:tc=xterm-basic:
3166
3167# The xterm-new description has all of the features, but is not completely
3168# compatible with vt220.  If you are using a Sun or PC keyboard, set the
3169# sunKeyboard resource to true:
3170#	+ maps the editing keypad
3171#	+ interprets control-function-key as a second array of keys, so a
3172#	  12-fkey keyboard can support vt220's 20-fkeys.
3173#	+ maps numeric keypad "+" to ",".
3174#	+ uses DEC-style control sequences for the application keypad.
3175#
3176xterm-vt220|xterm emulating vt220:\
3177	:@7=\E[4~:F1=\E[23~:F2=\E[24~:F3=\E[25~:F4=\E[26~:\
3178	:F5=\E[28~:F6=\E[29~:F7=\E[31~:F8=\E[32~:F9=\E[33~:\
3179	:FA=\E[34~:Km=\E[M:k5=\E[15~:k6=\E[17~:k7=\E[18~:\
3180	:k8=\E[19~:k9=\E[20~:k;=\E[21~:kB=\E[Z:kI=\E[2~:kN=\E[6~:\
3181	:kP=\E[5~:kd=\EOB:kh=\E[1~:kl=\EOD:kr=\EOC:ku=\EOA:\
3182	:tc=xterm+app:tc=xterm+edit:tc=xterm-basic:\
3183	:tc=vt220+keypad:
3184
3185xterm-vt52|xterm emulating dec vt52:\
3186	:co#80:it#8:li#24:\
3187	:ac=``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~:\
3188	:ae=\EG:as=\EF:bl=^G:cd=\EJ:ce=\EK:cl=\EH\EJ:cm=\EY%+ %+ :\
3189	:cr=^M:do=\EB:ho=\EH:kb=^H:kd=\EB:kl=\ED:kr=\EC:ku=\EA:\
3190	:le=\ED:nd=\EC:nw=^M^J:sf=^J:sr=\EI:ta=^I:up=\EA:
3191
3192xterm-noapp|xterm with cursor keys in normal mode:\
3193	:ke=\E>:ks=\E=:te@:ti@:tc=xterm+noapp:tc=xterm:
3194
3195xterm-24|vs100|xterms|xterm terminal emulator (X Window System):\
3196	:li#24:tc=xterm-old:
3197
3198# This is xterm for ncurses.
3199xterm|xterm terminal emulator (X Window System):\
3200	:tc=xterm-new:
3201
3202# This entry assumes that xterm's handling of VT100 SI/SO is disabled by
3203# setting the vt100Graphics resource to false.
3204xterm-utf8|xterm with no VT100 line-drawing in UTF-8 mode:\
3205	:U8#1:tc=xterm:
3206
3207# These entries allow access to the X titlebar and icon name as a status line.
3208# Note that twm (and possibly window managers descended from it such as tvtwm,
3209# ctwm, and vtwm) track windows by icon-name; thus, you don't want to mess
3210# with it.
3211xterm+sl|access X title line and icon name:\
3212	:hs:\
3213	:ws#40:\
3214	:ds=\E]0;\007:fs=^G:ts=\E]0;:tc=xterm:
3215xterm+sl-twm|access X title line (pacify twm-descended window managers):\
3216	:hs:\
3217	:ws#40:\
3218	:ds=\E]2;\007:fs=^G:ts=\E]2;:tc=xterm:
3219
3220#
3221# The following xterm variants don't depend on your base version
3222#
3223# xterm with bold instead of underline
3224xterm-bold|xterm terminal emulator (X11R6 Window System) standout w/bold:\
3225	:so=\E[7m:us=\E[1m:tc=xterm-old:
3226
3227# See the note on ICH/ICH1 VERSUS RMIR/SMIR near the end of file
3228xterm-nic|xterm with ich/ich1 suppressed for non-curses programs:\
3229	:IC@:ic@:tc=xterm:
3230# From: Mark Sheppard <kimble@mistral.co.uk>, 4 May 1996
3231xterm1|xterm terminal emulator ignoring the alternate screen buffer:\
3232	:te@:ti@:tc=xterm:
3233
3234#### KTERM
3235# (kterm: this had extension capabilities ":KJ:TY=ascii:" -- esr)
3236# (kterm should not invoke DEC Graphics as the alternate character set
3237#  -- Kenji Rikitake)
3238# (proper setting of enacs, smacs, rmacs makes kterm to use DEC Graphics
3239#  -- MATSUMOTO Shoji)
3240# kterm implements acsc via built-in table of X Drawable's
3241kterm|kterm kanji terminal emulator (X window system):\
3242	:es:hs:XT:\
3243	:NC@:\
3244	:Km=\E[M:RA=\E[?7l:SA=\E[?7h:\
3245	:ac=``aajjkkllmmnnooppqqrrssttuuvvwwxx~~:ae=\E(B:\
3246	:as=\E(0:cs=\E[%i%d;%dr:ds=\E[?H:eA=:fs=\E[?F:me=\E[0m:\
3247	:rc=\E8:sc=\E7:ts=\E[?E\E[?%i%dT:tc=xterm-r6:\
3248	:tc=ecma+color:
3249kterm-color|kterm-co|kterm with ANSI colors:\
3250	:NC@:tc=kterm:tc=ecma+color:
3251
3252#### Other XTERM
3253# These (xtermc and xtermm) are distributed with Solaris.  They refer to a
3254# variant of xterm which is apparently no longer supported, but are interesting
3255# because they illustrate SVr4 curses mouse controls - T.Dickey
3256xtermm|xterm terminal emulator (monocrome):\
3257	:am:bs:km:mi:ms:xn:\
3258	:BT#3:co#80:it#8:li#24:\
3259	:@7=\E[Y:AL=\E[%dL:DC=\E[%dP:DL=\E[%dM:DO=\E[%dB:F1=\EOZ:\
3260	:F2=\EOA:Gm=\E[%dY:IC=\E[%d@:Km=\E[^_:LE=\E[%dD:RI=\E[%dC:\
3261	:RQ=\E[492Z:UP=\E[%dA:\
3262	:ac=``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~:\
3263	:ae=^O:al=\E[L:as=^N:bl=^G:cb=3\E[1K:cd=\E[J:ce=\E[K:\
3264	:cl=\E[H\E[2J:cm=\E[%i%d;%dH:cr=^M:cs=\E[%i%d;%dr:\
3265	:ct=\E[3g:dc=\E[P:dl=\E[M:do=^J:eA=\E(B\E)0:ei=:ho=\E[H:\
3266	:ic=\E[@:im=:k0=\EOy:k5=\EOT:k6=\EOU:k7=\EOV:k8=\EOW:\
3267	:k9=\EOX:k;=\EOY:kN=\E[U:kP=\E[V:kb=^H:kd=\EOB:kh=\E[H:\
3268	:kl=\EOD:kr=\EOC:ku=\EOA:le=\E[D:mb@:md=\E[1m:me=\E[0m:\
3269	:mr=\E[7m:nd=\E[C:\
3270	:r1=\E>\E[1;3;4;5;6l\E[?7h\E[m\E[r\E[2J\E[H:\
3271	:r2=\E>\E[?3l\E[?4l\E[?5l\E[?7h\E[?8h:rc=\E8:sc=\E7:\
3272	:se=\E[m:sf=^J:so=\E[7m:sr=\EM:st=\EH:ta=^I:te=\E@0\E[?4r:\
3273	:ti=\E@0\E[?4s\E[?4h\E@1:up=\E[A:tc=vt100+fnkeys:
3274
3275xtermc|xterm terminal emulator (color):\
3276	:Co#8:NC#7:pa#64:\
3277	:AB=\E[4%dm:AF=\E[3%dm:op=\E[100m:tc=xtermm:
3278
3279# From: David J. MacKenzie <djm@va.pubnix.com> 20 Apr 1995
3280# Here's a termcap entry I've been using for xterm_color, which comes
3281# with BSD/OS 2.0, and the X11R6 contrib tape too I think.  Besides the
3282# color stuff, I also have a status line defined as the window manager
3283# title bar. [I have translated it to terminfo -- ESR]
3284xterm-pcolor|xterm with color used for highlights and status line:\
3285	:md=\E[1m\E[43m:mr=\E[7m\E[34m:so=\E[7m\E[31m:\
3286	:us=\E[4m\E[42m:tc=xterm+sl:tc=xterm-r6:
3287
3288# This describes the capabilities of color_xterm, an xterm variant from
3289# before ECMA-64 color support was folded into the main-line xterm release.
3290# This entry is straight from color_xterm's maintainer.
3291# From: Jacob Mandelson <jlm@ugcs.caltech.edu>, 09 Nov 1996
3292# The README's with the distribution also say that it supports SGR 21, 24, 25
3293# and 27, but they are not present in the terminfo or termcap.
3294color_xterm|cx|cx100|color_xterm color terminal emulator for X:\
3295	:am:bs:km:mi:ms:xn:XT:\
3296	:NC@:co#80:it#8:li#65:\
3297	:@7=\E[8~:AL=\E[%dL:DC=\E[%dP:DL=\E[%dM:DO=\E[%dB:\
3298	:F1=\E[23~:F2=\E[24~:IC=\E[%d@:Km=\E[M:LE=\E[%dD:\
3299	:RA=\E[?7l:RI=\E[%dC:SA=\E[?7h:UP=\E[%dA:\
3300	:ac=``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~:\
3301	:ae=^O:al=\E[L:as=^N:bl=^G:cb=\E[1K:cd=\E[J:ce=\E[K:\
3302	:cl=\E[H\E[2J:cm=\E[%i%d;%dH:cr=^M:cs=\E[%i%d;%dr:\
3303	:dc=\E[P:dl=\E[M:do=^J:eA=\E(B\E)0:ei=\E[4l:ho=\E[H:\
3304	:i1=\E[r\E[m\E[?7h\E[?4;6l\E[4l:im=\E[4h:k1=\E[11~:\
3305	:k2=\E[12~:k3=\E[13~:k4=\E[14~:k5=\E[15~:k6=\E[17~:\
3306	:k7=\E[18~:k8=\E[19~:k9=\E[20~:k;=\E[21~:kI=\E[2~:\
3307	:kN=\E[6~:kP=\E[5~:kb=^H:kd=\EOB:kh=\E[7~:kl=\EOD:kr=\EOC:\
3308	:ku=\EOA:le=^H:md=\E[1m:me=\E[0m:mr=\E[7m:nd=\E[C:\
3309	:r1=\E(B\017\E[r\E[m\E[2J\E[H\E[?7h\E[?1;3;4;6l\E[4l\E<:\
3310	:rc=\E8:sc=\E7:se=\E[27m:sf=^J:so=\E[7m:sr=\EM:ta=^I:\
3311	:te=\E>\E[?41;1r:ti=\E[?1;41s\E[?1;41h\E=:ue=\E[24m:\
3312	:up=\E[A:us=\E[4m:tc=ecma+color:tc=vt220+keypad:
3313
3314# The 'nxterm' distributed with Redhat Linux 5.2 is a slight rehack of
3315# xterm-sb_right-ansi-3d, which implements ANSI colors, but does not support
3316# SGR 39 or 49.  SGR 0 does reset colors (along with everything else).  This
3317# description is "compatible" with color_xterm, rxvt and XFree86 xterm, except
3318# that each of those implements the home, end, delete keys differently.
3319#
3320# Redhat Linux 6.x distributes XFree86 xterm as "nxterm", which uses bce
3321# colors; note that this is not compatible with the 5.2 version.
3322# csw (2002-05-15): make xterm-color primary instead of nxterm, to
3323#   match XFree86's xterm.terminfo usage and prevent circular links
3324xterm-color|nxterm|generic color xterm:\
3325	:NC@:\
3326	:op=\E[m:tc=xterm-r6:tc=klone+color:
3327
3328# This entry describes an xterm with Sun-style function keys enabled
3329# via the X resource setting "xterm*sunFunctionKeys:true"
3330# To understand <kf11>/<kf12> note that L1,L2 and F11,F12 are the same.
3331# The <kf13>...<kf20> keys are L3-L10.  We don't set <kf16=\E[197z>
3332# because we want it to be seen as <kcpy>.
3333# The <kf31>...<kf45> keys are R1-R15.  We treat some of these in accordance
3334# with their Sun keyboard labels instead.
3335# From: Simon J. Gerraty <sjg@zen.void.oz.au> 10 Jan 1996
3336xterm-sun|xterm with sunFunctionKeys true:\
3337	:%1=\E[196z:&8=\E[195z:@0=\E[200z:@5=\E[197z:@7=\E[220z:\
3338	:@8=\EOM:F1=\E[192z:F2=\E[193z:F3=\E[194z:F4=\E[195z:\
3339	:F5=\E[196z:F7=\E[198z:F8=\E[199z:F9=\E[200z:FA=\E[201z:\
3340	:FL=\E[208z:FM=\E[209z:FN=\E[210z:FO=\E[211z:FP=\E[212z:\
3341	:FQ=\E[213z:FS=\E[215z:FU=\E[217z:FW=\E[219z:FY=\E[221z:\
3342	:FZ=\E[222z:Fa=\E[234z:Fb=\E[235z:K2=\E[218z:k1=\E[224z:\
3343	:k2=\E[225z:k3=\E[226z:k4=\E[227z:k5=\E[228z:k6=\E[229z:\
3344	:k7=\E[230z:k8=\E[231z:k9=\E[232z:k;=\E[233z:kD=\E[3z:\
3345	:kI=\E[2z:kN=\E[222z:kP=\E[216z:kd=\EOB:kh=\E[214z:\
3346	:kl=\EOD:kr=\EOC:ku=\EOA:tc=xterm-basic:
3347xterms-sun|small (80x24) xterm with sunFunctionKeys true:\
3348	:co#80:li#24:tc=xterm-sun:
3349
3350#### GNOME (VTE)
3351# this describes the alpha-version of Gnome terminal shipped with Redhat 6.0
3352gnome-rh62|Gnome terminal:\
3353	:ut:\
3354	:k1=\EOP:k2=\EOQ:k3=\EOR:k4=\EOS:kD=\177:tc=xterm-color:
3355
3356# GNOME Terminal 1.4.0.4 (Redhat 7.2)
3357#
3358# This implements a subset of vt102 with a random selection of features from
3359# other terminals such as color and function-keys.
3360#
3361# shift-f1 to shift-f10 are f11 to f20
3362#
3363# NumLock changes the application keypad to approximate vt100 keypad, except
3364# that there is no escape sequence matching comma (,).
3365#
3366# Other defects observed:
3367#	vt100 LNM mode is not implemented.
3368#	vt100 80/132 column mode is not implemented.
3369#	vt100 DECALN is not implemented.
3370#	vt100 DECSCNM mode is not implemented, so flash does not work.
3371#	vt100 TBC (tab reset) is not implemented.
3372#	xterm alternate screen controls do not restore cursor position properly
3373#	it hangs in tack after running function-keys test.
3374gnome-rh72|GNOME Terminal:\
3375	:km@:ut:\
3376	:RA=\E[?7l:SA=\E[?7h:ct@:k1=\EOP:k2=\EOQ:k3=\EOR:k4=\EOS:\
3377	:kD=\E[3~:me=\E[0m\017:ve=\E[?25h:vi=\E[?25l:\
3378	:tc=xterm-color:
3379
3380# GNOME Terminal 2.0.1 (Redhat 8.0)
3381#
3382# Documentation now claims it implements vt220 (which is demonstrably false).
3383# However, it does implement ECH, which is a vt220 feature.  And there are
3384# workable vt100 LNM, DECALN, DECSNM modes, making it possible to display
3385# more of its bugs using vttest.
3386#
3387# However, note that bce and msgr are broken in this release.  Tabs (tbc and
3388# hts) are broken as well.  Sometimes flash (as in xterm-new) works.
3389#
3390# kf1 and kf10 are not tested since they're assigned (hardcoded?) to menu
3391# operations.  Shift-tab generates a distinct sequence so it can be argued
3392# that it implements kcbt.
3393gnome-rh80|GNOME Terminal:\
3394	:ms@:ut@:\
3395	:ec=\E[%dX:kB=\E^I:kb=\177:op=\E[39;49m:vb=\E[?5h\E[?5l:\
3396	:tc=gnome-rh72:
3397
3398# GNOME Terminal 2.2.1 (Redhat 9.0)
3399#
3400# bce and msgr are repaired.
3401gnome-rh90|GNOME Terminal:\
3402	:ms:ut:\
3403	:#4=\EO2D:%i=\EO2C:*4=\E[3;2~:@7=\EOF:K2=\E[E:ch=\E[%i%dG:\
3404	:ct=\E[3g:cv=\E[%i%dd:kB=\E[Z:kh=\EOH:tc=xterm+pcf0:\
3405	:tc=xterm+pcfkeys:tc=gnome-rh80:
3406
3407# GNOME Terminal 2.14.2 (Fedora Core 5)
3408# Ed Catmur notes that gnome-terminal has recognized soft-reset since May 2002.
3409gnome-fc5|GNOME Terminal:\
3410	:r1=\Ec:\
3411	:r2=\E7\E[r\E8\E[m\E[?7h\E[!p\E[?1;3;4;6l\E[4l\E>\E[?1000l\E[?25h:\
3412	:tc=ansi+enq:tc=xterm+pcc0:tc=gnome-rh90:
3413
3414# GNOME Terminal 2.18.1 (2007 snapshot)
3415#
3416# For any "recent" version of gnome-terminal, it is futile to attempt to
3417# support modifiers on cursor- and keypad keys because the program usually
3418# is hardcoded to set $TERM to "xterm", and on startup, it builds a subset
3419# of the keys (which more/less correspond to the termcap values), and will
3420# interpret those according to the $TERM value, but others not in the
3421# terminfo according to some constantly changing set of hacker guidelines -TD
3422vte-2007|VTE in GNOME Terminal snapshot 2.18.1:\
3423	:tc=xterm+pcc2:tc=gnome-fc5:
3424gnome-2007|GNOME Terminal snapshot 2.18.1:\
3425	:tc=vte-2007:
3426
3427# GNOME Terminal 2.22.3 (2008 snapshot)
3428#
3429# In vttest, it claims to be a vt220 with national replacement character-sets,
3430# but aside from the identifier string, implements only a small fraction of
3431# vt220's behavior, which will make it less usable on a VMS system (unclear
3432# what the intent of the developer is, since the NRC feature exposed in vttest
3433# by this change does not work).
3434vte-2008|VTE in GNOME Terminal snapshot 2.22.3:\
3435	:tc=vte+pcfkeys:tc=vte-2007:
3436gnome-2008|GNOME Terminal snapshot 2.22.3:\
3437	:tc=vte-2008:
3438
3439# GNOME terminal may automatically use the contents of the "xterm" terminfo to
3440# supply key information which is not built into the program.  With 2.22.3,
3441# this list is built into the program (which addresses the inadvertant use of
3442# random terminfo data, though using a set of values which does not correspond
3443# to any that xterm produces - still not solving the problem that GNOME
3444# terminal hardcodes the $TERM variable as "xterm").
3445#
3446#	terminfo	modifier	code	keys
3447#	kf13-kf24	shift		2	F1 to F12
3448#	kf25-kf36	control		5	F1 to F12
3449#	kf37-kf48	shift/control	6	F1 to F12
3450#	kf49-kf60	alt		3	F1 to F12
3451#	kf61-kf63	shift-alt	4	F1 to F3
3452#
3453# The parameters with \EO (SS3) are technically an error, since SS3 should have
3454# no parameters.  This appears to be rote copying based on xterm+pcc0.
3455vte+pcfkeys|VTE's variation on xterm+pcfkeys:\
3456	:F3=\EO1;2P:F4=\EO1;2Q:F5=\EO1;2R:F6=\EO1;2S:FF=\EO1;5P:\
3457	:FG=\EO1;5Q:FH=\EO1;5R:FI=\EO1;5S:FR=\EO1;6P:FS=\EO1;6Q:\
3458	:FT=\EO1;6R:FU=\EO1;6S:Fd=\EO1;3P:Fe=\EO1;3Q:Ff=\EO1;3R:\
3459	:Fg=\EO1;3S:Fp=\EO1;4P:Fq=\EO1;4Q:Fr=\EO1;4R:k1=\EOP:\
3460	:k2=\EOQ:k3=\EOR:k4=\EOS:tc=xterm+pcfkeys:
3461gnome+pcfkeys|VTE's variation on xterm+pcfkeys:\
3462	:tc=vte+pcfkeys:
3463
3464vte|VTE aka GNOME Terminal:\
3465	:tc=vte-2008:
3466gnome|GNOME Terminal:\
3467	:tc=vte:
3468
3469# palette is hardcoded...
3470vte-256color|VTE with xterm 256-colors:\
3471	:Ic@:tc=xterm+256color:tc=vte:
3472gnome-256color|GNOME Terminal with xterm 256-colors:\
3473	:tc=vte-256color:
3474
3475# XFCE Terminal 0.2.5.4beta2
3476#
3477# This is based on some of the same source code, e.g., the VTE library, as
3478# gnome-terminal, but has fewer features, fails more screens in vttest.
3479# Since most of the terminfo-related behavior is due to the VTE library,
3480# the terminfo is the same as gnome-terminal.
3481xfce|Xfce Terminal:\
3482	:tc=vte:
3483
3484#### Other GNOME
3485# Multi-Gnome-Terminal 1.6.2
3486#
3487# This does not use VTE, and does have different behavior (compare xfce and
3488# gnome).
3489mgt|Multi GNOME Terminal:\
3490	:SF=\E[%dS:SR=\E[%dT:tc=xterm-xf86-v333:
3491
3492#### KDE
3493# This is kvt 0-18.7, shipped with Redhat 6.0 (though whether it supports bce
3494# or not is debatable).
3495kvt|KDE terminal:\
3496	:km@:ut:\
3497	:@7=\E[F:kD=\177:kh=\E[H:tc=xterm-color:
3498
3499# Konsole 1.0.1
3500# (formerly known as kvt)
3501#
3502# This program hardcodes $TERM to 'xterm', which is not accurate.  However, to
3503# simplify this entry (and point out why konsole isn't xterm), we base this on
3504# xterm-r6.  The default keyboard appears to be 'linux'.
3505#
3506# Notes:
3507# a) konsole implements several features from XFree86 xterm, though none of
3508#    that is documented - except of course in its source code - apparently
3509#    because its implementors are unaccustomed to reading documentation - as
3510#    evidenced by the sparse and poorly edited documentation distributed with
3511#    konsole.  Some features such as the 1049 private mode are recognized but
3512#    incorrectly implemented as a duplicate of the 47 private mode.
3513# b) even with the "vt100 (historical)" keyboard setting, the numeric keypad
3514#    sends PC-style escapes rather than vt100.
3515# c) fails vttest menu 3 (Test of character sets) because it does not properly
3516#    parse some control sequences.  Also fails vttest Primary Device Attributes
3517#    by sending a bogus code (in the source it says it's supposed to be a
3518#    vt220, which is doubly incorrect because it does not implement vt220
3519#    control sequences except for a few special cases).  Treat it as a
3520#    mildly-broken vt102.
3521#
3522# Update for konsole 1.3.2:
3523#    The 1049 private mode works (but see the other xterm screens in vttest).
3524#    Primary Device Attributes now returns the code for a vt100 with advanced
3525#    video option.  Perhaps that's intended to be a "mildly-broken vt102".
3526#
3527# Updated for konsole 1.6.4:
3528#    add konsole-solaris
3529#
3530# Updated for konsole 1.6.6:
3531#    add control-key modifiers for function-keys, etc.
3532#
3533# vttest menu 1 shows that both konsole and gnome terminal do wrapping
3534# different from xterm (and vt100's).  They have the same behavior in this
3535# detail, but it is unclear which copies the other.
3536konsole-base|KDE console window:\
3537	:NP:km@:ut:XT:\
3538	:NC@:\
3539	:*6@:@0@:@7=\E[4~:F1@:F2@:F3@:F4@:F5@:F6@:F7@:F8@:F9@:FA@:\
3540	:RA=\E[?7l:SA=\E[?7h:SF=\E[%dS:SR=\E[%dT:bl@:ch=\E[%i%dG:\
3541	:cv=\E[%i%dd:ec=\E[%dX:k1@:k2@:k3@:k4@:k5@:k6@:k7@:k8@:k9@:k;@:\
3542	:kD@:kb=\177:kh=\E[1~:mb=\E[5m:me=\E[0m\017:\
3543	:rs=\E7\E[r\E8\E[m\E[?7h\E[?1;3;4;6l\E[4l\E>\E[?1000l\E[?25h:\
3544	:se=\E[27m:ue=\E[24m:vb=\E[?5h\E[?5l:ve=\E[?25h:\
3545	:vi=\E[?25l:tc=ecma+color:tc=xterm-r6:
3546konsole-linux|KDE console window with linux keyboard:\
3547	:F1=\E[23~:F2=\E[24~:F3@:F4@:F5@:F6@:F7@:F8@:F9@:FA@:k1=\E[[A:\
3548	:k2=\E[[B:k3=\E[[C:k4=\E[[D:k5=\E[[E:k6=\E[17~:k7=\E[18~:\
3549	:k8=\E[19~:k9=\E[20~:k;=\E[21~:kD=\E[3~:tc=konsole-base:
3550konsole-solaris|KDE console window with Solaris keyboard:\
3551	:@7=\E[4~:kb=^H:kh=\E[1~:tc=konsole-vt100:
3552# KDE's "XFree86 3.x.x" keyboard is based on reading the xterm terminfo rather
3553# than testing the code.
3554konsole-xf3x|KDE console window with keyboard for XFree86 3.x xterm:\
3555	:@7=\E[4~:kh=\E[1~:tc=konsole-vt100:
3556# The value for kbs reflects local customization rather than the settings used
3557# for XFree86 xterm.
3558konsole-xf4x|KDE console window with keyboard for XFree86 4.x xterm:\
3559	:@7=\EOF:kh=\EOH:tc=konsole+pcfkeys:tc=konsole-vt100:
3560# Konsole does not implement shifted cursor-keys.
3561konsole+pcfkeys|konsole subset of xterm+pcfkeys:\
3562	:#4@:%i@:kB=\E[Z:kF@:kR@:tc=xterm+pcc2:tc=xterm+pcf0:
3563# KDE's "vt100" keyboard has no relationship to any terminal that DEC made, but
3564# it is still useful for deriving the other entries.
3565konsole-vt100|KDE console window with vt100 (sic) keyboard:\
3566	:@7=\E[F:F1=\E[23~:F2=\E[24~:F3@:F4@:F5@:F6@:F7@:F8@:F9@:FA@:\
3567	:k1=\E[11~:k2=\E[12~:k3=\E[13~:k4=\E[14~:k5=\E[15~:\
3568	:k6=\E[17~:k7=\E[18~:k8=\E[19~:k9=\E[20~:k;=\E[21~:\
3569	:kD=\E[3~:kb=\177:kh=\E[H:tc=konsole-base:
3570konsole-vt420pc|KDE console window with vt420 pc keyboard:\
3571	:kD=\177:kb=^H:tc=konsole-vt100:
3572konsole-16color|klone of xterm-16color:\
3573	:NC#32:tc=ibm+16color:tc=konsole:
3574# make a default entry for konsole
3575konsole|KDE console window:\
3576	:tc=konsole-xf4x:
3577
3578# palette is hardcoded...
3579konsole-256color|KDE console window with xterm 256-colors:\
3580	:Ic@:tc=xterm+256color:tc=konsole:
3581
3582#### MLTERM
3583# This is mlterm 2.9.3's mlterm.ti, with some additions/corrections -TD
3584#
3585# It is nominally a vt102 emulator, with features borrowed from rxvt and
3586# xterm.
3587#
3588# The function keys are numbered based on shift/control/alt modifiers, except
3589# that the control-modifier itself is used to spawn a new copy of mlterm (the
3590# "-P" option).  So control/F1 to control/F12 may not be usable, depending on
3591# how it is configured.
3592#
3593#				kf1 to kf12	\E[11~   to \E[24~
3594#	shift			kf1 to kf12	\E[11;2~ to \E[24;2~
3595#	alt			kf1 to kf12	\E[11;3~ to \E[24;3~
3596#	shift/alt		kf1 to kf12	\E[11;4~ to \E[24;4~
3597#	control			kf1 to kf12	\E[11;5~ to \E[24;5~ (maybe)
3598#	control/shift		kf1 to kf12	\E[11;6~ to \E[24;6~
3599#	control/alt		kf1 to kf12	\E[11;7~ to \E[24;7~
3600#	control/shift/alt	kf1 to kf12	\E[11;8~ to \E[24;8~
3601#
3602# (sgr removed to fit entry within 1023 bytes)
3603# (acsc removed to fit entry within 1023 bytes)
3604# (terminfo-only capabilities suppressed to fit entry within 1023 bytes)
3605mlterm|multi lingual terminal emulator:\
3606	:am:es:km:mi:ms:xn:\
3607	:co#80:it#8:li#24:\
3608	:AL=\E[%dL:DC=\E[%dP:DL=\E[%dM:DO=\E[%dB:IC=\E[%d@:\
3609	:LE=\E[%dD:RI=\E[%dC:SF=\E[%dS:SR=\E[%dT:UP=\E[%dA:\
3610	:ae=\E(B:al=\E[L:as=\E(0:bl=^G:bt=\E[Z:cd=\E[J:ce=\E[K:\
3611	:cl=\E[H\E[2J:cm=\E[%i%d;%dH:cr=^M:cs=\E[%i%d;%dr:\
3612	:ct=\E[3g:dc=\E[P:dl=\E[M:do=^J:ec=\E[%dX:ei=\E[4l:ho=\E[H:\
3613	:ic=\E[@:im=\E[4h:\
3614	:is=\E7\E[r\E[m\E[?7h\E[?1;3;4;6l\E[4l\E8\E>:kD=\E[3~:\
3615	:kI=\E[2~:kN=\E[6~:kP=\E[5~:kb=\177:kd=\EOB:ke=\E[?1l\E>:\
3616	:kh=\EOH:kl=\EOD:kr=\EOC:ks=\E[?1h\E=:ku=\EOA:le=^H:\
3617	:md=\E[1m:me=\E[0m:mr=\E[7m:nd=\E[C:nw=\EE:rc=\E8:\
3618	:rs=\E7\E[r\E8\E[m\E[?7h\E[?1;3;4;6l\E[4l\E>\E[?1000l:\
3619	:sc=\E7:se=\E[27m:sf=^J:so=\E[7m:sr=\EM:st=\EH:ta=^I:\
3620	:te=\E[?1049l:ti=\E[?1049h:ue=\E[24m:up=\E[A:us=\E[4m:\
3621	:ve=\E[?25h:vi=\E[?25l:tc=mlterm+pcfkeys:tc=xterm+r6f2:
3622
3623# The insert/delete/home/end keys do not respond to modifiers because mlterm
3624# looks in its termcap to decide which string to send.  If it used terminfo
3625# (when available), it could use the extended names introduced for xterm.
3626mlterm+pcfkeys|fragment for PC-style fkeys:\
3627	:#4=\EO1;2D:%c=\E[6;2~:%e=\E[5;2~:%i=\EO1;2C:
3628
3629mlterm-256color|mlterm 3.0 with xterm 256-colors:\
3630	:tc=xterm+256color:tc=rxvt:
3631
3632#### RXVT
3633# From: Thomas Dickey <dickey@clark.net> 04 Oct 1997
3634# Updated: Oezguer Kesim <kesim@math.fu-berlin.de> 02 Nov 1997
3635# Notes:
3636# rxvt 2.21b uses
3637#	smacs=\E(B\E)U^N, rmacs=\E(B\E)0^O,
3638# but some applications don't work with that.
3639# It also has an AIX extension
3640#	box2=lqkxjmwuvtn,
3641# and
3642#	ech=\E[%p1%dX,
3643# but the latter does not work correctly.
3644#
3645# The distributed terminfo says it implements hpa and vpa, but they are not
3646# implemented correctly, using relative rather than absolute positioning.
3647#
3648# rxvt is normally configured to look for "xterm" or "xterm-color" as $TERM.
3649# Since rxvt is not really compatible with xterm, it should be configured as
3650# "rxvt" or "rxvt-color".
3651#
3652# removed dch/dch1 because they are inconsistent with bce/ech -TD
3653# remove km as per tack test -TD
3654rxvt-basic|rxvt terminal base (X Window System):\
3655	:am:bs:eo:mi:ms:ut:xn:xo:XT:\
3656	:co#80:it#8:li#24:\
3657	:AL=\E[%dL:DL=\E[%dM:DO=\E[%dB:IC=\E[%d@:Km=\E[M:\
3658	:LE=\E[%dD:RI=\E[%dC:UP=\E[%dA:\
3659	:ac=``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~:\
3660	:ae=^O:al=\E[L:as=^N:bl=^G:cb=\E[1K:cd=\E[J:ce=\E[K:\
3661	:cl=\E[H\E[2J:cm=\E[%i%d;%dH:cr=^M:cs=\E[%i%d;%dr:\
3662	:ct=\E[3g:dl=\E[M:do=^J:eA=\E(B\E)0:ei=\E[4l:ho=\E[H:\
3663	:i1=\E[?47l\E=\E[?1l:ic=\E[@:im=\E[4h:\
3664	:is=\E[r\E[m\E[2J\E[H\E[?7h\E[?1;3;4;6l\E[4l:kB=\E[Z:\
3665	:kb=^H:ke=\E>:ks=\E=:le=^H:mb=\E[5m:md=\E[1m:me=\E[0m:\
3666	:mr=\E[7m:nd=\E[C:\
3667	:r1=\E>\E[1;3;4;5;6l\E[?7h\E[m\E[r\E[2J\E[H:\
3668	:r2=\E[r\E[m\E[2J\E[H\E[?7h\E[?1;3;4;6l\E[4l\E>\E[?1000l\E[?25h:\
3669	:rc=\E8:s0=\E(B:s1=\E(0:sc=\E7:se=\E[27m:sf=^J:so=\E[7m:\
3670	:sr=\EM:st=\EH:ta=^I:te=\E[2J\E[?47l\E8:ti=\E7\E[?47h:\
3671	:ue=\E[24m:up=\E[A:us=\E[4m:vb=\E[?5h\E[?5l:ve=\E[?25h:\
3672	:vi=\E[?25l:tc=vt100+enq:tc=rxvt+pcfkeys:\
3673	:tc=vt220+keypad:
3674# Key Codes from rxvt reference:
3675#
3676# Note: Shift + F1-F10 generates F11-F20
3677#
3678# For the keypad, use Shift to temporarily override Application-Keypad
3679# setting use Num_Lock to toggle Application-Keypad setting if Num_Lock
3680# is off, escape sequences toggle Application-Keypad setting.
3681# Also note that values of Home, End, Delete may have been compiled
3682# differently on your system.
3683#
3684#                   Normal       Shift        Control      Ctrl+Shift
3685#  Tab              ^I           ESC [ Z      ^I           ESC [ Z
3686#  BackSpace        ^H           ^?           ^?           ^?
3687#  Find             ESC [ 1 ~    ESC [ 1 $    ESC [ 1 ^    ESC [ 1 @
3688#  Insert           ESC [ 2 ~    paste        ESC [ 2 ^    ESC [ 2 @
3689#  Execute          ESC [ 3 ~    ESC [ 3 $    ESC [ 3 ^    ESC [ 3 @
3690#  Select           ESC [ 4 ~    ESC [ 4 $    ESC [ 4 ^    ESC [ 4 @
3691#  Prior            ESC [ 5 ~    scroll-up    ESC [ 5 ^    ESC [ 5 @
3692#  Next             ESC [ 6 ~    scroll-down  ESC [ 6 ^    ESC [ 6 @
3693#  Home             ESC [ 7 ~    ESC [ 7 $    ESC [ 7 ^    ESC [ 7 @
3694#  End              ESC [ 8 ~    ESC [ 8 $    ESC [ 8 ^    ESC [ 8 @
3695#  Delete           ESC [ 3 ~    ESC [ 3 $    ESC [ 3 ^    ESC [ 3 @
3696#  F1               ESC [ 11 ~   ESC [ 23 ~   ESC [ 11 ^   ESC [ 23 ^
3697#  F2               ESC [ 12 ~   ESC [ 24 ~   ESC [ 12 ^   ESC [ 24 ^
3698#  F3               ESC [ 13 ~   ESC [ 25 ~   ESC [ 13 ^   ESC [ 25 ^
3699#  F4               ESC [ 14 ~   ESC [ 26 ~   ESC [ 14 ^   ESC [ 26 ^
3700#  F5               ESC [ 15 ~   ESC [ 28 ~   ESC [ 15 ^   ESC [ 28 ^
3701#  F6               ESC [ 17 ~   ESC [ 29 ~   ESC [ 17 ^   ESC [ 29 ^
3702#  F7               ESC [ 18 ~   ESC [ 31 ~   ESC [ 18 ^   ESC [ 31 ^
3703#  F8               ESC [ 19 ~   ESC [ 32 ~   ESC [ 19 ^   ESC [ 32 ^
3704#  F9               ESC [ 20 ~   ESC [ 33 ~   ESC [ 20 ^   ESC [ 33 ^
3705#  F10              ESC [ 21 ~   ESC [ 34 ~   ESC [ 21 ^   ESC [ 34 ^
3706#  F11              ESC [ 23 ~   ESC [ 23 $   ESC [ 23 ^   ESC [ 23 @
3707#  F12              ESC [ 24 ~   ESC [ 24 $   ESC [ 24 ^   ESC [ 24 @
3708#  F13              ESC [ 25 ~   ESC [ 25 $   ESC [ 25 ^   ESC [ 25 @
3709#  F14              ESC [ 26 ~   ESC [ 26 $   ESC [ 26 ^   ESC [ 26 @
3710#  F15 (Help)       ESC [ 28 ~   ESC [ 28 $   ESC [ 28 ^   ESC [ 28 @
3711#  F16 (Menu)       ESC [ 29 ~   ESC [ 29 $   ESC [ 29 ^   ESC [ 29 @
3712#  F17              ESC [ 31 ~   ESC [ 31 $   ESC [ 31 ^   ESC [ 31 @
3713#  F18              ESC [ 32 ~   ESC [ 32 $   ESC [ 32 ^   ESC [ 32 @
3714#  F19              ESC [ 33 ~   ESC [ 33 $   ESC [ 33 ^   ESC [ 33 @
3715#  F20              ESC [ 34 ~   ESC [ 34 $   ESC [ 34 ^   ESC [ 34 @
3716#
3717#                                                          Application
3718#  Up               ESC [ A      ESC [ a      ESC O a      ESC O A
3719#  Down             ESC [ B      ESC [ b      ESC O b      ESC O B
3720#  Right            ESC [ C      ESC [ c      ESC O c      ESC O C
3721#  Left             ESC [ D      ESC [ d      ESC O d      ESC O D
3722#  KP_Enter         ^M                                     ESC O M
3723#  KP_F1            ESC O P                                ESC O P
3724#  KP_F2            ESC O Q                                ESC O Q
3725#  KP_F3            ESC O R                                ESC O R
3726#  KP_F4            ESC O S                                ESC O S
3727#  XK_KP_Multiply   *                                      ESC O j
3728#  XK_KP_Add        +                                      ESC O k
3729#  XK_KP_Separator  ,                                      ESC O l
3730#  XK_KP_Subtract   -                                      ESC O m
3731#  XK_KP_Decimal    .                                      ESC O n
3732#  XK_KP_Divide     /                                      ESC O o
3733#  XK_KP_0          0                                      ESC O p
3734#  XK_KP_1          1                                      ESC O q
3735#  XK_KP_2          2                                      ESC O r
3736#  XK_KP_3          3                                      ESC O s
3737#  XK_KP_4          4                                      ESC O t
3738#  XK_KP_5          5                                      ESC O u
3739#  XK_KP_6          6                                      ESC O v
3740#  XK_KP_7          7                                      ESC O w
3741#  XK_KP_8          8                                      ESC O x
3742#  XK_KP_9          9                                      ESC O y
3743#
3744# The source-code for rxvt actually defines mappings for F21-F35, using
3745# "ESC [ 35 ~" to "ESC [  49 ~".  Keyboards with more than 12 function keys
3746# are rare, so this entry uses the shift- and control-modifiers as in
3747# xterm+pcfkeys to define keys past F12.
3748#
3749# kIC is normally not used, since rxvt performs a paste for that (shifted
3750# insert), unless private mode 35 is set.
3751#
3752# kDN, kDN5, kDN6, etc are extensions based on the names from xterm+pcfkeys -TD
3753# Removed kDN6, etc (control+shift) since rxvt does not implement this -TD
3754rxvt+pcfkeys|fragment for PC-style fkeys:\
3755	:#2=\E[7$:#3=\E[2$:#4=\E[d:%c=\E[6$:%e=\E[5$:%i=\E[c:\
3756	:*4=\E[3$:*6=\E[4~:*7=\E[8$:@0=\E[1~:@7=\E[8~:F1=\E[23~:\
3757	:F2=\E[24~:F3=\E[25~:F4=\E[26~:F5=\E[28~:F6=\E[29~:\
3758	:F7=\E[31~:F8=\E[32~:F9=\E[33~:FA=\E[34~:FB=\E[23$:\
3759	:FC=\E[24$:FD=\E[11\136:FE=\E[12\136:FF=\E[13\136:\
3760	:FG=\E[14\136:FH=\E[15\136:FI=\E[17\136:FJ=\E[18\136:\
3761	:FK=\E[19\136:FL=\E[20\136:FM=\E[21\136:FN=\E[23\136:\
3762	:FO=\E[24\136:FP=\E[25\136:FQ=\E[26\136:FR=\E[28\136:\
3763	:FS=\E[29\136:FT=\E[31\136:FU=\E[32\136:FV=\E[33\136:\
3764	:FW=\E[34\136:FX=\E[23@:FY=\E[24@:k1=\E[11~:k2=\E[12~:\
3765	:k3=\E[13~:k4=\E[14~:k5=\E[15~:k6=\E[17~:k7=\E[18~:\
3766	:k8=\E[19~:k9=\E[20~:k;=\E[21~:kD=\E[3~:kE=\E[8\136:\
3767	:kF=\E[a:kI=\E[2~:kN=\E[6~:kP=\E[5~:kR=\E[b:kd=\E[B:\
3768	:kh=\E[7~:kl=\E[D:kr=\E[C:ku=\E[A:
3769
3770rxvt|rxvt terminal emulator (X Window System):\
3771	:NC@:\
3772	:ch=\E[%i%dG:cv=\E[%i%dd:k0=\E[21~:me=\E[m\017:\
3773	:tc=rxvt-basic:tc=ecma+color:
3774rxvt-color|rxvt terminal emulator (X Window System):\
3775	:tc=rxvt:
3776rxvt-256color|rxvt 2.7.9 with xterm 256-colors:\
3777	:tc=xterm+256color:tc=rxvt:
3778rxvt-88color|rxvt 2.7.9 with xterm 88-colors:\
3779	:tc=xterm+88color:tc=rxvt:
3780rxvt-xpm|rxvt terminal emulator (X Window System):\
3781	:tc=rxvt:
3782rxvt-cygwin|rxvt terminal emulator (X Window System) on cygwin:\
3783	:ac=+\257,\256-\1360\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:\
3784	:tc=rxvt:
3785rxvt-cygwin-native|rxvt terminal emulator (native MS Window System port) on cygwin:\
3786	:ac=+\257,\256-\1360\333`\004a\261f\370g\361h\260j\331k\277l\332m\300n\305o~p\304q\304r\304s_t\303u\264v\301w\302x\263y\363z\362{\343|\330~\376:\
3787	:tc=rxvt-cygwin:
3788
3789# This variant is supposed to work with rxvt 2.7.7 when compiled with
3790# NO_BRIGHTCOLOR defined.  rxvt needs more work...
3791rxvt-16color|xterm with 16 colors like aixterm:\
3792	:NC#32:tc=ibm+16color:tc=rxvt:
3793
3794#### MRXVT
3795# mrxvt 0.5.4
3796#
3797# mrxvt is based on rxvt 2.7.11, but has by default XTERM_FKEYS defined, which
3798# makes its function-keys different from other flavors of rxvt -TD
3799mrxvt|multitabbed rxvt:\
3800	:XT:\
3801	:#2=\E[7;2~:*7=\E[8;2~:@7=\E[8~:kd=\E[B:kh=\E[7~:kl=\E[D:\
3802	:kr=\E[C:ku=\E[A:tc=xterm+r6f2:tc=xterm+pcfkeys:tc=rxvt:
3803
3804mrxvt-256color|multitabbed rxvt with 256 colors:\
3805	:tc=xterm+256color:tc=mrxvt:
3806
3807#### ETERM
3808# From: Michael Jennings <mej@valinux.com>
3809#
3810# Eterm 0.9.3
3811#
3812# removed kf0 which conflicts with kf10 -TD
3813# remove cvvis which conflicts with cnorm -TD
3814# Eterm does not implement control/shift cursor keys such as kDN6, or kPRV/kNXT
3815# but does otherwise follow the rxvt+pcfkeys model -TD
3816# remove nonworking flash -TD
3817# remove km as per tack test -TD
3818# (sgr removed to fit entry within 1023 bytes)
3819# (acsc removed to fit entry within 1023 bytes)
3820Eterm|Eterm-color|Eterm with xterm-style color support (X Window System):\
3821	:5i:am:bw:eo:mi:ms:ut:xn:xo:XT:\
3822	:BT#5:NC@:co#80:it#8:li#24:lm#0:\
3823	:%1=\E[28~:%c@:%e@:@1=\EOu:@8=\EOM:AL=\E[%dL:DC=\E[%dP:\
3824	:DL=\E[%dM:DO=\E[%dB:IC=\E[%d@:K1=\E[7~:K2=\EOu:K3=\E[5~:\
3825	:K4=\E[8~:K5=\E[6~:Km=\E[M:LE=\E[%dD:RA=\E[?7l:RI=\E[%dC:\
3826	:SA=\E[?7h:UP=\E[%dA:ae=^O:al=\E[L:as=^N:bl=^G:cb=\E[1K:\
3827	:cd=\E[J:ce=\E[K:ch=\E[%i%dG:cl=\E[H\E[2J:cm=\E[%i%d;%dH:\
3828	:cr=^M:cs=\E[%i%d;%dr:ct=\E[3g:cv=\E[%i%dd:dc=\E[P:\
3829	:dl=\E[M:do=\E[B:eA=\E)0:ec=\E[%dX:ei=\E[4l:ho=\E[H:\
3830	:i1=\E[?47l\E>\E[?1l:ic=\E[@:im=\E[4h:\
3831	:is=\E[r\E[m\E[2J\E[H\E[?7h\E[?1;3;4;6l\E[4l:kb=^H:ke=:\
3832	:ks=:le=^H:mb=\E[5m:md=\E[1m:me=\E[0m:mr=\E[7m:nd=\E[C:\
3833	:pf=\E[4i:po=\E[5i:\
3834	:r1=\E>\E[1;3;4;5;6l\E[?7h\E[m\E[r\E[2J\E[H:\
3835	:r2=\E[r\E[m\E[2J\E[H\E[?7h\E[?1;3;4;6l\E[4l\E>\E[?1000l\E[?25h:\
3836	:rc=\E8:sc=\E7:se=\E[27m:sf=^J:so=\E[7m:sr=\EM:st=\EH:ta=^I:\
3837	:te=\E[2J\E[?47l\E8:ti=\E7\E[?47h:ue=\E[24m:up=\E[A:\
3838	:us=\E[4m:ve=\E[?25h:vi=\E[?25l:tc=vt100+enq:\
3839	:tc=rxvt+pcfkeys:tc=ecma+color:
3840
3841Eterm-256color|Eterm with xterm 256-colors:\
3842	:tc=xterm+256color:tc=Eterm:
3843
3844Eterm-88color|Eterm with 88 colors:\
3845	:tc=xterm+88color:tc=Eterm:
3846
3847#### ATERM
3848# Based on rxvt 2.4.8, it has a few differences in key bindings
3849aterm|AfterStep terminal:\
3850	:XT:\
3851	:k1=\EOP:k2=\EOQ:k3=\EOR:k4=\EOS:kb=\177:tc=rxvt:
3852
3853#### XITERM
3854# xiterm  0.5-5.2
3855# This is not based on xterm's source...
3856# vttest shows several problems with keyboard, cursor-movements.
3857# see also http://invisible-island.net/xterm/xterm.faq.html#bug_xiterm
3858xiterm|internationalized terminal emulator for X:\
3859	:km@:\
3860	:kD=\E[3~:kb=\177:tc=klone+color:tc=xterm-r6:
3861
3862
3863#### HPTERM
3864# HP ships this (HPUX 9 and 10), except for the pb#9600 which was merged in
3865# from BSD termcap.  (hpterm:  added empty <acsc>, we have no idea what ACS
3866# chars look like --esr)
3867hpterm|X-hpterm|hp X11 terminal emulator:\
3868	:am:da:db:mi:xs:\
3869	:Nl#8:co#80:lh#2:li#24:lm#0:lw#8:pb#9600:sg#0:ug#0:\
3870	:LF=\E&j@:LO=\E&jB:ac=:ae=^O:al=\EL:as=^N:bl=^G:bt=\Ei:\
3871	:cd=1\EJ:ce=\EK:ch=\E&a%dC:cl=\E&a0y0C\EJ:cm=\E&a%dy%dC:\
3872	:cr=^M:ct=\E3:cv=\E&a%dY:dc=\EP:dl=\EM:do=\EB:ei=\ER:im=\EQ:\
3873	:k1=\Ep:k2=\Eq:k3=\Er:k4=\Es:k5=\Et:k6=\Eu:k7=\Ev:k8=\Ew:\
3874	:kA=\EL:kC=\EJ:kD=\EP:kE=\EK:kF=\ES:kH=\EF:kI=\EQ:kL=\EM:\
3875	:kM=\ER:kN=\EU:kP=\EV:kR=\ET:kS=\EJ:kT=\E1:ka=\E3:kb=^H:\
3876	:kd=\EB:ke=\E&s0A:kh=\Eh:kl=\ED:kr=\EC:ks=\E&s1A:kt=\E2:\
3877	:ku=\EA:le=^H:md=\E&dB:me=\E&d@:mh=\E&dH:ml=\El:mr=\E&dB:\
3878	:mu=\Em:nd=\EC:se=\E&d@:sf=^J:so=\E&dJ:sr=\ET:st=\E1:ta=^I:\
3879	:ue=\E&d@:up=\EA:us=\E&dD:
3880# HPUX 11 provides a color version.
3881hpterm-color|HP X11 terminal emulator with color:\
3882	:cc:\
3883	:Co#64:pa#8:\
3884	:ho=\E&a0y0C:op=\E&v0S:sp=\E&v%dS:tc=hpterm:
3885
3886#### EMU
3887# This is for the extensible terminal emulator on the X11R6 contrib tape.
3888# It corresponds to emu's internal emulation:
3889#	emu -term emu
3890# emu's default sets TERM to "xterm", but that doesn't work well -TD
3891# fixes: remove bogus rmacs/smacs, change oc to op, add bce, am -TD
3892# fixes: add civis, cnorm, sgr -TD
3893emu|emu native mode:\
3894	:am:mi:ms:ut:xo:\
3895	:Co#15:co#80:it#8:li#24:pa#64:vt#200:\
3896	:*6=\Esel:@0=\Efind:@8=^M:AB=\Es%i%d;:AF=\Er%i%d;:\
3897	:AL=\EQ%d;:DC=\EI%d;:DL=\ER%d;:DO=\Ep%d;:F1=\EF11:\
3898	:F2=\EF12:F3=\EF13:F4=\EF14:F5=\EF15:F6=\EF16:F7=\EF17:\
3899	:F8=\EF18:F9=\EF19:FA=\EF20:LE=\Eq-%d;:RI=\Eq%d;:\
3900	:UP=\Ep-%d;:\
3901	:ac=61a\202f\260g2j\213k\214l\215m\216n\217o\220q\222s\224t\225u\226v\227w\230x\231~\244:\
3902	:al=\EQ1;:bl=^G:cb=\EL:cd=\EN:ce=\EK:cl=\EP\EE0;0;:\
3903	:cm=\EE%d;%d;:cr=^M:cs=\Ek%d;%d;:ct=\Ej:dc=\EI1;:dl=\ER1;:\
3904	:do=\EB:ec=\Ej%d;:ei=\EX:ho=\EE0;0;:im=\EY:\
3905	:is=\ES\Er0;\Es0;:k0=\EF00:k1=\EF01:k2=\EF02:k3=\EF03:\
3906	:k4=\EF04:k5=\EF05:k6=\EF06:k7=\EF07:k8=\EF08:k9=\EF09:\
3907	:k;=\EF10:kD=\177:kI=\Eins:kN=\Enext:kP=\Eprior:kb=^H:\
3908	:kd=\EB:kl=\EC:kr=\ED:ku=\EA:le=^H:mb=\EW:md=\EU:me=\ES:\
3909	:mr=\ET:nd=\EC:op=\Es0;\Er0;:rs=\ES\Es0;\Er0;:se=\ES:\
3910	:sf=\EG:so=\ET:sr=\EF:st=\Eh:ta=^I:ue=\ES:up=\EA:us=\EV:\
3911	:ve=\Ea:vi=\EZ:
3912
3913# vt220 Terminfo entry for the Emu emulation, corresponds to
3914#	emu -term vt220
3915# with NumLock set (to make the keypad transmit kf0-kf9).
3916# fixes: add am, xenl, corrected sgr0 -TD
3917# (sgr removed to fit entry within 1023 bytes)
3918# (acsc removed to fit entry within 1023 bytes)
3919# (terminfo-only capabilities suppressed to fit entry within 1023 bytes)
3920emu-220|Emu-220 (vt200-7bit mode):\
3921	:am:xn:xo:\
3922	:co#80:it#8:li#24:vt#200:\
3923	:AL=\E[%dL:DC=\E[%dP:DL=\E[%dM:DO=\E[%dB:LE=\E[%dD:\
3924	:RI=\E[%dC:UP=\E[%dA:ae=^O:al=\E[1L:as=^N:bl=^G:cd=\E[0J:\
3925	:ce=\E[0K:cl=\E[2J\E[H:cm=\E[%i%d;%dH:cr=^M:\
3926	:cs=\E[%i%d;%dr:ct=\E[3g:dc=\E[1P:dl=\E[1M:do=\E[1B:\
3927	:ho=\E[H:if=/usr/share/tabset/vt300:\
3928	:is=\E>\E[?1l\E[?3l\E[4l\E[?7h:k0=\EOp:k1=\EOq:k2=\EOr:\
3929	:k3=\EOs:k4=\EOt:k5=\EOu:k6=\EOv:k7=\EOw:k8=\EOx:k9=\EOy:\
3930	:kD=\E[3~:kI=\E[2~:kN=\E[6~:kP=\E[5~:kb=^H:kd=\E[B:ke=\E>:\
3931	:kl=\E[D:kr=\E[C:ks=\E=:ku=\E[A:le=\E[1D:mb=\E[0;5m:\
3932	:md=\E[0;1m:me=\E[0m:mr=\E[0;7m:nd=\E[1C:rc=\E8:\
3933	:rs=\E[4l\E[34l\E[?1l\E[?3l\E[?5l\E[?7h:sc=\E7:se=\E[m:\
3934	:sf=\ED:so=\E[0;7m:sr=\EM:st=\EH:ta=^I:te=\E>:ti=\E[?1l\E=:\
3935	:ue=\E[m:up=\E[1A:us=\E[0;4m:ve=\E[?25h:vi=\E[?25l:
3936
3937#### MVTERM
3938# A commercial product, Reportedly a version of Xterm with an OPEN LOOK UI,
3939# print interface, ANSI X3.64 colour escape sequences, etc.  Newsgroup postings
3940# indicate that it emulates more than one terminal, but incompletely.
3941#
3942# This is adapted from a FreeBSD bug-report by Daniel Rudy <dcrudy@pacbell.net>
3943# It is based on vt102's entry, with some subtle differences, but also
3944#	has status line
3945#	supports ANSI colors (except for 'op' string)
3946#	apparently implements alternate screen like xterm
3947#	does not use padding, of course.
3948mvterm|vv100|SwitchTerm aka mvTERM:\
3949	:am:es:hs:km:mi:ms:xn:\
3950	:Co#8:co#80:it#8:li#24:pa#64:\
3951	:AB=\E[4%dm:AF=\E[3%dm:AL=\E[%dL:DC=\E[%dP:DL=\E[%dM:\
3952	:DO=\E[%dB:IC=\E[%d@:LE=\E[%dD:RI=\E[%dC:UP=\E[%dA:\
3953	:ac=``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~:\
3954	:ae=^O:al=\E[L:as=^N:bl=^G:cb=3\E[1K:cd=\E[J:ce=\E[K:\
3955	:cl=\E[H\E[2J:cm=\E[%i%d;%dH:cr=^M:cs=\E[%i%d;%dr:\
3956	:ct=\E[3g:dc=\E[P:dl=\E[M:do=^J:ds=\E[?E:eA=\E(B\E)0:ei=:\
3957	:fs=\E[?F:ho=\E[H:ic=\E[@:im=:k0=\EOy:k5=\EOt:k6=\EOu:\
3958	:k7=\EOv:k8=\EOl:k9=\EOw:k;=\EOx:kb=^H:kd=\EOB:\
3959	:ke=\E[?1l\E>:kl=\EOD:kr=\EOC:ks=\E[?1h\E=:ku=\EOA:le=^H:\
3960	:mb=\E[5m:md=\E[1m:me=\E[0m:mr=\E[7m:nd=\E[C:op=\E[100m:\
3961	:rc=\E8:\
3962	:rs=\E>\E[1;3;4;5;6l\E[?7h\E[100m\E[m\E[r\E[2J\E[H:\
3963	:sc=\E7:se=\E[m:sf=^J:so=\E[7m:sr=\EM:st=\EH:ta=^I:\
3964	:te=\E[2J\E[?47l\E8:ti=\E7\E[?47h:ts=\E[?E\E[?%i%dT:\
3965	:ue=\E[m:up=\E[A:us=\E[4m:tc=vt100+fnkeys:
3966
3967#### MTERM
3968#
3969# This application is available by email from <mouse@Rodents.Montreal.QC.CA>.
3970#
3971# "mterm -type ansi" sets $TERM to "ansi"
3972mterm-ansi|ANSI emulation:\
3973	:am:bw:mi:ms:\
3974	:it#8:\
3975	:AL=\E[%dL:DC=\E[%dP:DL=\E[%dM:DO=\E[%dB:LE=\E[%dD:\
3976	:RI=\E[%dC:SF=\E[%dS:SR=\E[%dT:UP=\E[%dA:\
3977	:ac=``aaffggiijjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~:\
3978	:ae=^O:al=\E[L:as=^N:bl=^G:cd=\E[J:ce=\E[K:ch=\E[%i%d`:\
3979	:cl=\E[H\E[J:cm=\E[%i%d;%dH:cr=^M:cv=\E[%i%dd:dc=\E[P:\
3980	:dl=\E[M:do=\E[B:ec=\E[%dX:ei=\E[4l:ho=\E[H:ic=:im=\E[4h:\
3981	:is=\E)0\017:kb=^H:le=\E[D:mb=\E[5m:md=\E[1m:me=\E[0m:\
3982	:mh=\E[2m:mk=\E[8m:mr=\E[7m:nd=\E[C:nw=\EE:se=\E[27m:\
3983	:sf=\E[S:so=\E[7m:sr=\E[T:ta=^I:ue=\E[24m:up=\E[A:us=\E[4m:
3984# mterm normally sets $TERM to "mterm"
3985mterm|mouse-sun|Der Mouse term:\
3986	:am:bw:mi:\
3987	:it#8:\
3988	:al=^A:bl=^G:cd=^B:ce=^C:cl=^L:cm=\006%d.%d.:cr=^M:dc=^Y:\
3989	:dl=^K:do=^N:ei=^O:ho=^P:im=^Q:kb=^H:le=^H:ll=^R:nd=^S:\
3990	:nw=^M^U:se=^T:sf=^U:so=^V:sr=^W:ta=^I:up=^X:
3991# "mterm -type decansi" sets $TERM to "decansi"
3992#
3993# note: kdch1, kfnd, kslt are in the source code, but do not work -TD
3994# (sgr removed to fit entry within 1023 bytes)
3995# (acsc removed to fit entry within 1023 bytes)
3996# (terminfo-only capabilities suppressed to fit entry within 1023 bytes)
3997decansi|ANSI emulation with DEC compatibility hacks:\
3998	:am:mi:ms:xn:\
3999	:it#8:\
4000	:AL=\E[%dL:DC=\E[%dP:DL=\E[%dM:DO=\E[%dB:LE=\E[%dD:\
4001	:RI=\E[%dC:SF=\E[%dS:SR=\E[%dT:UP=\E[%dA:ae=^O:al=\E[L:\
4002	:as=^N:bl=^G:cd=\E[J:ce=\E[K:cl=\E[H\E[J:cm=\E[%i%d;%dH:\
4003	:cr=^M:cs=\E[%i%d;%dr:dc=\E[P:dl=\E[M:do=\E[B:ec=\E[%dX:\
4004	:ei=\E[4l:ho=\E[H:ic=:im=\E[4h:is=\E)0\E[r\017:k1=\E[11~:\
4005	:k2=\E[12~:k3=\E[13~:k4=\E[14~:k5=\E[15~:k6=\E[17~:\
4006	:k7=\E[18~:k8=\E[19~:k9=\E[20~:kD=\E[3~:kI=\E[2~:kN=\E[6~:\
4007	:kP=\E[5~:kb=^H:kd=\EOB:ke=\E[?1l\E>:kl=\EOD:kr=\EOC:\
4008	:ks=\E[?1h\E=:ku=\EOA:le=\E[D:mb=\E[5m:md=\E[1m:me=\E[0m:\
4009	:mh=\E[2m:mr=\E[7m:nd=\E[C:nw=\EE:rc=\E8:sc=\E7:se=\E[27m:\
4010	:sf=\E[S:so=\E[7m:sr=\E[T:ta=^I:ue=\E[24m:up=\E[A:us=\E[4m:\
4011	:ve=\E[?25h:vi=\E[?25l:
4012
4013#### VWM
4014#
4015# vwmterm is a terminal emulator written for the VWM console window manager
4016#
4017vwmterm|(vwm term):\
4018	:NP:am:cc:mi:ms:ut:xn:xo:\
4019	:Co#8:pa#64:\
4020	:@7=\E[4~:AB=\E[4%dm:AF=\E[3%dm:DO=\E[%dB:F1=\E[22~:\
4021	:F2=\E[23~:LE=\E[%dD:RA=\E[?7l:RI=\E[%dC:SA=\E[?7h:\
4022	:UP=\E[%dA:\
4023	:ac=``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~:\
4024	:ae=\E[10m:al=\E[L:as=\E[11m:bl=^G:cd=\E[J:ce=\E[K:\
4025	:cl=\E[H\E[J:cm=\E[%i%d;%dH:cr=^M:do=\E[B:ho=\E[H:\
4026	:k1=\E[[A:k2=\E[[B:k3=\E[[C:k4=\E[[D:k5=\E[[E:k6=\E[17~:\
4027	:k7=\E[18~:k8=\E[19~:k9=\E[20~:k;=\E[21~:kD=\E[3~:\
4028	:kN=\E[6~:kP=\E[5~:kd=\E[B:kh=\E[1~:kl=\E[D:kr=\E[C:\
4029	:ku=\E[A:le=^H:mb=\E[5m:md=\E[1m:me=\E[0m:mh=\E[2m:\
4030	:mk=\E[8m:mr=\E[7m:nd=\E[C:r1=\E[H\E[J\E[m\Ec:sf=^J:\
4031	:so=\E[3m:te=\E[?1049l:ti=\E[?1049h:up=\E[A:us=\E[4m:\
4032	:ve=\E[?25h:vi=\E[?25l:vs=\E[?25h:
4033
4034#### MGR
4035#
4036# MGR is a Bell Labs window system lighter-weight than X.
4037# These entries describe MGR's xterm-equivalent.
4038# They are courtesy of Vincent Broman <broman@nosc.mil> 14 Jan 1997
4039#
4040
4041mgr|Bellcore MGR (non X) window system terminal emulation:\
4042	:am:km:\
4043	:AL=3*\E%da:DC=5\E%dE:DL=3*\E%dd:IC=5\E%dA:RA=\E5S:\
4044	:SA=\E5s:al=3\Ea:bl=^G:cd=\EC:ce=\Ec:cl=^L:cm=\E%r%d;%dM:\
4045	:cr=^M:cs=\E%d;%dt:dc=\EE:dl=3\Ed:do=\Ef:ei=:hd=\E1;2f:\
4046	:hu=\E1;2u:ic=\EA:im=:kb=^H:kd=\E[B:kl=\E[D:kr=\E[C:ku=\E[A:\
4047	:le=^H:md=\E2n:me=\E0n:mr=\E1n:nd=\Er:nw=^M^J:se=\E0n:sf=^J:\
4048	:so=\E1n:ta=^I:ue=\E0n:up=\Eu:us=\E4n:ve=\Eh:vi=\E9h:\
4049	:vs=\E0h:
4050mgr-sun|Mgr window with Sun keyboard:\
4051	:%1=\E[207z:%6=\E[198z:&8=\E[195z:@0=\E[200z:@5=\E[197z:\
4052	:@7=\E[220z:@8=\E[250z:F1=\E[234z:F2=\E[235z:K1=\E[214z:\
4053	:K2=\E[218z:K3=\E[216z:K4=\E[220z:K5=\E[222z:k1=\E[224z:\
4054	:k2=\E[225z:k3=\E[226z:k4=\E[227z:k5=\E[228z:k6=\E[229z:\
4055	:k7=\E[230z:k8=\E[231z:k9=\E[232z:k;=\E[233z:kN=\E[222z:\
4056	:kP=\E[216z:kh=\E[214z:tc=mgr:
4057mgr-linux|Mgr window with Linux keyboard:\
4058	:@7=\E[4~:F1=\E[23~:F2=\E[24~:K1=\E[H:K2=\E[G:K3=\E[5~:\
4059	:K4=\E[Y:K5=\E[6~:k0=\E[[J:k1=\E[[A:k2=\E[[B:k3=\E[[C:\
4060	:k4=\E[[D:k5=\E[[E:k6=\E[17~:k7=\E[18~:k8=\E[19~:\
4061	:k9=\E[20~:k;=\E[21~:kD=\E[3~:kN=\E[6~:kP=\E[5~:kh=\E[1~:\
4062	:tc=mgr:
4063
4064#### SIMPLETERM
4065# st.suckless.org
4066# st-0.1.1
4067#
4068# Note:  the original terminfo description uses leading blank to persuade
4069# ncurses to use "st" as its name.  Proper fix for that is to use "st" as an
4070# alias.
4071#
4072# Reading the code shows it should work for aixterm 16-colors
4073# - added st-16color
4074#
4075# Using tack:
4076# - set eo (erase-overstrike)
4077# - set xenl
4078# - tbc doesn't work
4079# - hts works
4080# - cbt doesn't work
4081# - shifted cursor-keys send sequences like rxvt
4082# - sgr referred to unimplemented "invis" mode.
4083# Fixes: add eo and xenl per tack, remove nonworking cbt, hts and tbc, invis
4084simpleterm|st| simpleterm:\
4085	:am:eo:mi:ms:ul:xn:\
4086	:Co#8:NC#3:co#80:it#8:li#24:pa#64:\
4087	:@7=\E[4~:AB=\E[4%dm:AF=\E[3%dm:AL=\E[%dL:DO=\E[%dB:\
4088	:F1=\E[23~:F2=\E[24~:IC=\E[%d@:RI=\E[%dC:SF=\E[%dS:\
4089	:UP=\E[%dA:\
4090	:ac=``aaffggiijjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~:\
4091	:ae=\E(B:al=\E[L:as=\E(0:bl=^G:cd=\E[J:ce=\E[K:ch=\E[%i%dG:\
4092	:cl=\E[H\E[2J:cm=\E[%i%d;%dH:cr=^M:cs=\E[%i%d;%dr:\
4093	:dc=\E[P:dl=\E[M:do=^J:ei=:ho=\E[H:im=:k1=\EOP:k2=\EOQ:\
4094	:k3=\EOR:k4=\EOS:k5=\E[15~:k6=\E[17~:k7=\E[18~:k8=\E[19~:\
4095	:k9=\E[20~:k;=\E[21~:kD=\E[3~:kN=\E[6~:kP=\E[5~:kb=\177:\
4096	:kd=\E[B:kh=\E[1~:kl=\E[D:kr=\E[C:ku=\E[A:le=^H:md=\E[1m:\
4097	:me=\E[0m:mr=\E[7m:nd=\E[C:op=\E[37;40m:rc=\E8:sc=\E7:\
4098	:se=\E[m:sf=^J:so=\E[7m:ta=^I:ue=\E[m:up=\E[A:us=\E[4m:\
4099	:ve=\E[?12l\E[?25h:vi=\E[?25l:
4100st-16color|simpleterm with 16-colors:\
4101	:tc=ibm+16color:tc=simpleterm:
4102# 256 colors "works", but when running xterm's test-scripts, some garbage is
4103# shown in the titlebar.
4104st-256color|simpleterm with 256 colors:\
4105	:cc@:\
4106	:Ic@:tc=simpleterm:tc=xterm+256color:
4107
4108### TERMINATOR
4109# http://software.jessies.org/terminator/
4110# Tested using their Debian package org.jessies.terminator 6.104.3256 on 64-bit
4111# Debian/current -TD (2011/8/20)
4112#
4113# There are some packaging problems:
4114# a) using Java, the program starts off using 50Mb, and climbs from there,
4115#    up to 114Mb after testing (no scrollback).
4116# b) it insists on reinstalling its terminal description in $HOME/.terminfo
4117#    (two copies, just in case the host happens to be Mac OS X).
4118#    I deleted this after testing with tack.
4119#
4120# Issues/features found with tack:
4121# a) tbc does not work (implying that hts also is broken).
4122#    Comparing with the tabs utility shows a problem with the last tabstop on
4123#    a line.
4124# b) has xterm-style shifted function-key strings
4125#    meta also is used, but control is ignored.
4126# c) has xterm-style modifiers for cursor keys (shift, control, shift+control, meta)
4127# d) some combinations of shift/control send xterm-style sequences for
4128#    insert/delete/home/end.
4129# e) numeric keypad sends only numbers (compare with vttest).
4130# f) meta mode (km) is not implemented.
4131#
4132# Issues found with ncurses test-program:
4133# a) bce is inconsistently implemented
4134# b) widths of Unicode values above 256 do not always agree with wcwidth.
4135#
4136# Checked with vttest, found low degree of compatibility there.
4137#
4138# Checked with xterm's scripts, found that the 256-color palette is fixed.
4139#
4140# Fixes:
4141# a) add sgr string
4142# b) corrected sgr0 to reset alternate character set
4143# c) modified smacs/rmacs to use SCS rather than SI/SO
4144# d) removed bce
4145# e) removed km
4146# (sgr removed to fit entry within 1023 bytes)
4147# (acsc removed to fit entry within 1023 bytes)
4148# (terminfo-only capabilities suppressed to fit entry within 1023 bytes)
4149terminator|Terminator no line wrap:\
4150	:eo:mi:ms:xn:xo:\
4151	:co#80:it#8:li#24:lm#0:\
4152	:AL=\E[%dL:DC=\E[%dP:DL=\E[%dM:DO=\E[%dB:LE=\E[%dD:\
4153	:RI=\E[%dC:UP=\E[%dA:ae=\E(B:al=\E[L:as=\E(0:cd=\E[J:\
4154	:ce=\E[K:cl=\E[H\E[2J:cm=\E[%i%d;%dH:cr=^M:\
4155	:cs=\E[%i%d;%dr:ct=\E[3g:dc=\E[P:dl=\E[M:do=^J:\
4156	:ds=\E]2;\007:ei=\E[4l:fs=^G:ho=\E[H:i1=\E[?47l\E=\E[?1l:\
4157	:im=\E[4h:is=\E[r\E[m\E[2J\E[H\E[?7h\E[?1;3;4;6l\E[4l:\
4158	:k1=\EOP:k2=\EOQ:k3=\EOR:k4=\EOS:k5=\E[15~:k6=\E[17~:\
4159	:k7=\E[18~:k8=\E[19~:k9=\E[20~:kD=\E[3~:kI=\E[2~:kN=\E[6~:\
4160	:kP=\E[5~:kb=^H:kd=\E[B:kh=\E[1~:kl=\E[D:kr=\E[C:ku=\E[A:\
4161	:le=^H:md=\E[1m:me=\E[0m:mr=\E[7m:nd=\E[C:rc=\E8:sc=\E7:\
4162	:se=\E[27m:sf=^J:so=\E[7m:sr=\EM:st=\EH:ta=^I:\
4163	:te=\E[?47l\E8:ti=\E7\E[?47h:ts=\E]2;:ue=\E[24m:up=\E[A:\
4164	:us=\E[4m:vb=^G:ve=\E[?25h:vi=\E[?25l:
4165
4166######## UNIX VIRTUAL TERMINALS, VIRTUAL CONSOLES, AND TELNET CLIENTS
4167#
4168
4169# Columbus UNIX virtual terminal. This terminal also appears in
4170# UNIX 4.0 and successors as line discipline 1 (?), but is
4171# undocumented and does not really work quite right.
4172cbunix|cb unix virtual terminal:\
4173	:am:bs:da:db:\
4174	:co#80:li#24:lm#0:\
4175	:al=\EP:bl=^G:cd=\EL:ce=\EK:cl=\EL:cm=\EG%r%.%.:cr=^M:\
4176	:dc=\EM:dl=\EN:do=^J:ei=:ic=\EO:im=:kd=\EB:kh=\EE:kl=\ED:\
4177	:kr=\EC:ku=\EA:le=^H:nd=\EC:se=\Eb^D:sf=^J:so=\Ea^D:\
4178	:ue=\Eb^A:up=\EA:us=\Ea^A:
4179# (vremote: removed obsolete ":nl@:" -- esr)
4180vremote|virtual remote terminal:\
4181	:am@:\
4182	:co#79:tc=cbunix:
4183
4184pty|4bsd pseudo teletype:\
4185	:cm=\EG%+ %+ :se=\Eb$:so=\Ea$:ue=\Eb!:us=\Ea!:tc=cbunix:
4186
4187# The codes supported by the term.el terminal emulation in GNU Emacs 19.30
4188eterm|gnu emacs term.el terminal emulation:\
4189	:am:mi:xn:\
4190	:co#80:li#24:\
4191	:AL=\E[%dL:DC=\E[%dP:DL=\E[%dM:DO=\E[%dB:IC=\E[%d@:\
4192	:LE=\E[%dD:RI=\E[%dC:UP=\E[%dA:al=\E[L:bl=^G:cb=\E[1K:\
4193	:cd=\E[J:ce=\E[K:cl=\E[H\E[J:cm=\E[%i%d;%dH:cr=^M:\
4194	:cs=\E[%i%d;%dr:dc=\E[P:dl=\E[M:do=^J:ei=\E[4l:ho=\E[H:\
4195	:im=\E[4h:le=^H:md=\E[1m:me=\E[m:mr=\E[7m:nd=\E[C:se=\E[m:\
4196	:sf=^J:so=\E[7m:ta=^I:te=\E[2J\E[?47l\E8:ti=\E7\E[?47h:\
4197	:ue=\E[m:up=\E[A:us=\E[4m:
4198
4199# The codes supported by the term.el terminal emulation in GNU Emacs 22.2
4200eterm-color|Emacs term.el terminal emulator term-protocol-version 0.96:\
4201	:am:mi:ms:xn:\
4202	:Co#8:co#80:li#24:pa#64:\
4203	:@7=\E[4~:AB=\E[%+(m:AF=\E[%+^^m:AL=\E[%dL:DC=\E[%dP:\
4204	:DL=\E[%dM:DO=\E[%dB:IC=\E[%d@:LE=\E[%dD:RI=\E[%dC:\
4205	:UP=\E[%dA:al=\E[L:bl=^G:cb=\E[1K:cd=\E[J:ce=\E[K:\
4206	:cl=\E[H\E[J:cm=\E[%i%d;%dH:cr=^M:cs=\E[%i%d;%dr:dc=\E[P:\
4207	:dl=\E[M:do=^J:ei=\E[4l:ho=\E[H:im=\E[4h:kD=\E[3~:kI=\E[2~:\
4208	:kN=\E[6~:kP=\E[5~:kb=\177:kd=\EOB:kh=\E[1~:kl=\EOD:\
4209	:kr=\EOC:ku=\EOA:le=^H:mb=\E[5m:md=\E[1m:me=\E[m:mk=\E[8m:\
4210	:mr=\E[7m:nd=\E[C:op=\E[39;49m:r1=\Ec:rc=\E8:sc=\E7:\
4211	:se=\E[27m:sf=^J:so=\E[7m:sr=\EM:ta=^I:u6=\E[%i%d;%dR:\
4212	:u7=\E[6n:ue=\E[24m:up=\E[A:us=\E[4m:
4213
4214# Entries for use by the `screen' program by Juergen Weigert,
4215# Michael Schroeder, Oliver Laumann.  The screen and
4216# screen-w entries came with version 3.7.1.  The screen2 and screen3 entries
4217# come from University of Wisconsin and may be older.
4218# (screen: added :ve: on ANSI model -- esr)
4219#
4220# 'screen' defines extensions to termcap.  Some are used in its terminal
4221# description:
4222#      G0   (bool)  Terminal can deal with ISO 2022  font  selection sequences.
4223#      AX   (bool)  Does  understand ANSI set default fg/bg color
4224#                   (\E[39m / \E[49m).
4225#      S0   (str)   Switch charset 'G0' to the specified charset.
4226#      E0   (str)   Switch charset 'G0' back to standard charset.
4227#
4228# tested with screen 3.09.08
4229screen|VT 100/ANSI X3.64 virtual terminal:\
4230	:am:bs:km:mi:ms:pt:xn:G0:\
4231	:Co#8:NC@:co#80:it#8:li#24:pa#64:U8#1:\
4232	:@7=\E[4~:AL=\E[%dL:DC=\E[%dP:DL=\E[%dM:DO=\E[%dB:\
4233	:F1=\E[23~:F2=\E[24~:IC=\E[%d@:Km=\E[M:LE=\E[%dD:\
4234	:RI=\E[%dC:UP=\E[%dA:\
4235	:ac=++,,--..00``aaffgghhiijjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~:\
4236	:ae=^O:al=\E[L:as=^N:bl=^G:bt=\E[Z:cb=\E[1K:cd=\E[J:ce=\E[K:\
4237	:cl=\E[H\E[J:cm=\E[%i%d;%dH:cr=^M:cs=\E[%i%d;%dr:\
4238	:ct=\E[3g:dc=\E[P:dl=\E[M:do=^J:eA=\E(B\E)0:ei=\E[4l:\
4239	:ho=\E[H:im=\E[4h:is=\E)0:k1=\EOP:k2=\EOQ:k3=\EOR:k4=\EOS:\
4240	:k5=\E[15~:k6=\E[17~:k7=\E[18~:k8=\E[19~:k9=\E[20~:\
4241	:k;=\E[21~:kB=\E[Z:kD=\E[3~:kI=\E[2~:kN=\E[6~:kP=\E[5~:\
4242	:kb=^H:kd=\EOB:ke=\E[?1l\E>:kh=\E[1~:kl=\EOD:kr=\EOC:\
4243	:ks=\E[?1h\E=:ku=\EOA:le=^H:mb=\E[5m:md=\E[1m:me=\E[0m:\
4244	:mr=\E[7m:nd=\E[C:nw=\EE:rc=\E8:rs=\Ec\E[?1000l\E[?25h:\
4245	:sc=\E7:se=\E[23m:sf=^J:so=\E[3m:sr=\EM:st=\EH:ta=^I:\
4246	:te=\E[?1049l:ti=\E[?1049h:ue=\E[24m:up=\EM:us=\E[4m:\
4247	:vb=\Eg:ve=\E[34h\E[?25h:vi=\E[?25l:vs=\E[34l:E0=\E(B:\
4248	:S0=\E(%p1%c:tc=ecma+color:
4249# The bce and status-line entries are from screen 3.9.13 (and require some
4250# changes to .screenrc).
4251screen-bce|VT 100/ANSI X3.64 virtual terminal with bce:\
4252	:ut:\
4253	:ec@:tc=screen:
4254screen-s|VT 100/ANSI X3.64 virtual terminal with hardstatus line:\
4255	:ds=\E_\E\\:fs=\E\\:ts=\E_:tc=screen:
4256
4257# ======================================================================
4258# Entries for GNU Screen with 16 colors.
4259# Those variations permit to benefit from 16 colors palette, and from
4260# bold font and blink attribute separated from bright colors. But they
4261# are less portable than the generic "screen" 8 color entries: Their
4262# usage makes real sense only if the terminals you attach and reattach
4263# do all support 16 color palette.
4264
4265screen-16color|GNU Screen with 16 colors:\
4266	:tc=ibm+16color:tc=screen:
4267
4268screen-16color-s|GNU Screen with 16 colors and status line:\
4269	:tc=ibm+16color:tc=screen-s:
4270
4271screen-16color-bce|GNU Screen with 16 colors and BCE:\
4272	:tc=ibm+16color:tc=screen-bce:
4273
4274screen-16color-bce-s|GNU Screen with 16 colors, BCE, and status line:\
4275	:ut:tc=ibm+16color:tc=screen-s:
4276
4277# ======================================================================
4278# Entries for GNU Screen 4.02 with --enable-colors256.
4279
4280screen-256color|GNU Screen with 256 colors:\
4281	:cc@:\
4282	:Ic@:tc=xterm+256color:tc=screen:
4283
4284screen-256color-s|GNU Screen with 256 colors and status line:\
4285	:cc@:\
4286	:Ic@:tc=xterm+256color:tc=screen-s:
4287
4288screen-256color-bce|GNU Screen with 256 colors and BCE:\
4289	:cc@:\
4290	:Ic@:tc=xterm+256color:tc=screen-bce:
4291
4292screen-256color-bce-s|GNU Screen with 256 colors, BCE, and status line:\
4293	:cc@:ut:\
4294	:Ic@:tc=xterm+256color:tc=screen-s:
4295
4296# ======================================================================
4297
4298# Read the fine manpage:
4299#       When  screen  tries  to  figure  out  a  terminal name for
4300#       itself, it first looks for an entry named "screen.<term>",
4301#       where  <term>  is the contents of your $TERM variable.  If
4302#       no such entry exists, screen tries "screen" (or "screen-w"
4303#       if the terminal is wide (132 cols or more)).  If even this
4304#       entry cannot be found, "vt100" is used as a substitute.
4305#
4306# Notwithstanding the manpage, screen uses its own notion of the termcap
4307# and some keys from "screen.<term>" are ignored.  Here is an entry which
4308# covers those (tested with screen 4.00.02) -TD
4309screen+fkeys|function-keys according to screen:\
4310	:*6@:@0@:@7=\E[4~:k1=\EOP:k2=\EOQ:k3=\EOR:k4=\EOS:kh=\E[1~:
4311#
4312# Here are a few customized entries which are useful -TD
4313#
4314# Notes:
4315# (a)	screen does not support invis.
4316# (b)	screen's implementation of bw is incorrect according to tack.
4317# (c)	screen appears to hardcode the strings for khome/kend, making it
4318#	necessary to override the "use=" clause's values (screen+fkeys).
4319# (d)	screen sets $TERMCAP to a termcap-formatted copy of the 'screen' entry,
4320#	which is NOT the same as the terminfo screen.<term>.
4321# (e)	when screen finds one of these customized entries, it sets $TERM to
4322#	match.  Hence, no "screen.xterm" entry is provided, since that would
4323#	create heartburn for people running remote xterm's.
4324#
4325#	xterm (-xfree86 or -r6) does not normally support kIC, kNXT and kPRV
4326#	since the default translations override the built-in keycode
4327#	translation.  They are suppressed here to show what is tested by tack.
4328screen.xterm-xfree86|screen.xterm-new|screen customized for modern xterm:\
4329	:bw:ut@:\
4330	:#3@:%c@:%e@:mk@:ml@:mu@:tc=screen+fkeys:tc=xterm-new:
4331# xterm-r6 does not really support khome/kend unless it is propped up by
4332# the translations resource.
4333screen.xterm-r6|screen customized for X11R6 xterm:\
4334	:bw:tc=screen+fkeys:tc=xterm-r6:
4335# Color applications running in screen and TeraTerm do not play well together
4336# on Solaris because Sun's curses implementation gets confused.
4337screen.teraterm|disable ncv in teraterm:\
4338	:NC#127:\
4339	:ac=+\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:\
4340	:tc=screen+fkeys:tc=screen:
4341# Other terminals
4342screen.rxvt|screen in rxvt:\
4343	:bw:XT:\
4344	:kd=\EOB:kl=\EOD:kr=\EOC:ku=\EOA:vb@:vs@:tc=screen+fkeys:\
4345	:tc=vt100+enq:tc=rxvt+pcfkeys:tc=vt220+keypad:tc=screen:
4346screen.Eterm|screen in Eterm:\
4347	:tc=screen+fkeys:tc=Eterm:
4348screen.mrxvt|screen in mrxvt:\
4349	:tc=screen+fkeys:tc=mrxvt:
4350screen.vte|screen in any VTE-based terminal:\
4351	:tc=screen+fkeys:tc=vte:
4352screen.gnome|screen in GNOME Terminal:\
4353	:tc=screen+fkeys:tc=gnome:
4354screen.konsole|screen in KDE console window:\
4355	:tc=screen+fkeys:tc=konsole:
4356# fix the backspace key
4357screen.linux|screen in linux console:\
4358	:bw:\
4359	:kB@:kb=\177:tc=screen+fkeys:tc=screen:
4360screen.mlterm|screen in mlterm:\
4361	:tc=screen+fkeys:tc=mlterm:
4362
4363# The default "screen" entry is reasonably portable, but not optimal for the
4364# most widely-used terminal emulators.  The "bce" capability is supported in
4365# screen since 3.9.13, and when used, will require fewer characters to be sent
4366# to the terminal for updates.
4367#
4368# If you are using only terminals which support bce, then you can use this
4369# feature in your screen configuration.
4370#
4371# Adding these lines to your ".screenrc" file will allow using these customized
4372# entries:
4373#	term screen-bce
4374#	bce on
4375#	defbce on
4376screen-bce.xterm-new|screen optimized for modern xterm:\
4377	:ut:\
4378	:ec@:tc=screen.xterm-new:
4379screen-bce.rxvt|screen optimized for rxvt:\
4380	:ut:\
4381	:ec@:tc=screen.rxvt:
4382screen-bce.Eterm|screen optimized for Eterm:\
4383	:ut:\
4384	:ec@:tc=screen.Eterm:
4385screen-bce.mrxvt|screen optimized for mrxvt:\
4386	:ut:\
4387	:ec@:tc=screen.mrxvt:
4388screen-bce.gnome|screen optimized for GNOME-Terminal:\
4389	:ut:\
4390	:ec@:tc=screen.gnome:
4391screen-bce.konsole|screen optimized for KDE console window:\
4392	:ut:\
4393	:ec@:tc=screen.konsole:
4394screen-bce.linux|screen optimized for linux console:\
4395	:ut:\
4396	:ec@:tc=screen.linux:
4397screen-bce.mlterm|screen optimized for mlterm:\
4398	:ut:\
4399	:ec@:tc=screen.mlterm:
4400
4401screen-w|VT 100/ANSI X3.64 virtual terminal with 132 cols:\
4402	:co#132:tc=screen:
4403
4404screen2|old VT 100/ANSI X3.64 virtual terminal:\
4405	:co#80:it#8:li#24:\
4406	:AL=\E[%dL:DC=\E[%dP:DL=\E[%dM:DO=\E[%dB:IC=\E[%d@:\
4407	:LE=\E[%dD:RI=\E[%dC:UP=\E[%dA:al=\E[L:bt=\E[Z:cd=\E[J:\
4408	:ce=\E[K:cl=\E[2J\E[H:cm=\E[%i%d;%dH:cr=^M:ct=\E[3g:\
4409	:dc=\E[P:dl=\E[M:do=\E[B:ei=\E[4l:ic=:im=\E[4h:k0=\E~:\
4410	:k1=\ES:k2=\ET:k3=\EU:k4=\EV:k5=\EW:k6=\EP:k7=\EQ:k8=\ER:\
4411	:k9=\E0I:kb=^H:kd=\EB:kh=\EH:kl=\ED:kr=\EC:ku=\EA:le=^H:\
4412	:me=\E[m:nd=\E[C:nw=^M^J:r1=\Ec:rc=\E8:sc=\E7:se=\E[23m:\
4413	:sf=^J:so=\E[3m:sr=\EM:st=\EH:ta=^I:ue=\E[24m:up=\E[A:\
4414	:us=\E[4m:
4415# (screen3: removed unknown ":xv:LP:G0:" -- esr)
4416screen3|older VT 100/ANSI X3.64 virtual terminal:\
4417	:km:mi:ms:\
4418	:co#80:it#8:li#24:\
4419	:AL=\E[%dL:DC=\E[%dP:DL=\E[%dM:DO=\E[%dB:IC=\E[%d@:\
4420	:LE=\E[%dD:RI=\E[%dC:UP=\E[%dA:al=\E[L:bl=^G:bt=\E[Z:\
4421	:cd=\E[J:ce=\E[K:cl=\E[H\E[J:cm=\E[%i%d;%dH:cr=^M:\
4422	:cs=\E[%i%d;%dr:ct=\E[3g:dc=\E[P:dl=\E[M:do=^J:ei=\E[4l:\
4423	:ho=\E[H:im=\E[4h:is=\E)0:k1=\EOP:k2=\EOQ:k3=\EOR:k4=\EOS:\
4424	:kb=^H:kd=\EOB:ke=\E>:kl=\EOD:kr=\EOC:ks=\E=:ku=\EOA:le=^H:\
4425	:mb=\E[5m:md=\E[1m:me=\E[m:mr=\E[7m:nd=\E[C:nw=\EE:r1=\Ec:\
4426	:rc=\E8:sc=\E7:se=\E[23m:sf=^J:so=\E[3m:sr=\EM:st=\EH:ta=^I:\
4427	:ue=\E[24m:up=\EM:us=\E[4m:
4428
4429# Francesco Potorti <F.Potorti@cnuce.cnr.it>:
4430# NCSA telnet is one of the most used telnet clients for the Macintosh.  It has
4431# been maintained until recently by the National Center for Supercomputer
4432# Applications, and it is feature rich, stable and free.  It can be downloaded
4433# from www.ncsa.edu.  This terminfo description file is based on xterm-vt220,
4434# xterm+sl, and the docs at NCSA.  It works well.
4435#
4436# NCSA Telnet 2.6 for Macintosh in vt220 8-bit emulation mode
4437# The terminal options should be set as follows:
4438#         Xterm sequences ON
4439#         use VT wrap mode ON
4440#         use Emacs arrow keys OFF
4441#         CTRL-COMND is Emacs meta ON
4442#         8 bit mode ON
4443#         answerback string: "ncsa-vt220-8"
4444#         setup keys: all disabled
4445#
4446# Application mode is not used.
4447#
4448# Other special mappings:
4449#	Apple		VT220
4450#	HELP 		Find
4451#	HOME		Insert here
4452#	PAGEUP		Remove
4453#	DEL		Select
4454#	END		Prev Screen
4455#	PAGEDOWN	Next Screen
4456#
4457# Though it supports ANSI color, NCSA Telnet uses color to represent blinking
4458# text.
4459#
4460# The status-line manipulation is a mapping of the xterm-compatible control
4461# sequences for setting the window-title.  So you must use tsl and fsl in
4462# pairs, since the latter ends the string that is loaded to the window-title.
4463# (sgr removed to fit entry within 1023 bytes)
4464# (acsc removed to fit entry within 1023 bytes)
4465# (terminfo-only capabilities suppressed to fit entry within 1023 bytes)
4466ncsa-m|ncsa-vt220-8|NCSA Telnet 2.6 for Macintosh in vt220-8 mode:\
4467	:am:hs:km:mi:ms:xn:\
4468	:AL=\E[%dL:DC=\E[%dP:DL=\E[%dM:DO=\E[%dB:IC=\E[%d@:\
4469	:LE=\E[%dD:RI=\E[%dC:UP=\E[%dA:ae=\E(B:al=\E[L:as=\E(0:\
4470	:bl=^G:cd=\E[J:ce=\E[K:cl=\E[H\E[2J:cm=\E[%i%d;%dH:cr=^M:\
4471	:cs=\E[%i%d;%dr:ct=\E[3g:dc=\E[P:dl=\E[M:do=^J:\
4472	:ds=\E]0;\007:ei=\E[4l:fs=^G:ho=\E[H:\
4473	:if=/usr/share/tabset/vt100:im=\E[4h:\
4474	:is=\E7\E[r\E[m\E[?7h\E[?1;4;6l\E[4l\E8\E>:k1=\E[17~:\
4475	:k2=\E[18:k3=\E[19~:k4=\E[20~:k5=\E[21~:k6=\E[23~:\
4476	:k7=\E[24~:k8=\E[25~:k9=\E[26~:kD=\E[4~:kN=\E[6~:kP=\E[3~:\
4477	:kb=^H:kd=\E[B:kh=\E[2~:kl=\E[D:kr=\E[C:ku=\E[A:le=^H:\
4478	:mb=\E[5m:md=\E[1m:me=\E[0m:mr=\E[7m:nd=\E[C:rc=\E8:\
4479	:rs=\E7\E[r\E8\E[m\E[?7h\E[?1;4;6l\E[4l\E>:sc=\E7:\
4480	:se=\E[27m:sf=150*\n:so=\E[7m:sr=\EM:st=\EH:ta=^I:\
4481	:te=\E[2J\E8:ti=\E7:ts=\E]0;:ue=\E[24m:up=\E[A:us=\E[4m:\
4482	:vb=\E[?5h\E[?5l:ve=\E[?25h:vi=\E[?25l:tc=ansi+enq:
4483ncsa|NCSA Telnet 2.7 for Macintosh in vt220-8 mode:\
4484	:tc=ncsa-m:tc=klone+color:
4485ncsa-ns|NCSA Telnet 2.7 for Macintosh in vt220-8 mode:\
4486	:hs@:\
4487	:ds@:fs@:ts@:tc=ncsa:
4488ncsa-m-ns|NCSA Telnet 2.6 for Macintosh in vt220-8 mode:\
4489	:hs@:\
4490	:ds@:fs@:ts@:tc=ncsa-m:
4491# alternate -TD:
4492# The documented function-key mapping refers to the Apple Extended Keyboard
4493# (e.g., NCSA Telnet's F1 corresponds to a VT220 F6).  We use the VT220-style
4494# codes, however, since the numeric keypad (VT100) PF1-PF4 are available on
4495# some keyboards and many applications require these as F1-F4.
4496#
4497ncsa-vt220|NCSA Telnet using vt220-compatible function keys:\
4498	:F1=\E[23~:F2=\E[24~:F3=\E[25~:F4=\E[26~:F5=\E[28~:\
4499	:F6=\E[29~:F7=\E[31~:F8=\E[32~:F9=\E[33~:FA=\E[34~:\
4500	:k1=\EOP:k2=\EOQ:k3=\EOR:k4=\EOS:k6=\E[17~:k7=\E[18~:\
4501	:k8=\E[19~:k9=\E[20~:k;=\E[21~:tc=ncsa:
4502
4503#### Pilot Pro Palm-Top
4504#
4505# Termcap for Top Gun Telnet and SSH on the Palm Pilot.
4506# http://www.ai/~iang/TGssh/
4507pilot|tgtelnet|Top Gun Telnet on the Palm Pilot Professional:\
4508	:am:bs:xn:\
4509	:co#39:li#16:\
4510	:bl=^G:cl=\Ec:cm=\Em%+ %+ :cr=^M:do=^J:ho=\Em\040\040:\
4511	:kN=^L:kP=^K:kb=^H:kd=^J:kl=^H:le=^H:nw=\Em~\040:se=\EB:\
4512	:sf=^J:so=\Eb:ta=^I:
4513
4514# From: Federico Bianchi <bianchi@www.arte.unipi.it>
4515# These entries are for the Embeddable Linux Kernel System (ELKS)
4516# project - an heavily stripped down Linux to be run on 16 bit
4517# boxes or, eventually, to be used in embedded systems - and have been
4518# adapted from the stock ELKS termcap. The project itself looks stalled,
4519# and the latest improvements I know of date back to March 2000.
4520#
4521# To cope with the ELKS dumb console I added an "elks-glasstty" entry;
4522# as an added bonus, this deals with all the capabilities common to
4523# both VT52 and ANSI (or, eventually, "special") modes.
4524
4525elks-glasstty|ELKS glass-TTY capabilities:\
4526	:am:bs:\
4527	:co#80:it#8:li#25:\
4528	:bl=^G:cr=^M:kb=^H:kd=^J:kl=^H:nw=^M^J:sf=^J:ta=^I:
4529
4530elks-vt52|ELKS vt52 console:\
4531	:ce=\EK:cl=\EH\EJ:cm=\EY%+ %+ :do=\EB:ho=\EH:le=\ED:nd=\EC:\
4532	:up=\EA:tc=elks-glasstty:
4533
4534elks-ansi|ELKS ANSI console:\
4535	:ce=\E[K:cl=\E[H\E[2J:cm=\E[%i%d;%dH:do=\E[B:ho=\E[H:\
4536	:le=\E[D:nd=\E[C:se=\E[m:so=\E[7m:up=\E[A:\
4537	:tc=elks-glasstty:
4538
4539# As a matter of fact, ELKS 0.0.83 on PCs defaults to ANSI emulation
4540# instead of VT52, but the "elks" entry still refers to the latter.
4541
4542elks|default ELKS console:\
4543	:tc=elks-vt52:
4544
4545# Project SIBO (for Psion 3 palmtops) console is identical to the ELKS
4546# one but in screen size
4547
4548sibo|ELKS SIBO console:\
4549	:co#61:it#8:li#20:tc=elks-vt52:
4550
4551######## COMMERCIAL WORKSTATION CONSOLES
4552#
4553
4554#### Alpha consoles
4555#
4556
4557# This is from the OSF/1 Release 1.0 termcap file
4558pccons|pcconsole|ANSI (mostly) Alpha PC console terminal emulation:\
4559	:am:xo:\
4560	:co#80:li#25:\
4561	:al=\E[L:bl=^G:ce=\E[K:cl=\E[H\E[2J:cm=\E[%i%d;%dH:cr=^M:\
4562	:dc=\E[P:dl=\E[M:do=^J:ei=:ho=\E[H:ic=\E[@:im=:kb=^H:kd=\E[B:\
4563	:kh=\E[H:kl=\E[D:kr=\E[C:ku=\E[A:le=^H:me=\E[m:mr=\E[7m:\
4564	:nd=\E[C:nw=^M^J:se=\E[m:so=\E[7m:ta=^I:up=\E[A:
4565
4566#### Sun consoles
4567#
4568
4569# :is1: resets scrolling region in case a previous user had used "tset vt100"
4570oldsun|Sun Microsystems Workstation console:\
4571	:am:bs:km:mi:ms:\
4572	:co#80:it#8:li#34:\
4573	:AL=\E[%dL:DC=\E[%dP:DL=\E[%dM:IC=\E[%d@:al=\E[L:bl=^G:\
4574	:cd=\E[J:ce=\E[K:cl=^L:cm=\E[%i%d;%dH:cr=^M:dc=\E[P:\
4575	:dl=\E[M:do=\E[B:ei=:i1=\E[1r:ic=\E[@:im=:k1=\EOP:k2=\EOQ:\
4576	:k3=\EOR:k4=\EOS:kd=\E[B:kh=\E[H:kl=\E[D:kr=\E[C:ku=\E[A:\
4577	:le=^H:me=\E[m:nd=\E[C:se=\E[m:sf=^J:so=\E[7m:ta=^I:up=\E[A:
4578# From: Alexander Lukyanov <lav@video.yars.free.net>, 14 Nov 1995
4579# :li: capability later corrected by J.T. Conklin <jtc@cygnus.com>
4580# SGR 1, 4 aren't supported - removed bold/underline (T.Dickey 17 Jan 1998)
4581sun-il|Sun Microsystems console with working insert-line:\
4582	:am:km:ms:\
4583	:co#80:li#34:\
4584	:%7=\E[194z:&5=\E[193z:&8=\E[195z:@7=\E[220z:AL=\E[%dL:\
4585	:DC=\E[%dP:DL=\E[%dM:F1=\E[234z:F2=\E[235z:IC=\E[%d@:\
4586	:K2=\E[218z:al=\E[L:bl=^G:cd=\E[J:ce=\E[K:cl=^L:\
4587	:cm=\E[%i%d;%dH:cr=^M:dc=\E[P:dl=\E[M:do=^J:ei=:ic=\E[@:im=:\
4588	:k1=\E[224z:k2=\E[225z:k3=\E[226z:k4=\E[227z:k5=\E[228z:\
4589	:k6=\E[229z:k7=\E[230z:k8=\E[231z:k9=\E[232z:k;=\E[233z:\
4590	:kD=\177:kI=\E[247z:kN=\E[222z:kP=\E[216z:kb=^H:kd=\E[B:\
4591	:kh=\E[214z:kl=\E[D:kr=\E[C:ku=\E[A:le=^H:me=\E[m:mr=\E[7m:\
4592	:nd=\E[C:rs=\E[s:se=\E[m:sf=^J:so=\E[7m:ta=^I:u8=\E[1t:\
4593	:u9=\E[11t:ue@:up=\E[A:
4594# On some versions of CGSIX framebuffer firmware (SparcStation 5), :al:/:AL:
4595# flake out on the last line.  Unfortunately, without them the terminal has no
4596# way to scroll.
4597sun-cgsix|sun-ss5|Sun SparcStation 5 console:\
4598	:AL@:al@:tc=sun-il:
4599# If you are using an SS5, change the sun definition to use sun-ss5.
4600sun|sun1|sun2|Sun Microsystems Inc. workstation console:\
4601	:tc=sun-il:
4602
4603# From: <john@ucbrenoir>  Tue Sep 24 13:14:44 1985
4604sun-s|Sun Microsystems Workstation window with status line:\
4605	:hs:\
4606	:ds=\E]l\E\\:fs=\E\\:ts=\E]l:tc=sun:
4607sun-e-s|sun-s-e|Sun Microsystems Workstation with status hacked for emacs:\
4608	:hs:\
4609	:ds=\E]l\E\\:fs=\E\\:ts=\E]l:tc=sun-e:
4610sun-48|Sun 48-line window:\
4611	:co#80:li#48:tc=sun:
4612sun-34|Sun 34-line window:\
4613	:co#80:li#34:tc=sun:
4614sun-24|Sun 24-line window:\
4615	:co#80:li#24:tc=sun:
4616sun-17|Sun 17-line window:\
4617	:co#80:li#17:tc=sun:
4618sun-12|Sun 12-line window:\
4619	:co#80:li#12:tc=sun:
4620sun-1|Sun 1-line window for sysline:\
4621	:es:hs:\
4622	:co#80:li#1:\
4623	:ds=^L:fs=\E[K:ts=^M:tc=sun:
4624sun-e|sun-nic|sune|Sun Microsystems Workstation without insert character:\
4625	:ei@:ic@:im@:tc=sun:
4626sun-c|sun-cmd|Sun Microsystems Workstation console with scrollable history:\
4627	:li#35:\
4628	:te=\E[>4h:ti=\E[>4l:tc=sun:
4629sun-type4|Sun Workstation console with type 4 keyboard:\
4630	:kd=\E[221z:kl=\E[217z:kr=\E[219z:ku=\E[215z:tc=sun-il:
4631
4632# Most of the current references to sun-color are from users wondering why this
4633# is the default on install.  Details from reading the wscons manpage, adding
4634# cub, etc., here (rather than in the base sun-il entry) since it is not clear
4635# when those were added -TD (2005-05-28)
4636#
4637# According to wscons manpage, color is supported only on IA systems.
4638# Sun's terminfo entry documents bold and smul/rmul capabilities, but wscons
4639# does not list these.  It also sets ncv#3, however that corresponds to
4640# underline and standout.
4641#
4642# Since the documentation and terminfo do not agree, see also current code at
4643# http://src.opensolaris.org/source/xref/onnv/onnv-gate/usr/src/uts/common/io/tem_safe.c
4644#
4645# That (actually a different driver which "supports" sun-color) also supports
4646# these features:
4647#	vpa=\E[%i%p1%dd
4648#	hpa=\E[%i%p1%d`
4649#	cbt=\E[Z
4650#	dim=\E[2m
4651#	blink=\E[5m
4652# It supports bold, but not underline -TD (2009-09-19)
4653sun-color|Sun Microsystems Workstation console with color support (IA systems):\
4654	:Co#8:NC#3:pa#64:\
4655	:AB=\E[4%dm:AF=\E[3%dm:DO=\E[%dB:LE=\E[%dD:RI=\E[%dC:\
4656	:UP=\E[%dA:ho=\E[H:op=\E[0m:so=\E[1m:tc=sun:
4657
4658#### Iris consoles
4659#
4660
4661# (wsiris: this had extension capabilities
4662#	:HS=\E7F2:HE=\E7F7:\
4663#	:CT#2:CZ=*Bblack,red,green,yellow,blue,magenta,cyan,*Fwhite:
4664# See the note on Iris extensions near the end of this file.
4665# Finally, removed suboptimal :cl:=\EH\EJ and added :do: &
4666# :vb: from BRL -- esr)
4667wsiris|iris40|iris emulating a 40 line visual 50 (approximately):\
4668	:am:bs:nc:pt:\
4669	:co#80:it#8:kn#3:li#40:\
4670	:al=\EL:bl=^G:cd=\EJ:ce=\EK:cl=\Ev:cm=\EY%+ %+ :dl=\EM:\
4671	:do=\EB:ho=\EH:is=\E7B0\E7F7\E7C2\E7R3:k0=\E0:k1=\E1:\
4672	:k2=\E2:k3=\E3:k4=\E4:k5=\E5:k6=\E6:k7=\E7:k8=\E8:k9=\E9:\
4673	:kd=\EB:kl=\ED:kr=\EC:ku=\EA:le=^H:me=\E7F7:mh=\E7F2:nd=\EC:\
4674	:nl=\EB:se=\E0@:sf=^J:so=\E9P:sr=\EI:ta=^I:ue=\E7R3\E0@:\
4675	:up=\EA:us=\E7R2\E9P:vb=\E7F4\E7B1\013\E7F7\E7B0:ve=\E>:\
4676	:vs=\E;:
4677
4678#### NeWS consoles
4679#
4680# Console terminal windows under the NeWS (Sun's Display Postscript windowing
4681# environment).   Note: these have nothing to do with Sony's News workstation
4682# line.
4683#
4684
4685# Entry for NeWS's psterm from Eric Messick & Hugh Daniel
4686# (psterm: unknown ":sl=\EOl:el=\ENl:" removed -- esr)
4687psterm|psterm-basic|NeWS psterm-80x34:\
4688	:am:bs:hs:km:ul:\
4689	:co#80:it#8:li#34:\
4690	:al=\EA:cd=\EB:ce=\EC:cl=^L:cm=\E%d;%d;:cs=\EE%d;%d;:\
4691	:dc=\EF:dl=\EK:do=\EP:ei=\ENi:fs=\ENl:ho=\ER:i1=\EN*:\
4692	:im=\EOi:kd=\E[B:kl=\E[D:kr=\E[C:ku=\E[A:le=\ET:ll=\EU:\
4693	:mb=\EOb:md=\EOd:me=\EN*:mr=\EOr:nd=\EV:rc=^\:sc=^]:se=\ENo:\
4694	:sf=\EW:so=\EOo:sr=\EX:ta=^I:te=\ENt:ti=\EOt:ts=\EOl:\
4695	:ue=\ENu:up=\EY:us=\EOu:vb=\EZ:
4696psterm-96x48|NeWS psterm 96x48:\
4697	:co#96:li#48:tc=psterm:
4698psterm-90x28|NeWS psterm 90x28:\
4699	:co#90:li#28:tc=psterm:
4700psterm-80x24|NeWS psterm 80x24:\
4701	:co#80:li#24:tc=psterm:
4702# This is a faster termcap for psterm.  Warning:  if you use this termcap,
4703# some control characters you type will do strange things to the screen.
4704# (psterm-fast: unknown ":sl=^Ol:el=^Nl:" -- esr)
4705psterm-fast|NeWS psterm fast version (flaky ctrl chars):\
4706	:am:bs:hs:km:ul:\
4707	:co#80:it#8:li#34:\
4708	:al=^A:cd=^B:ce=^C:cl=^L:cm=\004%d;%d;:cs=\005%d;%d;:dc=^F:\
4709	:dl=^K:do=^P:ei=^Ni:fs=^Nl:ho=^R:i1=^N*:im=^Oi:kd=\E[B:\
4710	:kl=\E[D:kr=\E[C:ku=\E[A:le=^T:ll=^U:mb=^Ob:md=^Od:me=^N*:\
4711	:mr=^Or:nd=^V:rc=^\:sc=^]:se=^No:sf=^W:so=^Oo:sr=^X:ta=^I:\
4712	:te=^Nt:ti=^Ot:ts=^Ol:ue=^Nu:up=^Y:us=^Ou:vb=^Z:
4713
4714#### NeXT consoles
4715#
4716# Use `glasstty' for the Workspace application
4717#
4718
4719# From: Dave Wetzel <dave@turbocat.snafu.de> 22 Dec 1995
4720next|NeXT console:\
4721	:am:xt:\
4722	:co#80:it#8:li#24:\
4723	:bl=^G:ce=\E[K:cl=^L:cm=\E[%i%d;%dH:cr=^M:do=^J:ho=\E[H:\
4724	:kb=^H:kd=^J:kl=^H:le=^H:me=\E[m:nd=\E[C:nw=^M^J:se=\E[4;1m:\
4725	:sf=^J:so=\E[4;2m:ta=^I:up=\E[A:
4726nextshell|NeXT Shell application:\
4727	:am:\
4728	:co#80:\
4729	:bl=^G:cr=^M:do=^J:kb=^H:kd=^J:kl=^H:le=^H:nw=^M^J:ta=^I:
4730
4731#### Sony NEWS workstations
4732#
4733
4734# (news-unk: this had :KB=news: -- esr)
4735news-unk|SONY NEWS vt100 emulator common entry:\
4736	:am:bs:pt:xn:\
4737	:co#80:\
4738	:AL=\E[%dL:DL=\E[%dM:al=\E[L:bl=^G:cd=\E[J:ce=\E[K:\
4739	:cl=\E[H\E[2J:cm=\E[%i%d;%dH:cr=^M:cs=\E[%i%d;%dr:\
4740	:dl=\E[M:do=^J:ho=\E[H:if=/usr/share/tabset/vt100:\
4741	:is=\E[?7h\E[?1l\E[?3l\E7\E8:k0=\EOY:k1=\EOP:k2=\EOQ:\
4742	:k3=\EOR:k4=\EOS:k5=\EOT:k6=\EOU:k7=\EOV:k8=\EOW:k9=\EOX:\
4743	:kb=^H:kd=\EOB:ke=\E[?1l\E>:kl=\EOD:kr=\EOC:ks=\E[?1h\E=:\
4744	:ku=\EOA:le=^H:mb=\E[5m:md=\E[1m:me=\E[m:mr=\E[7m:nd=\E[C:\
4745	:nl=^J:rc=\E8:rs=\E>\E[?3l\E[?4l\E[?5l\E[?7h\E[?8h\E[r:\
4746	:sc=\E7:se=\E[m:so=\E[7m:sr=\EM:ta=^I:ue=\E[m:up=\E[A:\
4747	:us=\E[4m:
4748#
4749# (news-29: this had :TY=ascii: --esr)
4750news-29:\
4751	:li#29:tc=news-unk:
4752# (news-29-euc: this had :TY=euc: --esr)
4753news-29-euc:\
4754	:tc=news-29:
4755# (news-29-sjis: this had :TY=sjis: --esr)
4756news-29-sjis:\
4757	:tc=news-29:
4758#
4759# (news-33: this had :TY=ascii: --esr)
4760news-33:\
4761	:li#33:tc=news-unk:
4762# (news-33-euc: this had :TY=euc: --esr)
4763news-33-euc:\
4764	:tc=news-33:
4765# (news-33-sjis: this had :TY=sjis: --esr)
4766news-33-sjis:\
4767	:tc=news-33:
4768#
4769# (news-42: this had :TY=ascii: --esr)
4770news-42:\
4771	:li#42:tc=news-unk:
4772# (news-42-euc: this had :TY=euc: --esr)
4773news-42-euc:\
4774	:tc=news-42:
4775# (news-42-sjis: this had :TY=sjis: --esr)
4776news-42-sjis:\
4777	:tc=news-42:
4778#
4779#	NEWS-OS old termcap entry
4780#
4781# (news-old-unk: this had :KB=news:TY=sjis: --esr)
4782news-old-unk|SONY NEWS vt100 emulator common entry:\
4783	:am:bs:pt:xn:\
4784	:co#80:vt#3:\
4785	:bl=^G:cd=\E[J:ce=\E[K:cl=\E[;H\E[2J:cm=\E[%i%d;%dH:cr=^M:\
4786	:cs=\E[%i%d;%dr:do=^J:ho=\E[H:\
4787	:if=/usr/share/tabset/vt100:k1=\EOP:k2=\EOQ:k3=\EOR:\
4788	:k4=\EOS:kb=^H:kd=\EOB:ke=\E[?1l\E>:kl=\EOD:kr=\EOC:\
4789	:ks=\E[?1h\E=:ku=\EOA:le=^H:mb=\E[5m:md=\E[1m:me=\E[m:\
4790	:mr=\E[7m:nd=\E[C:nl=^J:rc=\E8:\
4791	:rs=\E>\E[?3l\E[?4l\E[?5l\E[?7h\E[?8h:sc=\E7:se=\E[m:\
4792	:so=\E[7m:sr=\EM:ta=^I:ue=\E[m:up=\E[A:us=\E[4m:
4793#
4794# (nwp512: this had :DE=^H:, which I think means :bs: --esr)
4795nwp512|news|nwp514|news40|vt100-bm|old sony vt100 emulator 40 lines:\
4796	:bs:\
4797	:li#40:\
4798	:is=\E7\E[r\E8\EE\EE\EE\EM\EM\EM\E[?7h\E[?1l\E[?3l\E7\E[1;40r\E8:\
4799	:tc=news-old-unk:
4800#
4801# (nwp512-a: this had :TY=ascii: and the alias vt100-bm --esr)
4802nwp512-a|nwp514-a|news-a|news42|news40-a|sony vt100 emulator 42 line:\
4803	:li#42:\
4804	:is=\E[?7h\E[?1l\E[?3l\E7\E[1;42r\E8:tc=news-old-unk:
4805#
4806# (nwp-512-o: this had :KB=nwp410:DE=^H:  I interpret the latter as :bs:. --esr)
4807nwp512-o|nwp514-o|news-o|news40-o|vt100-bm-o|sony vt100 emulator 40 lines:\
4808	:bs:\
4809	:li#40:\
4810	:is=\E7\E[r\E8\EE\EE\EE\EM\EM\EM\E[?7h\E[?1l\E[?3l\E7\E[1;40r\E8:\
4811	:tc=news-old-unk:
4812#
4813# (nwp513: this had :DE=^H: and the alias vt100-bm --esr)
4814nwp513|nwp518|nwe501|newscbm|news31|sony vt100 emulator 33 lines:\
4815	:bs:\
4816	:li#31:\
4817	:is=\E7\E[r\E8\EE\EE\EE\EM\EM\EM\E[?7h\E[?1l\E[?3l\E7\E[1;31r\E8:\
4818	:tc=news-old-unk:
4819#
4820# (nwp513-a: this had :TY=ascii: and :DE=^H:, which I interpret as :bs:; --esr)
4821# also the alias vt100-bm.
4822nwp513-a|nwp518-a|nwe501-a|nwp251-a|newscbm-a|news31-a|newscbm33|news33|old sony vt100 emulator 33 lines:\
4823	:bs:\
4824	:li#33:\
4825	:is=\E7\E[r\E8\EE\EE\EE\EM\EM\EM\E[?7h\E[?1l\E[?3l\E7\E[1;33r\E8:\
4826	:tc=news-old-unk:
4827#
4828# (nwp513-o: had :DE=^H:, I think that's :bs:; also the alias vt100-bm --esr)
4829nwp513-o|nwp518-o|nwe501-o|nwp251-o|newscbm-o|news31-o|old sony vt100 emulator 33 lines:\
4830	:bs:\
4831	:li#31:\
4832	:is=\E7\E[r\E8\EE\EE\EE\EM\EM\EM\E[?7h\E[?1l\E[?3l\E7\E[1;31r\E8:\
4833	:tc=news-old-unk:
4834#
4835# (news28: this had :DE=^H:, I think that's :bs:, and :KB=nws1200: --esr)
4836news28|sony vt100 emulator 28 lines:\
4837	:bs:\
4838	:li#28:\
4839	:is=\E7\E[r\E8\EE\EE\EE\EM\EM\EM\E[?7h\E[?1l\E[?3l\E7\E[1;28r\E8:\
4840	:tc=news-old-unk:
4841#
4842# (news29: this had :TY=ascii:KB=nws1200:\ --esr)
4843news29|news28-a|sony vt100 emulator 29 lines:\
4844	:li#29:\
4845	:is=\E7\E[r\E8\EE\EE\EE\EM\EM\EM\E[?7h\E[?1l\E[?3l\E7\E[1;29r\E8:\
4846	:tc=news-old-unk:
4847#
4848# (news511: this had :TY=sjis: --esr)
4849nwp511|nwp-511|nwp-511 vt100:\
4850	:am:bs:pt:xn:\
4851	:co#80:li#24:\
4852	:al=\E[L:cd=30\E[J:ce=3\E[K:cl=20\E[;H\E[2J:\
4853	:cm=\E[%i%d;%dH:dl=\E[M:do=\E[B:\
4854	:is=\E[?5l\E[?1l\E>\E[?7h\E[?8h:k1=\EOP:k2=\EOQ:k3=\EOR:\
4855	:k4=\EOS:k5=\EOT:k6=\E#W:kd=\E[B:kh=\E[H:kl=\E[D:kr=\E[C:\
4856	:ku=\E[A:le=\E[D:nd=\E[C:\
4857	:rs=\E7\E[r\E8\E[?5l\E[?1l\E>\E[?7h\E[?8h:se=2\E[m:\
4858	:so=2\E[7m:sr=5\EM:ue=2\E[m:up=2\E[A:us=2\E[4m:\
4859	:vb=\E[?5h\200\200\200\200\200\200\200\200\200\200\200\200\200\E[?5l:
4860# (news517: this had :TY=sjis:. --esr)
4861nwp517|nwp-517|nwp-517 vt200 80 cols 30 rows:\
4862	:es:hs:\
4863	:co#80:li#30:\
4864	:ds=\E[1$~:fs=\E[0$}:i2=\E[2$~\n:\
4865	:is=\E7\E[r\E8\E>\E[?3l\E[?4l\E[?5l\E[?7h\E[?8h:\
4866	:ts=\E[1$}\E[;%df:tc=vt200:
4867# (news517-w: this had :TY=sjis:. --esr)
4868nwp517-w|nwp-517-w|nwp-517 vt200 132 cols 50 rows:\
4869	:es:hs:\
4870	:co#132:li#50:\
4871	:ds=\E[1$~:fs=\E[0$}:i2=\E[2$~\n:\
4872	:is=\E7\E[r\E8\E>\E[?3h\E[?4l\E[?5l\E[?7h\E[?8h:\
4873	:rs=\E>\E[?3h\E[?4l\E[?5l\E[?7h\E[?8h:\
4874	:ts=\E[1$}\E[;%df:tc=vt200:
4875
4876#### Common Desktop Environment
4877#
4878
4879# This ships with Sun's CDE in Solaris 2.5
4880# Corrected Sun Aug 9 1998 by Alexander V. Lukyanov <lav@video.yars.free.net>
4881dtterm|CDE desktop terminal:\
4882	:am:mi:ms:xn:xo:\
4883	:NC@:co#80:it#8:li#24:lm#0:\
4884	:%1=\E[28~:*6=\E[4~:@0=\E[1~:AL=\E[%dL:DC=\E[%dP:\
4885	:DL=\E[%dM:DO=\E[%dB:F1=\E[23~:F2=\E[24~:F3=\E[25~:\
4886	:F4=\E[26~:F5=\E[28~:F6=\E[29~:F7=\E[31~:F8=\E[32~:\
4887	:F9=\E[33~:FA=\E[34~:IC=\E[%d@:LE=\E[%dD:RA=\E[?7l:\
4888	:RI=\E[%dC:SA=\E[?7h:UP=\E[%dA:\
4889	:ac=``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~:\
4890	:ae=^O:al=\E[L:as=^N:bl=^G:cb=\E[1K:cd=\E[J:ce=\E[K:\
4891	:cl=\E[H\E[J:cm=\E[%i%d;%dH:cr=^M:cs=\E[%i%d;%dr:\
4892	:ct=\E[3g:dc=\E[P:dl=\E[M:do=^J:eA=\E(B\E)0:ec=\E[%dX:\
4893	:ei=\E[4l:ho=\E[H:im=\E[4h:\
4894	:is=\E F\E>\E[?1l\E[?7h\E[?45l:k1=\E[11~:k2=\E[12~:\
4895	:k3=\E[13~:k4=\E[14~:k5=\E[15~:k6=\E[17~:k7=\E[18~:\
4896	:k8=\E[19~:k9=\E[20~:k;=\E[21~:kD=\E[3~:kI=\E[2~:kN=\E[6~:\
4897	:kP=\E[5~:kb=^H:kd=\E[B:kl=\E[D:kr=\E[C:ku=\E[A:le=^H:\
4898	:mb=\E[5m:md=\E[1m:me=\E[0m:mh=\E[2m:mk=\E[8m:mr=\E[7m:\
4899	:nd=\E[C:nw=\EE:rc=\E8:sc=\E7:se=\E[22;27m:sf=\ED:\
4900	:so=\E[2;7m:sr=\EM:st=\EH:ta=^I:ue=\E[24m:up=\E[A:us=\E[4m:\
4901	:vb=\E[?5h\E[?5l:ve=\E[?25h:vi=\E[?25l:tc=ecma+color:
4902
4903#### Non-Unix Consoles
4904#
4905
4906#### EMX termcap.dat compatibility modes
4907#
4908# Also (possibly only EMX, so we don't put it in ansi.sys, etc): set the
4909# no_color_video to inform the application that standout(1), underline(2)
4910# reverse(4) and invisible(64) don't work with color.
4911emx-base|DOS special keys:\
4912	:bw:ut:\
4913	:NC#71:it#8:\
4914	:bl=^G:tc=ansi.sys:
4915
4916# Except for the "-emx" suffixes, these are as distributed with EMX 0.9b,
4917# a Unix-style environment used on OS/2.  (Note that the suffix makes some
4918# names longer than 14 characters, the nominal maximum).
4919#
4920# Removed: rmacs=\E[10m, smacs=\E[11m, because OS/2 does not implement acs.
4921ansi-emx|ANSI.SYS color:\
4922	:am:eo:mi:ms:ut:xo:\
4923	:Co#8:co#80:it#8:li#25:pa#64:\
4924	:&7=^Z:AB=\E[4%dm:AF=\E[3%dm:DC=\E[%dp:IC=\E[%d@:K2=\E[G:\
4925	:S2=\E[11m:S3=\E[10m:bl=^G:cd=\E[J:ce=\E[K:\
4926	:cl=\E[1;33;44m\E[H\E[J:cm=\E[%i%d;%dH:cr=^M:ct=\E[3g:\
4927	:do=^J:ei=\E[4l:ho=\E[H:ic=\E[@:im=\E[4h:k0=\200D:kH=\200O:\
4928	:kb=^H:le=^H:mb=\E[5m:md=\E[1m:me=\E[0m\E[1;33;44m:\
4929	:mr=\E[5;37;41m:nd=\E[C:nw=^M^J:r1=\Ec:\
4930	:se=\E[0;44m\E[1;33m:sf=^J:so=\E[0;31;47m:st=\EH:ta=^I:\
4931	:u8=\E[?6c:u9=\E[c:ue=\E[0;44m\E[1;33m:up=\E[A:\
4932	:us=\E[1;31;44m:vb=\E[?5h\E[?5l:ve=\E[?25h:vi=\E[?25l:\
4933	:tc=emx-base:
4934# nice colors for Emacs (white on blue, mode line white on cyan)
4935ansi-color-2-emx|ANSI.SYS color 2:\
4936	:AF=\E[3%dm:cl=\E[0;37;44m\E[H\E[J:me=\E[0;37;44m:\
4937	:mr=\E[1;37;46m:r1=\Ec:se=\E[0;37;44m:so=\E[1;37;46m:\
4938	:ue=\E[0;37;44m:us=\E[1;36;44m:tc=ansi-emx:
4939# nice colors for Emacs (white on black, mode line black on cyan)
4940ansi-color-3-emx|ANSI.SYS color 3:\
4941	:AF=\E[3%dm:cl=\E[0;37;40m\E[H\E[J:me=\E[0;10m:\
4942	:mr=\E[1;37;46m:r1=\Ec:se=\E[0;37;40m:so=\E[1;37;46m:\
4943	:ue=\E[0;37;40m:us=\E[0;36;40m:tc=ansi-emx:
4944mono-emx|stupid monochrome ansi terminal with only one kind of emphasis:\
4945	:am:\
4946	:co#80:it#8:li#24:\
4947	:K2=\E[G:ce=\E[K:cl=50\E[H\E[2J:cm=\E[%i%d;%dH:do=\E[B:\
4948	:ho=\E[H:k0=\200D:k1=\200;:k2=\200<:k3=\200=:k4=\200>:\
4949	:k5=\200?:k6=\200@:k7=\200A:k8=\200B:k9=\200C:kH=\200O:\
4950	:kI=\200R:kN=\200Q:kP=\200I:kb=^H:kd=\200P:kh=\200G:\
4951	:kl=\200K:kr=\200M:ku=\200H:le=\E[D:me=\E[0m:mr=\E[7m:\
4952	:nd=\E[C:nw=^M^J:ta=^I:up=\E[A:
4953
4954# Use this for cygwin32 (tested with beta 19.1)
4955# underline is colored bright magenta
4956# shifted kf1-kf12 are kf11-kf22
4957cygwinB19|ansi emulation for cygwin32:\
4958	:@7=\E[4~:F1=\E[23~:F2=\E[24~:F3=\E[25~:F4=\E[26~:\
4959	:F5=\E[28~:F6=\E[29~:F7=\E[31~:F8=\E[32~:F9=\E[33~:\
4960	:FA=\E[34~:RA@:SA@:k1=\E[[A:k2=\E[[B:k3=\E[[C:k4=\E[[D:\
4961	:k5=\E[[E:k6=\E[17~:k7=\E[18~:k8=\E[19~:k9=\E[20~:\
4962	:k;=\E[21~:kD=\E[3~:kI=\E[2~:kN=\E[6~:kP=\E[5~:kd=\E[B:\
4963	:kh=\E[1~:kl=\E[D:kr=\E[C:ku=\E[A:tc=ansi.sys:
4964
4965# Use this for cygwin (tested with version 1.1.0).
4966# I've combined pcansi and linux.  Some values of course were different and
4967# I've indicated which of these were and which I used.
4968# Cheers, earnie_boyd@yahoo.com
4969# several changes based on running with tack and comparing with older entry -TD
4970# more changes from csw:
4971#   add    cbt   [backtab]
4972#   remove eo    [erase overstrike with blank]
4973#   change clear was \E[H\E[J  now \E[2J  (faster?)
4974#   remove cols
4975#   remove lines
4976#   remove ncv#3 [colors collide with highlights, bitmask] not applicable
4977#                to MSDOS box?
4978#   add    cub   [cursor back param]
4979#   add    cuf   [cursor forward param]
4980#   add    cuu   [cursor up param]
4981#   add    cud   [cursor down param]
4982#   add    hs    [has status line]
4983#   add    fsl   [return from status line]
4984#   add    tsl   [go to status line]
4985#   add    smacs [Start alt charset] (not sure if this works)
4986#   add    rmacs [End alt charset]   (ditto)
4987#   add    smcup [enter_ca_mode] (save console; thanks Corinna)
4988#   add    rmcup [exit_ca_mode]  (restore console; thanks Corinna)
4989#   add    kb2   [center of keypad]
4990#   add    u8    [user string 8] \E[?6c
4991#   add    el    [clear to end of line] \E[K
4992# Notes:
4993#   cnorm [make cursor normal] not implemented
4994#   flash [flash] not implemented
4995#   blink [blink] not implemented very usefully in cygwin? \E[5m
4996#   dim   [dim] not implemented very usefully in cygwin? \E[2m
4997#   cub1  [cursor back 1] typically \E[D, but ^H is faster?
4998#   kNXT  [shifted next key] not implemented
4999#   kPRV  [shifted prev key] not implemented
5000#   khome [home key] really is \E[1~ NOT \E[H
5001#   tbc   [clear tab stops] not implemented
5002#   xenl  [newline ignnored after 80 cols] messes up last line? Ehud Karni
5003#   smpch [Start PC charset] is \E[11m, same as smacs
5004#   rmpch [End PC charset] is \E[10m, same as rmacs
5005#   mir   [move in insert mode] fails in tack?
5006#   bce   [back color erase] causes problems with change background color?
5007#   cvvis [make cursor very visible] causes a stackdump when testing with
5008#         testcurs using the output option? \E[?25h\E[?8c
5009#   civis [make cursor invisible] causes everything to stackdump? \E[?25l\E[?1c
5010#   ech   [erase characters param] broken \E[%p1%dX
5011#   kcbt  [back-tab key] not implemented in cygwin?  \E[Z
5012#
5013# 2005/11/12 -TD
5014#	Remove cbt since it does not work in current cygwin
5015#	Add 'mir' and 'in' flags based on tack
5016# (sgr removed to fit entry within 1023 bytes)
5017# (rmacs/smacs removed for consistency)
5018# (acsc removed to fit entry within 1023 bytes)
5019cygwin|ansi emulation for Cygwin:\
5020	:am:hs:mi:ms:xo:\
5021	:Co#8:it#8:pa#64:\
5022	:&7=^Z:@7=\E[4~:AB=\E[4%dm:AF=\E[3%dm:AL=\E[%dL:DC=\E[%dP:\
5023	:DL=\E[%dM:DO=\E[%dB:F1=\E[23~:F2=\E[24~:F3=\E[25~:\
5024	:F4=\E[26~:F5=\E[28~:F6=\E[29~:F7=\E[31~:F8=\E[32~:\
5025	:F9=\E[33~:FA=\E[34~:IC=\E[%d@:K2=\E[G:LE=\E[%dD:\
5026	:RI=\E[%dC:S2=\E[11m:S3=\E[10m:UP=\E[%dA:al=\E[L:bl=^G:\
5027	:cb=\E[1K:cd=\E[J:ce=\E[K:ch=\E[%i%dG:cl=\E[H\E[J:\
5028	:cm=\E[%i%d;%dH:cr=^M:cv=\E[%i%dd:dc=\E[P:dl=\E[M:do=\E[B:\
5029	:ei=\E[4l:fs=^G:ho=\E[H:ic=\E[@:im=\E[4h:k1=\E[[A:k2=\E[[B:\
5030	:k3=\E[[C:k4=\E[[D:k5=\E[[E:k6=\E[17~:k7=\E[18~:k8=\E[19~:\
5031	:k9=\E[20~:k;=\E[21~:kD=\E[3~:kI=\E[2~:kN=\E[6~:kP=\E[5~:\
5032	:kb=^H:kd=\E[B:kh=\E[1~:kl=\E[D:kr=\E[C:ku=\E[A:le=^H:\
5033	:md=\E[1m:me=\E[0m:mk=\E[8m:mr=\E[7m:nd=\E[C:nw=^M^J:\
5034	:op=\E[39;49m:r1=\Ec\E]R:rc=\E8:sc=\E7:se=\E[27m:sf=^J:\
5035	:so=\E[7m:sr=\EM:ta=^I:te=\E[2J\E[?47l\E8:ti=\E7\E[?47h:\
5036	:ts=\E];:ue=\E[24m:up=\E[A:us=\E[4m:tc=vt102+enq:
5037
5038# I've supplied this so that you can help test new values and add other
5039# features.  Cheers, earnie_boyd@yahoo.com.
5040#
5041# Some features are from pcansi.  The op value is from linux.  Function-keys
5042# are from linux.  These have been tested not to cause problems.  xenl was in
5043# this list, but DOES cause problems so it has been removed
5044# (sgr removed to fit entry within 1023 bytes)
5045# (rmacs/smacs removed for consistency)
5046# (acsc removed to fit entry within 1023 bytes)
5047cygwinDBG|Debug Version for Cygwin:\
5048	:am:eo:mi:ms:xo:\
5049	:Co#8:NC#3:co#80:it#8:li#24:pa#64:\
5050	:%c=\E[6$:%e=\E[5$:&7=^Z:@7=\E[4~:AB=\E[4%dm:AF=\E[3%dm:\
5051	:AL=\E[%dL:DC=\E[%dP:DL=\E[%dM:DO=\E[%dB:F1=\E[23~:\
5052	:F2=\E[24~:F3=\E[25~:F4=\E[26~:F5=\E[28~:F6=\E[29~:\
5053	:F7=\E[31~:F8=\E[32~:F9=\E[33~:FA=\E[34~:IC=\E[%d@:\
5054	:K2=\E[G:LE=\E[%dD:RI=\E[%dC:UP=\E[%dA:al=\E[L:bl=^G:\
5055	:bt=\E[Z:cb=\E[1K:cd=\E[J:ce=\E[K:ch=\E[%i%dG:cl=\E[H\E[J:\
5056	:cm=\E[%i%d;%dH:cr=^M:ct=\E[3g:cv=\E[%i%dd:dc=\E[P:\
5057	:dl=\E[M:do=\E[B:ei=\E[4l:ho=\E[H:ic=\E[@:im=\E[4h:\
5058	:k1=\E[[A:k2=\E[[B:k3=\E[[C:k4=\E[[D:k5=\E[[E:k6=\E[17~:\
5059	:k7=\E[18~:k8=\E[19~:k9=\E[20~:k;=\E[21~:kB=\E[Z:kD=\E[3~:\
5060	:kI=\E[2~:kN=\E[6~:kP=\E[5~:kb=^H:kd=\E[B:kh=\E[1~:kl=\E[D:\
5061	:kr=\E[C:ku=\E[A:le=\E[D:mb=\E[5m:md=\E[1m:me=\E[0m:\
5062	:mh=\E[2m:mk=\E[8m:mr=\E[7m:nd=\E[C:nw=^M^J:op=\E[39;49m:\
5063	:r1=\Ec\E]R:rc=\E8:sc=\E7:se=\E[m:sf=^J:so=\E[7m:sr=\EM:\
5064	:st=\EH:ta=^I:ue=\E[m:up=\E[A:us=\E[4m:vb=200\E[?5h\E[?5l:\
5065	:ve=\E[?25h:tc=vt102+enq:
5066
5067# Key definitions:
5068# The encodings for unshifted arrow keys, F1-F12, Home, Insert, etc.  match the
5069# encodings used by other x86 environments.  All others are invented for DJGPP.
5070# Oddly enough, while several combinations of modifiers are tabulated, there is
5071# none for shifted cursor keys.
5072#
5073#	F1			\E[[A
5074#	F2			\E[[B
5075#	F3			\E[[C
5076#	F4			\E[[D
5077#	F5			\E[[E
5078#	F6			\E[17~
5079#	F7			\E[18~
5080#	F8			\E[19~
5081#	F9			\E[20~
5082#	F10			\E[21~
5083#	F11			\E[23~
5084#	F12			\E[24~
5085#
5086#	Delete			\E[3~
5087#	Down Arrow		\E[B
5088#	End			\E[4~
5089#	Home			\E[1~
5090#	Insert			\E[2~
5091#	Left Arrow		\E[D
5092#	Page Down		\E[6~
5093#	Page Up			\E[5~
5094#	Right Arrow		\E[C
5095#	Up Arrow		\E[A
5096#
5097#	Shift-F1		\E[25~
5098#	Shift-F2		\E[26~
5099#	Shift-F3		\E[27~
5100#	Shift-F4		\E[28~
5101#	Shift-F5		\E[29~
5102#	Shift-F6		\E[30~
5103#	Shift-F7		\E[31~
5104#	Shift-F8		\E[32~
5105#	Shift-F9		\E[33~
5106#	Shift-F10		\E[34~
5107#	Shift-F11		\E[35~
5108#	Shift-F12		\E[36~
5109#
5110#	Ctrl-F1			\E[47~
5111#	Ctrl-F2			\E[48~
5112#	Ctrl-F3			\E[49~
5113#	Ctrl-F4			\E[50~
5114#	Ctrl-F5			\E[51~
5115#	Ctrl-F6			\E[52~
5116#	Ctrl-F7			\E[53~
5117#	Ctrl-F8			\E[54~
5118#	Ctrl-F9			\E[55~
5119#	Ctrl-F10		\E[56~
5120#	Ctrl-F11		\E[57~
5121#	Ctrl-F12		\E[58~
5122#
5123#	Ctrl-Delete		\E[43~
5124#	Ctrl-Down Arrow		\E[38~
5125#	Ctrl-End		\E[44~
5126#	Ctrl-Home		\E[41~
5127#	Ctrl-Insert		\E[42~
5128#	Ctrl-Left Arrow		\E[39~
5129#	Ctrl-Page Down		\E[46~
5130#	Ctrl-Page Up		\E[45~
5131#	Ctrl-Right Arrow	\E[40~
5132#	Ctrl-Up Arrow		\E[37~
5133#
5134#	Alt-F1			\E[59~
5135#	Alt-F2			\E[60~
5136#	Alt-F3			\E[61~
5137#	Alt-F4			\E[62~
5138#	Alt-F5			\E[63~
5139#	Alt-F6			\E[64~
5140#	Alt-F7			\E[65~
5141#	Alt-F8			\E[66~
5142#	Alt-F9			\E[67~
5143#	Alt-F10			\E[68~
5144#	Alt-F11			\E[79~
5145#	Alt-F12			\E[80~
5146#
5147#	Alt-Delete		\E[65~
5148#	Alt-Down Arrow		\E[60~
5149#	Alt-End			\E[66~
5150#	Alt-Home		\E[41~
5151#	Alt-Insert		\E[64~
5152#	Alt-Left Arrow		\E[61~
5153#	Alt-Page Down		\E[68~
5154#	Alt-Page Up		\E[67~
5155#	Alt-Right Arrow		\E[62~
5156#	Alt-Up Arrow		\E[59~
5157#
5158# Also:
5159#	Alt-A			\E[82~
5160#	Alt-B			\E[82~
5161#	Alt-C			\E[83~
5162#	Alt-D			\E[84~
5163#	Alt-E			\E[85~
5164#	Alt-F			\E[86~
5165#	Alt-G			\E[87~
5166#	Alt-H			\E[88~
5167#	Alt-I			\E[89~
5168#	Alt-J			\E[90~
5169#	Alt-K			\E[91~
5170#	Alt-L			\E[92~
5171#	Alt-M			\E[93~
5172#	Alt-N			\E[94~
5173#	Alt-O			\E[95~
5174#	Alt-P			\E[96~
5175#	Alt-Q			\E[97~
5176#	Alt-R			\E[98~
5177#	Alt-S			\E[99~
5178#	Alt-T			\E[100~
5179#	Alt-U			\E[101~
5180#	Alt-V			\E[102~
5181#	Alt-W			\E[103~
5182#	Alt-X			\E[104~
5183#	Alt-Y			\E[105~
5184#	Alt-Z			\E[106~
5185djgpp|ansi emulation for DJGPP alpha:\
5186	:am:ms:ut:xo:xs:xt:\
5187	:Co#8:it#8:pa#64:\
5188	:@7=\E[4~:AB=\E[4%dm:AF=\E[3%dm:AL=\E[%dL:DC=\E[%dP:\
5189	:DL=\E[%dM:DO=\E[%dB:F1=\E[23~:F2=\E[24~:IC=\E[%d@:\
5190	:LE=\E[%dD:RI=\E[%dC:SF=\E[%dS:SR=\E[%dT:UP=\E[%dA:\
5191	:ac=+\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:\
5192	:al=\E[L:bl=^G:bt=\E[Z:cb=\E[1K:cd=\E[J:ce=\E[K:\
5193	:ch=\E[%i%dG:cl=\E[H\E[J:cm=\E[%i%d;%dH:cr=^M:\
5194	:cv=\E[%i%dd:dc=\E[P:dl=\E[M:do=\E[B:ec=\E[%dX:ei=:ho=\E[H:\
5195	:ic=\E[@:im=:k1=\E[[A:k2=\E[[B:k3=\E[[C:k4=\E[[D:k5=\E[[E:\
5196	:k6=\E[17~:k7=\E[18~:k8=\E[19~:k9=\E[20~:k;=\E[21~:\
5197	:kD=\E[3~:kI=\E[2~:kN=\E[6~:kP=\E[5~:kb=^H:kd=\E[B:\
5198	:kh=\E[1~:kl=\E[D:kr=\E[C:ku=\E[A:le=^H:mb=\E[5m:md=\E[1m:\
5199	:me=\E[m:mk=\E[8m:mr=\E[7m:nd=\E[C:nw=^M^J:op=\E[37;40m:\
5200	:se=\E[m:sf=\E[S:so=\E[7m:sr=\E[T:ta=^I:up=\E[A:us=\E[4m:\
5201	:ve=\E[v:vi=\E[1v:vs=\E[2v:
5202
5203djgpp203|Entry for DJGPP 2.03:\
5204	:am:bs:\
5205	:co#80:it#8:li#25:\
5206	:bl=^G:cr=^M:do=^J:kb=^H:kd=^J:kl=^H:le=^H:nw=^M^J:sf=^J:\
5207	:ta=^I:
5208
5209djgpp204|Entry for DJGPP 2.04:\
5210	:am:bs:AX:\
5211	:Co#8:NC#3:co#80:it#8:li#25:pa#64:\
5212	:AB=\E[4%dm:AF=\E[3%dm:AL=\E[%dL:DC=\E[%dP:DL=\E[%dM:\
5213	:DO=\E[%dB:IC=\E[%d@:LE=\E[%dD:RI=\E[%dC:SF=\E[%dS:\
5214	:SR=\E[%dT:UP=\E[%dA:al=\E[L:bl=^G:bt=\E[Z:cd=\E[J:ce=\E[K:\
5215	:cl=\E[H\E[2J:cm=\E[%i%d;%dH:cr=^M:dc=\E[P:dl=\E[M:\
5216	:do=\E[B:ec=\E[%dX:ei=:ho=\E[H:ic=\E[@:im=:k0=\E[21~:\
5217	:k1=\E[[A:k2=\E[[B:k3=\E[[C:k4=\E[[D:k5=\E[[E:k6=\E[17~:\
5218	:k7=\E[18~:k8=\E[19~:k9=\E[20~:k;=\E[21~:kD=\E[3~:\
5219	:kH=\E[4~:kI=\E[2~:kN=\E[6~:kP=\E[5~:kb=^H:kd=\E[B:\
5220	:kh=\E[1~:kl=\E[D:kr=\E[C:ku=\E[A:le=\E[D:mb=\E[5m:\
5221	:md=\E[1m:me=\E[m:mk=\E[8m:mr=\E[7m:nd=\E[C:nw=^M^J:\
5222	:se=\E[m:sf=\E[S:so=\E[7m:sr=\E[T:ta=^I:up=\E[A:us=\E[4m:\
5223	:ve=\E[v:vi=\E[1v:vs=\E[2v:
5224
5225# This is tested using U/Win's telnet.  Scrolling is omitted because it is
5226# buggy.  Another odd bug appears when displaying "~" in alternate character
5227# set (the emulator spits out error messages).  Compare with att6386 -TD
5228uwin|U/Win 3.2 console:\
5229	:am:eo:in:ms:xn:xo:\
5230	:Co#8:NC#58:it#8:pa#64:\
5231	:@7=\E[Y:AB=\E[4%dm:AF=\E[3%dm:DC=\E[%dP:F1=\EOZ:F2=\EOA:\
5232	:IC=\E[%d@:S2=\E[11m:S3=\E[10m:\
5233	:ac=+\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:\
5234	:ae=\E[10m:as=\E[11m:bl=^G:cb=\E[1K:cd=\E[J:ce=\E[K:\
5235	:cl=\E[H\E[J:cm=\E[%i%d;%dH:cr=^M:ct=\E[3g:dc=\E[P:do=^J:\
5236	:ec=\E[%dX:ei=\E[4l:ho=\E[H:ic=\E[@:im=\E[4h:k1=\EOP:\
5237	:k2=\EOQ:k3=\EOR:k4=\EOS:k5=\EOT:k6=\EOU:k7=\EOV:k8=\EOW:\
5238	:k9=\EOX:k;=\EOY:kD=\177:kI=\E[@:kb=^H:kd=\E[B:kh=\E[H:\
5239	:kl=\E[D:kr=\E[C:ku=\E[A:le=^H:mb=\E[5m:md=\E[1m:\
5240	:me=\E[0;10m:mh=\E[2m:mr=\E[7m:nd=\E[C:nw=^M^J:\
5241	:op=\E[39;49m:r1=\Ec\E]R:rc=\E8:sc=\E7:se=\E[27m:so=\E[7m:\
5242	:st=\EH:ta=^I:u6=\E[%i%d;%dR:u7=\E[6n:ue=\E[m:up=\E[A:\
5243	:us=\E[4m:ve=\E[?25h:vi=\E[?25l:
5244
5245# This entry fits the Windows NT console when the _POSIX_TERM environment
5246# variable is set to 'on'.  While the Windows NT POSIX console is seldom used,
5247# the Telnet client supplied with both the Windows for WorkGroup 3.11 TCP/IP
5248# stack and the Win32 (i.e., Windows 95 and Windows NT 3.1 or later) operating
5249# systems is not, and (surprise!) they match very well.
5250#
5251# See:  MS Knowledge Base item Q108581, dated 13-MAY-1997, titled "Setting Up
5252# VI POSIX Editor for Windows NT 3.1".  True to Microsoft form, not only
5253# are the installation instructions a pile of mind-numbing bureaucratese,
5254# but the termcap entry is actually broken and unusable as given; the :do:
5255# capability is misspelled "d".
5256#
5257# To use this, you need to a bunch of environment variables:
5258#
5259# SET _POSIX_TERM=on
5260# SET TERM=ansi
5261# SET TERMCAP=location of termcap file in POSIX file format
5262# which is case-sensitive.
5263# e.g. SET TERMCAP=//D/RESKIT35/posix/termcap
5264# SET TMP=//C/TEMP
5265#
5266# Important note: setting the TMP environment variable in POSIX style renders
5267# it incompatible with a lot of other applications, including Visual C++. So
5268# you should have a separate command window just for vi. All the other
5269# variables may be permanently set in the Control Panel\System applet.
5270#
5271# You can find out more about the restrictions of this facility at
5272# <http://www.nentug.org/unix-to-nt/ntposix.htm>.
5273#
5274# From: Federico Bianchi <bianchi@magna.cisid.unipi.it>, 15 Jan 1997
5275ansi-nt|psx_ansi|Microsoft Windows NT console POSIX ANSI mode:\
5276	:am:bw:ms:\
5277	:co#80:it#8:li#25:\
5278	:bl=^G:cd=\E[J:ce=\E[K:cl=\E[2J:cm=\E[%i%d;%dH:cr=^M:do=^J:\
5279	:ho=\E[H:kb=^H:kd=\E[V:kl=\E[D:kr=\E[C:ku=\E[A:le=^H:\
5280	:me=\E[0m:mr=\E[7m:nd=\E[C:nw=\r\E[S:rc=\E[u:sc=\E[s:\
5281	:se=\E[m:sf=\E[S:so=\E[7m:sr=\E[T:ta=^I:up=\E[A:
5282# From: jew@venus.sunquest.com
5283# Date: 19 Feb 93 23:41:07 GMT
5284# Here's  a  combination of  ansi and  vt100 termcap
5285# entries   that  works  nearly   perfectly  for  me
5286# (Gateway 2000 Handbook and Microsoft Works 3.0):
5287pcmw|PC running Microsoft Works:\
5288	:am:xn:\
5289	:co#80:it#8:li#24:vt#3:\
5290	:bl=^G:cd=50\E[J:ce=3\E[K:cl=50\E[;H\E[2J:\
5291	:cm=5\E[%i%d;%dH:cr=^M:ct=2\E[3g:do=^J:ho=\E[H:\
5292	:is=\E[1;24r\E[24;1H:k1=\EOP:k2=\EOQ:k3=\EOR:k4=\EOS:\
5293	:kb=^H:kd=\EOB:kl=\EOD:kr=\EOC:ku=\EOA:le=^H:mb=2\E[5m:\
5294	:md=2\E[1m:me=2\E[m:mr=2\E[7m:nd=2\E[C:nw=5\r\ED:rc=\E8:\
5295	:rf=/usr/share/tabset/vt100:\
5296	:rs=\E>\E[?3l\E[?4l\E[?5l\E[?7h\E[?8h:sc=\E7:se=2\E[m:\
5297	:sf=5\ED:so=2\E[7m:sr=5\EM:st=2\EH:ta=^I:ue=2\E[m:up=2\E[A:\
5298	:us=2\E[4m:
5299
5300# From: Federico Bianchi
5301# This is the entry for the OpenNT terminal.
5302# The ntconsole name is for backward compatability.
5303# This is for OpenNT 2.0 and later.
5304# Later OpenNT was renamed to Interix.
5305#
5306# Presently it is distributed by Microsoft as Services For Unix (SFU).
5307# The 3.5 beta contains ncurses 4.2 (that is header files and executables,
5308# the documentation dates from 1.9.9e) -TD
5309
5310# (rmacs/smacs removed for consistency)
5311# (acsc removed to fit entry within 1023 bytes)
5312# (terminfo-only capabilities suppressed to fit entry within 1023 bytes)
5313interix|opennt|opennt-25|ntconsole|ntconsole-25|OpenNT-term compatible with color:\
5314	:am:bw:ms:\
5315	:co#80:li#25:\
5316	:AL=\E[%dL:DL=\E[%dM:DO=\E[%dB:LE=\E[%dD:RI=\E[%dC:\
5317	:SF=\E[%dS:SR=\E[%dT:UP=\E[%dA:al=\E[L:bl=^G:bt=\E[Z:\
5318	:cd=\E[J:ce=\E[K:cl=\E[2J:cm=\E[%i%d;%dH:dl=\E[M:do=^J:\
5319	:ho=\E[H:k0=\EFA:k1=\EF1:k2=\EF2:k3=\EF3:k4=\EF4:k5=\EF5:\
5320	:k6=\EF6:k7=\EF7:k8=\EF8:k9=\EF9:kD=\E[M:kH=\E[U:kI=\E[L:\
5321	:kN=\E[T:kP=\E[S:kb=^H:kd=\E[B:kl=\E[D:kr=\E[C:ku=\E[A:\
5322	:le=\E[D:ll=\E[U:md=\E[1m:me=\E[0m:mr=\E[7m:nd=\E[C:\
5323	:nw=^M^J:rc=\E[u:sc=\E[s:se=\E[m:sf=\E[S:so=\E[7m:sr=\E[T:\
5324	:ta=^I:te=\E[2b\E[u\r\E[K:ti=\E[s\E[1b:ue=\E[m:up=\E[A:\
5325	:us=\E[4m:
5326
5327opennt-35|ntconsole-35|OpenNT-term35 compatible with color:\
5328	:li#35:tc=opennt:
5329
5330opennt-50|ntconsole-50|OpenNT-term50 compatible with color:\
5331	:li#50:tc=opennt:
5332
5333opennt-60|ntconsole-60|OpenNT-term60 compatible with color:\
5334	:li#60:tc=opennt:
5335
5336opennt-100|ntconsole-100|OpenNT-term100 compatible with color:\
5337	:li#100:tc=opennt:
5338
5339# OpenNT wide terminals
5340opennt-w|opennt-25-w|ntconsole-w|ntconsole-25-w|OpenNT-term-w compat with color:\
5341	:co#125:tc=opennt:
5342
5343opennt-35-w|ntconsole-35-w|OpenNT-term35-w compatible with color:\
5344	:li#35:tc=opennt-w:
5345
5346opennt-50-w|ntconsole-50-w|OpenNT-term50-w compatible with color:\
5347	:li#50:tc=opennt-w:
5348
5349opennt-60-w|ntconsole-60-w|OpenNT-term60-w compatible with color:\
5350	:li#60:tc=opennt-w:
5351
5352opennt-w-vt|opennt-25-w-vt|ntconsole-w-vt|ntconsole-25-w-vt|OpenNT-term-w-vt compat with color:\
5353	:co#132:tc=opennt:
5354
5355# OpenNT terminals with no smcup/rmcup (names match termcap entries)
5356interix-nti|opennt-nti|opennt-25-nti|ntconsole-25-nti|OpenNT-nti compatible with color:\
5357	:te@:ti@:tc=opennt:
5358
5359opennt-35-nti|ntconsole-35-nti|OpenNT-term35-nti compatible with color:\
5360	:li#35:tc=opennt-nti:
5361
5362opennt-50-nti|ntconsole-50-nti|OpenNT-term50-nti compatible with color:\
5363	:li#50:tc=opennt-nti:
5364
5365opennt-60-nti|ntconsole-60-nti|OpenNT-term60-nti compatible with color:\
5366	:li#60:tc=opennt-nti:
5367
5368opennt-100-nti|ntconsole-100-nti|OpenNT-term100-nti compatible with color:\
5369	:li#100:tc=opennt-nti:
5370
5371######## COMMON TERMINAL TYPES
5372#
5373# This section describes terminal classes and maker brands that are still
5374# quite common, but have proprietary command sets not blessed by ANSI.
5375#
5376
5377#### Altos
5378#
5379# Altos made a moderately successful line of UNIX boxes.  In 1990 they were
5380# bought out by Acer, a major Taiwanese manufacturer of PC-clones.
5381# Acer has a web site at http://www.acer.com.
5382#
5383# Altos descriptions from Ted Mittelstaedt <tedm@agora.rain.com> 4 Sep 1993
5384# His comments suggest they were shipped with the system.
5385#
5386
5387# (altos2: had extension capabilities
5388#	:c0=^A`\r:c1=^Aa\r:c2=^Ab\r:c3=^Ac\r:\
5389#	:c4=^Ad\r:c5=^Ae\r:c6=^Af\r:c7=^Ag\r:\
5390#	:c8=^Ah\r:c9=^Ai\r:cA=^Aj\r:cB=^Ak\r:\
5391#	:cC=^Al\r:cD=^Am\r:cE=^An\r:cF=^Ao\r:
5392#	:XU=^Aq\r:XD=^Ar\r:XR=^As\r:XL=^At\r:\
5393#	:YU=^AQ\r:YD=^AR\r:YR=^AS\r:YL=^AT\r:\
5394#	:HL=^AP\r:SP=\E[i:\
5395#	:IS=\E[@:DE=\E[P:IL=\E[L:NS=\E[S:PS=\E[T:\
5396#	:LO=\E[0q:LC=\E[5q:LL=\E[6q:\
5397# Comparison with the k* capabilities makes it obvious that the c* things are
5398# shift keys.  I have renamed them to keys 32 and up accordingly.  Also,
5399# :sr: was given as a boolean-- esr)
5400altos2|alt2|altos-2|altos II:\
5401	:co#80:it#8:li#24:sg#0:ug#0:\
5402	:*5=^Am\r:*8=^An\r:FM=^A`\r:FN=^Aa\r:FO=^Ab\r:FP=^Ac\r:\
5403	:FQ=^Ad\r:FR=^Ae\r:FS=^Af\r:FT=^Ag\r:FU=^Ah\r:FV=^Ai\r:\
5404	:FW=^Aj\r:FX=^Ak\r:RA=\E[?7l:SA=\E[?7h:al=\E[L:cd=\E[J:\
5405	:ce=\E[K:cl=\E[H\E[2J:cm=\E[%i%d;%dH:cr=^M:dc=\E[P:\
5406	:dl=\E[M:do=\E[1B:ei=:ho=\E[H:ic=\E[@:\
5407	:if=/usr/share/tabset/vt100:im=:\
5408	:is=\E>\E[?3l\E[?4l\E[?5l\E[?7h\E[?8h:k0=^AI\r:\
5409	:k1=^A@\r:k2=^AA\r:k3=^AB\r:k4=^AC\r:k5=^AD\r:k6=^AE\r:\
5410	:k7=^AF\r:k8=^AG\r:k9=^AH\r:kA=^AJ\r:kB=^AK\r:kC=^AL\r:\
5411	:kD=^AM\r:kE=^AN\r:kF=^AO\r:kb=^H:kd=\E[B:kh=\E[f:kl=\E[D:\
5412	:kr=\E[C:ku=\E[A:le=^H:me=\E[m:nd=\E[1C:nw=^M^J:se=\E[m:\
5413	:sf=^J:so=\E[7m:ta=^I:ue=\E[m:up=\E[1A:us=\E[4m:
5414# (altos3: had extension capabilities
5415#	:c0=^A`\r:c1=^Aa\r:c2=^Ab\r:c3=^Ac\r:\
5416#	:c4=^Ad\r:c5=^Ae\r:c6=^Af\r:c7=^Ag\r:\
5417#	:c8=^Ah\r:c9=^Ai\r:cA=^Aj\r:cB=^Ak\r:\
5418#	:cC=^Al\r:cD=^Am\r:cE=^An\r:cF=^Ao\r:
5419#	:XU=^Aq\r:XD=^Ar\r:XR=^As\r:XL=^At\r:\
5420#	:HL=^AP\r:SP=\E[i:\
5421#	:IS=\E[@:DE=\E[P:IL=\E[L:NS=\E[S:PS=\E[T:
5422altos3|altos5|alt3|alt5|altos-3|altos-5|altos III or V:\
5423	:mb=\E[5p:me=\E[p:sr=\EM:tc=altos2:
5424altos4|alt4|altos-4|altos IV:\
5425	:tc=wy50:
5426# (altos7: had extension capabilities:
5427#	:GG#0:GI=\EH8:GF=\EH7:\
5428#	:c0=^A`\r:c1=^Aa\r:c2=^Ab\r:c3=^Ac\r:\
5429#	:c4=^Ad\r:c5=^Ae\r:c6=^Af\r:c7=^Ag\r:\
5430#	:c8=^Ah\r:c9=^Ai\r:cA=^Aj\r:cB=^Ak\r:\
5431#	:cC=^Al\r:cD=^Am\r:cE=^An\r:cF=^Ao\r:
5432# Comparison with the k* capabilities makes it obvious that the c* things are
5433# shift keys.  I have renamed them to keys 32 and up accordingly.  I have
5434# also made this entry relative to adm12 in order to give it an :sa:. The
5435# <invis> imported by use=adm+sgr may work, let me know. -- esr)
5436altos7|alt7|altos VII:\
5437	:am:mi:\
5438	:co#80:li#24:sg#0:\
5439	:*5=^Am\r:*8=^An\r:FM=^A`\r:FN=^Aa\r:FO=^Ab\r:FP=^Ac\r:\
5440	:FQ=^Ad\r:FR=^Ae\r:FS=^Af\r:FT=^Ag\r:FU=^Ah\r:FV=^Ai\r:\
5441	:FW=^Aj\r:FX=^Ak\r:ac=j5k3l2m1n8q\072t4u9v=w0x6:al=\EE:\
5442	:cd=\EY:ce=\ET:cl=\E+^^:cm=\E=%+ %+ :cr=^M:dc=\EW:dl=\ER:\
5443	:do=^J:ei=\Er:ho=^^:im=\Eq:\
5444	:is=\E`\072\Ee(\EO\Ee6\Ec41\E~4\Ec21\Eu\E~2:k0=^AI\r:\
5445	:k1=^A@\r:k2=^AA\r:k3=^AB\r:k4=^AC\r:k5=^AD\r:k6=^AE\r:\
5446	:k7=^AF\r:k8=^AG\r:k9=^AH\r:kA=^AJ\r:kB=^AK\r:kC=^AL\r:\
5447	:kD=^AM\r:kE=^AN\r:kF=^AO\r:kN=\EK:kP=\EJ:kb=^H:kd=^J:kh=^^:\
5448	:kl=^H:kr=^L:ku=^K:le=^H:mb=\EG2:md=\EGt:mh=\EGp:mk=\EG1:\
5449	:nd=^L:nw=^M^J:pf=\EJ:po=\Ed#:sf=^J:sr=\Ej:ta=^I:up=^K:\
5450	:tc=adm+sgr:
5451altos7pc|alt7pc|altos PC VII:\
5452	:@7=\ET:tc=altos7:
5453
5454#### Hewlett-Packard (hp)
5455#
5456#	Hewlett-Packard
5457#	8000 Foothills Blvd
5458#	Roseville, CA 95747
5459#	Vox: 1-(916)-785-4363	(Technical response line for VDTs)
5460#	     1-(800)-633-3600	(General customer support)
5461#
5462#
5463# As of March 1998, HP no longer has any terminals in production.
5464# The 700 series (22, 32, 41, 44, 92, 94, 96, 98) is still being
5465# supported (they still have parts). So are the 2392a and 2394a.
5466# See the WORKSTATION CONSOLES section for the 700s.
5467#
5468
5469# Generic HP terminal - this should (hopefully) work on any HP terminal.
5470hpgeneric|hp|hewlett-packard generic terminal:\
5471	:am:bs:da:db:mi:pt:xs:\
5472	:co#80:li#24:lm#0:vt#6:\
5473	:al=\EL:bl=^G:cd=\EJ:ce=\EK:ch=\E&a%dC:cl=\EH\EJ:\
5474	:cm=6\E&a%r%dc%dY:cr=^M:ct=\E3:cv=\E&a%dY:dc=\EP:dl=\EM:\
5475	:do=^J:ei=\ER:im=\EQ:kB=\Ei:kb=^H:le=^H:me=\E&d@:nd=\EC:\
5476	:se=\E&d@:sf=^J:so=\E&dJ:st=\E1:ta=^I:ue=\E&d@:up=\EA:\
5477	:us=\E&dD:
5478
5479hp110|hewlett-packard model 110 portable:\
5480	:li#16:tc=hpgeneric:
5481
5482hp+pfk+cr|hp function keys with CR:\
5483	:k1=\Ep\r:k2=\Eq\r:k3=\Er\r:k4=\Es\r:k5=\Et\r:k6=\Eu\r:\
5484	:k7=\Ev\r:k8=\Ew\r:
5485
5486hp+pfk-cr|hp function keys w/o CR:\
5487	:k1=\Ep:k2=\Eq:k3=\Er:k4=\Es:k5=\Et:k6=\Eu:k7=\Ev:k8=\Ew:
5488
5489# The hp2621s use the same keys for the arrows and function keys,
5490# but not separate escape sequences. These definitions allow the
5491# user to use those keys as arrow keys rather than as function
5492# keys.
5493hp+pfk+arrows|hp alternate arrow definitions:\
5494	:k1@:k2@:k3@:k4@:k5@:k6@:k7@:k8@:kF=\Er\r:kH=\Eq\r:kR=\Es\r:\
5495	:kd=\Ew\r:kh=\Ep\r:kl=\Eu\r:kr=\Ev\r:ku=\Et\r:
5496
5497hp+arrows|hp arrow definitions:\
5498	:kF=\ES:kH=\EF:kR=\ET:kd=\EB:kh=\Eh:kl=\ED:kr=\EC:ku=\EA:
5499
5500# Generic stuff from the HP 262x series
5501#
5502hp262x|HP 262x terminals:\
5503	:xs:\
5504	:cd=\EJ:dc=2\EP:ip=2:kA=\EL:kD=\EP:kE=\EK:kF=\ES:kI=\EQ:\
5505	:kL=\EM:kM=\ER:kN=\EU:kP=\EV:kR=\ET:kS=\EJ:kd=\EB:ke=\E&s0A:\
5506	:kh=\Eh:kl=\ED:kr=\EC:ks=\E&s1A:ku=\EA:mb=\E&dA:me=\E&d@:\
5507	:mk=\E&dS:mr=\E&dB:se=\E&d@:sf=\ES:so=\E&dB:ta=2\011:\
5508	:ue=\E&d@:us=\E&dD:
5509
5510# Note: no :ho: on HPs since that homes to top of memory, not screen.
5511# Due to severe 2621 braindamage, the only way to get the arrow keys to
5512# transmit anything at all is to turn on the function key labels
5513# with :ks:, and even then the user has to hold down shift!
5514# The default 2621 turns off the labels except when it has to to
5515# enable the function keys. If your installation prefers labels
5516# on all the time, or off all the time (at the "expense" of the
5517# function keys), use 2621-nl or 2621-wl.
5518#
5519# Note: there are newer ROMs for 2621's that allow you to set
5520# strap A so the regular arrow keys xmit \EA, etc, as with the
5521# 2645. However, even with this strap set, the terminal stops
5522# xmitting if you reset it, until you unset and reset the strap!
5523# Since there is no way to set/unset the strap with an escape
5524# sequence, we don't use it in the default.
5525# If you like, you can use 2621-ba (brain-damaged arrow keys).
5526hp2621-ba|2621 w/new rom and strap A set:\
5527	:ke@:ks@:tc=hp+arrows:tc=hp2621:
5528
5529# hp2621 with function labels. Most of the time they are off,
5530# but inside vi, the function key labels appear. You have to
5531# hold down shift to get them to xmit.
5532hp2621|hp2621a|hp2621A|2621|2621a|2621A|hp2621-wl|2621-wl|hp 2621 w/labels:\
5533	:is=\E&jA\r:ke=\E&jA:tc=hp2621-fl:
5534hp2621-fl|hp 2621:\
5535	:xo:xs@:\
5536	:pb#19200:\
5537	:bt=\Ei:cm=\E&a%r%dc%dY:dc=2\EP:ip=2:is=\E&j@\r:ke=\E&j@:\
5538	:ks=\E&jB:me=\E&d@:se=\E&d@:so=\E&dD:ta=2\011:ue=\E&d@:\
5539	:us=\E&dD:tc=hp+pfk+cr:tc=hpgeneric:
5540
5541# To use hp2621p printer, setenv TERM=2621p, PRINTER=2612p
5542hp2621p|hp 2621 with printer:\
5543	:pf=\E&p13C:po=\E&p11C:tc=hp2621:
5544
5545hp2621p-a|hp2621p with fn as arrows:\
5546	:tc=hp+pfk+arrows:tc=hp2621p:
5547
5548# hp2621 with k45 keyboard
5549hp2621-k45|hp2621k45|k45|hp 2621 with 45 keyboard:\
5550	:kb=^H:kd=\EB:ke=\E&s0A:kh=\Eh:kl=\ED:kr=\EC:ks=\E&s1A:\
5551	:ku=\EA:tc=hp2621:
5552
5553# 2621 using all 48 lines of memory, only 24 visible at any time.
5554hp2621-48|48 line 2621:\
5555	:li#48:\
5556	:cm=\E&a%r%dc%dR:cv=\E&a%dR:ho=\EH:tc=hp2621:
5557
5558# 2621 with no labels ever. Also prevents vi delays on escape.
5559hp2621-nl|hp 2621 with no labels:\
5560	:kd@:ke@:kh@:kl@:kr@:ks@:ku@:tc=hp2621-fl:
5561
5562# Needed for UCB ARPAVAX console, since lsi-11 expands tabs
5563# (wrong).
5564#
5565hp2621-nt|hp 2621 w/no tabs:\
5566	:ta@:tc=hp2621:
5567
5568# Hp 2624 B with 4 or 10 pages of memory.
5569#
5570# Some assumptions are made with this entry. These settings are
5571# NOT set up by the initialization strings.
5572#
5573# Port Configuration
5574# 	RecvPace=Xon/Xoff
5575# 	XmitPace=Xon/Xoff
5576# 	StripNulDel=Yes
5577#
5578# Terminal Configuration
5579# 	InhHndShk=Yes
5580# 	InhDC2=Yes
5581# 	XmitFnctn(A)=No
5582# 	InhEolWrp=No
5583#
5584# Note: the 2624 DOES have a true :ho:, believe it or not!
5585#
5586# The 2624 has an "error line" to which messages can be sent.
5587# This is CLOSE to what is expected for a "status line". However,
5588# after a message is sent to the "error line", the next carriage
5589# return is EATEN and the "error line" is turned back off again!
5590# So I guess we can't define :hs:, :es:, :ws:, :ds:, :fs:, :ts:.
5591#
5592# This entry supports emacs (and any other program that uses raw
5593# mode) at 4800 baud and less. I couldn't get the padding right
5594# for 9600.
5595#
5596# (hp2624: replaced NUL sequences in flash with mandatory pauses -- esr)
5597hp2624|hp2624a|hp2624b|hp2624b-4p|Hewlett Packard 2624 B:\
5598	:da:db:\
5599	:lm#96:\
5600	:vb=\E&w13F\E&w12F\E&w13F\E&w12F:tc=hp+labels:tc=scrhp:
5601
5602# This hp2626 entry does not use any of the fancy windowing stuff
5603# of the 2626.
5604#
5605# Indeed, terminfo does not yet handle such stuff. Since changing
5606# any window clears memory, it is probably not possible to use
5607# this for screen opt.
5608#
5609# ed is incredibly slow most of the time - I am guessing at the
5610# exact padding. Since the terminal uses xoff/xon this is intended
5611# only for cost computation, so that the terminal will prefer el
5612# or even dl1 which is probably faster!
5613#
5614# \ED\EJ\EC hack for ed from Ed Bradford - apparently ed is only
5615# extra slow on the last line of the window.
5616#
5617# The padding probably should be changed.
5618#
5619hp2626|hp2626a|hp2626p|hp 2626:\
5620	:da:db:\
5621	:lm#0:pb#19200:\
5622	:SF=\E&r%dD:SR=\E&r%dU:cd=\ED\EJ\EC:ip=4:is=\E&j@\r:\
5623	:tc=hp+pfk+cr:tc=hp+labels:tc=scrhp:
5624
5625# This entry is for sysline. It allocates a 23 line window with
5626# a 115 line workspace for regular use, and a 1 line window for
5627# the status line.
5628#
5629# This assumes port 2 is being used.
5630# Turn off horizontal line, Create ws #1 with 115 lines,
5631# Create ws #2 with 1 line, Create window #1 lines 1-23,
5632# Create window #2 lines 24-24, Attach cursor to workspace #1.
5633# Note that this clears the tabs so it must be done by tset before
5634# it sets the tabs.
5635#
5636hp2626-s|hp 2626 using only 23 lines:\
5637	:es:hs:\
5638	:li#23:\
5639	:fs=\E&d@\E&w7f2p1I\E&w4f1I:\
5640	:i1=\E&q3t0{0H \E&w0f115n1I \E&w0f1n2I \E&w2f1i0d0u22l0S \E&w2f2i0d23u23l0S \E&w7f2p1I \r:\
5641	:ts=\E&w7f2p2I\E&w4f2I\r\EK\E&a%dC:tc=hp2626:
5642# Force terminal back to 24 lines after being 23.
5643hp2626-ns|hp 2626 using all 24 lines:\
5644	:i1=\E&q3t0{0H \E&w0f118n1I \E&w0f1n2I \E&w2f1i0d0u23l0S \E&w3f2I \E&w7f2p1I \r:\
5645	:tc=hp2626:
5646# Various entries useful for small windows on 2626.
5647hp2626-12|hewlett-packard 2626 12 lines:\
5648	:li#12:tc=hp2626:
5649hp2626-12x40|hewlett-packard 2626 12 lines 40 columns:\
5650	:co#40:li#12:tc=hp2626:
5651hp2626-x40|hewlett-packard 2626 40 columns:\
5652	:co#40:tc=hp2626:
5653hp2626-12-s|hewlett-packard 2626 11 lines plus status:\
5654	:li#11:tc=hp2626-s:
5655
5656#
5657# hp2627 color tubes from University of Wisconsin
5658#
5659hp2627a-rev|hp 2627 with reverse video colors:\
5660	:cr=^M:do=^J:\
5661	:is=\E&v0m1a0b0c1x1y1z1i0a0b1c1x1y1z0i0S\E&j@\r\E3\r:\
5662	:kb=^H:kd=^J:kl=^H:nw=^M^J:sf=^J:ta=^I:ue=\E&v0S\E&d@:\
5663	:us=\E&dD\E&v1S:tc=hp2621-nl:
5664hp2627a|hp 2627 color terminal with no labels:\
5665	:cr=^M:do=^J:\
5666	:is=\E&v0m1a1b0c1i0a1b1c2i1a0b0c0i0S\E&j@\r\E3\r:\
5667	:kb=^H:kd=^J:kl=^H:nw=^M^J:se=\E&v0S:sf=^J:so=\E&v2S:ta=^I:\
5668	:ue=\E&v0S\E&d@:us=\E&dD\E&v1S:tc=hp2621-nl:
5669hp2627c|hp 2627 color (cyan) terminal with no labels:\
5670	:cr=^M:do=^J:\
5671	:is=\E&v0m1a0b0c2i1a1b0c1i0a1b1c0i0S\E&j@\r\E3\r:\
5672	:kb=^H:kd=^J:kl=^H:nw=^M^J:sf=^J:ta=^I:tc=hp2627a:
5673
5674# hp2640a doesn't have the Y cursor addressing feature, and C is
5675# memory relative instead of screen relative, as we need.
5676#
5677hp2640a|hp 2640a:\
5678	:cm@:ke@:ks@:tc=hp2645:
5679
5680hp2640b|hp2644a|hp 264x series:\
5681	:ke@:ks@:tc=hp2645:
5682
5683# (hp2641a: removed unknown :gu: -- esr)
5684hp2641a|hp2645a|hp2647a|HP 264?A series BRL entry:\
5685	:am:da:db:mi:xs:\
5686	:co#80:li#24:\
5687	:al=\EL:bl=^G:cd=\EJ:ce=\EK:ch=\E&a%2C:cl=\EH\EJ:\
5688	:cm=\E&a%r%2c%2Y:cr=^M:cv=\E&a%2Y:dc=\EP:dl=\EM:do=^J:\
5689	:ei=\ER:if=/usr/share/tabset/std:im=\EQ:is=500\EE:kb=^H:\
5690	:kd=^J:kl=^H:le=^H:nd=\EC:nw=^M^J:se=\E&d@:sf=^J:so=\E&dB:\
5691	:ta=^I:up=\EA:
5692
5693# This terminal should be used at 4800 baud or less. It needs padding for
5694# plain characters at 9600, I guessed at an appropriate cr delay.  It really
5695# wants ^E/^F handshaking, but that doesn't work well even if you write
5696# software to support it.
5697hp2645|hp45|HP 2645 series:\
5698	:pb#9600:\
5699	:cr=20\r:kA=\EL:kD=\EP:kE=\EK:kF=\ES:kI=\EQ:kL=\EM:kM=\ER:\
5700	:kN=\EU:kP=\EV:kR=\ET:kS=\EJ:kT=\E1:kd=\EB:ke=\E&s0A:kh=\Eh:\
5701	:kl=\ED:kr=\EC:ks=\E&s1A:kt=\E2:ku=\EA:mb=\E&dA:me=\E&d@:\
5702	:mh=\E&dH:mr=\E&dB:us=\E&dD:tc=hpgeneric:
5703# You should use this terminal at 4800 baud or less.
5704hp2648|hp2648a|HP 2648a graphics terminal:\
5705	:cl=50\EH\EJ:cm=20\E&a%r%dc%dY:dc=7\EP:ip=5:tc=hp2645:
5706
5707# The HP 150 terminal is a fairly vanilla HP terminal, with the
5708# clreol standout problem. It also has graphics capabilities and
5709# a touch screen, which we don't describe here.
5710hp150|hewlett packard Model 150:\
5711	:bs:tc=hp2622:
5712
5713# HP 2382a terminals, "the little ones." They don't have any
5714# alternate character set support and sending out ^N/^O will
5715# leave the screen blank.
5716hp2382a|hp2382|hewlett packard 2382a:\
5717	:da:db:\
5718	:lh#1:lm#48:\
5719	:ac@:ae@:as@:me=\E&d@:tc=hp+labels:tc=scrhp:
5720
5721hp2621-a|hp2621a-a|hp2621 with fn as arrows:\
5722	:tc=hp+pfk+arrows:tc=hp2621-fl:
5723
5724# newer hewlett packard terminals
5725
5726newhpkeyboard|generic entry for HP extended keyboard:\
5727	:kA=\EL:kB=\Ei:kC=\EJ:kD=\EP:kE=\EK:kF=\ET:kH=\EF:kI=\EQ:\
5728	:kL=\EM:kM=\ER:kN=\EU:kP=\EV:kR=\ES:kS=\EJ:kb=^H:kd=\EB:\
5729	:ke=\E&s0A:kh=\Eh:kl=\ED:kr=\EC:ks=\E&s1A:ku=\EA:\
5730	:tc=hp+pfk-cr:
5731
5732newhp|generic entry for new hewlett packard terminals:\
5733	:am:bw:mi:xo:xs:\
5734	:co#80:li#24:pb#4800:\
5735	:ac=2[3@4>5I9(\072'JSKWLQMAO#P$Q;R!S"T1U2V4W3X\072Y+Z*dHjGkTlRmFn/q,t5u6v8w7x.:\
5736	:ae=^O:al=\EL:as=^N:bl=^G:bt=\Ei:cd=\EJ:ce=\EK:cr=^M:ct=\E3:\
5737	:dc=2\EP:dl=\EM:do=^J:ei=\ER:i1=8\E&jB:im=\EQ:ip=2:le=^H:\
5738	:mb=\E&dA:md=\E&dF:me=\E&d@:mh=\E&dH:mk=\E&dS:mr=\E&dB:\
5739	:nd=\EC:nw=^M^J:r1=\Eg:se=\E&d@:sf=^J:so=\E&dJ:sr=\ET:\
5740	:st=\E1:ta=2\011:ue=\E&d@:up=\EA:us=\E&dD:\
5741	:tc=newhpkeyboard:
5742
5743memhp|memory relative addressing for new HP ttys:\
5744	:vt#6:\
5745	:CM=\E&a%dr%dC:DO=\E&a+%dR:LE=\E&a-%dC:RI=\E&a+%dC:\
5746	:UP=\E&a-%dR:ch=\E&a%dC:cl=40\EH\EJ:cm=\E&a%dr%dC:\
5747	:cv=\E&a%dR:ho=\EH:ll=\E&a23R\r:tc=newhp:
5748
5749scrhp|screen relative addressing for new HP ttys:\
5750	:CM=\E&a%dr%dC:DO=\E&a+%dR:LE=\E&a-%dC:RI=\E&a+%dC:\
5751	:UP=\E&a-%dR:ch=\E&a%dC:cl=40\E&a0c0Y\EJ:\
5752	:cm=10\E&a%dy%dC:cv=\E&a%dY:ho=\E&a0y0C:ll=\E&a0y0C\EA:\
5753	:tc=newhp:
5754
5755# (hp+labels: added label values from a BRL termcap -- esr)
5756hp+labels|"standard" label info for new HP ttys:\
5757	:Nl#8:lh#2:lw#8:\
5758	:LF=\E&j@:LO=\E&jB:l0=f1:l1=f2:l2=f3:l3=f4:l4=f5:l5=f6:l6=f7:\
5759	:l7=f8:
5760
5761hp+printer|"standard" printer info for HP ttys:\
5762	:ff=\E&p4u0C:pf=\E&p13C:po=\E&p11C:ps=\EH\E&p4dF:
5763
5764
5765# The new hp2621b is kind of a cross between the old 2621 and the
5766# new 262x series of machines. It has dip-switched options.
5767# The firmware has a bug in it such that if you give it a null
5768# length label, the following character is eaten!
5769hp2621b|hp 2621b with old style keyboard:\
5770	:Nl#8:lh#1:lm#48:lw#8:\
5771	:LO=\E&jB:kF=\ET:kH=\EF:kR=\ES:kd=\EB:kh=\Eh:kl=\ED:kr=\EC:\
5772	:ku=\EA:tc=hp2621:
5773
5774hp2621b-p|hp 2621b with printer:\
5775	:tc=hp+printer:tc=hp2621b:
5776
5777# hp2621b - new 2621b with new extended keyboard
5778# these are closer to the new 26xx series than the other 2621b
5779hp2621b-kx|hp 2621b with extended keyboard:\
5780	:tc=newhpkeyboard:tc=hp2621b:
5781
5782hp2621b-kx-p|hp 2621b with new keyboard & printer:\
5783	:tc=hp+printer:tc=hp2621b-kx:
5784
5785# Some assumptions are made in the following entries.
5786# These settings are NOT set up by the initialization strings.
5787#
5788#    Port Configuration
5789# RecvPace=Xon/Xoff	XmitPace=Xon/Xoff	StripNulDel=Yes
5790#
5791#    Terminal Configuration
5792# InhHndShk(G)=Yes	InhDC2(H)=Yes
5793# XmitFnctn(A)=No		InhEolWrp=No
5794#
5795#
5796# Hp 2622a & hp2623a display and graphics terminals
5797#
5798hp2622|hp2622a|hp 2622:\
5799	:da:db:\
5800	:lm#0:pb#19200:\
5801	:is=\E&dj@\r:tc=hp+pfk+cr:tc=hp+labels:tc=scrhp:
5802
5803# The 2623 is a 2622 with extra graphics hardware.
5804hp2623|hp2623a|hp 2623:\
5805	:tc=hp2622:
5806
5807hp2624b-p|hp2624b-4p-p|hewlett packard 2624 B with printer:\
5808	:tc=hp+printer:tc=hp2624:
5809
5810# The hewlett packard B can have an optional extra 6 pages of memory.
5811hp2624-10p|hp2624a-10p|hp2624b-10p|hewlett packard 2624 B w/ 10 pages of memory:\
5812	:lm#240:tc=hp2624:
5813
5814hp2624b-10p-p|hewlett packard 2624 B w/ extra memory & printer:\
5815	:lm#240:tc=hp2624b-p:
5816
5817# Color manipulations for HP terminals
5818hp+color|hp with colors:\
5819	:cc:\
5820	:Co#16:NC#17:pa#7:\
5821	:oc=\E&v0m1a1b1c0I\E&v1a1I\E&v1b2I\E&v1a1b3I\E&v1c4I\E&v1a1c5I\E&v1b1c6I\E&v1x1y7I:\
5822	:op=\E&v0S:sp=\E&v%dS:
5823
5824# :is: sets the screen to be 80 columns wide
5825hp2397a|hp2397|hewlett packard 2397A color terminal:\
5826	:is=\E&w6f80X:tc=memhp:tc=hp+labels:tc=hp+color:
5827
5828#  HP 700/44 Setup parameters:
5829# Terminal Mode		HP-PCterm
5830# Inhibit Auto Wrap	NO
5831# Status Line		Host Writable
5832# PC Character Set	YES
5833# Twenty-Five Line Mode	YES
5834# XON/XOFF		@128 or 64 (sc)
5835# Keycode Mode 		NO   or YES (sc)
5836# Backspace Key		BS or BS/DEL
5837#
5838# :is: 	sets pcterm; autowrap; 25 lines; pc char set; prog DEL key;
5839# \E\\? does not turn off keycode mode
5840# <smsc>	sets alternate start/stop; keycode on
5841hpansi|hp700|hewlett packard 700/44 in HP-PCterm mode:\
5842	:am:eo:xn:xo:\
5843	:co#80:li#25:\
5844	:@7=\E[4~:RA=\E[?7l:S4=250\E[>11h\EPO**x0/65;1/67\E\\:\
5845	:S5=\E[>11l\EP1**x0/11;1/13\E[m\E\\:SA=\E[?7h:XF=g:XN=e:\
5846	:ac=j\331k\277l\332m\300n\305q\304t\303u\264v\301w\302x\263:\
5847	:al=\E[L:bl=^G:bt=\E[Z:cd=\E[J:ce=\E[K:cl=\E[2J\E[H:\
5848	:cm=\E[%i%d;%dH:cr=^M:dc=\E[P:dl=\E[M:do=\E[B:ei=:ho=\E[H:\
5849	:ic=\E[@:im=:\
5850	:is=\E[44"p\E[?7h\E[>10h\E[>12h\EP1;1|3/7F\E\\:\
5851	:k1=\E[17~:k2=\E[18~:k3=\E[19~:k4=\E[20~:k5=\E[21~:\
5852	:k6=\E[23~:k7=\E[24~:k8=\E[25~:k9=\E[26~:k;=\E[28~:\
5853	:kB=\E[Z:kN=\E[6~:kP=\E[5~:kb=^H:kd=\E[B:kh=\E[1~:kl=\E[D:\
5854	:kr=\E[C:ku=\E[A:le=\E[D:me=\E[m:nd=\E[C:se=\E[m:sf=^J:\
5855	:so=\E[7m:ta=^I:ue=\E[m:up=\E[A:us=\E[4m:ve=\E[?25h:\
5856	:vi=\E[?25l:
5857#
5858# (hp2392: copied :ei: here from hpex -- esr)
5859hp2392|239x series:\
5860	:co#80:\
5861	:bt=\Ei:cm=\E&a%dy%dC:cv=\E&a%dY:ei=\ER:im=\EQ:k1=\Ep\r:\
5862	:k2=\Eq\r:k3=\Er\r:k4=\Es\r:k5=\Et\r:k6=\Eu\r:k7=\Ev\r:\
5863	:k8=\Ew\r:kF=\EU:kN=\Eu:kP=\Ev:kR=\EV:kh=\Eh:ue=\E&d@:\
5864	:us=\E&dD:tc=hpsub:
5865
5866hpsub|hp terminals -- capability subset:\
5867	:am:da:db:mi:xo:xs:\
5868	:li#24:\
5869	:al=\EL:bl=^G:cd=\EJ:ce=\EK:ch=\E&a%dC:cl=\EH\EJ:cr=^M:\
5870	:dc=\EP:dl=\EM:do=\EB:if=/usr/share/tabset/stdcrt:\
5871	:is=\E&s1A\E<\E&k0\\:kb=^H:kd=\EB:ke=\E&s0A:kh=\Eh:kl=\ED:\
5872	:kr=\EC:ks=\E&s1A:ku=\EA:le=^H:me=\E&d@:nd=\EC:se=\E&d@:\
5873	:sf=^J:so=\E&dB:ta=^I:up=\EA:
5874
5875# hpex:
5876#	May be used for most 24 x 80 hp terminals,
5877# but has no padding added, so may allow runover in some terminals at high
5878# baud rates.  Will not work for hp2640a or hp2640b terminals, hp98x6 and
5879# hp98x5 terminal emulators or hp98x6 consoles.
5880# 	Adds xy-cursor addressing, vertical cursor addressing, home,
5881# last line, and underline capabilities.
5882#
5883# (hpex: removed memory-lock capabilities ":ml=\El:mu=\Em:",
5884# moved :ei: here from hpsub -- esr)
5885hpex|hp extended capabilites:\
5886	:cm=\E&a%dy%dC:cr=^M:cv=\E&a%dY:do=^J:ei=\ER:im=\EQ:kb=^H:\
5887	:kd=^J:kl=^H:nw=^M^J:sf=^J:ta=^I:ue=\E&d@:us=\E&dD:tc=hpsub:
5888
5889# From: Ville Sulko <Ville.Sulko@bip.atk.tpo.fi>, 05 Aug 1996
5890hp2|hpex2|hewlett-packard extended capabilities newer version:\
5891	:am:da:db:mi:xs:\
5892	:Nl#8:co#80:lh#2:li#24:lm#0:lw#8:sg#0:ug#0:\
5893	:LF=\E&j@:LO=\E&jB:al=\EL:bl=^G:cd=\EJ:ce=\EK:ch=\E&a%dC:\
5894	:cl=\E&a0y0C\EJ:cm=\E&a%dy%dC:cr=^M:ct=\E3:cv=\E&a%dY:\
5895	:dc=\EP:dl=\EM:do=\EB:ei=\ER:im=\EQ:k1=\Ep:k2=\Eq:k3=\Er:\
5896	:k4=\Es:k5=\Et:k6=\Eu:k7=\Ev:k8=\Ew:kA=\EL:kC=\EJ:kD=\EP:\
5897	:kE=\EK:kF=\ES:kH=\EF:kI=\EQ:kL=\EM:kM=\ER:kN=\EU:kP=\EV:\
5898	:kR=\ET:kS=\EJ:kT=\E1:ka=\E3:kb=^H:kd=\EB:ke=\E&s0A:kh=\Eh:\
5899	:kl=\ED:kr=\EC:ks=\E&s1A:kt=\E2:ku=\EA:le=^H:me=\E&d@\017:\
5900	:ml=\El:mu=\Em:nd=\EC:se=\E&d@:sf=^J:so=\E&dB:st=\E1:ta=^I:\
5901	:ue=\E&d@:up=\EA:us=\E&dD:
5902
5903# HP 236 console
5904# From: <ddavis@ic.berkeley.edu>
5905hp236|hp236 internal terminal emulator:\
5906	:am:bs:\
5907	:co#80:li#24:\
5908	:al=\EG:ce=\EK:cl=\EF:cm=\EE%+ %+ :dc=\EJ:dl=\EH:ei=:ic=\EI:\
5909	:im=:le=^H:me=\ECI:se=\ECI:so=\EBI:up=^K:ve=\EDE:vs=\EDB:
5910
5911# This works on a hp300 console running Utah 4.3 BSD
5912# From: Craig Leres <leres@okeeffe.berkeley.edu>
5913hp300h|HP Catseye console:\
5914	:am:bs:da:db:mi:xs:\
5915	:co#128:li#51:lm#0:sg#0:ug#0:\
5916	:al=\EL:bl=^G:bt=\Ei:cd=\EJ:ce=\EK:ch=\E&a%dC:\
5917	:cl=\E&a0y0C\EJ:cm=\E&a%dy%dC:cr=^M:ct=\E3:cv=\E&a%dY:\
5918	:dc=\EP:dl=\EM:do=\EB:ei=\ER:if=/usr/share/tabset/stdcrt:\
5919	:im=\EQ:kb=^H:kd=\EB:ke=\E&s0A:kh=\Eh:kl=\ED:kr=\EC:\
5920	:ks=\E&s1A:ku=\EA:le=^H:me=\E&d@:nd=\EC:se=\E&d@:sf=^J:\
5921	:so=\E&dB:ta=^I:ue=\E&d@:up=\EA:us=\E&dD:
5922# From: Greg Couch <gregc@ernie.berkeley.edu>
5923hp9837|hp98720|hp98721|HP 9000/300 workstations:\
5924	:am:bs:da:db:mi:xs:\
5925	:co#128:it#8:li#46:lm#0:\
5926	:al=\EL:bl=^G:bt=\Ei:cd=\EJ:ce=\EK:ch=\E&a%dC:\
5927	:cl=\E&a0y0C\EJ:cm=\E&a%dy%dC:ct=\E3:cv=\E&a%dY:dc=\EP:\
5928	:dl=\EM:do=\EB:ei=\ER:im=\EQ:is=\E&v0m1b0i&j@:kA=\EL:\
5929	:kD=\EP:kE=\EK:kI=\EQ:kL=\EM:kN=\EU:kP=\EV:kS=\EJ:kb=^H:\
5930	:kd=\EB:ke=\E&s0A:kh=\Eh:kl=\ED:kr=\EC:ks=\E&s1A:ku=\EA:\
5931	:le=^H:me=\E&d@:nd=\EC:se=\E&v0S:sf=^J:so=\E&v5S:st=\E1:\
5932	:ta=^I:ue=\E&d@:up=\EA:us=\E&dD:
5933# HP 9845 desktop computer from BRL
5934# (hp9845: removed unknown capability :gu: -- esr)
5935hp9845|HP 9845:\
5936	:am:bs:da:db:eo:mi:xs:\
5937	:co#80:li#21:\
5938	:al=\EL:bc=\ED:cd=\EJ:ce=\EK:cl=\EH\EJ:cm=\E&a%r%2c%2Y:\
5939	:dc=\EP:dl=\EM:do=\EB:ei=\ER:if=/usr/share/tabset/std:\
5940	:im=\EQ:le=\ED:nd=\EC:se=\E&d@:so=\E&dB:up=\EA:
5941# From: Charles A. Finnell of MITRE <finnell@mitre.org>, developed 07SEP90
5942# (hp98550: replaced /usr/share/tabset/9837 with std because :it#8:,:st=\E1:;
5943# added empty <acsc> to avoid warnings re :as:/:ae: --esr)
5944hp98550|hp98550a|HP 9000 Series 300 color console:\
5945	:am:bs:da:db:mi:xs:\
5946	:co#128:it#8:li#49:lm#0:\
5947	:ac=:ae=^O:al=\EL:as=^N:bl=^G:bt=\Ei:cd=\EJ:ce=\EK:\
5948	:ch=\E&a%dC:cl=\EH\EJ:cm=\E&a%dy%dC:cr=^M:ct=\E3:\
5949	:cv=\E&a%dY:dc=\EP:dl=\EM:do=^J:ei=\ER:\
5950	:if=/usr/share/tabset/std:im=\EQ:k1=\Ep:k2=\Eq:k3=\Er:\
5951	:k4=\Es:k5=\Et:k6=\Eu:k7=\Ev:k8=\Ew:kA=\EL:kC=\EJ:kD=\EP:\
5952	:kE=\EK:kF=\ES:kH=\EF:kI=\EQ:kL=\EM:kM=\ER:kN=\EU:kP=\EV:\
5953	:kR=\ET:kS=\EJ:kT=\E1:ka=\E3:kb=^H:kd=\EB:ke=\E&s0A:kh=\Eh:\
5954	:kl=\ED:kr=\EC:ks=\E&s1A:kt=\E2:ku=\EA:le=^H:mb=\E&dA:\
5955	:md=\E&dJ:me=\E&d@:mh=\E&dH:mk=\E&ds:mr=\E&dJ:nd=\EC:\
5956	:se=\E&d@:sf=^J:so=\E&dJ:st=\E1:ta=^I:ue=\E&d@:up=\EA:\
5957	:us=\E&dD:ve=\E*dQ:vi=\E*dR:
5958# From: Victor Duchovni <vic@fine.princeton.edu>
5959# (hp700-wy: removed obsolete ":nl=^J:";
5960# replaced /usr/share/tabset/hp700-wy with std because :it#8:,:st=\E1: -- esr)
5961hp700-wy|HP700/41 emulating wyse30:\
5962	:am:bs:bw:mi:ms:\
5963	:co#80:it#8:li#24:sg#1:ug#1:\
5964	:al=0.7*\EE:bt=\EI:cd=\EY:ce=10\ET:cl=^Z:cm=\E=%+ %+ :\
5965	:cr=^M:ct=\E0:cv=\E[%+ :dc=\EW:dl=\ER:do=^V:ei=\Er:ho=^^:\
5966	:i1=\E~"\EC\Er\E(\EG0\003\E`9\E`1:\
5967	:if=/usr/share/tabset/stdcrt:im=\Eq:kB=\EI:kC=^Z:kE=\ET:\
5968	:kI=\Eq:kM=\Er:kS=\EY:kT=\EI:kb=\177:kd=^V:kh=^^:kl=^H:kr=^L:\
5969	:ku=^K:le=^H:ll=^^^K:me=10\EG0:nd=^L:se=10\EG0:so=10\EG4:\
5970	:sr=\Ej:st=\E1:ta=^I:ue=10\EG0:up=^K:us=10\EG8:
5971hp70092|hp70092a|hp70092A|HP 700/92:\
5972	:am:da:db:xs:\
5973	:Nl#8:co#80:lh#2:li#24:lm#0:lw#8:\
5974	:LF=\E&j@:LO=\E&jB:ac=0cjgktlrmfn/q,t5u6v8w7x.:ae=^O:\
5975	:al=\EL:as=^N:bl=^G:bt=\Ei:ce=\EK:ch=\E&a%dC:\
5976	:cl=\E&a0y0C\EJ:cm=\E&a%dy%dC:cr=^M:ct=\E3:cv=\E&a%dY:\
5977	:dc=\EP:dl=\EM:do=\EB:ei=\ER:im=\EQ:k1=\Ep:k2=\Eq:k3=\Er:\
5978	:k4=\Es:k5=\Et:k6=\Eu:k7=\Ev:k8=\Ew:kA=\EL:kC=\EJ:kD=\EP:\
5979	:kE=\EK:kF=\ES:kH=\EF:kI=\EQ:kL=\EM:kM=\ER:kN=\EU:kP=\EV:\
5980	:kR=\ET:kS=\EJ:kT=\E1:ka=\E3:kb=^H:kd=\EB:ke=\E&s0A:kh=\Eh:\
5981	:kl=\ED:kr=\EC:ks=\E&s1A:kt=\E2:ku=\EA:le=^H:mb=\E&dA:\
5982	:md=\E&dB:me=\E&d@:mh=\E&dH:mr=\E&dB:nd=\EC:se=\E&d@:\
5983	:so=\E&dJ:sr=\ET:st=\E1:ta=^I:ue=\E&d@:up=\EA:us=\E&dD:
5984
5985bobcat|sbobcat|HP 9000 model 300 console:\
5986	:am:da:db:mi:xs:\
5987	:co#128:it#8:li#47:sg#0:ug#0:\
5988	:al=10*\EL:bt=\Ei:cd=\EJ:ce=\EK:ch=6\E&a%dC:cl=\EH\EJ:\
5989	:cm=6\E&a%dy%dC:cr=^M:cv=6\E&a%dY:dc=\EP:dl=10*\EM:do=\EB:\
5990	:ei=\ER:im=\EQ:kb=^H:kd=\EB:ke=\E&s0A:kh=\Eh:kl=\ED:kr=\EC:\
5991	:ks=\E&s1A:ku=\EA:le=^H:me=\E&d@:nd=\EC:nw=^M^J:se=\E&d@:\
5992	:sf=^J:so=\E&dB:ta=^I:ue=\E&d@:up=\EA:us=\E&dD:
5993gator-t|HP 9000 model 237 emulating extra-tall AAA:\
5994	:li#94:tc=gator:
5995gator|HP 9000 model 237 emulating AAA:\
5996	:bw:km:mi:ul:\
5997	:co#128:it#8:li#47:\
5998	:AL=1*\E[%dL:DC=4\E[%dP:DL=1*\E[%dM:IC=4\E[%d@:al=\E[L:\
5999	:bl=^G:bt=\E[Z:cd=\E[J:ce=\E[K:ch=\E[%i%d`:cl=\E[H\E[J:\
6000	:cm=\E[%i%d;%dH:cr=^M:dc=\E[P:dl=\E[M:do=^J:ei=:ho=\E[H:\
6001	:ic=\E[@:im=:kb=^H:kd=^J:kl=^H:le=^H:me=\E[m:mr=\E[7m:\
6002	:nd=\E[C:nw=^M^J:rp=1*%.\E[%db:se=\E[m:so=\E[7m:ta=^I:\
6003	:ue=\E[m:up=\EM:us=\E[4m:
6004gator-52|HP 9000 model 237 emulating VT52:\
6005	:co#128:li#47:tc=vt52:
6006gator-52t|HP 9000 model 237 emulating extra-tall VT52:\
6007	:li#94:tc=gator-52:
6008
6009#### Honeywell-Bull
6010#
6011# From: Michael Haardt <michael@gandalf.moria> 11 Jan 93
6012#
6013
6014# Honeywell Bull terminal.  Its cursor and function keys send single
6015# control characters and it has standout/underline glitch.  Most programs
6016# do not like these features/bugs.  Visual bell is realized by flashing the
6017# "keyboard locked" LED.
6018dku7003-dumb|Honeywell Bull DKU 7003 dumb mode:\
6019	:co#80:li#25:\
6020	:cd=^_:ce=\E[K:cl=^]^_:cm=\E[%i%d;%dH:cr=^M:do=^K:ho=^]:\
6021	:kb=^H:kd=^K:kh=^]:kl=^Y:kr=^X:ku=^Z:le=^Y:nd=^X:nw=^M^J:\
6022	:sf=^J:ta=^I:up=^Z:vb=\E[2h\E[2l:
6023dku7003|Honeywell Bull DKU 7003 all features described:\
6024	:ms:\
6025	:sg#1:ug#1:\
6026	:mb=\E[5m:md=\E[7m:me=\E[m:mh=\E[2m:mr=\E[7m:se=\E[m:\
6027	:so=\E[7m:ue=\E[m:us=\E[4m:tc=dku7003-dumb:
6028
6029#### Lear-Siegler (adm)
6030#
6031# These guys are long since out of the terminals business, but
6032# in 1995 many current terminals still have an adm type as one of their
6033# emulations (usually their stupidest, and usually labeled adm3, though
6034# these `adm3' emulations normally have adm3a+ capabilities).
6035#
6036# WARNING: Some early ADM terminals (including the ADM3 and ADM5) had a
6037# `diagnostic feature' that sending them a ^G while pin 22 (`Ring Indicator')
6038# was being held to ground would trigger a send of the top line on the screen.
6039# A quick fix might be to drop back to a cheesy 4-wire cable with pin 22
6040# hanging in the air. (Thanks to Eric Fischer, <eric@fudge.uchicago.edu>,
6041# for clearing up this point.)
6042
6043adm1a|adm1|lsi adm1a:\
6044	:am:\
6045	:co#80:li#24:\
6046	:bl=^G:cl=1\E;:cm=\E=%+ %+ :cr=^M:do=^J:ho=^^:le=^H:nd=^L:\
6047	:sf=^J:up=^K:
6048adm2|lsi adm2:\
6049	:am:bs:\
6050	:co#80:li#24:\
6051	:al=\EE:bl=^G:cd=\EY:ce=\ET:cl=\E;:cm=\E=%+ %+ :cr=^M:\
6052	:dc=\EW:dl=\ER:do=^J:ei=:ho=^^:ic=\EQ:im=:kd=^J:kh=^^:kl=^H:\
6053	:kr=^L:ku=^K:le=^H:nd=^L:sf=^J:up=^K:
6054# (adm3: removed obsolete ":ma=^K^P:" -- esr)
6055adm3|lsi adm3:\
6056	:am:bs:\
6057	:co#80:li#24:\
6058	:bl=^G:cl=^Z:cr=^M:do=^J:le=^H:sf=^J:
6059# The following ADM-3A switch settings are assumed for normal operation:
6060#	SPACE		U/L_DISP	CLR_SCRN	24_LINE
6061#	CUR_CTL		LC_EN		AUTO_NL		FDX
6062# Other switches may be set for operator convenience or communication
6063# requirements.  I recommend
6064#	DISABLE_KB_LOCK	LOCAL_OFF	103		202_OFF
6065#	ETX_OFF		EOT_OFF
6066# Most of these terminals required an option ROM to support lower case display.
6067# Open the case and look at the motherboard; if you see an open 24-pin DIP
6068# socket, you may be out of luck.
6069#
6070# (adm3a: some capabilities merged in from BRl entry -- esr)
6071adm3a|lsi adm3a:\
6072	:am:bs:\
6073	:co#80:li#24:\
6074	:bl=^G:cl=1\032:cm=\E=%+ %+ :cr=^M:do=^J:ho=^^:kd=^J:kl=^H:\
6075	:kr=^L:ku=^K:le=^H:ma=^K^P:nd=^L:nl=^J:rs=^N:sf=^J:up=^K:
6076adm3a+|adm3a plus:\
6077	:kb=^H:tc=adm3a:
6078# (adm5: removed obsolete ":ma=^Hh^Jj^Kk^Ll^^H:" & duplicate ":do=^J:" -- esr)
6079adm5|lsi adm5:\
6080	:sg#1:\
6081	:bl=^G:cd=\EY:ce=\ET:cr=^M:do=^J:kb=^H:kh=^^:se=\EG:so=\EG:\
6082	:tc=adm3a+:
6083# A lot of terminals other than adm11s use these.  Wherever you see
6084# use=adm+sgr with some of its capabilities disabled, try the
6085# disabled ones.  They may well work but not have been documented or
6086# expressed in the using entry.  We'd like to cook up an :sa: but the
6087# :ae:/:as: sequences of the using entries vary too much.
6088adm+sgr|adm style highlight capabilities:\
6089	:me=\EG0:mk=\EG1:mr=\EG4:se=\EG0:so=\EG4:ue=\EG0:us=\EG8:
6090# LSI ADM-11 from George William Hartwig, Jr. <geo@BRL-TGR.ARPA> via BRL
6091# Status line additions from Stephen J. Muir <stephen%comp.lancs.ac.uk@ucl-cs>
6092# :kh: from <stephen%comp.lancs.ac.uk@ucl-cs.arpa>.  :cl: could also
6093# be ^Z, according to his entry.
6094# (adm11: :us:=\EG4 was obviously erroneous because it also said
6095# :mr:=\EG4.  Looking at other ADMs confirms this -- esr)
6096adm11|LSI ADM-11:\
6097	:am:bs:hs:\
6098	:co#80:kn#8:li#24:\
6099	:bl=^G:cd=\EY:ce=\ET:cl=\E*:cm=\E=%+ %+ :cr=^M:do=^J:ds=\Eh:\
6100	:fs=\E(\r:ho=^^:k1=^A@\r:k2=^AA\r:k3=^AB\r:k4=^AC\r:\
6101	:k5=^AD\r:k6=^AE\r:k7=^AF\r:k8=^AG\r:kb=^H:kd=^J:kh=^^:\
6102	:kl=^H:kr=^L:ku=^K:le=^H:mb=\EG2:nd=^L:nl=^J:nw=^M^J:ta=^I:\
6103	:ts=\EF\E):up=^K:tc=adm+sgr:
6104# From: Andrew Scott Beals <bandy@lll-crg.ARPA>
6105# Corrected by Olaf Siebert <rhialto@polder.ubc.kun.nl>, 11 May 1995
6106# Supervisor mode info by Ari Wuolle, <awuolle@delta.hut.fi>, 27 Aug 1996
6107# (adm12: removed obsolete ":kn:ma=j^Jk^P^K^Pl ^R^L^L :".  This formerly had
6108# :is:=\Eq but that looked wrong; this :is: is from Dave Yost <esquire!yost>
6109# via BRL.  That entry asserted :sg#1:, but I've left that out because
6110# neither earlier nor later ADMSs have it -- esr)
6111#
6112# You will need to get into the supervisor setup before you can set
6113# baudrate etc. for your ADM-12+. Press Shift-Ctrl-Setup and you should
6114# see a lot more setup options.
6115#
6116# While in supervisor setup you can also use following codes:
6117#
6118# Ctrl-P Personality character selections (configure for example what
6119#        arrow keys send, if I recall correctly)
6120# Ctrl-T tabs 1-80   use left&right to move and up to set and
6121# Ctrl-V tabs 81-158 down to clear tab. Shift-Ctrl-M sets right margin at cursor
6122# Ctrl-B Binary setup (probably not needed. I think that everything can
6123#        be set using normal setup)
6124# Ctrl-A Answerback mode (enter answerback message)
6125# Ctrl-U User friendly mode (normal setup)
6126# Ctrl-D Defaults entire setup and function keys from EPROM tables
6127# Ctrl-S Save both setup and functions keys. Takes from 6 to 10 seconds.
6128# Ctrl-R Reads both setup and functions keys from NVM.
6129# Shift-Ctrl-X Unlock keyboard and cancel received X-OFF status
6130#
6131# ADM-12+ supports hardware handshaking, but it is DTR/CTS as opposed to
6132# RTS/CTS used nowadays with virtually every modem and computer. 19200
6133# bps works fine with hardware flow control.
6134#
6135# The following null-modem cable should fix this and enable you to use
6136# RTS/CTS handshaking (which Linux supports, use CRTSCTS setting). Also
6137# set ADM-12+ for DTR handshaking from supervisor setup.
6138#
6139# PC Serial   ADM-12+
6140#  --------   -------
6141#         2 - 3
6142#         3 - 2
6143#         4 - 5
6144#         5 - 20
6145#       6,8 - 4
6146#         7 - 7
6147#        20 - 6,8
6148#
6149adm12|lsi adm12:\
6150	:am:bs:mi:pt:\
6151	:co#80:it#8:li#24:ug#1:\
6152	:al=\EE:bl=^G:cd=\EY:ce=\ET:cl=^Z:cm=\E=%+ %+ :cr=^M:ct=\E0:\
6153	:dc=\EW:dl=\ER:do=^J:ei=\Er:ho=^^:ic=\EQ:im=\Eq:\
6154	:is=\E0        \E1        \E1        \E1        \E1        \E1        \E1        \E1        \E1:\
6155	:k0=^A0\r:k1=^A1\r:k2=^A2\r:k3=^A3\r:k4=^A4\r:k5=^A5\r:\
6156	:k6=^A6\r:k7=^A7\r:k8=^A8\r:k9=^A9\r:kd=^J:kl=^H:kr=^L:\
6157	:ku=^K:le=^H:nd=^L:st=\E1:up=^K:tc=adm+sgr:
6158# (adm20: removed obsolete ":kn#7:" -- esr)
6159adm20|lear siegler adm20:\
6160	:am:bs:\
6161	:co#80:it#8:li#24:\
6162	:al=\EE:bl=^G:bt=\EI:cd=\EY:ce=\ET:cl=^Z:\
6163	:cm=\E=%i%r%+^_%+^_:cr=^M:dc=\EW:dl=\ER:ei=:ho=^^:ic=\EQ:\
6164	:im=:k1=^A:k2=^B:k3=^W:k4=^D:k5=^E:k6=^X:k7=^Z:le=^H:me=\E(:\
6165	:nd=^L:se=\E(:so=\E):ta=^I:up=^K:
6166adm21|lear siegler adm21:\
6167	:sg#1:\
6168	:al=30*\EE:bl=^G:cd=\EY:ce=\ET:cr=^M:dc=\EW:dl=30*\ER:do=^J:\
6169	:ei=:ic=\EQ:im=:kb=^H:kd=^J:kh=^^:kl=^H:kr=^L:ku=^K:mk@:sf=^J:\
6170	:tc=adm+sgr:tc=adm3a:
6171# (adm22: ":em=:" was an obvious typo for ":ei=:"; also,
6172# removed obsolete ":kn#7:ma=j^Jk^P^K^Pl ^R^L^L :";
6173# removed bogus-looking \200 from before :cm:. -- esr)
6174adm22|lsi adm22:\
6175	:am:bs:\
6176	:co#80:li#24:\
6177	:al=\EE:bl=^G:bt=\EI:cd=\Ey:ce=\Et:cl=\E+:cm=\E=%+ %+ :\
6178	:cr=^M:dc=\EW:dl=\ER:do=^J:ei=:ho=^^:ic=\EQ:im=:\
6179	:is=\E%\014\014\014\016\003\200\003\002\003\002\200\200\200\200\200\200\200\200\200\200\200:\
6180	:k1=^A@\r:k2=^AA\r:k3=^AB\r:k4=^AC\r:k5=^AD\r:k6=^AE\r:\
6181	:k7=^AF\r:kb=^H:kd=^J:kh=^^:kl=^H:kr=^L:ku=^K:l1=F1:l2=F2:\
6182	:l3=F3:l4=F4:l5=F5:l6=F6:l7=F7:le=^H:me=\E(:nd=^L:se=\E(:\
6183	:so=\E):ta=\Ei:up=^K:
6184# ADM 31 DIP Switches
6185#
6186# This information comes from two versions of the manual for the
6187# Lear-Siegler ADM 31.
6188#
6189# Main board:
6190#                  rear of case
6191#   +-||||-------------------------------------+
6192#   + S1S2                              ||S    +
6193#   +                                   ||3    +
6194#   +                                          +
6195#   +                                ||S       +
6196#   +                                ||4       +
6197#   +                                          +
6198#   +                                          +
6199#   +                                          +
6200#   +                                          +
6201#   +                                          +
6202# +-+                                          +-+
6203# +                                              +
6204# +                               S5 S6 S7       +
6205# +                               == == ==       +
6206# +----------------------------------------------+
6207#            front of case (keyboard)
6208#
6209#  S1 - Data Rate - Modem
6210#  S2 - Data Rate - Printer
6211# ------------------------
6212# Data Rate   Setting
6213# -------------------
6214# 50          0 0 0 0
6215# 75          1 0 0 0
6216# 110         0 1 0 0
6217# 134.5       1 1 0 0
6218# 150         0 0 1 0
6219# 300         1 0 1 0
6220# 600         0 1 1 0
6221# 1200        1 1 1 0
6222# 1800        0 0 0 1
6223# 2000        1 0 0 1
6224# 2400        0 1 0 1
6225# 3600        1 1 0 1
6226# 4800        0 0 1 1
6227# 7200        1 0 1 1
6228# 9600        0 1 1 1
6229# x           1 1 1 1
6230#
6231# S3 - Interface/Printer/Attributes
6232# ---------------------------------
6233# Printer Busy Control
6234# sw1   sw2   sw3
6235# ---------------
6236# off   off   off   Busy not active, CD disabled
6237# off   off   on    Busy not active, CD enabled
6238# off   on    off   Busy active on J5-20, CD disabled
6239# on    off   off   Busy active on J5-19, CD disabled - Factory Set.
6240# on    off   on    Busy active on J5-19, CD enabled
6241#
6242# sw4   Used in conjuction with S4 for comm interface control - Fact 0
6243#
6244# sw5   Secondary Channel Control (Hardware implementation only) - Fact 0
6245#
6246# sw6   ON enables printer BUSY active LOW - Factory Setting
6247#       OFF enables printer BUSY active HIGH - If set to this, ADM31 senses
6248#
6249# sw7   ON - steady cursor - Factory Setting
6250#       OFF - blinking cursor
6251#
6252# sw8   ON causes selected attribute character to be displayed
6253#       OFF causes SPACE to be displayed instead - Factory Setting
6254#
6255# S4 - Interface
6256# --------------
6257# Modem Interface
6258# S3    S4    S4    S4    S4
6259# sw4   sw1   sw2   sw3   sw4
6260# ---------------------------
6261# OFF   ON    OFF   ON    OFF   Enable RS-232C interface, Direct Connect and
6262#                               Current Loop disabled - Factory Setting
6263# ON    ON    OFF   ON    OFF   Enable Current Loop interface, Direct Connect
6264#                               disabled
6265# OFF   OFF   ON    OFF   ON    Enable Direct Connect interface, RS-232C and
6266#                               Current Loop Disabled
6267#
6268# sw5   ON disables dot stretching mode - Factory Setting
6269#       OFF enables dot stretching mode
6270# sw6   ON enables blanking function
6271#       OFF enables underline function - Factory Setting
6272# sw7   ON causes NULLS to be displayed as NULLS
6273#       OFF causes NULLS to be displayed as SPACES - Factory Setting
6274#
6275# S5 - Word Structure
6276# -------------------
6277# sw1   ON enables BREAK key - Factory Setting
6278#       OFF disables BREAK key
6279# sw2   ON selects 50Hz monitor refresh rate
6280#       OFF selects 60Hz monitor refresh rate - Factory Setting
6281#
6282# Modem Port Selection
6283# sw3   sw4   sw5
6284# ---------------
6285# ON    ON    ON    Selects 7 DATA bits, even parity, 2 STOP bits
6286# OFF   ON    ON    Selects 7 DATA bits, odd  parity, 2 STOP bits
6287# ON    OFF   ON    Selects 7 DATA bits, even parity, 1 STOP bit - Factory Set.
6288# OFF   OFF   ON    Selects 7 DATA bits, odd  parity, 1 STOP bit
6289# ON    ON    OFF   Selects 8 DATA bits, no   parity, 2 STOP bits
6290# OFF   ON    OFF   Selects 8 DATA bits, no   parity, 1 STOP bit
6291# ON    OFF   OFF   Selects 8 DATA bits, even parity, 1 STOP bit
6292# OFF   OFF   OFF   Selects 8 DATA bits, odd  parity, 1 STOP bit
6293#
6294# sw6   ON  sends bit 8 a 1 (mark)
6295#       OFF sends bit 8 as 0 (space) - Factory Setting
6296# sw7   ON  selects Block Mode
6297#       OFF selects Conversation Mode - Factory Setting
6298# sw8   ON  selects Full Duplex operation
6299#       OFF selects Half Duplex operation - Factory Setting
6300#
6301# S6 - Printer
6302# ------------
6303# sw1, sw2, sw6, sw7   Reserved - Factory 0
6304#
6305# Printer Port Selection
6306# same as Modem above, bit 8 (when 8 DATA bits) is always = 0
6307#
6308# sw8   ON   enables Printer Port
6309#       OFF disables Printer Port - Factory Setting
6310#
6311# S7 - Polling Address
6312# --------------------
6313# sw1-7 Establish ASCII character which designates terminal polling address
6314#       ON  = logic 0
6315#       OFF = logic 1 - Factory Setting
6316# sw8   ON   enables Polling Option
6317#       OFF disables Polling Option - Factory Setting
6318#
6319#
6320# On some older adm31s, S4 does not exist, and S5-sw6 is not defined.
6321#
6322# This adm31 entry uses underline as the standout mode.
6323# If the adm31 gives you trouble with standout mode, check the DIP switch in
6324# position 6, bank @c11, 25% from back end of the circuit board.  Should be
6325# OFF.  If there is no such switch, you have an old adm31 and must use oadm31.
6326# (adm31: removed obsolete ":ma=j^Jk^P^K^Pl ^R^L^L :" -- esr)
6327adm31|lsi adm31 with sw6 set for underline mode:\
6328	:am:bs:mi:\
6329	:co#80:li#24:\
6330	:al=\EE:bl=^G:cd=\EY:ce=\ET:cl=\E*:cm=\E=%+ %+ :cr=^M:\
6331	:dc=\EW:dl=\ER:do=^J:ei=\Er:ho=^^:im=\Eq:is=\Eu\E0:k0=^A0\r:\
6332	:k1=^A1\r:k2=^A2\r:k3=^A3\r:k4=^A4\r:k5=^A5\r:k6=^A6\r:\
6333	:k7=^A7\r:k8=^A8\r:k9=^A9\r:kd=^J:kl=^H:kr=^L:ku=^K:le=^H:\
6334	:me=\EG0:nd=^L:se=\EG0:sf=^J:so=\EG1:ue=\EG0:up=^K:us=\EG1:
6335adm31-old|o31|old adm31:\
6336	:so=\EG4:ue@:us@:tc=adm31:
6337# LSI ADM-36 from Col. George L. Sicherman <gloria!colonel> via BRL
6338adm36|LSI ADM36:\
6339	:bs:pt:\
6340	:kn#4:\
6341	:if=/usr/share/tabset/vt100:\
6342	:is=\E<\E>\E[6;?2;?7;?8h\E[4;20;?1;?3;?4;?5;?6;?18;?19l:\
6343	:tc=vt100:
6344# (adm42: removed obsolete ":ma=^K^P:" -- esr)
6345adm42|lsi adm42:\
6346	:am:bs:\
6347	:co#80:li#24:\
6348	:al=270\EE:bl=^G:bt=\EI:cd=\EY:ce=\ET:cl=\E;:cm=\E=%+ %+ :\
6349	:cr=^M:dc=\EW:dl=\ER:do=^J:ei=\Er:im=\Eq:ip=6*:kd=^J:kh=^^:\
6350	:kl=^H:kr=^L:ku=^K:le=^H:mk@:nd=^L:pc=\177:sf=^J:ta=^I:ue@:\
6351	:up=^K:us@:vs=\EC\E3 \E3(:tc=adm+sgr:
6352# The following termcap for the Lear Siegler ADM-42 leaves the
6353# "system line" at the bottom of the screen blank (for those who
6354# find it distracting otherwise)
6355adm42-ns|lsi adm-42 with no system line:\
6356	:al=\EE\EF \011:bt=\EI\EF \011:cd=\EY\EF \011:\
6357	:ce=\ET\EF \011:cl=\E;\EF \011:cm=\E=%+ %+ \EF \011:\
6358	:dc=\EW\EF \011:dl=\ER\EF \011:ei=\Er\EF \011:\
6359	:im=\Eq\EF \011:tc=adm42:
6360# ADM 1178 terminal -- rather like an ADM-42.  Manual is dated March 1 1985.
6361# The insert mode of this terminal is commented out because it's broken for our
6362# purposes in that it will shift the position of every character on the page,
6363# not just the cursor line!
6364# From: Michael Driscoll <fenris@lightspeed.net> 10 July 1996
6365adm1178|1178|lsi adm1178:\
6366	:am:\
6367	:co#80:li#24:sg#1:ug#1:\
6368	:al=\EE:bl=^G:bt=\EI:cd=\EY:ce=\ET:cl=\E+:cm=\E=%+ %+ :\
6369	:cr=^M:dc=\EW:dl=\ER:do=^J:ho=^^:ip=6*:kb=^H:kd=^J:kl=^H:\
6370	:le=^H:md=\E(:me=\E):mr=\EG4:nd=^L:nw=^M^J:pc=\177:se=\EG0:\
6371	:sf=^J:so=\EG4:ta=^I:ue=\EG0:up=^K:us=\EG1:vs=\EC\E3 \E3(:
6372
6373#### Prime
6374#
6375# Yes, Prime made terminals.  These entries were posted by Kevin J. Cummings
6376# <cummings@primerd.prime.com> on 14 Dec 1992 and lightly edited by esr.
6377# Prime merged with ComputerVision in the late 1980s; you can reach them at:
6378#
6379#	ComputerVision Services
6380#	500 Old Connecticut Path
6381#	Framingham, Mass.
6382#
6383
6384# Standout mode is dim reverse-video.
6385pt100|pt200|wren|fenix|prime pt100/pt200:\
6386	:am:bw:mi:ms:\
6387	:co#80:it#8:li#24:\
6388	:DC=\E[%dP:DO=\E[%dB:LE=\E[%dD:RI=\E[%dC:UP=\E[%dA:\
6389	:al=\E[L\E[t:bt=\E[Z:cd=\E[J\E[r:ce=\E[K\E[t:cl=\E?:\
6390	:cm=\E0%+!%+!:cr=^M:dc=\E[P:dl=\E[M:do=\ED:ei=\E[4l:\
6391	:ho=\E$B:im=\E[4h:kb=^H:kd=\E[B:ke=\E[>13l:kh=\E$A:kl=\E[D:\
6392	:kr=\E[C:ks=\E[>13h:ku=\E[A:le=^H:me=\E[m:mh=\E[2m:nd=\E[C:\
6393	:nw=^M^J:se=\E[m:sf=^J:so=\E[2;7m:ta=^I:te=:\
6394	:ti=\E[>1l\E[>2l\E[>16l\E[4l\E[>9l\E[20l\E[>3l\E[>7h\E[>12l\E[1Q:\
6395	:ue=\E[m:up=\EM:us=\E[4m:vb=\E$\E$P:
6396pt100w|pt200w|wrenw|fenixw|prime pt100/pt200 in 132-column mode:\
6397	:co#132:\
6398	:cm=\E[%i%d;%dH:tc=pt100:
6399pt250|Prime PT250:\
6400	:se@:so@:tc=pt100:
6401pt250w|Prime PT250 in 132-column mode:\
6402	:se@:so@:tc=pt100w:
6403
6404#### Qume (qvt)
6405#
6406#	Qume, Inc.
6407#	3475-A North 1st Street
6408#	San Jose CA 95134
6409#	Vox: (800)-457-4447
6410#	Fax: (408)-473-1510
6411#	Net: josed@techsupp.wyse.com (Jose D'Oliveira)
6412#
6413# Qume was bought by Wyse, but still (as of early 1995) has its own support
6414# group and production division.
6415#
6416# Discontinued Qume models:
6417#
6418# The qvt101 and qvt102 listed here are long obsolete; so is the qvt101+
6419# built to replace them, and a qvt119+ which was a 101+ with available wide
6420# mode (132 columns).  There was a qvt103 which added vt100/vt131 emulations
6421# and an ANSI-compatible qvt203 that replaced it.  Qume started producing
6422# ANSI-compatible terminals with the qvt323 and qvt61.
6423#
6424# Current Qume models (as of February 1995):
6425#
6426# All current Qume terminals have ANSI-compatible operation modes.
6427# Qume is still producing the qvt62, which features emulations for other
6428# popular lines such as ADDS, and dual-host capabilities.  The qvt82 is
6429# designed for use as a SCO ANSI terminal.  The qvt70 is a color terminal
6430# with many emulations including Wyse370, Wyse 325, etc.  Their newest
6431# model is the qvt520, which is vt420-compatible.
6432#
6433# There are some ancient printing Qume terminals under `Daisy Wheel Printers'
6434#
6435# If you inherit a Qume without docs, try Ctrl-Shift-Setup to enter its
6436# setup mode.  Shift-s should be a configuration save to NVRAM.
6437
6438qvt101|qvt108|qume qvt 101 and QVT 108:\
6439	:sg#1:tc=qvt101+:
6440
6441# This used to have :vs=\E.2: but no :ve: or :vi:.  The BSD termcap
6442# file had :vs=\EM4 \200\200\200:.  I've done the safe thing and yanked
6443# both. The :mr: is from BSD, which also claimed bold=\E( and dim=\E).
6444# What seems to be going on here is that this entry was designed so that
6445# the normal highlight is bold and standout is dim plus something else
6446# (reverse-video maybe?  But then, are there two :mr: sequences?)
6447qvt101+|qvt101p|qume qvt 101 PLUS product:\
6448	:am:bw:hs:ul:\
6449	:co#80:li#24:sg#0:\
6450	:al=\EE:bl=^G:bt=\EI:cd=\EY:ce=\ET:cl=^Z:cm=\E=%+ %+ :cr=^M:\
6451	:ct=\E3:dc=\EW:dl=\ER:do=^J:ds=\Eg\Ef\r:ei=:fs=^M:ho=^^:\
6452	:ic=\EQ:im=:k1=^A@\r:k2=^AA\r:k3=^AB\r:k4=^AC\r:k5=^AD\r:\
6453	:k6=^AE\r:k7=^AF\r:k8=^AG\r:k9=^AH\r:k;=^AI\r:kA=\EE:\
6454	:kB=\EI:kE=\ET:kI=\EQ:kL=\ER:kS=\EY:kb=^H:kd=^J:kh=^^:kl=^H:\
6455	:kr=^L:ku=^K:le=^H:mk@:nd=^L:pf=\EA:po=\E@:se=\E(:sf=^J:\
6456	:so=\E0P\E):st=\E1:ta=^I:ts=\Eg\Ef:up=^K:vb=\Eb\Ed:ve=\E.4:\
6457	:tc=adm+sgr:
6458qvt102|qume qvt 102:\
6459	:ve=\E.:tc=qvt101:
6460# (qvt103: added <rmam>/<smam> based on init string -- esr)
6461qvt103|qume qvt 103:\
6462	:am:xn:xo:\
6463	:co#80:it#8:li#24:vt#3:\
6464	:DO=\E[%dB:LE=\E[%dD:RA=\E[?7l:RI=\E[%dC:SA=\E[?7h:\
6465	:UP=\E[%dA:bl=^G:cd=50\E[J:ce=3\E[K:cl=50\E[H\E[2J:\
6466	:cm=5\E[%i%d;%dH:cr=^M:cs=\E[%i%d;%dr:ct=\E[3g:do=^J:\
6467	:ho=\E[H:k1=\EOP:k2=\EOQ:k3=\EOR:k4=\EOS:kb=^H:kd=\EOB:\
6468	:ke=\E[?1l\E>:kl=\EOD:kr=\EOC:ks=\E[?1h\E=:ku=\EOA:le=^H:\
6469	:mb=2\E[5m:md=2\E[1m:me=2\E[m:mr=2\E[7m:nd=2\E[C:rc=\E8:\
6470	:rs=\E>\E[?3l\E[?4l\E[?5l\E[?7h\E[?8h:sc=\E7:se=2\E[m:\
6471	:sf=^J:so=2\E[7m:sr=5\EM:st=\EH:ta=^I:ue=2\E[m:up=2\E[A:\
6472	:us=2\E[4m:
6473qvt103-w|qume qvt103 132 cols:\
6474	:co#132:li#24:\
6475	:rs=\E>\E[?3h\E[?4l\E[?5l\E[?8h:tc=qvt103:
6476qvt119+|qvt119p|qvt119|qume qvt 119 and 119PLUS terminals:\
6477	:am:hs:mi:ms:\
6478	:co#80:li#24:sg#0:ug#0:\
6479	:al=\EE:bl=^G:bt=\EI:cd=\Ey:ce=\Et:cl=\E*1:cm=\E=%+ %+ :\
6480	:cr=^M:ct=\E3:dc=\EW:dl=\ER:do=^J:ds=\Eg\Ef\r:ei=\Er:fs=^M:\
6481	:ho=^^:im=\Eq:is=\EDF\EC\EG0\Er\E(\E%EX:k0=^AI\r:\
6482	:k1=^A@\r:k2=^AA\r:k3=^AB\r:k4=^AC\r:k5=^AD\r:k6=^AE\r:\
6483	:k7=^AF\r:k8=^AG\r:k9=^AH\r:kb=^H:kd=^J:kh=^^:kl=^H:kr=^L:\
6484	:ku=^K:le=^H:nd=^L:pf=\EA:po=\E@:sf=^J:sr=\EJ:st=\E1:ta=^I:\
6485	:ts=\Eg\Ef:up=^K:us=\EG8:vb=\En0\En1:ve=\E.4:vs=\E.2:\
6486	:tc=adm+sgr:
6487qvt119+-25|qvt119p-25|QVT 119 PLUS with 25 data lines:\
6488	:li#25:tc=qvt119+:
6489qvt119+-w|qvt119p-w|qvt119-w|QVT 119 and 119 PLUS in 132 column mode:\
6490	:co#132:\
6491	:is=\EDF\EC\EG0\Er\E(\E%\EX\En4:tc=qvt119+:
6492qvt119+-25-w|qvt119p-25-w|qvt119-25-w|QVT 119 and 119 PLUS 132 by 25:\
6493	:li#25:tc=qvt119+:
6494qvt203|qvt203+|qume qvt 203 Plus:\
6495	:al=99\E[L:dc=7\E[P:dl=99\E[M:ei=\E[4l:im=\E[4h:ip=7:\
6496	:k0=\E[29~:k1=\E[17~:k2=\E[18~:k3=\E[19~:k4=\E[20~:\
6497	:k5=\E[21~:k6=\E[23~:k7=\E[24~:k8=\E[25~:k9=\E[28~:\
6498	:sf=30\n:tc=qvt103:
6499qvt203-w|qvt203-w-am|qume qvt 203 PLUS in 132 cols (w/advanced video):\
6500	:co#132:li#24:\
6501	:rs=\E>\E[?3h\E[?4l\E[?5l\E[?8h:tc=qvt203:
6502#
6503#	Since a command is present for enabling 25 data lines,
6504#	a specific terminfo entry may be generated for the 203.
6505#	If one is desired for the QVT 119 PLUS then 25 lines must
6506#	be selected in the status line (setup line 9).
6507#
6508qvt203-25|QVT 203 PLUS with 25 by 80 column mode:\
6509	:co#80:li#25:\
6510	:is=\E[=40h\E[?3l:tc=qvt203:
6511qvt203-25-w|QVT 203 PLUS with 25 by 132 columns:\
6512	:co#132:li#25:\
6513	:rs=\E[?3h\E[=40h:tc=qvt203:
6514
6515#### Televideo (tvi)
6516#
6517#	TeleVideo
6518#	550 East Brokaw Road
6519#	PO Box 49048    95161
6520#	San Jose CA 95112
6521#	Vox: (408)-954-8333
6522#	Fax: (408)-954-0623
6523#
6524#
6525# These require incredible amounts of padding.
6526#
6527# All of these terminals (912 to 970 and the tvipt) are discontinued.  Newer
6528# Televideo terminals are ANSI and PC-ANSI compatible.
6529
6530tvi803|televideo 803:\
6531	:cl=10\E*:tc=tvi950:
6532
6533# Vanilla tvi910 -- W. Gish <cswarren@violet> 10/29/86
6534# Switch settings are:
6535#
6536# S1  1 2 3 4
6537#     D D D D  9600
6538#     D D D U    50
6539#     D D U D    75
6540#     D D U U   110
6541#     D U D D   135
6542#     D U D U   150
6543#     D U U D   300
6544#     D U U U   600
6545#     U D D D  1200
6546#     U D D U  1800
6547#     U D U D  2400
6548#     U D U U  3600
6549#     U U D D  4800
6550#     U U D U  7200
6551#     U U U D  9600
6552#     U U U U 19200
6553#
6554# S1  5 6 7 8
6555#     U D X D  7N1 (data bits, parity, stop bits) (X means ignored)
6556#     U D X U  7N2
6557#     U U D D  7O1
6558#     U U D U  7O2
6559#     U U U D  7E1
6560#     U U U U  7E2
6561#     D D X D  8N1
6562#     D D X U  8N2
6563#     D U D D  8O1
6564#     D U U U  8E2
6565#
6566# S1  9  Autowrap
6567#     U  on
6568#     D  off
6569#
6570# S1 10  CR/LF
6571#     U  do CR/LF when CR received
6572#     D  do CR when CR received
6573#
6574# S2  1  Mode
6575#     U  block
6576#     D  conversational
6577#
6578# S2  2  Duplex
6579#     U  half
6580#     D  full
6581#
6582# S2  3  Hertz
6583#     U  50
6584#     D  60
6585#
6586# S2  4  Edit mode
6587#     U  local
6588#     D  duplex
6589#
6590# S2  5  Cursor type
6591#     U  underline
6592#     D  block
6593#
6594# S2  6  Cursor down key
6595#     U  send ^J
6596#     D  send ^V
6597#
6598# S2  7  Screen colour
6599#     U  green on black
6600#     D  black on green
6601#
6602# S2  8  DSR status (pin 6)
6603#     U  disconnected
6604#     D  connected
6605#
6606# S2  9  DCD status (pin 8)
6607#     U  disconnected
6608#     D  duplex
6609#
6610# S2 10  DTR status (pin 20)
6611#     U  disconnected
6612#     D  duplex
6613# (tvi910: removed obsolete ":ma=^Kk^Ll^R^L:"; added :kh:, :le:, :do:,
6614# :sf:, <hpa>, <vpa>, :am:, :ms: from SCO entry -- esr)
6615tvi910|televideo model 910:\
6616	:am:bs:ms:\
6617	:co#80:it#8:li#24:sg#1:\
6618	:bl=^G:bt=\EI:cd=\EY:ce=\ET:ch=\E]%+ :cl=^Z:cm=\E=%+ %+ :\
6619	:cr=^M:cv=\E[%+ :do=^J:ho=\E=\001\001:\
6620	:if=/usr/share/tabset/stdcrt:k0=^AI\r:k1=^A@\r:k2=^AA\r:\
6621	:k3=^AB\r:k4=^AC\r:k5=^AD\r:k6=^AE\r:k7=^AF\r:k8=^AG\r:\
6622	:k9=^AH\r:kb=^H:kd=^J:kh=^^:kl=^H:kr=^L:ku=^K:le=^H:mk@:nd=^L:\
6623	:sf=^J:ta=^I:up=^K:tc=adm+sgr:
6624# From: Alan R. Rogers <rogers%albany@csnet-relay>
6625# as subsequently hacked over by someone at SCO
6626# (tvi910+: removed obsolete ":ma=^K^P^L :" -- esr)
6627#
6628# Here are the 910+'s DIP switches (U = up, D = down, X = don't care):
6629#
6630# S1  1 2 3 4:
6631#     D D D D  9600     D D D U    50     D D U D    75     D D U U   110
6632#     D U D D   135     D U D U   150     D U U D   300     D U U U   600
6633#     U D D D  1200     U D D U  1800     U D U D  2400     U D U U  3600
6634#     U U D D  4800     U U D U  7200     U U U D  9600     U U U U 19200
6635#
6636# S1  5 6 7 8:
6637#     U D X D  7N1     U D X U  7N2     U U D D  7O1     U U D U  7O2
6638#     U U U D  7E1     U U U U  7E2     D D X D  8N1     D D X U  8N2
6639#     D U D D  8O1     D U U U  8E2
6640#
6641# S1  9  Autowrap            (U = on, D = off)
6642# S1 10  CR/LF               (U = CR/LF on CR received, D = CR on CR received)
6643# S2  1  Mode                (U = block, D = conversational)
6644# S2  2  Duplex              (U =  half, D = full)
6645# S2  3  Hertz               (U = 50, D = 60)
6646# S2  4  Edit mode           (U = local, D = duplex)
6647# S2  5  Cursor type         (U = underline, D = block)
6648# S2  6  Cursor down key     (U = send ^J, D = send ^V)
6649# S2  7  Screen colour       (U = green on black, D = black on green)
6650# S2  8  DSR status (pin 6)  (U = disconnected, D = connected)
6651# S2  9  DCD status (pin 8)  (U = disconnected, D = connected)
6652# S2 10  DTR status (pin 20) (U = disconnected, D = connected)
6653#
6654tvi910+|televideo 910+:\
6655	:al=33*\EE:dc=\EW:dl=33*\ER:ei=:ho=^^:ic=\EQ:im=:k0=^A@\r:\
6656	:k1=^AA\r:k2=^AB\r:k3=^AC\r:k4=^AD\r:k5=^AE\r:k6=^AF\r:\
6657	:k7=^AG\r:k8=^AH\r:k9=^AI\r:ll=\E=7\040:tc=tvi910:
6658
6659# (tvi912: removed obsolete ":ma=^K^P^L :", added  :vb: and
6660# :kh: from BRL entry -- esr)
6661tvi912|tvi914|tvi920|old televideo 912/914/920:\
6662	:am:bs:ms:pt:\
6663	:co#80:it#8:li#24:sg#1:ug#1:\
6664	:al=33*\EE:bl=^G:cd=\Ey:ce=\ET:cl=^Z:cm=\E=%+ %+ :cr=^M:\
6665	:ct=\E3:dc=\EW:dl=33*\ER:do=^J:ei=:ho=^^:ic=\EQ:\
6666	:if=/usr/share/tabset/stdcrt:im=:k0=^AI\r:k1=^A@\r:\
6667	:k2=^AA\r:k3=^AB\r:k4=^AC\r:k5=^AD\r:k6=^AE\r:k7=^AF\r:\
6668	:k8=^AG\r:k9=^AH\r:kb=^H:kd=^J:kh=^^:kl=^H:kr=^L:ku=^K:le=^H:\
6669	:nd=^L:se=\Ek:sf=^J:so=\Ej:st=\E1:ta=^I:ue=\Em:up=^K:us=\El:\
6670	:vb=\Eb\Ed:
6671# We got some new tvi912c terminals that act really weird on the regular
6672# termcap, so one of our gurus worked this up. Seems that cursor
6673# addressing is broken.
6674tvi912cc|tvi912 at cowell college:\
6675	:cm@:tc=tvi912c:
6676
6677# tvi{912,920}[bc] - TeleVideo TVI-912B/TVI-920B and TVI-912C/TVI-920C
6678# From: Benjamin C. W. Sittler
6679#
6680# Someone has put a scanned copy of the manual online at:
6681#     http://vt100.net/televideo/912b-om/
6682#
6683# These terminals were produced ca. 1979, and had a 12" monochrome
6684# screen, supported 75-9600 baud (no handshaking), monochrome, 7-bit
6685# ASCII, and were generally similar to adm3a but with attributes
6686# (including some with magic cookies), fancy half-duplex mode, and
6687# different bugs.
6688#
6689# Some operations reqire truly incredible amounts of padding. The
6690# insert_line (:al:) and delete_line (:dl:) operations in particular
6691# are so slow as to be nearly unusable.
6692#
6693# There may or may not have been a separate, earlier series of 912/920
6694# terminals (without the "B" and "C" suffix); I have never seen one,
6695# and the manual only describes the "B" and "C" series. The 912 and 920
6696# are quite distinct from the 914 and 924, which were much nicer non-
6697# magic-cookie terminals similar to the 950.
6698#
6699# This is a new description for the following TeleVideo terminals,
6700# distinguished chiefly by their keyboards:
6701#
6702#   TVI-912B - very odd layout, no function keys (84 keys)
6703#   TVI-920B - typewriter layout, no function keys (103 keys)
6704#   TVI-912C - very odd layout, function keys F1-F11 (82 keys)
6705#   TVI-920C - typewriter layout, function keys F1-F11 (101 keys)
6706#
6707# To choose a setting for the TERM variable, start with the model:
6708#
6709#    Model  || base name
6710# ----------||-----------
6711#  TVI-912B || tvi912b
6712#  TVI-912C || tvi912c
6713#  TVI-920B || tvi920b
6714#  TVI-920C || tvi920c
6715#
6716# Then add a suffix from the following table describing installed options
6717# and how you'd like to use the terminal:
6718#
6719#   Use Video | Second | Visual |  Magic  |  Page || feature
6720#  Attributes |  Page  |  Bell  | Cookies | Print || suffix
6721# ------------|--------|--------|---------|-------||---------
6722#      No     |   No   |  N/A   |   N/A   |   No  || -unk
6723#      No     |   No   |  N/A   |   N/A   |  Yes  || -p
6724#      No     |  Yes   |   No   |   N/A   |   No  || -2p-unk
6725#      No     |  Yes   |   No   |   N/A   |  Yes  || -2p-p
6726#      No     |  Yes   |  Yes   |   N/A   |   No  || -vb-unk
6727#      No     |  Yes   |  Yes   |   N/A   |  Yes  || -vb-p
6728#     Yes     |   No   |  N/A   |    No   |  N/A  ||
6729#     Yes     |   No   |  N/A   |   Yes   |  N/A  || -mc
6730#     Yes     |  Yes   |   No   |    No   |  N/A  || -2p
6731#     Yes     |  Yes   |   No   |   Yes   |  N/A  || -2p-mc
6732#     Yes     |  Yes   |  Yes   |    No   |  N/A  || -vb
6733#     Yes     |  Yes   |  Yes   |   Yes   |  N/A  || -vb-mc
6734#
6735# So e.g. a model 920 C with second page memory option, visual bell
6736# and no magic cookies would be tvi920c-vb; a model 912 B without the
6737# second page memory option and using magic cookies would be
6738# tvi912b-mc
6739#
6740# PADDING
6741#
6742# At 9600 baud, the terminal is prone to overflow its input buffer
6743# during complex operations (insert/delete
6744# character/line/screen/page), and it does not signal this over the
6745# RS232 cable. The typical symptom of an overrun is that the terminal
6746# starts beeping, and output becomes garbled.
6747#
6748# The padding delays in this terminfo were derived using tack(1)
6749# running on a Linux box connected to a TVI-920C with a later-model
6750# (A49C1-style) ROM running at 9600 baud, so your mileage may
6751# vary. The numbers below seem to give the terminal enough time so
6752# that it doesn't overflow its input buffer and start losing
6753# characters.
6754#
6755# KEYS
6756#
6757# If you want to use the FUNCT key on a tvi912[bc], use the
6758# corresponding tvi920[bc] terminfo with FUNCT + ... equivalents from
6759# the following table (these also work on the 920 series):
6760#
6761# Unshifted Function Keys:
6762#
6763#  Key | capname|| Equivalent
6764# -----|--------||------------
6765#   F1 |  :k1: || FUNCT + @
6766#   F2 |  :k2: || FUNCT + A
6767#   F3 |  :k3: || FUNCT + B
6768#   F4 |  :k4: || FUNCT + C
6769#   F5 |  :k5: || FUNCT + D
6770#   F6 |  :k6: || FUNCT + E
6771#   F7 |  :k7: || FUNCT + F
6772#   F8 |  :k8: || FUNCT + G
6773#   F9 |  :k9: || FUNCT + H
6774#  F10 | <kf10> || FUNCT + I
6775#  F11 | <kf11> || FUNCT + J
6776#
6777# Shifted Function Keys:
6778#
6779#  SHIFT + Key | capname|| Equivalent
6780# -------------|--------||------------
6781#   SHIFT + F1 | <kf12> || FUNCT + `
6782#   SHIFT + F2 | <kf13> || FUNCT + a
6783#   SHIFT + F3 | <kf14> || FUNCT + b
6784#   SHIFT + F4 | <kf15> || FUNCT + c
6785#   SHIFT + F5 | <kf16> || FUNCT + d
6786#   SHIFT + F6 | <kf17> || FUNCT + e
6787#   SHIFT + F7 | <kf18> || FUNCT + f
6788#   SHIFT + F8 | <kf19> || FUNCT + g
6789#   SHIFT + F9 | <kf20> || FUNCT + h
6790#  SHIFT + F10 | <kf21> || FUNCT + i
6791#  SHIFT + F11 | <kf22> || FUNCT + j
6792#
6793# PORTS AND SWITCH SETTINGS
6794#
6795# Here are the switch settings for the TVI-912B/TVI-920B and
6796# TVI-912C/TVI-920C:
6797#
6798# S1 (Line), and S3 (Printer) baud rates -- put one, and only one, switch down:
6799# 2: 9600	3: 4800		4: 2400		5: 1200
6800# 6:  600	7:  300		8:  150		9:   75
6801# 10: 110
6802#
6803# S2 UART/Terminal options:
6804# 		Up			Down
6805# 1:		Not used		Not allowed
6806# 2:	Alternate character set	  Standard character set
6807# 3:	    Full duplex		    Half duplex
6808# 4:	    50 Hz refresh	    60 Hz refresh
6809# 5:	      No parity		     Send parity
6810# 6:	     2 stop bits	     1 stop bit
6811# 7:	     8 data bits	     7 data bits
6812# 8:		Not used		Not allowed on Rev E or lower
6813# 9:	     Even parity	     Odd parity
6814# 10:	    Steady cursor	    Blinking cursor
6815# 	(On Rev E or lower, use W25 instead of switch 10.)
6816#
6817# S5 UART/Terminal options:
6818# 		Open			Closed
6819# 1:	P3-6 Not connected	DSR received on P3-6
6820# 2:	P3-8 Not connected	DCD received on P3-8
6821#
6822# 3 Open, 4 Open:		P3-20 Not connected
6823# 3 Open, 4 Closed:	DTR on when terminal is on
6824# 3 Closed, 4 Open:	DTR is connected to RTS
6825# 3 Closed, 4 Closed:	Not allowed
6826#
6827# 5 Closed:	HDX printer (hardware control) Rev. K with extension port off,
6828# 		all data transmitted out of the modem port (P3) will also be
6829# 		transmitted out of the printer port (P4).
6830#
6831# 6 Open, 7 Open:		Not allowed
6832# 6 Open, 7 Closed:	20ma current loop input
6833# 6 Closed, 7 Open:	RS232 input
6834# 6 Closed, 7 Closed:	Not allowed
6835#
6836# Jumper options:
6837# If the jumper is installed, the effect will occur (the next time the terminal
6838# is switched on).
6839#
6840# S4/W31:	Enables automatic LF upon receipt of CR from
6841# 		remote or keyboard.
6842# S4/W32:	Enables transmission of EOT at the end of Send.  If not
6843# 		installed, a carriage return is sent.
6844# S4/W33:	Disables automatic carriage return in column 80.
6845# S4/W34:	Selects Page Print Mode as initial condition.  If not
6846# 		installed, Extension Mode is selected.
6847#
6848# NON-STANDARD CAPABILITIES
6849#
6850# Sending <u9> or <u7> returns a cursor position report in the format
6851# YX\r, where Y and X are as in :cm:. This format is described in
6852# <u8> and <u6>, but it's not clear how one should write an
6853# appropriate scanf string, since we need to subtract %' ' from the
6854# character after reading it. The <u9> capability is used by tack(1)
6855# to synchronize during padding tests, and seems to work for that
6856# purpose.
6857#
6858# This description also includes the obsolete termcap capabilities
6859# has_hardware_tabs (:pt:) and backspaces_with_bs (:bs:).
6860#
6861# FEATURES NOT YET DESCRIBED IN THIS TERMINFO
6862#
6863# The FUNCT modifier actually works with every normal key by sending
6864# ^AX\r, where X is the sequence normally sent by that key. This is a
6865# sort of meta key not currently describable in terminfo.
6866#
6867# There are quite a few other keys (especially on the 920 models,) but
6868# they are for the most part only useful in block mode.
6869#
6870# These terminals have lots of forms manipulation features, mainly
6871# useful in block mode, including "clear X to nulls" (vs. "clear X to
6872# spaces"; nulls are sentinels for "send X" operations); "send X"
6873# operations for uploading all or part of the screen; and block-mode
6874# editing keys (they don't send escape sequences, but manipulate video
6875# memory directly). Block mode is used for local editing, and protect
6876# mode (in conjunction with the "write protect" attribute,
6877# a.k.a. half-intensity outside of protect mode) is used to control
6878# which parts of the screen are edited/sent/printed (by <mc0>).
6879#
6880# There are at least two major families of ROM, "early" and
6881# A49B1/A49C1; the major difference seems to be that the latter ROMs
6882# support a few extra escape sequences for manipulating the off-screen
6883# memory page, and for sending whole pages back to the host (mainly
6884# useful in block mode.) The descriptions in this file don't use any
6885# of those sequences: set cursor position including page (\E-PYX,
6886# where P is \s for page 0 and ! for page 1 [actually only the LSB of
6887# P is taken into account, so e.g. 0 and 1 work too,] and Y and X are
6888# as in :cm:); read cursor position (\E/), which is analogous to <u9>
6889# and returns PYX\r, where P is \s for page 0 or ! for page 1, and YX
6890# are as in :cm:, and some "send page" features mainly useful for
6891# forms manipulation.
6892#
6893# The keyboard enable (\E") and disable (\E#) sequences are unused,
6894# except that a terminal reset (:is:) enables the keyboard.
6895#
6896# Auto-flip mode (\Ev) is likely faster than the scrolling mode (\Ew)
6897# enabled in :is:, but auto-flip is very jarring so we don't use it.
6898#
6899# BUGS
6900#
6901# At least up to the A49B1 and A49C1 ROMs, there are no \Eb and \Ed
6902# sequences (I infer that in some TeleVideo terminal they may invert
6903# and uninvert the display) so the :vb: sequence given here is a
6904# cheesy page-flip instead.
6905#
6906# The back_tab (:bt:) sequence (\EI) doesn't work according to
6907# tack(1), so it is not included in the descriptions below.
6908#
6909# It's not clear whether auto_left_margin (:bw:) flag should be set
6910# for these terminals; tack says yes, so it is set here, but this
6911# differs from other descriptions I've seen.
6912#
6913# Extension print mode (<mc5>) echoes all characters to the printer
6914# port [in addition to displaying them] except for the page print mode
6915# sequence (<mc4>); this is a slight violation of the terminfo
6916# definition for <mc5> but I don't expect it to cause problems.  We
6917# reset to page print mode in <rs1> since it may have been enabled
6918# accidentally.
6919#
6920# The descriptions with plus signs (+) are building blocks.
6921
6922tvi912b-unk|tvi912c-unk|TeleVideo TVI-912B or TVI-912C (no attributes):\
6923	:am:bs:bw:pt:\
6924	:co#80:it#8:li#24:\
6925	:@8=^M:al=100\EE:bl=^G:cd=10\Ey:ce=15\ET:cl=50\032:\
6926	:cm=\E=%+ %+ :cr=^M:ct=\E3:dc=30\EW:dl=100\ER:do=^J:ei=:\
6927	:ho=^^:ic=30\EQ:if=/usr/share/tabset/stdcrt:im=:\
6928	:is=\Ew\EA\E'\E"\E(:kD=\177:kd=^J:kh=^^:kl=^H:kr=^L:ku=^K:\
6929	:le=^H:nd=^L:pf=\EA:po=\E@:r1=\Ek\010\Em\010\Eq\032:\
6930	:sf=10\n:st=\E1:ta=^I:u6=%.%.\r:u7=\E?:u8=%.%.\r:u9=\E?:\
6931	:up=^K:
6932
6933# This isn't included in the basic capabilities because it is
6934# typically unusable in combination with the full range of video
6935# attributes, since the magic cookie attributes turn into ASCII
6936# control characters, and the half-intensity ("protected") attribute
6937# converts all affected characters to spaces.
6938
6939tvi912b+printer|TeleVideo TVI-912B/TVI-920B and TVI-912C/TVI-920C page print support:\
6940	:ps=\EP:
6941
6942# This uses half-intensity mode (:mh:) for standout (:so:), and
6943# exposes no other attributes (half-intensity is the only attribute
6944# that does not generate a magic cookie.)
6945
6946tvi912b+dim|TeleVideo TVI-912B/TVI-920B and TVI-912C/TVI-920C half-intensity attribute support:\
6947	:ms:\
6948	:me=\E(:mh=\E):se=\E(:so=\E):
6949
6950# Full magic-cookie attribute support, with half-intensity reverse
6951# video for standout. Note that we add a space in the :mh: sequence
6952# to give a consistent magic-cookie count. Also note that :sa: uses
6953# backspacing (in the TVI-supported order) to apply all requested
6954# attributes with only a single magic cookie.
6955
6956tvi912b+mc|TeleVideo TVI-912B/TVI-920B and TVI-912C/TVI-920C full magic-cookie attribute support:\
6957	:sg#1:ug#1:\
6958	:mb=\E\136:me=\E(\Ek\010\Em\010\Eq:mh=\E)\040:mk=\E_:\
6959	:mr=\Ej:se=\E(\Ek:so=\E)\Ej:ue=\Em:us=\El:
6960
6961# This uses the second page memory option to save & restore screen
6962# contents. If your terminal is missing the option, this description
6963# should still work, but that has not been tested.
6964
6965tvi912b+2p|TeleVideo TVI-912B/TVI-920B and TVI-912C/TVI-920C second page memory option support:\
6966	:te=\032\EK\E=7\040:\
6967	:ti=50\EK\032\E(\Ek\010\Em\010\Eq\032:vb=\EK\EK:
6968
6969# This simulates flashing by briefly toggling to the other page
6970# (kludge!)
6971
6972tvi912b+vb|TeleVideo TVI-912B/TVI-920B and TVI-912C/TVI-920C second page memory option "visible bell" support:\
6973	:bl=\EK\EK:tc=tvi912b+2p:
6974
6975# Function keys (<kf12> .. <kf22> are shifted :k1: .. <kf11>)
6976
6977tvi920b+fn|TeleVideo TVI-920B and TVI-920C function key support:\
6978	:F1=^AJ\r:F2=^A`\r:F3=^Aa\r:F4=^Ab\r:F5=^Ac\r:F6=^Ad\r:\
6979	:F7=^Ae\r:F8=^Af\r:F9=^Ag\r:FA=^Ah\r:FB=^Ai\r:FC=^Aj\r:\
6980	:k1=^A@\r:k2=^AA\r:k3=^AB\r:k4=^AC\r:k5=^AD\r:k6=^AE\r:\
6981	:k7=^AF\r:k8=^AG\r:k9=^AH\r:k;=^AI\r:
6982
6983# Combinations of the basic building blocks
6984
6985tvi912b-2p-unk|tvi912c-2p-unk|tvi912b-unk-2p|tvi912c-unk-2p|TeleVideo TVI-912B or TVI-912C (second page memory option; no attributes):\
6986	:tc=tvi912b+2p:tc=tvi912b-unk:
6987
6988tvi912b-vb-unk|tvi912c-vb-unk|tvi912b-unk-vb|tvi912c-unk-vb|TeleVideo TVI-912B or TVI-912C (second page memory option "visible bell"; no attributes):\
6989	:tc=tvi912b+vb:tc=tvi912b-unk:
6990
6991tvi912b-p|tvi912c-p|TeleVideo TVI-912B or TVI-912C (no attributes; page print):\
6992	:tc=tvi912b+printer:tc=tvi912b-unk:
6993
6994tvi912b-2p-p|tvi912c-2p-p|tvi912b-p-2p|tvi912c-p-2p|TeleVideo TVI-912B or TVI-912C (second page memory option; no attributes; page print):\
6995	:tc=tvi912b+2p:tc=tvi912b+printer:tc=tvi912b-unk:
6996
6997tvi912b-vb-p|tvi912c-vb-p|tvi912b-p-vb|tvi912c-p-vb|TeleVideo TVI-912B or TVI-912C (second page memory option "visible bell"; no attributes; page print):\
6998	:tc=tvi912b+vb:tc=tvi912b+printer:tc=tvi912b-unk:
6999
7000tvi912b-2p|tvi912c-2p|TeleVideo TVI-912B or TVI-912C (second page memory option; half-intensity attribute):\
7001	:tc=tvi912b+2p:tc=tvi912b+dim:tc=tvi912b-unk:
7002
7003tvi912b-2p-mc|tvi912c-2p-mc|tvi912b-mc-2p|tvi912c-mc-2p|TeleVideo TVI-912B or TVI-912C (second page memory option; magic cookies):\
7004	:tc=tvi912b+2p:tc=tvi912b+mc:tc=tvi912b-unk:
7005
7006tvi912b-vb|tvi912c-vb|TeleVideo TVI-912B or TVI-912C (second page memory option "visible bell"; half-intensity attribute):\
7007	:tc=tvi912b+vb:tc=tvi912b+dim:tc=tvi912b-unk:
7008
7009tvi912b-vb-mc|tvi912c-vb-mc|tvi912b-mc-vb|tvi912c-mc-vb|TeleVideo TVI-912B or TVI-912C (second page memory option "visible bell"; magic cookies):\
7010	:tc=tvi912b+vb:tc=tvi912b+mc:tc=tvi912b-unk:
7011
7012tvi912b|tvi912c|TeleVideo TVI-912B or TVI-912C (half-intensity attribute):\
7013	:tc=tvi912b+dim:tc=tvi912b-unk:
7014
7015tvi912b-mc|tvi912c-mc|TeleVideo TVI-912B or TVI-912C (magic cookies):\
7016	:tc=tvi912b+mc:tc=tvi912b-unk:
7017
7018tvi920b-unk|tvi920c-unk|TeleVideo TVI-920B or TVI-920C (no attributes):\
7019	:tc=tvi920b+fn:tc=tvi912b-unk:
7020
7021tvi920b-2p-unk|tvi920c-2p-unk|tvi920b-unk-2p|tvi920c-unk-2p|TeleVideo TVI-920B or TVI-920C (second page memory option; no attributes):\
7022	:tc=tvi920b+fn:tc=tvi912b+2p:tc=tvi912b-unk:
7023
7024tvi920b-vb-unk|tvi920c-vb-unk|tvi920b-unk-vb|tvi920c-unk-vb|TeleVideo TVI-920B or TVI-920C (second page memory option "visible bell"; no attributes):\
7025	:tc=tvi920b+fn:tc=tvi912b+vb:tc=tvi912b-unk:
7026
7027tvi920b-p|tvi920c-p|TeleVideo TVI-920B or TVI-920C (no attributes; page print):\
7028	:tc=tvi920b+fn:tc=tvi912b+printer:tc=tvi912b-unk:
7029
7030tvi920b-2p-p|tvi920c-2p-p|tvi920b-p-2p|tvi920c-p-2p|TeleVideo TVI-920B or TVI-920C (second page memory option; no attributes; page print):\
7031	:tc=tvi920b+fn:tc=tvi912b+2p:tc=tvi912b+printer:\
7032	:tc=tvi912b-unk:
7033
7034tvi920b-vb-p|tvi920c-vb-p|tvi920b-p-vb|tvi920c-p-vb|TeleVideo TVI-920B or TVI-920C (second page memory option "visible bell"; no attributes; page print):\
7035	:tc=tvi920b+fn:tc=tvi912b+vb:tc=tvi912b+printer:\
7036	:tc=tvi912b-unk:
7037
7038tvi920b-2p|tvi920c-2p|TeleVideo TVI-920B or TVI-920C (second page memory option; half-intensity attribute):\
7039	:tc=tvi920b+fn:tc=tvi912b+2p:tc=tvi912b+dim:\
7040	:tc=tvi912b-unk:
7041
7042tvi920b-2p-mc|tvi920c-2p-mc|tvi920b-mc-2p|tvi920c-mc-2p|TeleVideo TVI-920B or TVI-920C (second page memory option; magic cookies):\
7043	:tc=tvi920b+fn:tc=tvi912b+2p:tc=tvi912b+mc:\
7044	:tc=tvi912b-unk:
7045
7046tvi920b-vb|tvi920c-vb|TeleVideo TVI-920B or TVI-920C (second page memory option "visible bell"; half-intensity attribute):\
7047	:tc=tvi920b+fn:tc=tvi912b+vb:tc=tvi912b+dim:\
7048	:tc=tvi912b-unk:
7049
7050tvi920b-vb-mc|tvi920c-vb-mc|tvi920b-mc-vb|tvi920c-mc-vb|TeleVideo TVI-920B or TVI-920C (second page memory option "visible bell"; magic cookies):\
7051	:tc=tvi920b+fn:tc=tvi912b+vb:tc=tvi912b+mc:\
7052	:tc=tvi912b-unk:
7053
7054tvi920b|tvi920c|TeleVideo TVI-920B or TVI-920C (half-intensity attribute):\
7055	:tc=tvi920b+fn:tc=tvi912b+dim:tc=tvi912b-unk:
7056
7057tvi920b-mc|tvi920c-mc|TeleVideo TVI-920B or TVI-920C (magic cookies):\
7058	:tc=tvi920b+fn:tc=tvi912b+mc:tc=tvi912b-unk:
7059
7060# Televideo 921 and variants
7061# From: Tim Theisen <tim@cs.wisc.edu> 22 Sept 1995
7062# (tvi921: removed :ko=bt: before translation, I see no backtab cap;
7063# also added empty <acsc> to suppress tic warning -- esr)
7064tvi921|televideo model 921 with sysline same as page & real vi function:\
7065	:am:bs:hs:pt:xn:xs:\
7066	:co#80:li#24:sg#0:\
7067	:ac=:ae=\E%%:al=\EE:as=\E$:cd=\EY:ce=\ET:cl=^Z:\
7068	:cm=3\E=%+ %+ :cr=^M:dc=\EW:dl=1*\ER:do=^V:ds=\Ef\r\Eg:ei=:\
7069	:fs=\Eg:ho=^^:ic=\EQ:if=/usr/share/tabset/stdcrt:im=:\
7070	:is=\El\E"\EF1\E.3\017\EA\E<:kA=\EE:kC=^Z:kD=\EW:kE=\ET:\
7071	:kI=\EQ:kL=1*\ER:kS=\EY:kb=^H:kd=^V:kl=^H:kr=^L:ku=^K:le=^H:\
7072	:mk@:nd=^L:nw=^M^J:sf=^J:ta=^I:ts=\Ef\EG0:up=^K:ve=\E.3:\
7073	:vs=\E.2:tc=adm+sgr:
7074# without the beeper
7075# (tvi92B: removed :ko=bt: before translation, I see no backtab cap;
7076# also added empty <acsc> to suppress tic warning -- esr)
7077tvi92B|televideo model 921 with sysline same as page & real vi function & no beeper:\
7078	:am:hs:xn:xs:\
7079	:co#80:li#24:sg#0:\
7080	:ac=:ae=\E%%:al=\EE:as=\E$:cd=\EY:ce=\ET:cl=^Z:\
7081	:cm=3\E=%+ %+ :cr=^M:dc=\EW:dl=1*\ER:do=^V:ds=\Ef\r\Eg:ei=:\
7082	:fs=\Eg:ho=^^:ic=\EQ:if=/usr/share/tabset/stdcrt:im=:\
7083	:is=\El\E"\EF1\E.3\017\EA\E<:kA=\EE:kC=^Z:kD=\EW:kE=\ET:\
7084	:kI=\EQ:kL=1*\ER:kS=\EY:kb=^H:kd=^V:kl=^H:kr=^L:ku=^K:le=^H:\
7085	:mk@:nd=^L:nw=^M^J:sf=^J:ta=^I:ts=\Ef\EG0:up=^K:vb=\Eb\Ed:\
7086	:ve=\E.3:vs=\E.2:tc=adm+sgr:
7087# (tvi92D: removed :ko=bt: before translation, I see no backtab cap -- esr)
7088tvi92D|tvi92B with DTR instead of XON/XOFF & better padding:\
7089	:al=2*\EE:dl=2*\ER:is=\El\E"\EF1\E.3\016\EA\E<:kA=2*\EE:\
7090	:kL=2*\ER:tc=tvi92B:
7091
7092# (tvi924: This used to have :ds=\Es0:, :fs=\031:.  I put the new strings
7093# in from a BSD termcap file because it looks like they do something the
7094# old ones skip -- esr)
7095tvi924|televideo tvi924:\
7096	:am:bw:hs:in:mi:ms:xn:xo:\
7097	:co#80:it#8:li#24:sg#0:ws#80:\
7098	:F1=^AK\r:F2=^AL\r:F3=^AM\r:F4=^AN\r:F5=^AO\r:al=\EE:bl=^G:\
7099	:bt=\EI:cd=\Ey:ce=\Et:cl=\E*0:cm=\E=%+ %+ :cr=^M:\
7100	:cs=\E_%+ %+ :ct=\E3:dc=\EW:dl=\ER:do=^V:ds=\Es0\Ef\031:\
7101	:ei=:fs=\031\Es1:ho=^^:\
7102	:i1=\017\E%\E'\E(\EDF\EC\EG0\EN0\Es0\Ev0:ic=\EQ:\
7103	:if=/usr/share/tabset/stdcrt:im=:k0=^A@\r:k1=^AA\r:\
7104	:k2=^AB\r:k3=^AC\r:k4=^AD\r:k5=^AE\r:k6=^AF\r:k7=^AG\r:\
7105	:k8=^AH\r:k9=^AI\r:k;=^AJ\r:kA=\EE:kC=\E*0:kD=\EW:kE=\Et:\
7106	:kI=\EQ:kL=\ER:kS=\Ey:kb=^H:kd=^V:kh=^^:kl=^H:kr=^L:ku=^K:\
7107	:l0=F1:l1=F2:l2=F3:l3=F4:l4=F5:l5=F6:l6=F7:l7=F8:l8=F9:l9=F10:\
7108	:la=F11:le=^H:mb=\EG2:mk@:nd=^L:sf=^J:sr=\Ej:st=\E1:ta=^I:\
7109	:ts=\Ef:up=^K:vb=\Eb\Ed:ve=\E.3:vi=\E.0:vs=\E.1:tc=adm+sgr:
7110
7111# TVI925 DIP switches.  In each of these, D = Down and U = Up,
7112#
7113# Here are the settings for the external (baud) switches (S1):
7114#
7115#             Position		Baud
7116# 7	8	9	10		[Printer]
7117# 1	2	3	4		[Main RS232]
7118# -----------------------------------------------------
7119# D	D	D	D	9600
7120# D	D	D	U	  50
7121# D	D	U	D	  75
7122# D	D	U	U	 110
7123# D	U	D	D	 135
7124# D	U	D	U	 150
7125# D	U	U	D	 300
7126# D	U	U	U	 600
7127# U	D	D	D	1200
7128# U	D	D	U	1800
7129# U	D	U	D	2400
7130# U	D	U	U	3600
7131# U	U	D	D	4800
7132# U	U	D	U	7200
7133# U	U	U	D	9600
7134# U	U	U	U	19200
7135#
7136#
7137# Settings for word length and stop-bits (S1)
7138#
7139#  Position	Description
7140# 5	6
7141# ---------------------------
7142# U	-	7-bit word
7143# D	-	8-bit word
7144# -	U	2 stop bits
7145# -	D	1 stop bit
7146#
7147#
7148# S2 (external) settings
7149#
7150# Position	Up	Dn	Description
7151# --------------------------------------------
7152# 1		X		Local edit
7153# 			X	Duplex edit (transmit editing keys)
7154# --------------------------------------------
7155# 2		X		912/920 emulation
7156# 			X	925
7157# --------------------------------------------
7158# 3			X
7159# 4			X	No parity
7160# 5			X
7161# --------------------------------------------
7162# 3			X
7163# 4			X	Odd parity
7164# 5		X
7165# --------------------------------------------
7166# 3			X
7167# 4		X		Even parity
7168# 5		X
7169# --------------------------------------------
7170# 3		X
7171# 4			X	Mark parity
7172# 5		X
7173# --------------------------------------------
7174# 3		X
7175# 4		X		Space parity
7176# 5		X
7177# --------------------------------------------
7178# 6		X		White on black display
7179# 			X	Black on white display
7180# --------------------------------------------
7181# 7			X	Half Duplex
7182# 8			X
7183# --------------------------------------------
7184# 7		X		Full Duplex
7185# 8			X
7186# --------------------------------------------
7187# 7			X	Block mode
7188# 8		X
7189# --------------------------------------------
7190# 9			X	50 Hz
7191# 		X		60 Hz
7192# --------------------------------------------
7193# 10		X		CR/LF (Auto LF)
7194# 			X	CR only
7195#
7196# S3 (internal switch) settings:
7197#
7198# Position	Up	Dn	Description
7199# --------------------------------------------
7200# 1		X		Keyclick off
7201# 			X	Keyclick on
7202# --------------------------------------------
7203# 2			X	English
7204# 3			X
7205# --------------------------------------------
7206# 2			X	German
7207# 3		X
7208# --------------------------------------------
7209# 2		X		French
7210# 3			X
7211# --------------------------------------------
7212# 2		X		Spanish
7213# 3		X
7214# --------------------------------------------
7215# 4			X	Blinking block cursor
7216# 5			X
7217# --------------------------------------------
7218# 4			X	Blinking underline cursor
7219# 5		X
7220# --------------------------------------------
7221# 4		X		Steady block cursor
7222# 5			X
7223# --------------------------------------------
7224# 4		X		Steady underline cursor
7225# 5		X
7226# --------------------------------------------
7227# 6		X		Screen blanking timer (ON)
7228# 			X	Screen blanking timer (OFF)
7229# --------------------------------------------
7230# 7		X		Page attributes
7231# 			X	Line attributes
7232# --------------------------------------------
7233# 8		X		DCD disconnected
7234# 			X	DCD connected
7235# --------------------------------------------
7236# 9		X		DSR disconnected
7237# 			X	DSR connected
7238# --------------------------------------------
7239# 10		X		DTR Disconnected
7240# 			X	DTR connected
7241# --------------------------------------------
7242#
7243# (tvi925: BSD has :cl=\E*:.  I got :is: and :sr: from there -- esr)
7244tvi925|televideo 925:\
7245	:am:bs:bw:hs:ul:\
7246	:co#80:li#24:sg#1:\
7247	:al=\EE:bl=^G:bt=\EI:cd=\EY:ce=\ET:cl=^Z:cm=\E=%+ %+ :cr=^M:\
7248	:ct=\E3:dc=\EW:dl=\ER:do=^V:ds=\Eh:ei=:fs=^M\Eg:ho=^^:ic=\EQ:\
7249	:im=:is=\El\E":k0=^AI\r:k1=^A@\r:k2=^AA\r:k3=^AB\r:\
7250	:k4=^AC\r:k5=^AD\r:k6=^AE\r:k7=^AF\r:k8=^AG\r:k9=^AH\r:\
7251	:kA=\EE:kC=^Z:kD=\EW:kE=\ET:kI=\EQ:kL=\ER:kS=\EY:kb=^H:kd=^V:\
7252	:kh=^^:kl=^H:kr=^L:ku=^K:le=^H:mk@:nd=^L:sf=^J:sr=\Ej:st=\E1:\
7253	:ta=^I:ts=\Eh\Ef:up=^K:vb=\Eb\Ed:ve=\E.4:vs=\E.2:\
7254	:tc=adm+sgr:
7255# TeleVideo 925 from Mitch Bradley <sun!wmb> via BRL
7256# to avoid "magic cookie" standout glitch:
7257tvi925-hi|TeleVideo Model 925 with half intensity standout mode:\
7258	:sg@:\
7259	:kb=^H:kd=^J:kl=^H:se=\E(:so=\E):tc=tvi925:
7260
7261# From: Todd Litwin <litwin@litwin.jpl.nasa.gov> 28 May 1993
7262# Originally Tim Curry, Univ. of Central Fla., <duke!ucf-cs!tim> 5/21/82
7263# for additional capabilities,
7264# The following tvi descriptions from B:pjphar and virus!mike
7265# is for all 950s.  It sets the following attributes:
7266# full duplex (\EDF)		write protect off (\E()
7267# conversation mode (\EC)	graphics mode off (\E%)
7268# white on black (\Ed)		auto page flip off (\Ew)
7269# turn off status line (\Eg)	clear status line (\Ef\r)
7270# normal video (\E0)		monitor mode off (\EX or \Eu)
7271# edit mode (\Er)		load blank char to space (\Ee\040)
7272# line edit mode (\EO)		enable buffer control (^O)
7273# protect mode off (\E\047)	duplex edit keys (\El)
7274# program unshifted send key to send line all (\E016)
7275# program shifted send key to send line unprotected (\E004)
7276# set the following to nulls:
7277#	field delimiter (\Ex0\200\200)
7278#	line delimiter (\Ex1\200\200)
7279#	start-protected field delimiter (\Ex2\200\200)
7280#	end-protected field delimiter (\Ex3\200\200)
7281# set end of text delimiter to carriage return/null (\Ex4\r\200)
7282#
7283#                     TVI 950 Switch Setting Reference Charts
7284#
7285#                                     TABLE 1:
7286#
7287#      S1     1     2     3     4     5     6     7     8     9    10
7288#          +-----------------------+-----+-----+-----------------------+
7289#          | Computer Baud Rate    |Data |Stop | Printer Baud Rate     |
7290#          |                       |Bits |Bits |                       |
7291#   +------+-----------------------+-----+-----+-----------------------+
7292#   |  Up  |        See            |  7  |  2  |        See            |
7293#   +------+-----------------------+-----+-----+-----------------------+
7294#   | Down |      TABLE 2          |  8  |  1  |      TABLE 2          |
7295#   +------+-----------------------+-----+-----+-----------------------+
7296#
7297#
7298#      S2     1     2     3     4     5     6     7     8     9    10
7299#          +-----+-----+-----------------+-----+-----------+-----+-----+
7300#          |Edit |Cursr|    Parity       |Video|Transmiss'n| Hz  |Click|
7301#   +------+-----+-----+-----------------+-----+-----------+-----+-----+
7302#   |  Up  | Dplx|Blink|      See        |GonBk|   See     | 60  | Off |
7303#   +------+-----+-----+-----------------+-----+-----------+-----+-----+
7304#   | Down |Local|St'dy|    TABLE 3      |BkonG|  CHART    | 50  | On  |
7305#   +------+-----+-----+-----------------+-----+-----------+-----+-----+
7306#
7307#                                    TABLE 2:
7308#
7309#             +-----------+-----+-----+-----+-----+-----------+
7310#             | Display   |  1  |  2  |  3  |  4  |   Baud    |
7311#             +-----------+-----+-----+-----+-----+           |
7312#             | Printer   |  7  |  8  |  9  | 10  |   Rate    |
7313#             +-----------+-----+-----+-----+-----+-----------+
7314#                         |  D  |  D  |  D  |  D  |   9600    |
7315#                         |  U  |  D  |  D  |  D  |     50    |
7316#                         |  D  |  U  |  D  |  D  |     75    |
7317#                         |  U  |  U  |  D  |  D  |    110    |
7318#                         |  D  |  D  |  U  |  D  |    135    |
7319#                         |  U  |  D  |  U  |  D  |    150    |
7320#                         |  D  |  U  |  U  |  D  |    300    |
7321#                         |  U  |  U  |  U  |  D  |    600    |
7322#                         |  D  |  D  |  D  |  U  |   1200    |
7323#                         |  U  |  D  |  D  |  U  |   1800    |
7324#                         |  D  |  U  |  D  |  U  |   2400    |
7325#                         |  U  |  U  |  D  |  U  |   3600    |
7326#                         |  D  |  D  |  U  |  U  |   4800    |
7327#                         |  U  |  D  |  U  |  U  |   7200    |
7328#                         |  D  |  U  |  U  |  U  |   9600    |
7329#                         |  U  |  U  |  U  |  U  |  19200    |
7330#                         +-----+-----+-----+-----+-----------+
7331#
7332#                                    TABLE 3:
7333#                         +-----+-----+-----+-----------+
7334#                         |  3  |  4  |  5  |   Parity  |
7335#                         +-----+-----+-----+-----------+
7336#                         |  X  |  X  |  D  |    None   |
7337#                         |  D  |  D  |  U  |     Odd   |
7338#                         |  D  |  U  |  U  |    Even   |
7339#                         |  U  |  D  |  U  |    Mark   |
7340#                         |  U  |  U  |  U  |   Space   |
7341#                         +-----+-----+-----+-----------+
7342#                                 X = don't care
7343#
7344#                                     CHART:
7345#                         +-----+-----+-----------------+
7346#                         |  7  |  8  | Communication   |
7347#                         +-----+-----+-----------------+
7348#                         |  D  |  D  |  Half Duplex    |
7349#                         |  D  |  U  |  Full Duplex    |
7350#                         |  U  |  D  |     Block       |
7351#                         |  U  |  U  |     Local       |
7352#                         +-----+-----+-----------------+
7353#
7354# (tvi950: early versions had obsolete ":ma=^Vj^Kk^Hh^Ll^^H:".
7355# I also inserted :ic: and :kI:; the :ko: string indicated that :IC:
7356# should be present and all tvi native modes use the same string for this.
7357# Finally, note that BSD has cud1=^V. -- esr)
7358tvi950|televideo 950:\
7359	:am:bs:hs:mi:ms:xn:xo:\
7360	:co#80:it#8:li#24:sg#1:\
7361	:ac=b\011c\014d\re\ni\013:ae=^X:al=\EE:as=^U:bl=^G:bt=\EI:\
7362	:cd=\Ey:ce=\Et:cl=\E*:cm=\E=%+ %+ :cr=^M:ct=\E3:dc=\EW:\
7363	:dl=\ER:do=^J:ds=\Eg\Ef\r:ei=\Er:fs=^M:ho=^^:ic=\EQ:im=\Eq:\
7364	:is=\EDF\EC\Ed\EG0\Eg\Er\EO\E'\E(\E%\Ew\EX\Ee \017\011\El\E016\E004\Ex0\200\200\Ex1\200\200\Ex2\200\200\011\Ex3\200\200\Ex4\r\200\Ef\r:\
7365	:k0=^A0\r:k1=^A@\r:k2=^AA\r:k3=^AB\r:k4=^AC\r:k5=^AD\r:\
7366	:k6=^AE\r:k7=^AF\r:k8=^AG\r:k9=^AH\r:kA=\EE:kB=\EI:kC=\E*:\
7367	:kD=\EW:kE=\Et:kI=\EQ:kL=\ER:kS=\Ey:kb=^H:kd=^V:kh=^^:kl=^H:\
7368	:kr=^L:ku=^K:le=^H:mk@:nd=^L:pf=\Ea:po=\E`:sf=^J:sr=\Ej:\
7369	:st=\E1:ta=^I:ts=\Eg\Ef:up=^K:vb=\Eb\Ed:tc=adm+sgr:
7370#
7371# is for 950 with two pages adds the following:
7372#	set 48 line page (\E\\2)
7373#	place cursor at page 0, line 24, column 1 (\E-07 )
7374#	set local (no send) edit keys (\Ek)
7375#
7376# two page 950 adds the following:
7377#	when entering ex, set 24 line page (\E\\1)
7378#	when exiting ex, reset 48 line page (\E\\2)
7379#			 place cursor at 0,24,1 (\E-07 )
7380#	set duplex (send) edit keys (\El) when entering vi
7381#	set local (no send) edit keys (\Ek) when exiting vi
7382#
7383tvi950-2p|televideo950 w/2 pages:\
7384	:is=\EDF\EC\Ed\EG0\Eg\Er\EO\E'\E(\E%\Ew\EX\Ee \017\011\Ek\E016\E004\Ex0\200\200\Ex1\200\200\Ex2\200\200\011\Ex3\200\200\Ex4\r\200\E\\2\E-07 \011:\
7385	:ke=\Ek:ks=\El:te=\E\\2\E-07\040:ti=\E\\1\E-07\040:\
7386	:tc=tvi950:
7387#
7388# is for 950 with four pages adds the following:
7389#	set 96 line page (\E\\3)
7390#	place cursor at page 0, line 24, column 1 (\E-07 )
7391#
7392# four page 950 adds the following:
7393#	when entering ex, set 24 line page (\E\\1)
7394#	when exiting ex, reset 96 line page (\E\\3)
7395#			 place cursor at 0,24,1 (\E-07 )
7396#
7397tvi950-4p|televideo950 w/4 pages:\
7398	:is=\EDF\EC\Ed\EG0\Eg\Er\EO\E'\E(\E%\Ew\EX\Ee \017\011\Ek\E016\E004\Ex0\200\200\Ex1\200\200\Ex2\200\200\011\Ex3\200\200\Ex4\r\200\E\\3\E-07 \011:\
7399	:ke=\Ek:ks=\El:te=\E\\3\E-07\040:ti=\E\\1\E-07\040:\
7400	:tc=tvi950:
7401#
7402# :is: for reverse video 950 changes the following:
7403#	set reverse video (\Ed)
7404#
7405# set vb accordingly (\Ed ...delay... \Eb)
7406#
7407tvi950-rv|televideo950 rev video:\
7408	:is=\EDF\EC\Eb\EG0\Eg\Er\EO\E'\E(\E%\Ew\EX\Ee \017\011\El\E016\E004\Ex0\200\200\Ex1\200\200\Ex2\200\200\011\Ex3\200\200\Ex4\r\200:\
7409	:vb=\Ed\Eb:tc=tvi950:
7410
7411# tvi950-rv-2p uses the appropriate entries from 950-2p and 950-rv
7412tvi950-rv-2p|televideo950 rev video w/2 pages:\
7413	:is=\EDF\EC\Eb\EG0\Eg\Er\EO\E'\E(\E%\Ew\EX\Ee \017\011\Ek\E016\E004\Ex0\200\200\Ex1\200\200\Ex2\200\200\011\Ex3\200\200\Ex4\r\200\E\\2\E-07\040:\
7414	:ke=\Ek:ks=\El:te=\E\\2\E-07\040:ti=\E\\1\E-07\040:\
7415	:vb=\Ed\Eb:tc=tvi950:
7416
7417# tvi950-rv uses the appropriate entries from 950-4p and 950-rv
7418tvi950-rv-4p|televideo950 rev video w/4 pages:\
7419	:is=\EDF\EC\Eb\EG0\Er\EO\E'\E(\E%\Ew\EX\Ee \017\011\Ek\E016\E004\Ex0\200\200\Ex1\200\200\Ex2\200\200\011\Ex3\200\200\Ex4\r\200\E\\3\E-07\040:\
7420	:ke=\Ek:ks=\El:te=\E\\3\E-07\040:ti=\E\\1\E-07\040:\
7421	:vb=\Ed\Eb:tc=tvi950:
7422# From: Andreas Stolcke <stolcke@icsi.berkeley.edu>
7423# (tvi955: removed obsolete ":ma:=^Vj^Kk^Hh^Ll^^H";
7424# removed incorrect (and overridden) ":do=^J:"; fixed broken continuations in
7425# the :rs: string, inserted the :IC: implied by the termcap :ko: string.  Note
7426# the :ko: string had :cl: in it, which means that one of the original
7427# :cl=\E*:, <kclr=\EY> had to be wrong; set <kclr=\E*> because that's what
7428# the 950 has.   Finally, corrected the <kel> string to match the 950 and what
7429# ko implies -- esr)
7430# If the BSD termcap file was right, :cm=\E=%p1%{32}%+%c%p2%{32}%+%c: would
7431# also work.
7432tvi955|televideo 955:\
7433	:5i:bs:ms@:\
7434	:it#8:sg@:\
7435	:RA=\E[=7l:RX=^N:SA=\E[=7h:SX=^O:\
7436	:ac=0_`RjHkGlFmEnIoPqKsQtMuLvOwNxJ:ae=\E%%:as=\E$:\
7437	:cm=\E[%i%d;%dH:do=^V:is=\E[=3l\EF1\Ed\EG0\E[=5l\E%\El:\
7438	:kM=\EQ:kN=\EK:kP=\EJ:kT=\E1:ka=\E3:kt=\E2:mb=\EG2:\
7439	:me=\EG0\E[=5l:mh=\E[=5h:mk=\EG1:ps=\EP:\
7440	:r1=\EDF\EC\Eg\Er\EO\E'\E(\Ew\EX\Ee \017\E0P\E6\200\E0p\E4\200\Ef\r:\
7441	:sf@:ve=\E.2:vi=\E.0:vs=\E.1:tc=tvi950:
7442tvi955-w|955-w|televideo955 w/132 cols:\
7443	:co#132:\
7444	:is=\E[=3h\EF1\Ed\EG0\E[=5l\E%\El:tc=tvi955:
7445# use half-intensity as normal mode, full intensity as :md:
7446tvi955-hb|955-hb|televideo955 half-bright:\
7447	:is=\E[=3l\EF1\Ed\EG0\E[=5h\E%\El:md=\E[=5l:\
7448	:me=\EG0\E[=5h:mh@:tc=tvi955:
7449# From: Humberto Appleton <beto@cs.utexas.edu>, 880521 UT Austin
7450# (tvi970: removed ":sg#0:"; removed :se:=\E[m, :ue:=\E[m;
7451# added :am:/:cs:/:ho:/<hpa>/<vpa>/:ti:/:te: from BRL.
7452# According to BRL we could have :ke:=\E>, :ks:=\E= but I'm not sure what
7453# it does to the function keys.  I deduced <rmam>/<smam>.
7454# also added empty <acsc> to suppress tic warning,  -- esr)
7455tvi970|televideo 970:\
7456	:am:bs:da:db:mi:ms:pt:\
7457	:co#80:it#8:li#24:\
7458	:RA=\E[?7h:SA=\E[?7l:ac=:ae=\E(B:al=\E[L:as=\E(B:bt=\E[Z:\
7459	:cd=\E[J:ce=\E[K:ch=\E[%i%dG:cl=\E[H\E[2J:cm=\E[%i%d;%df:\
7460	:cs=\E[%i%d;%dr:cv=\E[%i%dd:dc=\E[P:dl=\E[M:do=\ED:\
7461	:ds=\Eg\Ef\r:ei=\E[4l:ho=\E[H:im=\E[4h:\
7462	:is=\E<\E[?21l\E[19h\E[1Q\E[10l\E[7l\E[H\E[2J:k1=\E?a:\
7463	:k2=\E?b:k3=\E?c:k4=\E?d:k5=\E?e:k6=\E?f:k7=\E?g:k8=\E?h:\
7464	:k9=\E?i:kb=^H:kd=\E[B:kh=\E[H:kl=\E[D:kr=\E[C:ku=\E[A:\
7465	:le=^H:me=\E[m:nd=\E[C:se=\E[m:so=\E[7m:sr=\EM:ta=^I:te=:\
7466	:ti=\E[?20l\E[?7h\E[1Q:ue=\E[m:up=\EM:us=\E[4m:\
7467	:vb=\E[5m\E[m:vs=\E[1Q:
7468tvi970-vb|televideo 970 with visual bell:\
7469	:vb=\E[?5h\200\200\200\200\200\200\200\200\200\200\200\200\200\E[?5l:\
7470	:tc=tvi970:
7471tvi970-2p|televideo 970 with using 2 pages of memory:\
7472	:te=\E[H\E[J\E[V:ti=\E[U\E[?20l\E[?7h\E[1Q:tc=tvi970:
7473# Works with vi and rogue.  NOTE: Esc v sets autowrap on, Esc u sets 80 chars
7474# per line (rather than 40), Esc K chooses the normal character set.  Not sure
7475# padding is needed, but adapted from the tvi920c termcap.  The :so: and
7476# :us: strings are klutzy, but at least use no screen space.
7477# (tvipt: removed obsolete ":ma=^Kk^Ll^R^L:".  I wish we knew <rmam>,
7478# its absence means <smam>=\Ev isn't safe to use. -- esr)
7479# From: Gene Rochlin <armsis@amber.berkeley.edu> 9/19/84.
7480# The :cd:/:k0:/:k1:/:kh:/<mc4>, and <mc5> caps are from BRL, which says:
7481# F1 and F2 should be programmed as ^A and ^B; required for UNIFY.
7482tvipt|televideo personal terminal:\
7483	:am:bs:\
7484	:co#80:li#24:\
7485	:al=5*\EE:bt=\EI:cd=\EY:ce=\ET:cl=^Z:cm=\E=%+ %+ :dl=5*\ER:\
7486	:ho=^^:if=/usr/share/tabset/stdcrt:is=\Ev\Eu\EK:k0=^A:\
7487	:k1=^B:kb=^H:kd=^J:kh=^^:kl=^H:kr=^L:ku=^K:le=^H:nd=^L:pf=^T:\
7488	:po=^R:se=\EF:so=\EG1@A\EH:ue=\EF:up=^K:us=\EG1B@\EH:
7489# From: Nathan Peterson <nathan@sco.com>, 03 Sep 1996
7490# (sgr removed to fit entry within 1023 bytes)
7491# (rmacs/smacs removed for consistency)
7492# (acsc removed to fit entry within 1023 bytes)
7493# (terminfo-only capabilities suppressed to fit entry within 1023 bytes)
7494tvi9065|televideo 9065:\
7495	:am:bw:hs:mi:ms:xn:xo:\
7496	:co#80:it#8:li#25:lm#0:ma#4:vt#0:ws#30:\
7497	:AL=\E[%dL:DC=\E[%dP:DL=\E[%dM:DO=\E[%dB:IC=\E[%d@:\
7498	:LE=\E[%dD:RI=\E[%dC:SF=\E[%dS:SR=\E[%dT:UP=\E[%dA:al=\EE:\
7499	:bl=^G:bt=\EI:cd=\EY:ce=\ET:cl=^Z:cm=\E=%+ %+ :cr=^M:\
7500	:cs=\E[%i%d;%dr:ct=\E3:dc=\EW:dl=\ER:dm=\Er:do=^V:\
7501	:ds=\E_30\r:ec=\E[%d@:ed=\200:ei=\Er:fs=^M:ho=^^:\
7502	:i1=\E"\E%\E'\E(\EG@\EO\EX\E[=5l\E[=6l\E[=7h\Ed\Er:\
7503	:i2=\E<\E[=4l\E[=8h:if=/usr/share/tabset/stdcrt:im=\Eq:\
7504	:ip=3:is=\EF2\EG0\E\\L:k1=^A@\r:k2=^AA\r:k3=^AB\r:\
7505	:k4=^AC\r:k5=^AD\r:k6=^AE\r:k7=^AF\r:k8=^AG\r:k9=^AH\r:\
7506	:kD=\EW:kb=^H:kd=^V:kh=^^:kl=^H:kr=^L:ku=^K:le=^H:\
7507	:ll=\E[25;1H:mb=\EG2:md=\EG,:me=\EG0\E%:mh=\EGp:mr=\EG4:\
7508	:nd=^L:nw=^M^J:rp=\E[%r%db%.:se=\EG0:sf=^J:so=\EGt:sr=\Ej:\
7509	:st=\E1:ta=^I:te=\E.3\Er\E[1;25r\E[25;0H:ti=\E.2:\
7510	:ts=\E[4;1v\E_30:uc=\EG8\EG0:ue=\EG0:up=^K:us=\EG8:\
7511	:vb=\Eb\Ed:ve=\E.3:vi=\E.0:vs=\E.2:
7512
7513#### Visual (vi)
7514#
7515# In September 1993, Visual Technology of Westboro, Massachusetts,
7516# merged with White Pine Software of Nashua, New Hampshire.
7517#
7518# White Pine Software may be contacted at +1 603/886-9050.
7519# Or visit White Pine on the World Wide Web at URL http://www.wpine.com.
7520#
7521
7522# Visual 50 from Beau Shekita, BTL-Whippany <whuxlb!ejs>
7523# Recently I hacked together the following termcap for Visual
7524# Technology's Visual 50 terminal. It's a slight modification of
7525# the vt52 termcap.
7526# It's intended to run when the Visual 50 is in vt52 emulation mode
7527# (I know what you're thinking; if it's emulating a vt52, then why
7528# another termcap? Well, it turns out that the Visual 50 can handle
7529# :dl: and db(?) among other things, which the vt52 can't)
7530# The termcap works OK for the most part. The only problem is on
7531# character inserts. The whole line gets painfully redrawn for each
7532# character typed. Any suggestions?
7533# Beau's entry is combined with the vi50 entry from University of Wisconsin.
7534# Note especially the :al: function.  :k4:-:k6: are really l4-l6 in
7535# disguise; :k7:-:k9: are really l1-l3.
7536vi50|visual 50:\
7537	:am:bs:da:db:ms:pt:\
7538	:co#80:it#8:li#24:\
7539	:al=\EL:bl=^G:bt=4\Ez:cd=\EJ:ce=16\EK:cl=\EH\EJ:\
7540	:cm=\EY%+ %+ :cr=^M:dl=3*\EM:do=\EB:ho=\EH:k1=\EP:k2=\EQ:\
7541	:k3=\ER:k4=\EV:k5=\EE:k6=\E]:k7=\EL:k8=\Ev:k9=\EM:kb=^H:\
7542	:kd=\EB:kh=\EH:kl=\ED:kr=\EC:ku=\EA:le=^H:nd=\EC:nl=^J:\
7543	:nw=^M^J:se=\ET:sf=^J:so=\EU:sr=\EI:ta=^I:ue=\EW:up=\EA:\
7544	:us=\ES:
7545# this one was BSD & SCO's vi50
7546vi50adm|visual 50 in adm3a mode:\
7547	:am:ms:\
7548	:co#80:it#8:li#24:\
7549	:al=\EL:bl=^G:cd=\Ek:ce=\EK:cl=^Z:cm=\E=%+ %+ :cr=^M:dl=\EM:\
7550	:do=^J:ho=\EH:kb=^H:kd=\EB:kh=\EH:kl=\ED:kr=\EC:ku=\EA:le=^H:\
7551	:nd=^L:se=\ET:sf=^J:so=\EU:ta=^I:up=^K:
7552# From: Jeff Siegal <jbs@quiotix.com>
7553vi55|Visual 55:\
7554	:am:bs:mi:ms:\
7555	:co#80:it#8:li#24:\
7556	:al=\EL:cd=\EJ:ce=\EK:cl=\Ev:cm=\EY%+ %+ :cs=\E_%+A%+A:\
7557	:dc=\Ew:dl=\EM:do=^J:ei=\Eb:ho=\EH:im=\Ea:\
7558	:is=\Ev\E_AX\Eb\EW\E9P\ET:kb=^H:kd=\EB:kl=\ED:kr=\EC:\
7559	:ku=\EA:le=^H:nd=\EC:se=\ET:so=\EU:sr=\EI:ta=^I:up=\EA:
7560
7561# Visual 200 from BRL
7562# The following switch settings are assumed for normal operation:
7563#	FULL_DUPLEX		SCROLL			CR
7564#	AUTO_NEW_LINE_ON	VISUAL_200_EMULATION_MODE
7565# Other switches may be set for operator convenience or communication
7566# requirements.
7567# Character insertion is kludged in order to get around the "beep" misfeature.
7568# (This cap is commented out because :im:/:ei: is more efficient -- esr)
7569# Supposedly "4*" delays should be used for :al:, :cd:, :cl:, :dc:,
7570# and :dl: strings, but we seem to get along fine without them.
7571vi200|visual 200:\
7572	:am:bs:mi:ms:pt:\
7573	:co#80:it#8:kn#10:li#24:\
7574	:ac=:ae=\EG:al=\EL:as=\EF:bl=^G:bt=\Ez:cd=\Ey:ce=\Ex:cl=\Ev:\
7575	:cm=\EY%+ %+ :cr=^M:ct=\Eg:dc=\EO:dl=\EM:do=^J:ho=\EH:\
7576	:k0=\E?p:k1=\E?q:k2=\E?r:k3=\E?s:k4=\E?t:k5=\E?u:k6=\E?v:\
7577	:k7=\E?w:k8=\E?x:k9=\E?y:kA=\EL:kC=\Ev:kD=\EO:kE=\Et:kI=\Ei:\
7578	:kL=\EM:kM=\Ej:kS=\EJ:kT=\E1:kb=^H:kd=\EB:ke=\E>:kh=\EH:\
7579	:kl=\ED:kr=\EC:ks=\E=:kt=\E2:ku=\EA:le=^H:me=\E3\Eb:mh=\E4:\
7580	:mk=\Ea:nd=\EC:pf=\EX:po=\EW:ps=\EH\E]:\
7581	:r1=\E3\Eb\Ej\E\El\EG\Ec\Ek\EX:se=\E3:sf=^J:so=\E4:\
7582	:sr=\EI:st=\E1:ta=^I:up=\EA:ve=\Ec:vs=\Ed:
7583# The older Visuals didn't come with function keys. This entry uses
7584# :ks: and :ke: so that the keypad keys can be used as function keys.
7585# If your version of vi doesn't support function keys you may want
7586# to use vi200-f.
7587vi200-f|visual 200 no function keys:\
7588	:is=\E3\Eb\Ej\E\\\El\EG\Ed\Ek:k0=\E?p:k1=\E?q:k2=\E?r:\
7589	:k3=\E?s:k4=\E?t:k5=\E?u:k6=\E?v:k7=\E?w:k8=\E?x:k9=\E?y:\
7590	:ke=\E>:ks=\E=:se@:so@:tc=vi200:
7591vi200-rv|visual 200 reverse video:\
7592	:se=\E3:so=\E4:sr@:ve@:vs@:tc=vi200:
7593
7594# the function keys are programmable but we don't reprogram them to their
7595# default values with :is: because programming them is very verbose. maybe
7596# an initialization file should be made for the 300 and they could be stuck
7597# in it.
7598# (vi300: added <rmam>/<smam> based on init string -- esr)
7599vi300|visual 300 ansi x3.64:\
7600	:am:bw:mi:xn:\
7601	:co#80:li#24:\
7602	:RA=\E[?7l:SA=\E[?7h:al=\E[L:bl=^G:bt=\E[Z:cd=\E[J:ce=\E[K:\
7603	:cl=\E[H\E[2J:cm=\E[%i%d;%dH:cr=^M:dc=40\E[P:dl=\E[M:\
7604	:do=\E[B:ei=\E[4l:ho=\E[H:im=\E[4h:\
7605	:is=\E[7s\E[2;3;4;20;?5;?6l\E[12;?7h\E[1Q\E[0;1(D\E[8s:\
7606	:k1=\E_A\E\\:k2=\E_B\E\\:k3=\E_C\E\\:k4=\E_D\E\\:\
7607	:k5=\E_E\E\\:k6=\E_F\E\\:k7=\E_G\E\\:k8=\E_H\E\\:\
7608	:k9=\E_I\E\\:kd=\E[B:kh=\E[H:kl=\E[D:kr=\E[C:ku=\E[A:le=^H:\
7609	:me=\E[m:nd=\E[C:se=\E[m:sf=^J:so=\E[1m:sr=\EM:ta=^I:\
7610	:ue=\E[m:up=\E[A:us=\E[4m:
7611# some of the vi300s have older firmware that has the command
7612# sequence for setting editing extent reversed.
7613vi300-old|visual 300 with old firmware (set edit extent reversed):\
7614	:is=\E[7s\E[2;3;4;20;?5;?6l\E[12;?7h\E[2Q\E[0;1(D\E[8s:\
7615	:tc=vi300:
7616
7617# Visual 500 prototype entry from University of Wisconsin.
7618# The best place to look for the escape sequences is page A1-1 of the
7619# Visual 500 manual.  The initialization sequence given here may be
7620# overkill, but it does leave out some of the initializations which can
7621# be done with the menus in set-up mode.
7622# The :xp: line below is so that emacs can understand the padding requirements
7623# of this slow terminal.  :xp: is 10 time the padding factor.
7624# (vi500: removed unknown :xp#4: termcap;
7625# also added empty <acsc> to suppress tic warning -- esr)
7626vi500|visual 500:\
7627	:am:mi:ms:\
7628	:co#80:it#8:li#33:\
7629	:ac=:ae=^O:al=3*\EL\Ex:as=^N:bt=4\Ez:cd=3*\Ey:ce=16\Ex:\
7630	:cl=6*\Ev:cm=\EY%+ %+ :cr=^M:cs=\E(%+ %+ :dc=3*\EO:\
7631	:dl=3*\EM:do=\EB:ei=\Ej:ho=\EH:im=\Ei:\
7632	:is=\E3\E\001\E\007\E\003\Ek\EG\Ed\EX\El\E>\Eb\E\\:\
7633	:kb=^H:kd=\EB:kh=\EH:kl=\ED:kr=\EC:ku=\EA:le=^H:nd=\EC:\
7634	:nw=^M^J:se=\E^G:sf=^J:so=\E^H:ta=8\011:ue=\E^C:up=\EA:\
7635	:us=\E^D:
7636
7637# The visual 550 is a visual 300 with tektronix graphics,
7638# and with 33 lines. clear screen is modified here to
7639# also clear the graphics.
7640vi550|visual 550 ansi x3.64:\
7641	:li#33:\
7642	:cl=\030\E[H\E[2J:tc=vi300:
7643
7644vi603|visual603|visual 603:\
7645	:hs:mi:\
7646	:al=\E[L:bl=^G:cd=\E[J:ce=\E[K:cl=\E[H\E[J:cm=\E[%i%d;%dH:\
7647	:cs=\E[%i%d;%dr:dc=\E[P:dl=\E[M:ds=\EP2;1~\E\\:ei=\E[4l:\
7648	:fs=\E\\:i1=\E>\E[?3l\E[?4l\E[?7h\E[?8h\E[1;24r:\
7649	:im=\E[4h:mb=\E[5m:md=\E[1m:me=\E[m:mr=\E[7m:nd=\E[C:\
7650	:se=\E[27m:sf=\ED:so=\E[7m:sr=\EM:ts=\EP2~:ue=\E[24m:\
7651	:up=\E[A:us=\E[4m:tc=vt100:
7652
7653#### Wyse (wy)
7654#
7655#	Wyse Technology
7656#	3471 North First Street
7657#	San Jose, CA 95134
7658#	Vox: (408)-473-1200
7659#	Fax: (408) 473-1222
7660#	Web: http://www.wyse.com
7661#
7662# Wyse sales can be reached by phone at 1-800-GET-WYSE.  Tech support is at
7663# (800)-800-WYSE (option 5 gets you a human).  There's a Web page at the
7664# obvious address, <http://www.wyse.com>.  They keep terminfo entries at
7665# <http://www.wyse.co.uk/support/appnotes/idxappnt.htm>.
7666#
7667# Wyse bought out Link Technology, Inc. in 1990 and closed it down in 1995.
7668# They now own the Qume and Amdek brands, too.  So these are the people to
7669# talk with about all Link, Qume, and Amdek terminals.
7670#
7671# These entries include a few small fixes.
7672# I canceled the bel capacities in the vb entries.
7673# I made two trivial syntax fixes in the wyse30 entry.
7674# I made some entries relative to adm+sgr.
7675#
7676#
7677# Note: The wyse75, wyse85, and wyse99 have been discontinued.
7678
7679#	   Although the Wyse 30 can support more than one attribute
7680#	it requires magic cookies to do so.  Many applications do not
7681#	function well with magic cookies.  The following terminfo uses
7682#	the protect mode to support one attribute (dim) without cookies.
7683#	If more than one attribute is needed then the wy30-mc terminfo
7684#	should be used.
7685#
7686wy30|wyse30|Wyse 30:\
7687	:5i:am:bw:hs:mi:ms:xo:\
7688	:Nl#8:co#80:lh#1:li#24:lw#8:ma#1:ws#45:\
7689	:#2=\E{:&3=\Er:@8=\E7:LF=\EA11:LO=\EA10:\
7690	:ac=0wa_h[jukslrmqnxqzttuyv]wpxv:ae=\EH^C:al=2\EE:\
7691	:as=\EH^B:bl=^G:bt=\EI:cd=80\EY:ce=\ET:cl=80\E+:\
7692	:cm=\E=%+ %+ :cr=^M:ct=\E0:dc=10\EW:dl=1\ER:do=^J:ds=\EF\r:\
7693	:ei=\Er:fs=^M:ho=^^:im=\Eq:ip=2:\
7694	:is=\E'\E(\E\1363\E`9\016\024:k1=^A@\r:k2=^AA\r:\
7695	:k3=^AB\r:k4=^AC\r:k5=^AD\r:k6=^AE\r:k7=^AF\r:k8=^AG\r:\
7696	:kA=\EE:kB=\EI:kD=\EW:kE=\ET:kI=\EQ:kL=\ER:kN=\EK:kP=\EJ:\
7697	:kS=\EY:kb=^H:kd=^J:kh=^^:kl=^H:kr=^L:ku=^K:le=^H:ll=^^^K:\
7698	:me=\E(:mh=\E`7\E):mp=\E`7\E):nd=^L:nw=^M^J:pf=^T:po=^X:\
7699	:ps=\EP:se=\E(:sf=2\n:so=\E`7\E):sr=3\Ej:st=\E1:ta=1\011:\
7700	:ts=\EF:up=^K:vb=\E`8\E`9:ve=\E`1:vi=\E`0:
7701#
7702#	This terminal description uses the non-hidden attribute mode
7703#	(with magic cookie).
7704#
7705# (wy30-mc: added :ti: to suppress tic warning --esr)
7706wy30-mc|wyse30-mc|wyse 30 with magic cookies:\
7707	:ms@:\
7708	:ma@:sg#1:\
7709	:ae=\EG0\EH\003:as=\EG0\EH\002:mb=\EG2:\
7710	:me=\EG0\E(\EH\003:mh=\EGp:mp=\EG0\E):se=\EG0:so=\EG4:\
7711	:te=\EG0:ti=:tc=wy30:tc=adm+sgr:
7712#	The mandatory pause used by :vb: does not work with
7713#	older versions of terminfo.  If you see this effect then
7714#	unset xon and delete the / from the delay.
7715#	i.e. change $<100/> to $<100>
7716wy30-vb|wyse30-vb|wyse 30 visible bell:\
7717	:bl@:tc=wy30:
7718#
7719#	   The Wyse 50 can support one attribute (e.g. Dim, Inverse,
7720#	Normal) without magic cookies by using the protect mode.
7721#	The following description uses this feature, but when more
7722#	than one attribute is put on the screen at once, all attributes
7723#	will be changed to be the same as the last attribute given.
7724#	   The Wyse 50 can support more attributes when used with magic
7725#	cookies.  The wy50-mc terminal description uses magic cookies
7726#	to correctly handle multiple attributes on a screen.
7727#
7728wy50|wyse50|Wyse 50:\
7729	:5i:am:bw:hs:mi:ms:xo:\
7730	:Nl#8:co#80:lh#1:li#24:lw#8:ma#1:ws#45:\
7731	:#2=\E{:%9=\EP:&3=\Er:@8=\E7:F1=^AJ\r:F2=^AK\r:F3=^AL\r:\
7732	:F4=^AM\r:F5=^AN\r:F6=^AO\r:LF=\EA11:LO=\EA10:\
7733	:ac=0wa_h[jukslrmqnxqzttuyv]wpxv:ae=\EH^C:al=\EE:\
7734	:as=\EH^B:bl=^G:bt=\EI:cd=20\EY:ce=\ET:cl=20\E+:\
7735	:cm=\E=%+ %+ :cr=^M:ct=\E0:dc=1\EW:dl=\ER:do=^J:ds=\EF\r:\
7736	:ei=\Er:fs=^M:ho=^^:i1=30\E`\072\E`9:im=\Eq:ip=1:\
7737	:is=\016\024\E'\E(:k1=^A@\r:k2=^AA\r:k3=^AB\r:k4=^AC\r:\
7738	:k5=^AD\r:k6=^AE\r:k7=^AF\r:k8=^AG\r:k9=^AH\r:k;=^AI\r:\
7739	:kA=\EE:kB=\EI:kD=\EW:kE=\ET:kI=\EQ:kL=\ER:kN=\EK:kP=\EJ:\
7740	:kS=\EY:kb=^H:kd=^J:kh=^^:kl=^H:kr=^L:ku=^K:le=^H:ll=^^^K:\
7741	:me=\E(:mh=\E`7\E):mp=\E`7\E):mr=\E`6\E):nd=^L:nw=^M^J:\
7742	:pf=^T:po=^X:ps=\EP:se=\E(:sf=2\n:so=\E`6\E):sr=\Ej:st=\E1:\
7743	:ta=^I:ts=\EF:up=^K:vb=\E`8\E`9:ve=\E`1:vi=\E`0:
7744#
7745#	This terminal description uses the non-hidden attribute mode
7746#	(with magic cookie).
7747#
7748#	The mandatory pause used by flash does not work with some
7749#	older versions of terminfo.  If you see this effect then
7750#	unset :xo: and delete the / from the delay.
7751#	i.e. change $<100/> to $<100>
7752# (wy50-mc: added :ti: to suppress tic warning --esr)
7753wy50-mc|wyse50-mc|wyse 50 with magic cookies:\
7754	:ms@:\
7755	:ma@:sg#1:\
7756	:ae=\EG0\EH\003:as=\EG0\EH\002:mb=\EG2:\
7757	:me=\EG0\E(\EH\003:mh=\EGp:mp=\EG0\E):mr=\EG4:se=\EG0:\
7758	:so=\EGt:te=\EG0:ti=:tc=wy50:tc=adm+sgr:
7759wy50-vb|wyse50-vb|wyse 50 visible bell:\
7760	:bl@:tc=wy50:
7761wy50-w|wyse50-w|wyse 50 132-column:\
7762	:Nl#16:co#132:lw#7:ws#97:\
7763	:cm=\Ea%i%dR%dC:dc=2\EW:i1=30\E`;\E`9:tc=wy50:
7764wy50-wvb|wyse50-wvb|wyse 50 132-column visible bell:\
7765	:bl@:tc=wy50-w:
7766
7767#
7768#	The Wyse 350 is a Wyse 50 with color.
7769#	Unfortunately this means that it has magic cookies.
7770#	The color attributes are designed to overlap the reverse, dim and
7771#	underline attributes.  This is nice for monochrome applications
7772#	because you can make underline stuff green (or any other color)
7773#	but for true color applications it's not so hot because you cannot
7774#	mix color with reverse, dim or underline.
7775#	    To further complicate things one of the attributes must be
7776#	black (either the foreground or the background).  In reverse video
7777#	the background changes color with black letters.  In normal video
7778#	the foreground changes colors on a black background.
7779#	    This terminfo uses some of the more advanced features of curses
7780#	to display both color and blink.  In the final analysis I am not
7781#	sure that the wy350 runs better with this terminfo than it does
7782#	with the wy50 terminfo (with user adjusted colors).
7783#
7784#	The mandatory pause used by flash does not work with
7785#	older versions of terminfo.  If you see this effect then
7786#	unset xon and delete the / from the delay.
7787#	i.e. change $<100/> to $<100>
7788#
7789# Bug: The <op> capability resets attributes.
7790wy350|wyse350|Wyse 350:\
7791	:5i:am:bw:hs:mi:xo:\
7792	:Co#8:NC#55:Nl#8:co#80:lh#1:li#24:lw#8:pa#8:sg#1:ws#45:\
7793	:#2=\E{:%9=\EP:&3=\Er:@8=\E7:F1=^AJ\r:F2=^AK\r:F3=^AL\r:\
7794	:F4=^AM\r:F5=^AN\r:F6=^AO\r:LF=\EA11:LO=\EA10:Sb=:\
7795	:ac=0wa_h[jukslrmqnxqzttuyv]wpxv:ae=\EG0\EH\003:al=\EE:\
7796	:as=\EG0\EH\002:bl=^G:bt=\EI:cd=20\EY:ce=\ET:cl=20\E+:\
7797	:cm=\E=%+ %+ :cr=^M:ct=\E0:dc=1\EW:dl=\ER:do=^J:ds=\EF\r:\
7798	:ei=\Er:fs=^M:ho=^^:i1=30\E`\072\E`9:i2=\E%?:im=\Eq:ip=1:\
7799	:is=\016\024\E'\E(:k1=^A@\r:k2=^AA\r:k3=^AB\r:k4=^AC\r:\
7800	:k5=^AD\r:k6=^AE\r:k7=^AF\r:k8=^AG\r:k9=^AH\r:k;=^AI\r:\
7801	:kA=\EE:kB=\EI:kD=\EW:kE=\ET:kI=\EQ:kL=\ER:kN=\EK:kP=\EJ:\
7802	:kS=\EY:kb=^H:kd=^J:kh=^^:kl=^H:kr=^L:ku=^K:le=^H:ll=^^^K:\
7803	:mb=\EG2:me=%{0}%PA%{0}%PC:mh=\EGp:mp=\EG0\E):nd=^L:\
7804	:nw=^M^J:oc=\E%?:op=\EG0:pf=^T:po=^X:ps=\EP:sf=2\n:sr=\Ej:\
7805	:st=\E1:ta=^I:ts=\EF:up=^K:vb=\E`8\E`9:ve=\E`1:vi=\E`0:\
7806	:tc=adm+sgr:
7807wy350-vb|wyse350-vb|wyse 350 visible bell:\
7808	:bl@:tc=wy350:
7809wy350-w|wyse350-w|wyse 350 132-column:\
7810	:Nl#16:co#132:lw#7:ws#97:\
7811	:cm=\Ea%i%dR%dC:dc=2\EW:i1=30\E`;\E`9:tc=wy350:
7812wy350-wvb|wyse350-wvb|wyse 350 132-column visible bell:\
7813	:bl@:tc=wy350-w:
7814#
7815#	This terminfo description is untested.
7816#	The wyse100 emulates an adm31, so the adm31 entry should work.
7817#
7818wy100|wyse 100:\
7819	:hs:mi:\
7820	:co#80:li#24:sg#1:\
7821	:al=\EE:bl=^G:cd=\EY:ce=\ET:cl=\E;:cm=\E=%+ %+ :cr=^M:\
7822	:dc=\EW:dl=\ER:do=^J:ds=\EA31:ei=\Er:fs=^M:im=\Eq:is=\Eu\E0:\
7823	:k1=^A@\r:k2=^AA\r:k3=^AB\r:k4=^AC\r:k5=^AD\r:k6=^AE\r:\
7824	:k7=^AF\r:k8=^AG\r:kb=^H:kd=^J:kh=\E{:kl=^H:kr=^L:ku=^K:\
7825	:le=^H:mk@:nd=^L:sf=^J:ts=\EF:up=^K:tc=adm+sgr:
7826#
7827#	The Wyse 120/150 has most of the features of the Wyse 60.
7828#	This terminal does not need padding up to 9600 baud!
7829#	:ms: should be set but the clear screen fails when in
7830#	alt-charset mode.  Try \EcE\s\s\E+\s if the screen is really clear
7831#	then set :ms:.
7832#
7833# (sgr removed to fit entry within 1023 bytes)
7834# (rmacs/smacs removed for consistency)
7835# (acsc removed to fit entry within 1023 bytes)
7836wy120|wyse120|wy150|wyse150|Wyse 120/150:\
7837	:5i:am:bw:hs:km:mi:ms:xo:\
7838	:Nl#8:co#80:it#8:lh#1:li#24:lw#8:pb#9601:ws#45:\
7839	:#2=\E{:%9=\EP:&3=\Er:@8=\E7:F1=^AJ\r:F2=^AK\r:F3=^AL\r:\
7840	:F4=^AM\r:F5=^AN\r:F6=^AO\r:LF=\EA11:LO=\EA10:RA=\Ed.:\
7841	:RX=\Ec20:SA=\Ed/:SX=\Ec21:al=3\EE:bl=^G:bt=\EI:cd=50\EY:\
7842	:ce=4\ET:cl=50\E+:cm=\E=%+ %+ :cr=^M:ct=\E0:dc=7\EW:\
7843	:dl=3\ER:do=^J:ds=\EF\r:ei=\Er:fs=^M:ho=^^:i1=\EcB0\EcC1:\
7844	:i2=150\EwJ\Ew1:im=\Eq:ip=2:\
7845	:is=\Ed$\EcD\E'\Er\EH\003\Ed/\EO\Ee1\Ed*\E`@\E`9\E`1\016\024\El:\
7846	:k1=^A@\r:k2=^AA\r:k3=^AB\r:k4=^AC\r:k5=^AD\r:k6=^AE\r:\
7847	:k7=^AF\r:k8=^AG\r:k9=^AH\r:k;=^AI\r:kA=\EE:kB=\EI:kD=\EW:\
7848	:kE=\ET:kI=\EQ:kL=\ER:kN=\EK:kP=\EJ:kS=\EY:kb=^H:kd=^J:kh=^^:\
7849	:kl=^H:kr=^L:ku=^K:le=^H:ll=^^^K:mb=\EG2:\
7850	:me=\E(\EH\003\EG0\EcD:mh=\EGp:mp=\E):nd=^L:nw=3\r\n:\
7851	:pf=^T:po=\Ed#:ps=\EP:r1=30\E~!\E~4:r2=70\EeF\E`\072:\
7852	:r3=100\EwG\Ee(:sf=3\n:so=\EGt:sr=2\Ej:st=\E1:ta=1\011:\
7853	:te=\Ew1:ti=\Ew0:ts=\EF:up=^K:vb=\E`8\E`9:ve=\E`1:vi=\E`0:\
7854	:tc=adm+sgr:
7855#
7856wy120-w|wyse120-w|wy150-w|wyse150-w|wyse 120/150 132-column:\
7857	:Nl#16:co#132:lw#7:ws#97:\
7858	:cm=\Ea%i%dR%dC:dc=12\EW:ip=4:rs=70\E`;:tc=wy120:
7859#
7860wy120-25|wyse120-25|wy150-25|wyse150-25|wyse 120/150 80-column 25-lines:\
7861	:Nl@:lh@:li#25:lw@:\
7862	:pn@:r3=100\EwG\Ee):tc=wy120:
7863#
7864wy120-25-w|wyse120-25-w|wy150-25-w|wyse150-25-w|wyse 120/150 132-column 25-lines:\
7865	:Nl@:lh@:li#25:lw@:\
7866	:pn@:r3=100\EwG\Ee):tc=wy120-w:
7867#
7868wy120-vb|wyse120-vb|wy150-vb|wyse150-vb|Wyse 120/150 visible bell:\
7869	:bl@:tc=wy120:
7870#
7871wy120-w-vb|wy120-wvb|wyse120-wvb|wy150-w-vb|wyse150-w-vb|Wyse 120/150 132-column visible bell:\
7872	:bl@:tc=wy120-w:
7873#
7874#	The Wyse 60 is like the Wyse 50 but with more padding.
7875#	The reset strings are slow and the pad times very depending
7876#	on other parameters such as font loading.  I have tried
7877#	to follow the following outline:
7878#
7879#		<rs1> -> set personality
7880#		<rs2> -> set number of columns
7881#		<rs3> -> set number of lines
7882#		:i1: -> select the proper font
7883#		:is: -> do the initialization
7884#		:i3: -> set up display memory (2 pages)
7885#
7886#	The Wyse 60's that have vt100 emulation are slower than the
7887#	older Wyse 60's.  This change happened mid-1987.
7888#	The capabilities effected are :dc: :dl: :al: :sf: :sr:
7889#
7890#	The meta key is only half right.  This terminal will return the
7891#	high order bit set when you hit CTRL-function_key
7892#
7893#	It may be useful to assign two function keys with the
7894#	values  \E=(\s  look at old data in page 1
7895#	        \E=W,   look at bottom of page 1
7896#	where \s is a space ( ).
7897#
7898#	Note:
7899#	   The Wyse 60 runs faster when the XON/XOFF
7900#	   handshake is turned off.
7901#
7902# (wy60: we use \E{ rather than ^^ for home (both are documented) to avoid
7903# a bug reported by Robert Dunn, <rcdii@inlink.com> -- esr)
7904wy60|wyse60|Wyse 60:\
7905	:5i:am:bw:hs:km:mi:ms:\
7906	:Nl#8:co#80:lh#1:li#24:lw#8:ws#45:\
7907	:#2=\E{:%9=\EP:&3=\Er:@8=\E7:DK=\E`b:F1=^AJ\r:F2=^AK\r:\
7908	:F3=^AL\r:F4=^AM\r:F5=^AN\r:F6=^AO\r:LF=\EA11:LO=\EA10:\
7909	:RA=\Ed.:RC=\E`c:RX=\Ec20:SA=\Ed/:SX=\Ec21:\
7910	:ac=+/,.0[a2fxgqh1ihjYk?lZm@nEqDtCu4vAwBx3yszr{c~~:\
7911	:ae=\EcD:al=4\EE:as=\EcE:bl=^G:bt=\EI:cd=100\EY:ce=\ET:\
7912	:cl=100\E+:cm=\E=%+ %+ :cr=^M:ct=\E0:dc=11\EW:dl=5\ER:\
7913	:do=^J:ds=\EF\r:ei=\Er:fs=^M:ho=\E{:i1=\EcB0\EcC1:\
7914	:i2=150\EwJ\Ew1:im=\Eq:ip=3:\
7915	:is=\Ed$\EcD\E'\Er\EH\003\Ed/\EO\Ee1\Ed*\E`@\E`9\E`1\016\024\El:\
7916	:k1=^A@\r:k2=^AA\r:k3=^AB\r:k4=^AC\r:k5=^AD\r:k6=^AE\r:\
7917	:k7=^AF\r:k8=^AG\r:k9=^AH\r:k;=^AI\r:kA=\EE:kB=\EI:kD=\EW:\
7918	:kE=\ET:kI=\EQ:kL=\ER:kN=\EK:kP=\EJ:kS=\EY:kb=^H:kd=^J:kh=^^:\
7919	:kl=^H:kr=^L:ku=^K:le=^H:ll=\E{^K:mb=\EG2:\
7920	:me=\E(\EH\003\EG0\EcD:mh=\EGp:mp=\E):nd=^L:nw=3\r\n:\
7921	:pf=^T:po=\Ed#:ps=\EP:r1=150\E~!\E~4:r2=150\EeG:\
7922	:r3=200\EwG\Ee(:sf=5\n:so=\EGt:sr=7\Ej:st=\E1:ta=1\011:\
7923	:te=\Ew1:ti=\Ew0:ts=\EF:up=^K:vb=\E`8\E`9:ve=\E`1:vi=\E`0:\
7924	:tc=adm+sgr:
7925#
7926wy60-w|wyse60-w|wyse 60 132-column:\
7927	:Nl#16:co#132:lw#7:ws#97:\
7928	:cm=\Ea%i%dR%dC:dc=16\EW:ip=5:rs=150\EeF\E`;:tc=wy60:
7929#
7930wy60-25|wyse60-25|wyse 60 80-column 25-lines:\
7931	:Nl@:lh@:li#25:lw@:\
7932	:pn@:r3=200\EwG\Ee):tc=wy60:
7933wy60-25-w|wyse60-25-w|wyse 60 132-column 25-lines:\
7934	:Nl@:lh@:li#25:lw@:\
7935	:pn@:r3=200\EwG\Ee):tc=wy60-w:
7936#
7937wy60-42|wyse60-42|wyse 60 80-column 42-lines:\
7938	:li#42:\
7939	:al=11\EE:cd=260\Ey:cl=260\E+:cm=2\E=%+ %+ :dc=16\EW:\
7940	:dl=11\ER:i1=\EcB2\EcC3:ip=5:nw=6\r\n:r3=150\Ee*:sf=9\n:\
7941	:sr=10\Ej:tc=wy60:
7942wy60-42-w|wyse60-42-w|wyse 60 132-column 42-lines:\
7943	:Nl#16:co#132:lw#7:ws#97:\
7944	:cd=260\Ey:cl=260\E+:cm=2\Ea%i%dR%dC:dc=19\EW:ho=2\036:\
7945	:ip=6:nw=11\r\n:rs=150\EeF\E`;:tc=wy60-42:
7946#
7947wy60-43|wyse60-43|wyse 60 80-column 43-lines:\
7948	:Nl@:lh@:li#43:lw@:\
7949	:pn@:r3=150\Ee+:tc=wy60-42:
7950wy60-43-w|wyse60-43-w|wyse 60 132-column 43-lines:\
7951	:Nl@:lh@:li#43:lw@:\
7952	:pn@:r3=150\Ee+:tc=wy60-42-w:
7953#
7954wy60-vb|wyse60-vb|Wyse 60 visible bell:\
7955	:bl@:tc=wy60:
7956wy60-w-vb|wy60-wvb|wyse60-wvb|Wyse 60 132-column visible bell:\
7957	:bl@:tc=wy60-w:
7958
7959#	The Wyse-99GT looks at lot like the Wyse 60 except that it
7960#	does not have the 42/43 line mode.  In the Wyse-60 the "lines"
7961#	setup parameter controls the number of lines on the screen.
7962#	For the Wyse 99GT the "lines" setup parameter controls the
7963#	number of lines in a page.  The screen can display 25 lines max.
7964#	    The Wyse-99GT also has personalities for the VT220 and
7965#	Tektronix 4014.  But this has no bearing on the native mode.
7966#
7967#	(msgr) should be set but the clear screen fails when in
7968#	alt-charset mode.  Try \EcE\s\s\E+\s if the screen is really clear
7969#	then set msgr, else use msgr@.
7970#
7971#	u0 -> enter Tektronix mode
7972#	u1 -> exit Tektronix mode
7973#
7974wy99gt|wyse99gt|Wyse 99gt:\
7975	:ms@:\
7976	:al=4\EE:cd=130\Ey:ce=5\Et:cl=130\E+:dc=7\EW:dl=4\ER:\
7977	:i2=20\Ew0:ip=2:nw@:rs=150\E`\072:sf=4\n:sr=3\Ej:ta=1\011:\
7978	:te=\Ew0:ti=\Ew1:u0=\E~>\E8:u1=\E[42h:vb=\E`8\E`9:tc=wy60:
7979#
7980wy99gt-w|wyse99gt-w|wyse 99gt 132-column:\
7981	:Nl#16:co#132:lw#7:ws#97:\
7982	:cd=160\Ey:cl=160\E+:cm=2\Ea%i%dR%dC:dc=9\EW:ip=4:\
7983	:rs=150\E`;:tc=wy99gt:
7984#
7985wy99gt-25|wyse99gt-25|wyse 99gt 80-column 25-lines:\
7986	:Nl@:lh@:li#25:lw@:\
7987	:pn@:r2=150\E`\072:r3=200\EwG\Ee):tc=wy99gt:
7988#
7989wy99gt-25-w|wyse99gt-25-w|wyse 99gt 132-column 25-lines:\
7990	:Nl@:lh@:li#25:lw@:\
7991	:pn@:rs=150\E`;:tc=wy99gt-w:
7992#
7993wy99gt-vb|wyse99gt-vb|Wyse 99gt visible bell:\
7994	:bl@:tc=wy99gt:
7995#
7996wy99gt-w-vb|wy99gt-wvb|wyse99gt-wvb|Wyse 99gt 132-column visible bell:\
7997	:bl@:tc=wy99gt-w:
7998
7999# Can't set tabs! Other bugs (ANSI mode only):
8000# - can't redefine function keys (anyway, key redefinition in ANSI mode
8001#   is too much complex to be described);
8002# - meta key can't be described (the terminal forgets it when reset);
8003# The xon-xoff handshaking can't be disabled while in ansi personality, so
8004# emacs can't work at speed greater than 9600 baud.  No padding is needed at
8005# this speed.
8006#   dch1 has been commented out because it causes annoying glittering when
8007# vi deletes one character at the beginning of a line with tabs in it.
8008#   dch makes sysgen(1M) have a horrible behaviour when deleting
8009# a screen and makes screen(1) behave badly, so it is disabled too. The nice
8010# thing is that vi goes crazy if smir-rmir are present and both dch-dch1 are
8011# not, so smir and rmir are commented out as well.
8012# From: Francesco Potorti` <F.Potorti@cnuce.cnr.it>, 24 Aug 1998
8013# (sgr removed to fit entry within 1023 bytes)
8014# (acsc removed to fit entry within 1023 bytes)
8015# (terminfo-only capabilities suppressed to fit entry within 1023 bytes)
8016wy99-ansi|Wyse WY-99GT in ansi mode (int'l PC keyboard):\
8017	:am:km:mi:ms:xn:\
8018	:co#80:it#8:li#25:vt#3:\
8019	:AL=\E[%dL:DL=\E[%dM:DO=\E[%dB:IC=\E[%d@:LE=1\E[%dD:\
8020	:RI=1\E[%dC:UP=\E[%dA:ae=^O:al=\E[L:as=^N:bl=^G:bt=\E[Z:\
8021	:cd=8*\E[J:ce=1\E[K:cl=200\E[H\E[J:cm=\E[%i%d;%dH:cr=^M:\
8022	:cs=\E[%i%d;%dr:dl=\E[M:do=\ED:ec=\E[%dX:ei=\E[4l:ho=\E[H:\
8023	:im=\E[4h:\
8024	:is=\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:\
8025	:k1=\EOP:k2=\EOQ:k3=\EOR:k4=\EOS:k5=\E[M:k6=\E[17~:\
8026	:k7=\E[18~:k8=\E[19~:k9=\E[20~:kb=^H:kd=\EOB:ke=\E[?1l:\
8027	:kl=\EOD:kr=\EOC:ks=\E[?1h:ku=\EOA:le=1\010:ll=\E[24E:\
8028	:mb=\E[5m:md=\E[1m:me=\E[m\017\E["q:mh=\E[2m:mr=\E[7m:\
8029	:nd=1\E[C:nw=\EE:rc=\E8:\
8030	:rs=\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:\
8031	:sc=\E7:se=\E[27m:sf=1\n:so=\E[7m:sr=\EM:ta=^I:ue=\E[24m:\
8032	:up=\EM:us=\E[4m:vb=\E[?5h\E[?5l:ve=\E[34h\E[?25h:\
8033	:vi=\E[?25l:vs=\E[34l\E[?25h:
8034
8035#   This is the american terminal. Here tabs work fine.
8036# From: Francesco Potorti` <F.Potorti@cnuce.cnr.it>, 24 Aug 1998
8037wy99a-ansi|Wyse WY-99GT in ansi mode (US PC keyboard):\
8038	:ct=\E[3g:i2=\E[?5l:r3=\E[?5l:st=\EH:tc=wy99-ansi:
8039
8040# This terminal (firmware version 02) has a lot of bugs:
8041# - can't set tabs;
8042# - other bugs in ANSI modes (see above).
8043# This description disables handshaking when using cup. This is because
8044# GNU emacs doesn't like Xon-Xoff handshaking. This means the terminal
8045# cannot be used at speeds greater than 9600 baud, because at greater
8046# speeds handshaking is needed even for character sending. If you use
8047# DTR handshaking, you can use even greater speeds.
8048# From: Francesco Potorti` <F.Potorti@cnuce.cnr.it>, 24 Aug 1998
8049# (sgr removed to fit entry within 1023 bytes)
8050# (rmacs/smacs removed for consistency)
8051# (acsc removed to fit entry within 1023 bytes)
8052# (terminfo-only capabilities suppressed to fit entry within 1023 bytes)
8053wy99f|wy99fgt|wy-99fgt|Wyse WY-99GT (int'l PC keyboard):\
8054	:am:bw:hs:km:mi:ms:xo:\
8055	:co#80:it#8:li#25:ws#46:\
8056	:K1=^^:K3=\EJ:K4=\ET:K5=\EK:al=\EE:bl=^G:bt=\EI:cd=8*\EY:\
8057	:ce=8\ET:cl=\E'\E(\032:cm=\E=%+ %+ :cr=^M:dc=\EW:dl=\ER:\
8058	:do=\Ej:ds=\EF\r:ei=\Er:fs=^M:ho=^^:im=\Eq:\
8059	:is=\Eu\Ee6\EC\EDF\Ec21\Ec31\Ec62\Ec72\Ee;\016\E'\EeL\E`9\E\1360\E`1\E`4\Ee.\E`\072\Ee1\EG0\E(\Ed/\Ee4\Ed*\EO\E`I\Er\Ee"\EcD\024:\
8060	:k1=^A@\r:k2=^AA\r:k3=^AB\r:k4=^AC\r:k5=^AD\r:k6=^AE\r:\
8061	:k7=^AF\r:k8=^AG\r:k9=^AH\r:kb=^H:kd=^J:kl=^H:kr=^L:ku=^K:\
8062	:le=^H:mb=\EG2:me=\E(\EG0\EcD:mh=\EGp:mr=\EG4:nd=^L:nw=^_:\
8063	:rs=\Eu\E~4\Ee6\EC\EDF\Ec21\Ec31\Ec62\Ec72\Ee;\016\E'\EeL\E`9\E\1360\E`1\E`4\Ee.\E`\072\Ee)\Ew\EwG\Ew0\Ee1\EG0\E(\Ed/\Ee4\Ed*\EO\E`I\Er\Ee"\Ec@0B\EcD\024:\
8064	:se=\EG0:sf=^J:so=\EG4:sr=\Ej:ta=^I:te=\Ec21\Ec31:\
8065	:ti=\Ec20\Ec30:ts=\EF:up=^K:vb=\E\1361\E\1360:\
8066	:ve=\E`4\E`1:vi=\E`0:vs=\E`2\E`1:
8067
8068# This is the american terminal. Here tabs work.
8069# From: Francesco Potorti` <F.Potorti@cnuce.cnr.it>, 24 Aug 1998
8070wy99fa|wy99fgta|wy-99fgta|Wyse WY-99GT (US PC keyboard):\
8071	:ct=\E0:st=\E1:tc=wy99f:
8072
8073#
8074#	The Wyse 160 is combination of the WY-60 and the WY-99gt.
8075#	The reset strings are slow and the pad times very depending
8076#	on other parameters such as font loading.  I have tried
8077#	to follow the following outline:
8078#
8079#		<rs1> -> set personality
8080#		<rs2> -> set number of columns
8081#		<rs3> -> set number of lines
8082#		:i1: -> select the proper font
8083#		:is: -> do the initialization
8084#		:i3: -> set up display memory (2 pages)
8085#
8086#	The display memory may be used for either text or graphics.
8087#	When "Display Memory = Shared" the terminal will have more pages
8088#	but garbage may be left on the screen when you switch from
8089#	graphics to text.  If "Display Memory = Unshared" then the
8090#	text area will be only one page long.
8091#
8092# (wy160: we use \E{ rather than ^^ for home (both are documented) to avoid
8093# a bug reported by Robert Dunn, <rcdii@inlink.com> -- esr)
8094wy160|wyse160|Wyse 160:\
8095	:5i:am:bw:hs:km:mi:ms:\
8096	:Nl#8:co#80:lh#1:li#24:lw#8:ws#38:\
8097	:#2=\E{:%9=\EP:&3=\Er:@8=\E7:DK=\E`b:F1=^AJ\r:F2=^AK\r:\
8098	:F3=^AL\r:F4=^AM\r:F5=^AN\r:F6=^AO\r:LF=\EA11:LO=\EA10:\
8099	:RA=\Ed.:RC=\E`c:RX=\Ec20:SA=\Ed/:SX=\Ec21:\
8100	:ac=+/,.0[a2fxgqh1ihjYk?lZm@nEqDtCu4vAwBx3yszr{c~~:\
8101	:ae=\EcD:al=1\EE:as=\EcE:bl=^G:bt=\EI:cd=30\EY:ce=5\ET:\
8102	:cl=30\E+:cm=\E=%+ %+ :cr=^M:ct=\E0:dc=5\EW:dl=1\ER:do=^J:\
8103	:ds=\EF\r:ei=\Er:fs=^M:ho=\E{:i1=\EcB0\EcC1:i2=100\Ew0:\
8104	:im=\Eq:ip=2:\
8105	:is=\Ed$\EcD\E'\Er\EH\003\Ed/\EO\Ee1\Ed*\E`@\E`9\E`1\016\024\El:\
8106	:k1=^A@\r:k2=^AA\r:k3=^AB\r:k4=^AC\r:k5=^AD\r:k6=^AE\r:\
8107	:k7=^AF\r:k8=^AG\r:k9=^AH\r:k;=^AI\r:kA=\EE:kB=\EI:kD=\EW:\
8108	:kE=\ET:kI=\EQ:kL=\ER:kN=\EK:kP=\EJ:kS=\EY:kb=^H:kd=^J:kh=^^:\
8109	:kl=^H:kr=^L:ku=^K:le=^H:ll=\E{^K:mb=\EG2:\
8110	:me=\E(\EH\003\EG0\EcD:mh=\EGp:mp=\E):nd=^L:nw=1\r\n:\
8111	:pf=^T:po=\Ed#:ps=\EP:r1=70\E~!\E~4:r2=100\E`\072:\
8112	:r3=140\EwG\Ee(:sf=1\n:so=\EGt:sr=1\Ej:st=\E1:ta=^I:\
8113	:te=\Ew0:ti=\Ew1:ts=\EF:up=^K:vb=\E`8\E`9:ve=\E`1:vi=\E`0:\
8114	:tc=adm+sgr:
8115#
8116wy160-w|wyse160-w|wyse 160 132-column:\
8117	:Nl#16:co#132:lw#7:ws#90:\
8118	:cm=\Ea%i%dR%dC:dc=9\EW:rs=150\EeF\E`;:tc=wy160:
8119#
8120wy160-25|wyse160-25|wyse 160 80-column 25-lines:\
8121	:Nl@:lh@:li#25:lw@:\
8122	:pn@:r3=200\EwG\Ee):tc=wy160:
8123wy160-25-w|wyse160-25-w|wyse 160 132-column 25-lines:\
8124	:Nl@:lh@:li#25:lw@:\
8125	:pn@:r3=200\EwG\Ee):tc=wy160-w:
8126#
8127wy160-42|wyse160-42|wyse 160 80-column 42-lines:\
8128	:li#42:\
8129	:al=2\EE:cd=50\Ey:cl=50\E+:dl=2\ER:i1=\EcB2\EcC3:nw=2\r\n:\
8130	:r3=150\Ee*:sf=2\n:sr=2\Ej:tc=wy160:
8131wy160-42-w|wyse160-42-w|wyse 160 132-column 42-lines:\
8132	:Nl#16:co#132:lw#7:ws#90:\
8133	:cm=\Ea%i%dR%dC:dc=8\EW:ip=3:rs=150\EeF\E`;:tc=wy160-42:
8134#
8135wy160-43|wyse160-43|wyse 160 80-column 43-lines:\
8136	:Nl@:lh@:li#43:lw@:\
8137	:pn@:r3=150\Ee+:tc=wy160-42:
8138wy160-43-w|wyse160-43-w|wyse 160 132-column 43-lines:\
8139	:Nl@:lh@:li#43:lw@:\
8140	:pn@:r3=150\Ee+:tc=wy160-42-w:
8141#
8142wy160-vb|wyse160-vb|Wyse 160 visible bell:\
8143	:bl@:tc=wy160:
8144wy160-w-vb|wy160-wvb|wyse160-wvb|Wyse 160 132-column visible bell:\
8145	:bl@:tc=wy160-w:
8146#
8147#	The Wyse 75 is a vt100 lookalike without advanced video.
8148#
8149#	   The Wyse 75 can support one attribute (e.g. Dim, Inverse,
8150#	Underline) without magic cookies.  The following description
8151#	uses this capability, but when more than one attribute is
8152#	put on the screen at once, all attributes will be changed
8153#	to be the same as the last attribute given.
8154#	   The Wyse 75 can support more attributes when used with magic
8155#	cookies.  The wy75-mc terminal description uses magic cookies
8156#	to correctly handle multiple attributes on a screen.
8157#
8158# (sgr removed to fit entry within 1023 bytes)
8159# (acsc removed to fit entry within 1023 bytes)
8160# (terminfo-only capabilities suppressed to fit entry within 1023 bytes)
8161wy75|wyse75|wyse 75:\
8162	:am:hs:mi:ms:xn:xo:\
8163	:co#80:li#24:ma#1:pb#1201:ws#78:\
8164	:AL=2*\E[%dL:DC=3*\E[%dP:DL=1*\E[%dM:DO=\E[%dB:\
8165	:IC=1*\E[%d@:LE=\E[%dD:RI=\E[%dC:UP=\E[%dA:ae=^O:al=2\E[L:\
8166	:as=^N:bl=^G:bt=\E[Z:cd=30\E[J:ce=3\E[K:cl=30\E[H\E[J:\
8167	:cm=\E[%i%d;%dH:cr=^M:cs=2\E[%i%d;%dr:ct=\E[3g:dc=3\E[P:\
8168	:dl=\E[M:do=^J:ds=\E[>,\001\001\E[>-\001\001:ec=\E[%dX:\
8169	:ei=\E[4l:fs=^A:ho=\E[H:\
8170	:i1=\E[2;4;20;30l\E[?1;10l\E[12h\E[?7;8;25h:i2=\E[m:\
8171	:im=\E[4h:ip=1:is=\E>\E(B\E)0\017:k1=\E[?5i:k2=\E[?3i:\
8172	:k3=\E[2i:k4=\E[@:k5=\E[M:k6=\E[17~:k7=\E[18~:k8=\E[19~:\
8173	:k9=\E[20~:kI=\E[@:kN=\E[6~:kP=\E[5~:kb=^H:kd=\E[B:ke=\E>:\
8174	:kh=\E[H:kl=\E[D:kr=\E[C:ks=\E[?1l\E[?7h\E=:ku=\E[A:le=^H:\
8175	:me=\E[m:mh=\E[0t\E[2m:mr=\E[1t\E[7m:nd=\E[C:rc=\E8:\
8176	:sc=\E7:se=\E[m:sf=2\n:so=\E[1t\E[7m:sr=2\EM:st=\EH:ta=^I:\
8177	:ts=\E[>,\001:ue=\E[m:up=\E[A:us=\E[2t\E[4m:\
8178	:vb=250\E[30h\E,\E[30l:ve=\E[?25h:vi=\E[?25l:\
8179	:tc=vt220+keypad:
8180#
8181#	This terminal description uses the non-hidden attribute mode
8182#	(with magic cookie).
8183#
8184wy75-mc|wyse75-mc|wyse 75 with magic cookies:\
8185	:ms@:\
8186	:ma@:sg#1:ug#1:\
8187	:ae=\E[0p\017:as=\E[0p\016:i2=\E[m\E[p:mb=\E[2p:\
8188	:me=\E[0p\017:mh=\E[1p:mk=\E[4p:mr=\E[16p:se=\E[0p:\
8189	:so=\E[17p:ue=\E[0p:us=\E[8p:tc=wy75:
8190wy75-vb|wyse75-vb|wyse 75 with visible bell:\
8191	:pb@:\
8192	:bl@:tc=wy75:
8193wy75-w|wyse75-w|wyse 75 in 132 column mode:\
8194	:co#132:ws#130:\
8195	:rs=80\E[35h\E[?3h:tc=wy75:
8196wy75-wvb|wyse75-wvb|wyse 75 with visible bell 132 columns:\
8197	:pb@:\
8198	:bl@:tc=wy75-w:
8199#
8200#	Wyse 85 emulating a vt220 7 bit mode.
8201#		24 line screen with status line.
8202#
8203#	The vt220 mode permits more function keys but it wipes out
8204#	the escape key.  I strongly recommend that <f11> be set to
8205#	escape (esc).
8206#	The terminal may have to be set for 8 data bits and 2 stop
8207#	bits for the arrow keys to work.
8208#	The Wyse 85 runs faster with XON/XOFF enabled.  Also the
8209#	:DC: and :IC: work best when XON/XOFF is set.  :IC: and
8210#	:DC: leave trash on the screen when used without XON/XOFF.
8211#
8212# (sgr removed to fit entry within 1023 bytes)
8213# (acsc removed to fit entry within 1023 bytes)
8214# (terminfo-only capabilities suppressed to fit entry within 1023 bytes)
8215wy85|wyse85|wyse 85:\
8216	:am:hs:mi:ms:xn:xo:\
8217	:co#80:it#8:li#24:ws#80:\
8218	:AL=5*\E[%dL:DC=3*\E[%dP:DL=3*\E[%dM:DO=\E[%dB:\
8219	:IC=4*\E[%d@:LE=\E[%dD:RI=\E[%dC:UP=\E[%dA:ae=^O:al=5\E[L:\
8220	:as=^N:bl=^G:bt=\E[Z:cd=110\E[J:ce=1\E[K:cl=110\E[H\E[J:\
8221	:cm=1\E[%i%d;%dH:cr=^M:cs=\E[%i%d;%dr:ct=\E[3g:dc=3\E[P:\
8222	:dl=3\E[M:do=^J:ds=\E[40l:ec=\E[%dX:ei=\E[4l:\
8223	:fs=\E[1;24r\E8:ho=\E[H:i1=\E[62;1"p\E[?5W:\
8224	:i2=\E>\E(B\E)0\017\E[m:im=\E[4h:ip=3:\
8225	:is=16\E[2;4;20;30l\E[?1;4;10;16l\E[12h\E[?7;8;25h:\
8226	:k6=\E[17~:k7=\E[18~:k8=\E[19~:k9=\E[20~:kD=\E[3~:\
8227	:kI=\E[2~:kN=\E[6~:kP=\E[5~:kb=^H:kd=\E[B:ke=\E>:kh=\E[26~:\
8228	:kl=\E[D:kr=\E[C:ks=\E[?1l\E=:ku=\E[A:le=^H:mb=\E[5m:\
8229	:md=\E[1m:me=\E[0m:mh=\E[2m:mr=\E[7m:nd=\E[C:rc=\E8:sc=\E7:\
8230	:se=\E[m:sf=3\n:so=\E[7m:sr=3\EM:st=\EH:ta=1\011:\
8231	:ts=\E[40h\E7\E[25;%i%dH:ue=\E[m:up=\E[A:us=\E[4m:\
8232	:vb=300\E[30h\E,\E[30l:ve=\E[?25h:vi=\E[?25l:\
8233	:tc=vt220+keypad:
8234#
8235#	Wyse 85 with visual bell.
8236wy85-vb|wyse85-vb|wyse 85 with visible bell:\
8237	:bl@:vb=300\E[30h\E,\E[30l:tc=wy85:
8238#
8239#	Wyse 85 in 132-column mode.
8240wy85-w|wyse85-w|wyse 85 in 132-column mode:\
8241	:co#132:ws#132:\
8242	:rs=70\E[35h\E[?3h:tc=wy85:
8243#
8244#	Wyse 85 in 132-column mode with visual bell.
8245wy85-wvb|wyse85-wvb|wyse 85 with visible bell 132-columns:\
8246	:bl@:tc=wy85-w:
8247
8248# From: Kevin Turner <kevint@aracnet.com>, 12 Jul 1998
8249# This copes with an apparent firmware bug in the wy85.  He writes:
8250# "What I did was change leave the terminal cursor keys set to Normal
8251# (instead of application), and change \E[ to \233 for all the keys in
8252# terminfo. At one point, I found some reference indicating that this
8253# terminal bug (not sending \E[) was acknowledged by Wyse (so it's not just
8254# me), but I can't find that and the server under my bookmark to "Wyse
8255# Technical" isn't responding.  So there's the question of wether the wy85
8256# terminfo should reflect the manufactuer's intended behaviour of the terminal
8257# or the actual."
8258# (sgr removed to fit entry within 1023 bytes)
8259# (acsc removed to fit entry within 1023 bytes)
8260# (terminfo-only capabilities suppressed to fit entry within 1023 bytes)
8261wy85-8bit|wyse85-8bit|wyse 85 in 8-bit mode:\
8262	:am:hs:mi:ms:xn:xo:\
8263	:co#80:it#8:li#24:ws#80:\
8264	:AL=5*\E[%dL:DC=3*\E[%dP:DL=3*\E[%dM:DO=\E[%dB:\
8265	:IC=4*\E[%d@:K1=\EOw:K2=\EOu:K3=\EOy:K4=\EOq:K5=\EOs:\
8266	:LE=\E[%dD:RI=\E[%dC:UP=\E[%dA:ae=^O:al=5\E[L:as=^N:bl=^G:\
8267	:bt=\E[Z:cd=110\E[J:ce=1\E[K:cl=110\E[H\E[J:\
8268	:cm=1\E[%i%d;%dH:cr=^M:cs=\E[%i%d;%dr:ct=\E[3g:dc=3\E[P:\
8269	:dl=3\E[M:do=^J:ds=\E[40l:ec=\E[%dX:ei=\E[4l:\
8270	:fs=\E[1;24r\E8:ho=\E[H:i1=\E[62;1"p\E[?5W:\
8271	:i2=\E>\E(B\E)0\017\E[m:im=\E[4h:ip=3:\
8272	:is=16\E[2;4;20;30l\E[?1;4;10;16l\E[12h\E[?7;8;25h:\
8273	:k1=\EOP:k2=\EOQ:k3=\EOR:k4=\EOS:k6=\23317~:k7=\23318~:\
8274	:k8=\23319~:k9=\23320~:kD=\2333~:kI=\2332~:kN=\2336~:\
8275	:kP=\2335~:kb=^H:kd=\233B:ke=\E>:kh=\23326~:kl=\233D:\
8276	:kr=\233C:ks=\E[?1l\E=:ku=\233A:le=^H:mb=\E[5m:md=\E[1m:\
8277	:me=\E[m\017:mh=\E[2m:mr=\E[7m:nd=\E[C:rc=\E8:sc=\E7:\
8278	:se=\E[m:sf=3\n:so=\E[7m:sr=3\EM:st=\EH:ta=1\011:\
8279	:ts=\E[40h\E7\E[25;%i%dH:ue=\E[m:up=\E[A:us=\E[4m:\
8280	:vb=300\E[30h\E,\E[30l:ve=\E[?25h:vi=\E[?25l:
8281#
8282#	Wyse 185 emulating a vt320 7 bit mode.
8283#
8284#	This terminal always displays 25 lines.  These lines may be used
8285#	as 24 data lines and a terminal status line (top or bottom) or
8286#	25 data lines.  The 48 and 50 line modes change the page size
8287#	and not the number of lines on the screen.
8288#
8289#	The Compose Character key can be used as a meta key if changed
8290#	by set-up.
8291#
8292# (sgr removed to fit entry within 1023 bytes)
8293# (acsc removed to fit entry within 1023 bytes)
8294# (terminfo-only capabilities suppressed to fit entry within 1023 bytes)
8295wy185|wyse185|wyse 185:\
8296	:am:hs:km:mi:ms:xn:xo:\
8297	:co#80:it#8:li#24:ws#80:\
8298	:AL=3*\E[%dL:DC=3\E[%dP:DL=2*\E[%dM:DO=\E[%dB:IC=2\E[%d@:\
8299	:LE=\E[%dD:RI=\E[%dC:UP=\E[%dA:ae=^O:al=3\E[L:as=^N:bl=^G:\
8300	:bt=\E[Z:cd=40\E[J:ce=\E[K:cl=40\E[H\E[J:cm=\E[%i%d;%dH:\
8301	:cr=^M:cs=20\E[%i%d;%dr:ct=\E[3g:dc=3\E[P:dl=2\E[M:do=^J:\
8302	:ds=\E7\E[99;0H\E[K\E8:ec=\E[%dX:ei=\E[4l:\
8303	:fs=\E[1;24r\E8:ho=\E[H:i1=\E[?5W:\
8304	:i2=\E>\E(B\E)0\017\E[m:im=\E[4h:ip=4:\
8305	:is=\E[2;4;20;30l\E[?1;4;10;16l\E[12h\E[?7;8;25h:\
8306	:k1=\EOP:k2=\EOQ:k3=\EOR:k4=\EOS:k6=\E[17~:k7=\E[18~:\
8307	:k8=\E[19~:k9=\E[20~:kD=\E[3~:kI=\E[2~:kN=\E[6~:kP=\E[5~:\
8308	:kb=^H:kd=\E[B:ke=\E>:kh=\E[26~:kl=\E[D:kr=\E[C:\
8309	:ks=\E[?1l\E=:ku=\E[A:le=^H:mb=\E[5m:md=\E[1m:me=\E[0m:\
8310	:mh=\E[2m:mr=\E[7m:nd=\E[C:rc=\E8:sc=\E7:se=\E[27m:sf=2\n:\
8311	:so=\E[7m:sr=2\EM:st=\EH:ta=^I:te=\E[ R:ti=\E[ Q:\
8312	:ts=\E7\E[99;%i%dH:ue=\E[24m:up=\E[A:us=\E[4m:\
8313	:vb=100\E[30h\E,\E[30l:ve=\E[34h\E[?25h:vi=\E[?25l:\
8314	:vs=\E[?25h\E[34l:tc=vt220+keypad:
8315#
8316#	Wyse 185 with 24 data lines and top status (terminal status)
8317wy185-24|wyse185-24|wyse 185 with 24 data lines:\
8318	:hs@:\
8319	:ds@:fs@:r3=\E[?5l\E[47h\E[40l\E[1;24r:ts@:tc=wy185:
8320#
8321#	Wyse 185 with visual bell.
8322wy185-vb|wyse185-vb|wyse 185+flash:\
8323	:bl@:tc=wy185:
8324#
8325#	Wyse 185 in 132-column mode.
8326wy185-w|wyse185-w|wyse 185 in 132-column mode:\
8327	:co#132:ws#132:\
8328	:DC=7\E[%dP:IC=7\E[%d@:dc=7\E[P:ei=:im=:ip=7:\
8329	:rs=\E[35h\E[?3h:tc=wy185:
8330#
8331#	Wyse 185 in 132-column mode with visual bell.
8332wy185-wvb|wyse185-wvb|wyse 185+flash+132 cols:\
8333	:bl@:tc=wy185-w:
8334
8335# wy325 terminfo entries
8336# Done by Joe H. Davis        3-9-92
8337
8338# lines 25  columns 80
8339#
8340wy325|wyse325|Wyse epc:\
8341	:5i:am:bw:hs:mi:\
8342	:Nl#8:co#80:lh#1:li#24:lw#8:pb#9601:ws#45:\
8343	:#2=\E{:%9=\EP:&3=\Er:@8=\E7:F1=^AJ\r:F2=^AK\r:F3=^AL\r:\
8344	:F4=^AM\r:F5=^AN\r:F6=^AO\r:LF=\EA11:LO=\EA10:RA=\Ed.:\
8345	:SA=\Ed/:\
8346	:ac=+/,.0[a2fxgqh1ihjYk?lZm@nEqDtCu4vAwBx3yszr{c~~:\
8347	:ae=\EcD:al=3\EE:as=\EcE:bl=^G:bt=\EI:cd=50\EY:ce=4\ET:\
8348	:cl=50\E+:cm=\E=%+ %+ :cr=^M:ct=\E0:dc=7\EW:dl=3\ER:do=^J:\
8349	:ds=\EF\r:ei=\Er:fs=^M:ho=^^:i1=\EcB0\EcC1:i2=16\Ew0:\
8350	:im=\Eq:ip=2:\
8351	:is=\EcD\E'\Er\EH\003\Ed/\EO\Ee1\Ed*\E`@\E`9\E`1\016\024\El:\
8352	:k1=^A@\r:k2=^AA\r:k3=^AB\r:k4=^AC\r:k5=^AD\r:k6=^AE\r:\
8353	:k7=^AF\r:k8=^AG\r:k9=^AH\r:k;=^AI\r:kA=\EE:kB=\EI:kD=\EW:\
8354	:kE=\ET:kI=\Eq:kL=\ER:kN=\EK:kP=\EJ:kS=\EY:kb=^H:kd=^J:kh=^^:\
8355	:kl=^H:kr=^L:ku=^K:le=^H:ll=^^^K:mb=\EG2:\
8356	:me=\E(\EH\003\EG0\EcD:mh=\EGp:mp=\E):nd=^L:pf=^T:po=\Ed#:\
8357	:ps=\EP:r1=30\E~!\E~4:r2=70\EeF\E`\072:r3=100\EwG\Ee(:\
8358	:sf=3\n:so=\EGt:sr=2\Ej:st=\E1:ta=^I:te=\Ew0:ti=\Ew1:ts=\EF:\
8359	:up=^K:vb=\E`8\E`9:ve=\E`1:vi=\E`0:tc=adm+sgr:
8360
8361#
8362# lines 24  columns 80  vb
8363#
8364wy325-vb|wyse325-vb|wyse-325 with visual bell:\
8365	:bl@:tc=wy325:
8366
8367#
8368# lines 24  columns 132
8369#
8370wy325-w|wyse325-w|wy325w-24|wyse-325 in wide mode:\
8371	:Nl#16:co#132:lw#7:ws#97:\
8372	:cm=\Ea%i%dR%dC:dc=12\EW:ip=4:rs=70\E`;:tc=wy325:
8373#
8374# lines 25  columns 80
8375#
8376wy325-25|wyse325-25|wy325-80|wyse-325|wyse-325 25 lines:\
8377	:Nl@:lh@:li#25:lw@:\
8378	:pn@:r3=100\EwG\Ee):tc=wy325:
8379#
8380# lines 25  columns 132
8381#
8382wy325-25w|wyse325-25w|wy325 132 columns:\
8383	:Nl@:lh@:li#25:lw@:\
8384	:pn@:r3=100\EwG\Ee):tc=wy325-w:
8385#
8386# lines 25  columns 132  vb
8387#
8388wy325-w-vb|wy325-wvb|wyse325-wvb|wyse-325 wide mode reverse video:\
8389	:bl@:tc=wy325-w:
8390
8391#
8392# lines 42  columns 80
8393#
8394wy325-42|wyse325-42|wyse-325 42 lines:\
8395	:Nl@:lh@:li#42:lw@:\
8396	:pn@:r3=100\EwG\Ee):tc=wy325:
8397#
8398# lines 42  columns 132
8399#
8400wy325-42w|wyse325-42w|wyse-325 42 lines wide mode:\
8401	:Nl@:lh@:li#42:lw@:\
8402	:pn@:r3=100\EwG\Ee):tc=wy325-w:
8403#
8404# lines 42  columns 132  vb
8405#
8406wy325-42w-vb|wy325-42wvb|wyse-325 42 lines wide mode visual bell:\
8407	:bl@:tc=wy325-w:
8408#
8409# lines 43  columns 80
8410#
8411wy325-43|wyse325-43|wyse-325 43 lines:\
8412	:Nl@:lh@:li#43:lw@:\
8413	:pn@:tc=wy325:
8414#
8415# lines 43  columns 132
8416#
8417wy325-43w|wyse325-43w|wyse-325 43 lines wide mode:\
8418	:Nl@:lh@:li#43:lw@:\
8419	:pn@:r3=100\EwG\Ee):tc=wy325-w:
8420#
8421# lines 43  columns 132  vb
8422#
8423wy325-43w-vb|wy325-43wvb|wyse-325 43 lines wide mode visual bell:\
8424	:bl@:tc=wy325-w:
8425
8426#	Wyse 370 -- 24 line screen with status line.
8427#
8428#	The terminal may have to be set for 8 data bits and 2 stop
8429#	bits for the arrow keys to work.
8430#
8431#	If you change keyboards the terminal will send different
8432#	escape sequences.
8433#	The following definition is for the basic terminal without
8434#	function keys.
8435#
8436#	<u0> -> enter Tektronix 4010/4014 mode
8437#	<u1> -> exit  Tektronix 4010/4014 mode
8438#	<u2> -> enter ASCII mode (from any ANSI mode)
8439#	<u3> -> exit  ASCII mode (goto native ANSI mode)
8440#	<u4> -> enter Tek 4207 ANSI mode (from any ANSI mode)
8441#	<u5> -> exit  Tek 4207 mode (goto native ANSI mode)
8442#
8443# Bug: The <op> capability resets attributes.
8444# (sgr removed to fit entry within 1023 bytes)
8445# (acsc removed to fit entry within 1023 bytes)
8446# (terminfo-only capabilities suppressed to fit entry within 1023 bytes)
8447wy370-nk|wyse 370 without function keys:\
8448	:am:hs:mi:ms:xn:xo:\
8449	:co#80:it#8:li#24:ws#80:\
8450	:AL=2*\E[%dL:DC=1*\E[%dP:DL=2*\E[%dM:DO=\E[%dB:\
8451	:IC=1*\E[%d@:LE=\E[%dD:RI=\E[%dC:UP=\E[%dA:ae=^O:al=2\E[L:\
8452	:as=^N:bl=^G:bt=\E[Z:cd=40\E[J:ce=10\E[K:cl=40\E[H\E[J:\
8453	:cm=1\E[%i%d;%dH:cr=^M:cs=\E[%i%d;%dr:ct=\E[3g:dc=1\E[P:\
8454	:dl=2\E[M:do=^J:ds=\E[40l:ec=.1*\E[%dX:ei=\E[4l:\
8455	:fs=\E[1;24r\E8:ho=\E[H:i1=6\E[90;1"p\E[?5W:\
8456	:i2=\E>\017\E)0\E(B\E[63;0w\E[m:im=\E[4h:ip=1:\
8457	:is=\E[2;4;20;30;40l\E[?1;10;16l\E[12h\E[?7;8;25h:\
8458	:ke=\E>:ks=\E[?1l\E=:le=^H:mb=\E[5m:md=\E[1m:me=\E[0m:\
8459	:mh=\E[2m:mr=\E[7m:nd=\E[C:rc=\E8:sc=\E7:se=\E[27m:sf=2\n:\
8460	:so=\E[7m:sr=2\EM:st=\EH:ta=1\011:te=\E[ R:ti=\E[ Q:\
8461	:ts=\E[40l\E[40h\E7\E[99;%i%dH:ue=\E[24m:up=\E[A:\
8462	:us=\E[4m:vb=300\E[30h\E,\E[30l:ve=\E[34h\E[?25h:\
8463	:vi=\E[?25l:vs=\E[?25h\E[34l:
8464#
8465#	Function key set for the ASCII (wy-50 compatible) keyboard
8466#	This is the default 370.
8467#
8468wy370|wyse370|wy370-101k|Wyse 370 with 101 key keyboard:\
8469	:@8=\EOM:F1=\E[23~:F2=\E[24~:F3=\E[25~:F4=\E[26~:\
8470	:F5=\E[28~:F6=\E[29~:k1=\E[?4i:k2=\E[?3i:k3=\E[2i:k4=\E[@:\
8471	:k5=\E[M:k6=\E[17~:k7=\E[18~:k8=\E[19~:k9=\E[20~:\
8472	:k;=\E[21~:kA=\EOP:kB=\E[Z:kD=\EOQ:kI=\EOP:kL=\EOQ:kN=\E[U:\
8473	:kP=\E[V:kb=^H:kd=\E[B:kh=\E[H:kl=\E[D:kr=\E[C:ku=\E[A:\
8474	:tc=wy370-nk:
8475#
8476#	Function key set for the VT-320 (and wy85) compatible keyboard
8477#
8478wy370-105k|Wyse 370 with 105 key keyboard:\
8479	:%1=\E[28~:*6=\E[4~:@0=\E[1~:F1=\E[23~:F2=\E[24~:\
8480	:F3=\E[25~:F4=\E[26~:F5=\E[28~:F6=\E[29~:F7=\E[31~:\
8481	:F8=\E[32~:F9=\E[33~:FA=\E[34~:k6=\E[17~:k7=\E[18~:\
8482	:k8=\E[19~:k9=\E[20~:k;=\E[21~:kD=\E[3~:kI=\E[2~:kN=\E[6~:\
8483	:kP=\E[5~:kb=^H:kd=\E[B:kh=\E[26~:kl=\E[D:kr=\E[C:ku=\E[A:\
8484	:l1=PF1:l2=PF2:l3=PF3:l4=PF4:tc=wy370-nk:tc=vt220+keypad:
8485#
8486#	Function key set for the PC compatible keyboard
8487#
8488wy370-EPC|Wyse 370 with 102 key keyboard:\
8489	:@7=\E[1~:@8=\EOM:F1=\E[23~:F2=\E[24~:k1=\EOP:k2=\EOQ:\
8490	:k3=\EOR:k4=\EOS:k5=\E[M:k6=\E[17~:k7=\E[18~:k8=\E[19~:\
8491	:k9=\E[20~:k;=\E[21~:kB=\E[Z:kI=\E[2~:kN=\E[U:kP=\E[V:\
8492	:kb=^H:kd=\E[B:kh=\E[H:kl=\E[D:kr=\E[C:ku=\E[A:tc=wy370-nk:
8493#
8494#	Wyse 370 with visual bell.
8495wy370-vb|Wyse 370 with visible bell:\
8496	:bl@:tc=wy370:
8497#
8498#	Wyse 370 in 132-column mode.
8499wy370-w|Wyse 370 in 132-column mode:\
8500	:co#132:ws#132:\
8501	:rs=70\E[35h\E[?3h:tc=wy370:
8502#
8503#	Wyse 370 in 132-column mode with visual bell.
8504wy370-wvb|Wyse 370 with visible bell 132-columns:\
8505	:vb=300\E[30h\E,\E[30l:tc=wy370-w:
8506wy370-rv|Wyse 370 reverse video:\
8507	:r3=\E[32h\E[?5h:tc=wy370:
8508#
8509#	Wyse 99gt Tektronix 4010/4014 emulator,
8510#
8511wy99gt-tek|Wyse 99gt Tektronix 4010/4014 emulator:\
8512	:am:os:\
8513	:co#74:li#35:\
8514	:bl=^G:cl=\E^L:cr=^M:do=^J:ff=^L:\
8515	:hd=\036HHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHH\037:\
8516	:ho=^]7`x @\037:\
8517	:hu=\036DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD\037:\
8518	:is=\E8:le=^H:nd=\040:nw=^M^J:u0=\E~>\E8:u1=\E[42h:up=^K:
8519#
8520#	Wyse 160 Tektronix 4010/4014 emulator,
8521#
8522wy160-tek|Wyse 160 Tektronix 4010/4014 emulator:\
8523	:ho=^]8`g @\037:tc=wy99gt-tek:
8524#
8525#	Wyse 370 Tektronix 4010/4014 emulator,
8526#
8527wy370-tek|Wyse 370 Tektronix 4010/4014 emulator:\
8528	:am:os:\
8529	:co#80:li#36:\
8530	:bl=^G:cl=\E^L:cr=^M:do=^J:ff=^L:\
8531	:hd=\036HHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHH\037:\
8532	:ho=^]8g @\037:\
8533	:hu=\036DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD\037:\
8534	:is=\E8:kb=^H:kd=^J:kl=^H:kr=^I:ku=^K:le=^H:nd=\040:nw=^M^J:\
8535	:u0=\E[?38h\E8:u1=\E[?38l\E)0:up=^K:
8536
8537# Vendor-supplied Wyse entries end here.
8538
8539#
8540#TITLE:  TERMINFO ENTRY WY520
8541#DATE:   8/5/93
8542# The WY520 terminfo is based on the WY285 entry published on the WYSE
8543# BBS with the addition of more function keys and special keys.
8544#
8545#               rs1 -> set personality
8546#               rs2 -> set number of columns
8547#               rs3 -> set number of lines
8548#               is1 -> select the proper font
8549#               is2 -> do the initialization
8550#               is3 -> If this string is empty then rs3 gets sent.
8551#
8552#       Wyse 520 emulating a vt420 7 bit mode with default ANSI keyboard
8553#       - The BS key is programmed to generate BS in smcup since
8554#         is2 doesn't seem to work.
8555#       - Remove and shift/Remove: delete a character
8556#       - Insert : enter insert mode
8557#       - Find   : delete to end of file
8558#       - Select : clear a line
8559#       - F11, F12, F13: send default sequences (not ESC, BS, LF)
8560#       - F14 : Home key
8561#       - Bottom status line (host writable line) is used.
8562#       - smkx,rmkx are removed because this would put the numeric
8563#         keypad in Dec application mode which doesn't seem to work
8564#         with SCO applications.
8565#
8566# (sgr removed to fit entry within 1023 bytes)
8567# (acsc removed to fit entry within 1023 bytes)
8568# (terminfo-only capabilities suppressed to fit entry within 1023 bytes)
8569wy520|wyse520|wyse 520:\
8570	:am:hs:km:mi:xn:xo:\
8571	:co#80:it#8:li#24:ws#80:\
8572	:AL=3*\E[%dL:DC=3\E[%dP:DL=2*\E[%dM:DO=\E[%dB:IC=2\E[%d@:\
8573	:LE=\E[%dD:RI=\E[%dC:UP=\E[%dA:ae=^O:al=3\E[L:as=^N:bl=^G:\
8574	:bt=\E[Z:cd=40\E[J:ce=\E[K:cl=40\E[H\E[J:cm=\E[%i%d;%dH:\
8575	:cr=^M:cs=20\E[%i%d;%dr:ct=\E[3g:dc=30\E[P:dl=2\E[M:do=^J:\
8576	:ds=\E[0$~:ec=\E[%dX:ei=\E[4l:fs=\E[0$}:ho=\E[H:i1=\E[?5W:\
8577	:i2=\E>\E(B\E)0\017\E[m:im=\E[4h:ip=4:\
8578	:is=\E[2;4;20;30l\E[?1;4;10;16l\E[12h\E[?7;8;25;67h:\
8579	:k6=\E[17~:k7=\E[18~:k8=\E[19~:k9=\E[20~:kD=\E[3~:\
8580	:kI=\E[2~:kN=\E[6~:kP=\E[5~:kb=^H:kd=\E[B:kh=\E[26~:\
8581	:kl=\E[D:kr=\E[C:ku=\E[A:le=^H:mb=\E[5m:md=\E[1m:me=\E[0m:\
8582	:mh=\E[2m:mr=\E[7m:nd=\E[C:rc=\E8:sc=\E7:se=\E[m:sf=2\n:\
8583	:so=\E[7m:sr=2\EM:st=\EH:ta=^I:te=\E[ R:ti=\E[ Q\E[?67;8h:\
8584	:ts=\E[2$~\E[1$}\E[%i%d`:ue=\E[24m:up=\E[A:us=\E[4m:\
8585	:ve=\E[34h\E[?25h:vi=\E[?25l:vs=\E[?25h\E[34l:\
8586	:tc=vt220+keypad:
8587#
8588#       Wyse 520 with 24 data lines and status (terminal status)
8589wy520-24|wyse520-24|wyse 520 with 24 data lines:\
8590	:hs@:\
8591	:ds@:fs@:r3=\E[?5l\E[47h\E[40l\E[1;24r:ts@:tc=wy520:
8592#
8593#       Wyse 520 with visual bell.
8594wy520-vb|wyse520-vb|wyse 520 with visible bell:\
8595	:vb=100\E[30h\E,\E[30l:tc=wy520:
8596#
8597#       Wyse 520 in 132-column mode.
8598wy520-w|wyse520-w|wyse 520 in 132-column mode:\
8599	:co#132:ws#132:\
8600	:DC=7\E[%dP:IC=7\E[%d@:dc=7\E[P:ei=:im=:ip=7:\
8601	:rs=\E[35h\E[?3h:tc=wy520:
8602#
8603#       Wyse 520 in 132-column mode with visual bell.
8604wy520-wvb|wyse520-wvb|wyse 520 with visible bell 132-columns:\
8605	:vb=100\E[30h\E,\E[30l:tc=wy520-w:
8606#
8607#
8608#       Wyse 520 emulating a vt420 7 bit mode.
8609#       The DEL key is programmed to generate BS in is2.
8610#       With EPC keyboard.
8611#       - 'End' key will clear till end of line on EPC keyboard
8612#       - Shift/End : ignored.
8613#       - Insert : enter insert mode.
8614#       - Delete : delete a character (have to change interrupt character
8615#                  to CTRL-C: stty intr '^c') for it to work since the
8616#                  Delete key sends 7FH.
8617wy520-epc|wyse520-epc|wyse 520 with EPC keyboard:\
8618	:@7=\E[4~:k0=\E[21~:k1=\E[11~:k2=\E[12~:k3=\E[13~:\
8619	:k4=\E[14~:k5=\E[15~:kD=\177:kE=\E[4~:kh=\E[H:tc=wy520:
8620#
8621#       Wyse 520 with 24 data lines and status (terminal status)
8622#       with EPC keyboard.
8623wy520-epc-24|wyse520-pc-24|wyse 520 with 24 data lines and EPC keyboard:\
8624	:hs@:\
8625	:ds@:fs@:r3=\E[?5l\E[47h\E[40l\E[1;24r:ts@:tc=wy520-epc:
8626#
8627#       Wyse 520 with visual bell.
8628wy520-epc-vb|wyse520-pc-vb|wyse 520 with visible bell and EPC keyboard:\
8629	:vb=100\E[30h\E,\E[30l:tc=wy520-epc:
8630#
8631#       Wyse 520 in 132-column mode.
8632wy520-epc-w|wyse520-epc-w|wyse 520 in 132-column mode with EPC keyboard:\
8633	:co#132:ws#132:\
8634	:DC=7\E[%dP:IC=7\E[%d@:dc=7\E[P:ei=:im=:ip=7:\
8635	:rs=\E[35h\E[?3h:tc=wy520-epc:
8636#
8637#       Wyse 520 in 132-column mode with visual bell.
8638wy520-epc-wvb|wyse520-p-wvb|wyse 520 with visible bell 132-columns and EPC keyboard:\
8639	:vb=100\E[30h\E,\E[30l:tc=wy520-epc-w:
8640#
8641#       Wyse 520 in 80-column, 36 lines
8642wy520-36|wyse520-36|wyse 520 with 36 data lines:\
8643	:hs@:\
8644	:li#36:\
8645	:ds@:fs@:r3=\E[?5l\E[36*|\E[36t\E[40l\E[1;36r:ts@:\
8646	:tc=wy520:
8647#
8648#       Wyse 520 in 80-column, 48 lines
8649wy520-48|wyse520-48|wyse 520 with 48 data lines:\
8650	:hs@:\
8651	:li#48:\
8652	:ds@:fs@:r3=\E[?5l\E[48*|\E[48t\E[40l\E[1;48r:ts@:\
8653	:tc=wy520:
8654#
8655#       Wyse 520 in 132-column, 36 lines
8656wy520-36w|wyse520-36w|wyse 520 with 132 columns and 36 data lines:\
8657	:co#132:ws#132:\
8658	:r2=\E[?3h:\
8659	:r3=\E[?5l\E[36*|\E[36t\E[40l\E[1;36r\E[132$|:\
8660	:tc=wy520-36:
8661#
8662#       Wyse 520 in 132-column, 48 lines
8663wy520-48w|wyse520-48w|wyse 520 with 48 data lines:\
8664	:co#132:ws#132:\
8665	:r2=\E[?3h:\
8666	:r3=\E[?5l\E[48*|\E[48t\E[40l\E[1;48r\E[132$|:\
8667	:tc=wy520-48:
8668#
8669#
8670#       Wyse 520 in 80-column, 36 lines with EPC keyboard
8671wy520-36pc|wyse520-36pc|wyse 520 with 36 data lines and EPC keyboard:\
8672	:hs@:\
8673	:li#36:\
8674	:ds@:fs@:r3=\E[?5l\E[36*|\E[36t\E[40l\E[1;36r:ts@:\
8675	:tc=wy520-epc:
8676#
8677#       Wyse 520 in 80-column, 48 lines with EPC keyboard
8678wy520-48pc|wyse520-48pc|wyse 520 with 48 data lines and EPC keyboard:\
8679	:hs@:\
8680	:li#48:\
8681	:ds@:fs@:r3=\E[?5l\E[48*|\E[48t\E[40l\E[1;48r:ts@:\
8682	:tc=wy520-epc:
8683#
8684#       Wyse 520 in 132-column, 36 lines with EPC keyboard
8685wy520-36wpc|wyse520-36wpc|wyse 520 with 36 data lines and EPC keyboard:\
8686	:co#132:ws#132:\
8687	:r2=\E[?3h:\
8688	:r3=\E[?5l\E[36*|\E[36t\E[40l\E[1;36r\E[132$|:\
8689	:tc=wy520-36pc:
8690#
8691#       Wyse 520 in 132-column, 48 lines with EPC keyboard
8692wy520-48wpc|wyse520-48wpc|wyse 520 with 48 data lines and EPC keyboard:\
8693	:co#132:ws#132:\
8694	:r2=\E[?3h:\
8695	:r3=\E[?5l\E[48*|\E[48t\E[40l\E[1;48r\E[132$|:\
8696	:tc=wy520-48pc:
8697
8698# From: John Gilmore <hoptoad!gnu@lll-crg.arpa>
8699# (wyse-vp: removed :if=/usr/share/tabset/wyse-adds:, there's no such
8700# file and we don't know what :st: is -- esr)
8701wyse-vp|Wyse 50 in ADDS Viewpoint emulation mode with "enhance" on:\
8702	:am:bs:\
8703	:co#80:it#8:li#24:\
8704	:al=\EM:bl=^G:cd=\Ek:ce=\EK:cl=^L:cm=\EY%+ %+ :cr=^M:dc=\EW:\
8705	:dl=\El:do=^J:ei=\Er:ho=^A:im=\Eq:is=\E`\072\E`9\017\Er:\
8706	:kb=^H:kd=^J:kh=^A:kl=^U:kr=^F:ku=^Z:le=^H:ll=^A^Z:me=^O:\
8707	:nd=^F:nw=^M^J:r1=\E`\072\E`9\017\Er:se=^O:sf=^J:so=^N:\
8708	:ta=^I:ue=^O:up=^Z:us=^N:
8709
8710wy75ap|wyse75ap|wy-75ap|wyse-75ap|Wyse WY-75 Applications and Cursor keypad:\
8711	:is=\E[1;24r\E[?10;3l\E[?1;25h\E[4l\E[m\E(B\E=:kb=^H:\
8712	:kd=\EOB:ke=10\E[?1l\E>:kh=\EOH:kl=\EOD:kr=\EOC:\
8713	:ks=10\E[?1h\E=:ku=\EOA:tc=wy75:
8714
8715# From: Eric Freudenthal <freudent@eric.ultra.nyu.edu>
8716wy100q|Wyse 100 for Quotron:\
8717	:bs:\
8718	:co#80:li#24:sg#1:\
8719	:al=\EE:bt=\EI:cd=\EY:ce=\ET:cl=^Z:cm=\E=%+ %+ :dc=\EW:\
8720	:dl=\ER:do=^J:ei=\Er:ho=^^:im=\Eq:\
8721	:is=\E`\072\200\EC\EDF\E0\E'\E(\EA21:kd=^J:kl=^H:kr=^L:\
8722	:ku=^K:le=^H:mk@:nd=^L:sr=\Ej:up=^K:tc=adm+sgr:
8723
8724#### Kermit terminal emulations
8725#
8726# Obsolete Kermit versions may be listed in the section describing obsolete
8727# non-ANSI terminal emulators later in the file.
8728#
8729
8730# KERMIT standard all versions.
8731# Straight ascii keyboard. :sr=\EI: not avail. many versions + bug prone in vi.
8732# (kermit: removed obsolete ":ma=^Hh^Jj^Kk^Ll^^H:" -- esr)
8733# From: greg small <gts@populi.berkeley.edu> 9-25-84
8734kermit|standard kermit:\
8735	:bs:\
8736	:co#80:li#24:\
8737	:cd=\EJ:ce=\EK:cl=\EE:cm=\EY%+ %+ :do=\EB:ho=\EH:\
8738	:is=K0 Standard Kermit  9-25-84\n:kd=^J:kh=^^:kl=^H:\
8739	:kr=^L:ku=^K:le=^H:nd=\EC:up=\EA:
8740kermit-am|standard kermit plus auto-margin:\
8741	:am:\
8742	:is=K1 Standard Kermit plus Automatic Margins\n:\
8743	:tc=kermit:
8744# IBMPC Kermit 1.2.
8745# Bugs: :cd:, :ce:: do not work except at beginning of line!  :cl: does
8746# not work, but fake with :cl=\EH\EJ (since :cd=\EJ: works at beginning of
8747# line).
8748# From: greg small <gts@populi.berkeley.edu> 8-30-84
8749pckermit|pckermit12|UCB IBMPC Kermit 1.2:\
8750	:am:\
8751	:li#25:\
8752	:cd@:ce@:cl=\EH\EJ:\
8753	:is=K2 UCB IBMPC Kermit 1.2  8-30-84\n:tc=kermit:
8754# IBMPC Kermit 1.20
8755# Cannot use line 25, now acts funny like ansi special scrolling region.
8756# Initialization must escape from that region by cursor position to line 24.
8757# Cannot use character insert because 1.20 goes crazy if insert at col 80.
8758# Does not use :am: because autowrap is lost when kermit dropped and restarted.
8759# From: greg small <gts@populi.berkeley.edu> 12-19-84
8760pckermit120|UCB IBMPC Kermit 1.20:\
8761	:it#8:li#24:\
8762	:al=\EL:dc=\EN:dl=\EM:do=\EB:ei@:im@:\
8763	:is=\EO\Eq\EJ\EY7 K3 UCB IBMPC Kermit 1.20  12-19-84\n:\
8764	:se=\Eq:so=\Ep:ta=^I:vs=\EO\Eq\EEK3:tc=kermit:
8765# MS-DOS Kermit 2.27 for the IBMPC
8766# Straight ascii keyboard. :sr=\EI: not avail. many versions + bug prone in vi.
8767# Cannot use line 25, now acts funny like ansi special scrolling region.
8768# Initialization must escape from that region by cursor position to line 24.
8769# Does not use am: because autowrap is lost when kermit dropped and restarted.
8770# Reverse video for standout like H19.
8771# (msk227: removed obsolete ":ma=^Hh^Jj^Kk^Ll^^H:" -- esr)
8772# From: greg small <gts@populi.berkeley.edu> 3-17-85
8773msk227|mskermit227|MS-DOS Kermit 2.27 for the IBMPC:\
8774	:am@:bs:\
8775	:co#80:it#8:li#24:\
8776	:al=\EL:cd=\EJ:ce=\EK:cl=\EE:cm=\EY%+ %+ :dc=\EN:dl=\EM:\
8777	:do=\EB:ei=\EO:ho=\EH:im=\E@:\
8778	:is=\EO\Eq\EG\Ew\EJ\EY7 K4 MS Kermit 2.27 for the IBMPC 3-17-85\n:\
8779	:kd=^J:kh=^^:kl=^H:kr=^L:ku=^K:le=^H:nd=\EC:rc=\Ek:sc=\Ej:\
8780	:se=\Eq:so=\Ep:ta=^I:up=\EA:vs=\EO\Eq\EG\EwK4:
8781# MS-DOS Kermit 2.27 with automatic margins
8782# From:	greg small <gts@populi.berkeley.edu> 3-17-85
8783msk227am|mskermit227am|UCB MS-DOS Kermit 2.27 with automatic margins:\
8784	:am:\
8785	:is=\EO\Eq\EG\Ev\EJ\EY7 K5 MS Kermit 2.27 +automatic margins 3-17-85\n:\
8786	:vs=\EO\Eq\EG\EvK5:tc=msk227:
8787# MS-DOS Kermit 2.27 UCB 227.14 for the IBM PC
8788# Automatic margins now default.  Use ansi :sa: for highlights.
8789# Define function keys.
8790# (msk22714: removed obsolete ":kn#10:" -- esr)
8791# From: greg small <gts@populi.berkeley.edu> 3-17-85
8792msk22714|mskermit22714|UCB MS-DOS Kermit 2.27 UCB 227.14 IBM PC:\
8793	:am:\
8794	:is=\EO\Eq\EG\Ev\EJ\EY7 K6 MS Kermit 2.27 UCB 227.14 IBM PC 3-17-85\n:\
8795	:k0=\E0:k1=\E1:k2=\E2:k3=\E3:k4=\E4:k5=\E5:k6=\E6:k7=\E7:\
8796	:k8=\E8:k9=\E9:md=\E[1m:me=\E[m:mr=\E[7m:se=\E[m:so=\E[1m:\
8797	:ue=\E[m:us=\E[4m:vs=\EO\Eq\EG\EvK6:tc=mskermit227:
8798# This was designed for a VT320 emulator, but it is probably a good start
8799# at support for the VT320 itself.
8800# Please send changes with explanations to bug-gnu-emacs@prep.ai.mit.edu.
8801# (vt320-k3: I added <rmam>/<smam> based on the init string -- esr)
8802# (acsc removed to fit entry within 1023 bytes)
8803# (terminfo-only capabilities suppressed to fit entry within 1023 bytes)
8804vt320-k3|MS-Kermit 3.00's vt320 emulation:\
8805	:am:es:hs:km:mi:ms:xn:\
8806	:co#80:it#8:li#49:pb#9600:vt#3:\
8807	:AL=\E[%dL:CC=\E:DC=\E[%dP:DL=\E[%dM:DO=\E[%dB:IC=\E[%d@:\
8808	:LE=\E[%dD:RI=\E[%dC:SR=\E[%dL:UP=\E[%dA:ae=\E(B:al=\E[L:\
8809	:as=\E(0:bl=^G:cd=\E[J:ce=\E[K:cl=\E[H\E[J:cm=\E[%i%d;%dH:\
8810	:cr=^M:cs=\E[%i%d;%dr:ct=\E[3g:dc=\E[P:dl=\E[M:do=^J:\
8811	:ds=\E[0$~:ec=\E[%dX:ei=\E[4l:fs=\E[0$}:ho=\E[H:im=\E[4h:\
8812	:is=\E>\E F\E[?1l\E[?7h\E[r\E[2$~:k0=\E[21~:k1=\EOP:\
8813	:k2=\EOQ:k3=\EOR:k4=\EOS:k6=\E[17~:k7=\E[18~:k8=\E[19~:\
8814	:k9=\E[20~:kI=\E[2~:kN=\E[6~:kP=\E[5~:kb=^H:kd=\EOB:\
8815	:ke=\E[?1l\E>:kl=\EOD:kr=\EOC:ks=\E[?1h\E=:ku=\EOA:le=^H:\
8816	:mb=\E[5m:md=\E[1m:me=\E[m:mr=\E[7m:nd=\E[C:nw=^M^J:rc=\E8:\
8817	:sc=\E7:se=\E[27m:sf=^J:so=\E[7m:sr=\EM:st=\EH:ta=^I:\
8818	:ts=\E[1$}\r\E[K:ue=\E[24m:up=\E[A:us=\E[4m:\
8819	:vb=\E[?5h\E[?5l\E[?5h\E[?5l\E[?5h\E[?5l:ve=\E[?25h:\
8820	:vi=\E[?25l:
8821# From: Joseph Gil <yogi@cs.ubc.ca> 13 Dec 1991
8822# ACS capabilities from Philippe De Muyter  <phdm@info.ucl.ac.be> 30 May 1996
8823# (I removed a bogus boolean :mo: and added :ms:, <smam>, <rmam> -- esr)
8824vt320-k311|dec vt320 series as defined by kermit 3.11:\
8825	:am:es:hs:mi:ms:xn:xo:\
8826	:co#80:it#8:li#24:vt#3:\
8827	:AL=\E[%dL:DC=\E[%dP:DL=\E[%dM:DO=\E[%dB:IC=\E[%d@:\
8828	:LE=\E[%dD:RA=\E[?7l:RI=\E[%dC:SA=\E[?7h:UP=\E[%dA:\
8829	:ac=``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~:\
8830	:ae=^O:al=3\E[L:as=^N:bl=^G:cd=\E[J:ce=\E[K:cl=\E[;H\E[2J:\
8831	:cm=\E[%i%d;%dH:cr=^M:cs=\E[%i%d;%dr:ct=\E[3g:dc=\E[P:\
8832	:dl=\E[M:do=^J:ds=\E[2$~\r\E[1$}\E[K\E[$}:ei=\E[4l:\
8833	:fs=\E[$}:ho=\E[H:im=\E[4h:\
8834	:is=\E>\E[?3l\E[?4l\E[?5l\E[?7h\E[?8h\E[1;24r\E[24;1H:\
8835	:k1=\EOP:k2=\EOQ:k3=\EOR:k4=\EOS:k6=\E[17~:k7=\E[18~:\
8836	:k8=\E[19~:k9=\E[20~:kb=^H:kd=\EOB:ke=\E[?1l\E>:kl=\EOD:\
8837	:kr=\EOC:ks=\E[?1h\E=:ku=\EOA:l1=pf1:l2=pf2:l3=pf3:l4=pf4:\
8838	:le=^H:mb=\E[5m:md=\E[1m:me=\E[m:mr=\E[7m:nd=\E[C:nw=^M\ED:\
8839	:r1=\E[?3l:rc=\E8:rf=/usr/share/tabset/vt100:sc=\E7:\
8840	:se=\E[27m:sf=\ED:so=\E[7m:sr=\EM:st=\EH:ta=^I:\
8841	:ts=\E[2$~\E[1$}\E[1;%dH:ue=\E[24m:up=\E[A:us=\E[4m:\
8842	:vb=\E[?5h\E[?5l:ve=\E[?25h:vi=\E[?25l:
8843
8844######## NON-ANSI TERMINAL EMULATIONS
8845#
8846
8847#### Avatar
8848#
8849# These entries attempt to describe Avatar, a terminal emulation used with
8850# MS-DOS bulletin-board systems.  It was designed to give ANSI-like
8851# capabilities, but with cheaper (shorter) control sequences.  Messy design,
8852# excessively dependent on PC idiosyncracies, but apparently rather popular
8853# in the BBS world.
8854#
8855# No color support.  Avatar doesn't fit either of the Tektronix or HP color
8856# models that terminfo knows about.  An Avatar color attribute is the
8857# low 7 bits of the IBM-PC display-memory attribute.  Bletch.
8858#
8859# I wrote these entries while looking at the Avatar spec.  I don't have
8860# the facilities to test them.  Let me know if they work, or don't.
8861#
8862# Avatar escapes not used by these entries (because maybe you're smarter
8863# and more motivated than I am and can figure out how to wrap terminfo
8864# around some of them, and because they are weird enough to be funny):
8865#				level 0:
8866# ^L		-- clear window/reset current attribute to default
8867# ^V^A%p1%c	-- set current color attribute, parameter decodes as follows:
8868#
8869#      bit:         6   5   4   3   2   1   0
8870#                   |       |   |   |       |
8871#                   +---+---+   |   +---+---+
8872#                       |       |       |
8873#                       |       |  foreground color
8874#                       |  foreground intensity
8875#                  background color
8876#				level 0+:
8877# ^V^J%p1%c%p2%c%p3%c%p4%c%p5%c	-- scroll (p2,p3) to (p4,p5) up by p1 lines
8878# ^V^K%p1%c%p2%c%p3%c%p4%c%p5%c	-- scroll (p2,p3) to (p4,p5) down by p1 lines
8879# ^V^L%p1%c%p2%c%p3%c		-- clear p2 lines and p3 cols w/attr %p1
8880# ^V^M%p1%c%p2%c%p3%c%p4%c	-- fill p3 lines & p4 cols w/char p2+attr %p1
8881# (^V^L and ^V^M set the current attribute as a side-effect.)
8882# ^V ^Y <a> [...] <c>	-- repeat pattern. <a> specifies the number of bytes
8883#			   in the pattern, <c> the number of times the pattern
8884#		  	   should be repeated. If either value is 0, no-op.
8885#			   The pattern can contain Avatar console codes,
8886#			   including other ^V ^Y patterns.
8887#				level 1:
8888# ^V^O		-- clockwise mode on; turn print direction right each time you
8889#		   hit a window edge (yes, really).  Turned off by CR
8890# ^V^P		-- no-op
8891# ^V^Q%c	-- query the driver
8892# ^V^R		-- driver reset
8893# ^V^S		-- Sound tone (PC-specific)
8894# ^V^T			-- change highlight at current cursor poition to %c
8895# ^V^U%p1%c%p2%c	-- highlight window <a> with attribute <b>
8896# ^V^V%p1%c%p2%c%p3%c%p4%c%p5%c
8897#			-- define window
8898#
8899# From: Eric S. Raymond <esr@snark.thyrsus.com> 1 Nov 1995
8900# (The :mb:/:md:/:mr:/:as:/:us:/:so: capabilities exist only to
8901# tell ncurses that the corresponding highlights exist; it should use :sa:,
8902# which is the only method that will actually work for multiple highlights.)
8903#
8904# Update by TD - 2004: half of this was inconsistent.  Found documentation
8905# and repaired most of the damage.  sgr0 is probably incorrect, but the
8906# available documentation gives no clues for a workable string.
8907avatar0|avatar terminal emulator level 0:\
8908	:am:ms:ut:\
8909	:co#80:it#8:li#25:\
8910	:ae@:as@:ce=^V^G:cm=\026\010%.%.:cr=^M:do=^V^D:le=^V^E:\
8911	:mb=^V^B:md=^V^A^P:me=^V^A^G:mk=^V^A\200:mr=^V^Ap:nd=^V^F:\
8912	:rp=\031%.%.:rs=^L:sf=^J:so=^V^Ap:up=^V^C:us=^V^A^A:\
8913	:tc=klone+acs:
8914# From: Eric S. Raymond <esr@snark.thyrsus.com> 1 Nov 1995
8915avatar0+|avatar terminal emulator level 0+:\
8916	:dc=^V^N:ei=\026\n\200\200\200\200:im=^V^I:tc=avatar0:
8917# From: Eric S. Raymond <esr@snark.thyrsus.com> 1 Nov 1995
8918avatar|avatar1|avatar terminal emulator level 1:\
8919	:RA=^V":SA=^V$:al=^V+:dl=^V-:ei=^V^P:ve=^V'^A:vi=^V'^B:\
8920	:vs=^V^C:tc=avatar0+:
8921
8922#### RBcomm
8923#
8924# RBComm is a lean and mean terminal emulator written by the Interrupt List
8925# maintainer, Ralf Brown. It was fairly popular in the late DOS years (early
8926# '90s), especially in the BBS world, and still has some loyal users due to
8927# its very small memory footprint and to a cute macro language.
8928rbcomm|IBM PC with RBcomm and EMACS keybindings:\
8929	:am:bw:mi:ms:xn:\
8930	:co#80:it#8:li#25:\
8931	:AL=\E[%dL:DL=\E[%dM:al=^K:bl=^G:bt=\E[Z:cd=^F5:ce=^P^P:\
8932	:cl=^L:cm=\037%r%+ %+ :cr=^M:cs=\E[%i%d;%dr:dc=^W:dl=^Z:\
8933	:dm=:do=^C:ec=\E[%dX:ed=:ei=^]:im=^\:\
8934	:is=\017\035\E(B\E)0\E[?7h\E[?3l\E[>8g:kb=^H:kd=^N:\
8935	:ke=\E>:kh=^A:kl=^B:kr=^F:ks=\E=:ku=^P:le=^H:mb=\E[5m:\
8936	:md=\E[1m:me=\E[m:mk=\E[8m:mr=^R:nd=^B:nw=^M\ED:\
8937	:r1=\017\E(B\E)0\025\E[?3l\E[>8g:rc=\E8:rp=\030%.%.:\
8938	:sc=\E7:se=^U:sf=\ED:so=^R:sr=\EM:ta=^I:te=:ti=:ue=^U:up=^^:\
8939	:us=^T:ve=\E[?25h:vi=\E[?25l:
8940rbcomm-nam|IBM PC with RBcomm without autowrap:\
8941	:am@:\
8942	:bl=^G:cr=^M:do=^J:\
8943	:is=\017\035\E(B\E)0\E[?7l\E[?3l\E[>8g:kb=^H:kd=^J:\
8944	:kl=^H:nw=^M^J:sf=^J:ta=^I:tc=rbcomm:
8945rbcomm-w|IBM PC with RBcomm in 132 column mode:\
8946	:co#132:\
8947	:bl=^G:cr=^M:do=^J:\
8948	:is=\017\035\E(B\E)0\E[?7h\E[?3h\E[>8g:kb=^H:kd=^J:\
8949	:kl=^H:nw=^M^J:sf=^J:ta=^I:tc=rbcomm:
8950
8951######## LCD DISPLAYS
8952#
8953
8954#### Matrix Orbital
8955# from: Eric Z. Ayers  (eric@ale.org)
8956#
8957# Matrix Orbital 20x4 LCD display
8958# Command Character is 0xFE (decimal 254, octal 376)
8959#
8960# On this device, cursor addressability isn't possible.  The LCD expects:
8961#      0xfe G <col> <row>
8962#      for cup: %p1 == row and %p2 is column
8963#
8964# This line:
8965#	cup=\376G%p2%c%p1%c
8966# LOOKS like it will work, but sometimes only one of the two numbers is sent.
8967# See the terminfo (5) manpage commented regarding 'Terminals which use "%c"'.
8968#
8969# Alas, there is no cursor upline capability on this display.
8970#
8971# These entries add some 'sanity stuff' to the clear function.  That is, it
8972# does a 'clear' and also turns OFF auto scroll, turns ON Auto Line Wrapping,
8973# and turns off the cursor blinking and stuff like that.
8974#
8975# NOTE: calling 'beep' turns on the backlight (bell)
8976# NOTE: calling 'flash' turns it on and back off (visual bell)
8977#
8978MtxOrb|Generic Matrix Orbital LCD display:\
8979	:bl=\376B^A:cl=\376X\376C\376R\376K\376T:ho=\376H:\
8980	:le=\376L:nd=\376M:vb=\376B\001\376F:ve=\376K\376T:
8981MtxOrb204|20x4 Matrix Orbital LCD display:\
8982	:co#20:li#4:tc=MtxOrb:
8983MtxOrb162|16x2 Matrix Orbital LCD display:\
8984	:co#16:li#2:tc=MtxOrb:
8985# The end
8986
8987######## OLDER TERMINAL TYPES
8988#
8989# This section is devoted to older commercial terminal brands that are now
8990# discontinued, but known to be still in use or represented by emulations.
8991#
8992
8993#### AT&T (att, tty)
8994#
8995# This section also includes Teletype-branded VDTs.
8996#
8997# The AT&T/Teletype terminals group was sold to SunRiver Data Systems (now
8998# Boundless Technologies); for details, see the header comment on the ADDS
8999# section.
9000#
9001# These are AT&T's official terminfo entries.  All-caps aliases have been
9002# removed.
9003#
9004att2300|sv80|AT&T 2300 Video Information Terminal 80 column mode:\
9005	:am:eo:mi:ms:xo:\
9006	:co#80:it#8:li#24:\
9007	:AL=\E[%dL:DC=\E[%dP:DL=\E[%dM:DO=\E[%dB:F1=\E[11r:\
9008	:F2=\E[12r:F3=\E[13r:F4=\E[14r:F5=\E[15r:F6=\E[16r:\
9009	:IC=\E[%d@:LE=\E[%dD:RI=\E[%dC:UP=\E[%dA:al=\E[L:bl=^G:\
9010	:cb=\E[1K:cd=\E[J:ce=\E[K:cl=\E[H\E[J:cm=\E[%i%d;%dH:\
9011	:cr=^M:dc=\E[P:dl=\E[M:do=^J:ei=\E[4l:ho=\E[H:im=\E[4h:\
9012	:k1=\E[1r:k2=\E[2r:k3=\E[3r:k4=\E[4r:k5=\E[5r:k6=\E[6r:\
9013	:k7=\E[7r:k8=\E[8r:k9=\E[9r:k;=\E[10r:kA=\E[L:kB=\E[Z:\
9014	:kC=\E[J:kD=\E[P:kI=\E[@:kL=\E[M:kb=^H:kd=\E[B:kh=\E[H:\
9015	:kl=\E[D:kr=\E[C:ku=\E[A:le=^H:me=\E[m:mr=\E[7m:nd=\E[C:\
9016	:pf=\E[4i:po=\E[5i:ps=\E[0i:se=\E[m:sf=^J:so=\E[7m:ta=^I:\
9017	:up=\E[A:
9018att2350|AT&T 2350 Video Information Terminal 80 column mode:\
9019	:pf@:po@:ps@:tc=att2300:
9020
9021# Must setup RETURN KEY - CR, REC'VD LF - INDEX.
9022# Seems upward compatible with vt100, plus ins/del line/char.
9023# On sgr, the protection parameter is ignored.
9024# No check is made to make sure that only 3 parameters are output.
9025# 	standout= reverse + half-intensity = 3 | 5.
9026# 	bold= reverse + underline = 2 | 3.
9027# note that half-bright blinking doesn't look different from normal blinking.
9028# NOTE:you must program the function keys first, label second!
9029# (att4410: a BSD entry has been seen with the following capabilities:
9030# :is=\E[?6l:, :k1=\EOc:, :k2=\EOd:, :k3=\EOe:, :k4=\EOg:,
9031# :k6=\EOh:, :k7=\EOi:, :k8=\EOj:, -- esr)
9032att5410v1|att4410v1|tty5410v1|AT&T 4410/5410 80 columns - version 1:\
9033	:am:hs:mi:ms:xo:\
9034	:Nl#8:co#80:it#8:lh#2:li#24:lw#8:ws#80:\
9035	:ac=++,,--..00``aaffgghhjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~:\
9036	:ae=^O:al=\E[L:as=^N:bl=^G:cd=\E[J:ce=\E[K:cl=\E[H\E[J:\
9037	:cm=\E[%i%d;%dH:cr=^M:cs=\E[%i%d;%dr:dc=\E[P:dl=\E[M:\
9038	:do=\E[B:ei=:fs=\E8:ho=\E[H:i1=\E[?3l\E)0:\
9039	:i2=\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:\
9040	:ic=\E[@:im=:k1=\EOP:k2=\EOQ:k3=\EOR:k4=\EOS:k5=\EOT:\
9041	:k6=\EOU:k7=\EOV:k8=\EOW:kC=\E[2J:kH=\E[24;1H:kb=^H:\
9042	:kd=\E[B:kh=\E[H:kl=\E[D:kr=\E[C:ku=\E[A:le=^H:ll=\E[24H:\
9043	:mb=\E[5m:md=\E[2;7m:me=\E[0m:mh=\E[2m:mk=\E[8m:mr=\E[7m:\
9044	:nd=\E[C:nw=^M^J:rc=\E8:rs=\Ec\E[?3l\E[2;0y:sc=\E7:\
9045	:se=\E[m:sf=^J:so=\E[7m:sr=\EM:ta=^I:ts=\E7\E[25;%+^AH:\
9046	:ue=\E[m:up=\E[A:us=\E[4m:
9047
9048att4410v1-w|att5410v1-w|tty5410v1-w|AT&T 4410/5410 132 columns - version 1:\
9049	:co#132:ws#132:\
9050	:i1=\E[?3h\E)0:rs=\Ec\E[?3h\E[2;0y:tc=att5410v1:
9051
9052att4410|att5410|tty5410|AT&T 4410/5410 80 columns - version 2:\
9053	:bs:tc=att5410v1:
9054
9055att5410-w|att4410-w|4410-w|tty5410-w|5410-w|AT&T 4410/5410 in 132 column mode:\
9056	:co#132:ws#132:\
9057	:i1=\E[?3h\E)0:rs=\Ec\E[?3h\E[2;0y:tc=att4410:
9058
9059# 5410 in terms of a vt100
9060# (v5410: added <rmam>/<smam> based on init string -- esr)
9061v5410|att5410 in terms of a vt100:\
9062	:am:mi:ms:xo:\
9063	:co#80:it#8:li#24:vt#3:\
9064	:RA=\E[?7l:SA=\E[?7h:\
9065	:ac=``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~:\
9066	:ae=^O:al=\E[L:as=^N:bl=^G:cb=3\E[1K:cd=50\E[J:ce=3\E[K:\
9067	:cl=50\E[H\E[J:cm=5\E[%i%d;%dH:cr=^M:cs=\E[%i%d;%dr:\
9068	:ct=\E[3g:dc=\E[P:dl=\E[M:do=^J:eA=\E(B\E)0:ei=:ho=\E[H:\
9069	:ic=\E[@:im=:kb=^H:kd=\EOB:ke=\E[?1l\E>:kl=\EOD:kr=\EOC:\
9070	:ks=\E[?1h\E=:ku=\EOA:le=^H:mb=2\E[5m:md=2\E[1m:me=2\E[0m:\
9071	:mr=2\E[7m:nd=2\E[C:rc=\E8:\
9072	:rs=\E>\E[?3l\E[?4l\E[?5l\E[?7h\E[?8h:sc=\E7:se=2\E[m:\
9073	:sf=^J:so=2\E[1;7m:sr=5\EM:st=\EH:ta=^I:ue=2\E[m:up=2\E[A:\
9074	:us=2\E[4m:tc=vt100+fnkeys:
9075
9076#
9077# Teletype Model 5420 -- A souped up 5410, with multiple windows,
9078# even! the 5420 has three modes: scroll, window or page mode
9079# this terminfo should work in scroll or window mode, but doesn't
9080# take advantage of any of the differences between them.
9081#
9082# Has memory below (2 lines!)
9083# 3 pages of memory (plus some spare)
9084# The 5410 sequences for :cm:, :vs:, :DC:, :DL:, :ec:, :vb:, :ho:,
9085# <hpa>, :st: would work for these, but these work in both scroll and window
9086# mode... Unset insert character so insert mode works
9087# :i1: sets 80 column mode,
9088# :is: escape sequence:
9089# 1) turn off all fonts
9090# 2) function keys off, keyboard lock off, control display off,
9091#    insert mode off, erasure mode off,
9092# 3) full duplex, monitor mode off, send graphics off, nl on lf off
9093# 4) reset origin mode
9094# 5) set line wraparound
9095# 6) exit erasure mode, positional attribute mode, and erasure extent mode
9096# 7) clear margins
9097# 8) program ENTER to transmit ^J,
9098# We use \212 to program the ^J because a bare ^J will get translated by
9099# UNIX into a CR/LF. The enter key is needed for AT&T uOMS.
9100#     1      2            3              4     5     6    7  8
9101# :i3: set screen color to black,
9102# No representation in terminfo for the delete word key: kdw1=\Ed
9103# Key capabilities assume the power-up send sequence...
9104# This :te: is not strictly necessary, but it helps maximize
9105# memory usefulness: :te=\Ez:,
9106# Alternate sgr0:	:me=\E[m\EW^O:,
9107# Alternate sgr:	:sa=\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%;:,
9108# smkx programs the SYS PF keys to send a set sequence.
9109# It also sets up labels f1, f2, ..., f8, and sends edit keys.
9110# This string causes them to send the strings :k1:-:k8:
9111# when pressed in SYS PF mode.
9112# (att4415: I added <rmam>/<smam> based on the init string -- esr)
9113att4415|tty5420|att5420|AT&T 4415/5420 80 cols:\
9114	:bs:db:mi:xo:\
9115	:Nl#8:lh#2:lm#78:lw#8:ws#55:\
9116	:@1=\Et:@7=\Ez:@8=\Eent:AL=\E[%dL:CM=\E[%i%d;%dt:\
9117	:DC=\E[%dP:DL=\E[%dM:DO=\E[%dB:IC=\E[%d@:LE=\E[%dD:LF=\E|:\
9118	:LO=\E~:RA=\E[?7l:RI=\E[%dC:SA=\E[?7h:SF=\E[%dE:SR=\E[%dF:\
9119	:UP=\E[%dA:bt=\E[Z:ch=\E[%+^AG:cl=\E[x\E[J:\
9120	:cm=\E[%i%d;%dx:ct=\E[3g:cv=\E[%+^Ad:ec=\E[%ds\E[%dD:\
9121	:ei=\E[4l:ho=\E[x:i1=100\E[?3l:i2=\E[?5l:ic@:im=\E[4h:\
9122	:is=\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:\
9123	:k1=\EOc:k2=\EOd:k3=\EOe:k4=\EOf:k5=\EOg:k6=\EOh:k7=\EOi:\
9124	:k8=\EOj:kA=\E[L:kB=\E[Z:kD=\E[P:kE=\E[2K:kF=\E[T:kH=\Eu:\
9125	:kI=\E[4h:kL=\E[M:kN=\E[U:kP=\E[V:kR=\E[S:\
9126	:ke=\E[19;0j\E[21;1j\212:ks=\E[19;1j\E[21;4j\Eent:\
9127	:l1=F1:l2=F2:l3=F3:l4=F4:l5=F5:l6=F6:l7=F7:l8=F8:ll=\Ew:\
9128	:me=\E[0m\017:mp=\EV:pf=\E[?9i:po=\E[?4i:ps=\E[?2i:st=\EH:\
9129	:ts=\E7\E[25;%+^HH:vb=\E[?5h\E[?5l:ve=\E[11;0j:\
9130	:vs=\E[11;1j:tc=att4410:
9131
9132att4415-w|tty5420-w|att5420-w|AT&T 4415/5420 132 cols:\
9133	:co#132:lm#54:ws#97:\
9134	:i1=100\E[?3h:tc=att4415:
9135
9136att4415-rv|tty5420-rv|att5420-rv|AT&T 4415/5420 80 cols/rv:\
9137	:i2=\E[?5h:vb=\E[?5l\E[?5h:tc=att4415:
9138
9139att4415-w-rv|tty5420-w-rv|att5420-w-rv|AT&T 4415/5420 132 cols/rv:\
9140	:co#132:lm#54:ws#97:\
9141	:i1=100\E[?3h:i2=\E[?5h:vb=\E[?5l\E[?5h:tc=att4415:
9142
9143# Note that this mode permits programming USER PF KEYS and labels
9144# However, when you program user pf labels you have to reselect
9145# user pf keys to make them appear!
9146att4415+nl|tty5420+nl|att5420+nl|generic AT&T 4415/5420 changes for not changing labels:\
9147	:k1@:k2@:k3@:k4@:k5@:k6@:k7@:k8@:
9148
9149att4415-nl|tty5420-nl|att5420-nl|AT&T 4415/5420 without changing labels:\
9150	:k1@:k2@:k3@:k4@:k5@:k6@:k7@:k8@:tc=att4415+nl:tc=att4415:
9151
9152att4415-rv-nl|tty5420-rv-nl|att5420-rv-nl|AT&T 4415/5420 reverse video without changing labels:\
9153	:k1@:k2@:k3@:k4@:k5@:k6@:k7@:k8@:tc=att4415+nl:tc=att4415-rv:
9154
9155att4415-w-nl|tty5420-w-nl|att5420-w-nl|AT&T 4415/5420 132 cols without changing labels:\
9156	:k1@:k2@:k3@:k4@:k5@:k6@:k7@:k8@:tc=att4415+nl:tc=att4415-w:
9157
9158att4415-w-rv-n|tty5420-w-rv-n|att5420-w-rv-n|AT&T 4415/5420 132 cols reverse without changing labels:\
9159	:k1@:k2@:k3@:k4@:k5@:k6@:k7@:k8@:tc=att4415+nl:\
9160	:tc=att4415-w-rv:
9161
9162# (sgr removed to fit entry within 1023 bytes)
9163# (acsc removed to fit entry within 1023 bytes)
9164# (terminfo-only capabilities suppressed to fit entry within 1023 bytes)
9165att5420_2|AT&T 5420 model 2 80 cols:\
9166	:am:db:hs:mi:ms:xo:\
9167	:co#80:it#8:li#24:lm#78:ws#55:\
9168	:AL=\E[%dL:CM=\E[%i%d;%dt:DC=\E[%dP:DL=\E[%dM:DO=\E[%dB:\
9169	:IC=\E[%d@:LE=\E[%dD:RI=\E[%dC:SF=\E[%dE:SR=\E[%dF:\
9170	:UP=\E[%dA:ae=^O:al=\E[L:as=^N:bt=\E[1Z:cd=\E[0J:ce=\E[0K:\
9171	:cl=\EH\EJ:cm=\E[%i%d;%dH:cr=\EG:cs=\E[%i%d;%dr:ct=\E[3g:\
9172	:dc=\E[P:dl=\E[M:do=\E[1B:ec=\E[%ds\E[%dD:ei=:fs=\E8:\
9173	:ho=\E[H:\
9174	:i1=\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:\
9175	:ic=\E[@:im=:k1=\EOc:k2=\EOd:k3=\EOe:k4=\EOf:k5=\EOg:\
9176	:k6=\EOh:k7=\EOi:k8=\EOj:kD=\E[P:kH=\Eu:kI=\E[4h:kN=\E[U:\
9177	:kP=\E[V:kb=^H:kd=\E[B:ke=\E[19;0j:kh=\E[H:kl=\E[D:kr=\E[C:\
9178	:ks=\E[19;1j:ku=\E[A:le=^H:ll=\Ew:mb=\E[5m:me=\E[0m:\
9179	:mh=\E[2m:mr=\E[7m:nd=\E[1C:nw=^M^J:rc=\E8:\
9180	:rs=\Ec\E[?3l\E[2;0y:sc=\E7:se=\E[m:sf=^J:so=\E[7m:sr=\EM:\
9181	:st=\EH:ta=^I:ts=\E7\E[25;%+^HH:ue=\E[m:up=\E[1A:us=\E[4m:\
9182	:vb=\E[?5h\E[?5l:ve=\E[11;0j:vs=\E[11;1j:
9183att5420_2-w|AT&T 5420 model 2 in 132 column mode:\
9184	:co#132:\
9185	:i1=\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:\
9186	:tc=att5420_2:
9187
9188att4418|att5418|AT&T 5418 80 cols:\
9189	:am:xo:\
9190	:co#80:li#24:\
9191	:@8=\E[:AL=\E[%dL:DC=\E[%dP:DL=\E[%dM:DO=\E[%dB:F1=\E[n:\
9192	:F2=\E[o:F3=\E[H:F4=\E[I:F5=\E[J:F8=\E[K:F9=\E[L:FA=\E[E:\
9193	:FB=\E[_:FC=\E[M:FD=\E[N:FE=\E[O:IC=\E[%d@:LE=\E[%dD:\
9194	:RI=\E[%dC:UP=\E[%dA:\
9195	:ac=``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~:\
9196	:ae=^O:al=\E[1L:as=^N:bl=^G:cd=\E[0J:ce=\E[0K:cl=\E[H\E[2J:\
9197	:cm=\E[%i%d;%dH:cr=^M:dc=\E[1P:dl=\E[M:do=\E[B:ei=:ho=\E[H:\
9198	:i1=\E[?3l:ic=\E[1@:im=:is=\E)0\E?6l\E?5l:k1=\E[h:k2=\E[i:\
9199	:k3=\E[j:k6=\E[k:k7=\E[l:k8=\E[f:k9=\E[w:k;=\E[m:kC=\E[%%:\
9200	:kd=\EU:kh=\Ec:kl=\E@:kr=\EA:ku=\ES:le=\E[D:mb=\E[5m:\
9201	:me=\E[m\017:mh=\E[2m:mr=\E[7m:nd=\E[C:rc=\E8:sc=\E7:\
9202	:se=\E[m:sf=^J:so=\E[7m:ue=\E[m:up=\E[A:us=\E[4m:
9203att4418-w|att5418-w|AT&T 5418 132 cols:\
9204	:co#132:\
9205	:i1=\E[?3h:tc=att5418:
9206
9207att4420|tty4420|teletype 4420:\
9208	:bs:da:db:eo:ms:ul:xo:\
9209	:co#80:li#24:lm#72:\
9210	:al=\EL:bl=^G:cd=\EJ:ce=\Ez:cl=\EH\EJ:cm=\EY%+ %+ :cr=\EG:\
9211	:dc=\EP:dl=\EM:dm@:do=\EB:ed@:ho=\EH:k0=\EU:k3=\E@:kA=\EL:\
9212	:kB=\EO:kC=\EJ:kD=\EP:kF=\ES:kI=\E\136:kL=\EM:kR=\ET:kd=\EB:\
9213	:kh=\EH:kl=^H:kr=\EC:ku=\EA:l0=segment advance:\
9214	:l3=cursor tab:le=\ED:nd=\EC:se=\E~:sf=\EH\EM\EY7\040:\
9215	:so=\E}:ue=\EZ:up=\EA:us=\E\\:
9216
9217#  The following is a terminfo entry for the Teletype 4424
9218#  asynchronous keyboard-display terminal.  It supports
9219#  the vi editor.  The terminal must be set up as follows,
9220#
9221# 	HIGHLIGHT DEFINITION	3-TONE
9222# 	DISPLAY FUNCTION	GROUP III
9223#
9224#  The second entry below provides limited (a la adm3a)
9225#  operation under GROUP II.
9226#
9227#  This must be used with DISPLAY FUNCTION GROUP I or III
9228# 	and HIGHLIGHT DEFINITION 3-TONE
9229# The terminal has either bold or blink, depending on options
9230#
9231# (att4424: commented out :ti:=\E[1m, we don't need bright locked on -- esr)
9232att4424|tty4424|teletype 4424:\
9233	:am:bs:xo:\
9234	:co#80:li#24:\
9235	:AL=\E[%dL:DC=\E[%dP:DL=\E[%dM:DO=\E[%dB:IC=\E[%d@:\
9236	:LE=\E[%dD:RI=\E[%dC:UP=\E[%dA:\
9237	:ac=``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~:\
9238	:ae=\E(B:al=\EL:as=\E(0:bl=^G:bt=\EO:cd=\EJ:ce=\Ez:\
9239	:cl=\E[H\E[2J:cm=\E[%i%d;%dH:cr=^M:cs=\E[%i%d;%dr:ct=\EF:\
9240	:dc=\EP:dl=\EM:do=\EB:ei=:ho=\E[H:ic=\E\136:im=:\
9241	:is=\E[20l\E[?7h:k1=\EOP:k2=\EOQ:k3=\EOR:k4=\EOS:kC=\EJ:\
9242	:kb=^H:kd=\E[B:kh=\E[H:kl=\E[D:kr=\E[C:ku=\E[A:le=^H:mb=\E3:\
9243	:md=\E3:me=\EX\E~\EZ\E4\E(B:mh=\EW:mr=\E}:nd=\EC:nw=\EE:\
9244	:se=\E~:sf=^J:so=\E}:sr=\ET:st=\EH:ta=^I:ue=\EZ:up=\EA:\
9245	:us=\E\\:
9246
9247att4424-1|tty4424-1|teletype 4424 in display function group I:\
9248	:kC@:kd=\EB:kh@:kl=\ED:kr=\EC:ku=\EA:tc=att4424:
9249
9250# This entry is not one of AT&T's official ones, it was translated from the
9251# 4.4BSD termcap file.  The highlight strings are different from att4424.
9252# I have no idea why this is -- older firmware version, maybe?
9253# The following two lines are the comment originally attached to the entry:
9254# This entry appears to avoid the top line - I have no idea why.
9255# From: jwb Wed Mar 31 13:25:09 1982 remote from ihuxp
9256att4424m|tty4424m|teletype 4424M:\
9257	:am:da:db:mi:\
9258	:co#80:it#8:li#23:\
9259	:al=\EL:bl=^G:ce=\E[K:cl=\E[2;H\E[J:cm=\E[%i%2;%2H\E[B:\
9260	:cr=^M:dc=\EP:dl=\EM:do=^J:ei=:ic=\E\136:im=:ip=2:\
9261	:is=\E[m\E[2;24r:k1=\EOP:k2=\EOQ:k3=\EOR:k4=\EOS:kb=^H:\
9262	:kd=\E[B:kh=\E[H:kl=\E[D:kr=\E[C:ku=\E[A:le=^H:me=\E[m:\
9263	:nd=\E[C:nw=^M^J:se=\E[m:sf=^J:so=\E[7m:sr=\ET:ta=^I:\
9264	:ue=\E[m:up=\E[A:us=\E[4m:
9265
9266# The Teletype 5425 is really version 2 of the Teletype 5420. It
9267# is quite similar, except for some minor differences. No page
9268# mode, for example, so all of the :cm: sequences used above have
9269# to change back to what's being used for the 5410. Many of the
9270# option settings have changed their numbering as well.
9271#
9272# This has been tested on a preliminary model.
9273#
9274# (att5425: added <rmam>/<smam> based on the init string -- esr)
9275# (sgr removed to fit entry within 1023 bytes)
9276# (acsc removed to fit entry within 1023 bytes)
9277# (terminfo-only capabilities suppressed to fit entry within 1023 bytes)
9278att5425|tty5425|att4425|AT&T 4425/5425:\
9279	:am:da:db:hs:mi:ms:xn:xo:\
9280	:co#80:it#8:li#24:lm#78:ws#55:\
9281	:AL=\E[%dL:DC=\E[%dP:DL=\E[%dM:DO=\E[%dB:IC=\E[%d@:\
9282	:LE=\E[%dD:RI=\E[%dC:SF=\E[%dE:SR=\E[%dF:UP=\E[%dA:ae=^O:\
9283	:al=\E[L:as=^N:bl=^G:bt=\E[Z:cd=\E[J:ce=\E[K:cl=\E[H\E[J:\
9284	:cm=\E[%i%d;%dH:cr=^M:cs=\E[%i%d;%dr:ct=\E[3g:dc=\E[P:\
9285	:dl=\E[M:do=^J:ec=\E[%ds\E[%dD:ei=\E[4l:fs=\E8:ho=\E[H:\
9286	:i1=100\E<\E[?3l:i2=\E[?5l:im=\E[4h:\
9287	:is=\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:\
9288	:k1=\EOc:k2=\EOd:k3=\EOe:k4=\EOf:k5=\EOg:k6=\EOh:k7=\EOi:\
9289	:k8=\EOj:kD=\E[P:kI=\E[4h:kb=^H:kd=\E[B:\
9290	:ke=\E[21;0j\E[25;1j\212:kh=\E[H:kl=\E[D:kr=\E[C:\
9291	:ks=\E[21;1j\E[25;4j\Eent\E~:ku=\E[A:le=^H:ll=\E[24H:\
9292	:mb=\E[5m:md=\E[2;7m:me=\E[0m:mh=\E[2m:mr=\E[7m:nd=\E[C:\
9293	:nw=^M^J:rc=\E8:rs=\Ec\E[?3l\E[2;0y:sc=\E7:se=\E[m:sf=^J:\
9294	:so=\E[7m:sr=\EM:st=\EH:ta=^I:ts=\E7\E[25;%+^HH:ue=\E[m:\
9295	:up=\E[A:us=\E[4m:vb=\E[?5h\E[?5l:ve=\E[12;0j:\
9296	:vs=\E[12;1j:
9297
9298att5425-nl|tty5425-nl|att4425-nl|AT&T 4425/5425 80 columns no labels:\
9299	:ks=\E[21;1j\E[25;4j\Eent:tc=att4425:
9300
9301att5425-w|att4425-w|tty5425-w|teletype 4425/5425 in 132 column mode:\
9302	:co#132:lm#54:ws#97:\
9303	:i1=100\E[?3h:tc=tty5425:
9304
9305# (att4426: his had bogus capabilities: :ri=\EM:, :ri=\E[1U:.
9306# I also added <rmam>/<smam> -- esr)
9307att4426|tty4426|teletype 4426S:\
9308	:am:da:db:xo:\
9309	:co#80:li#24:lm#48:\
9310	:AL=\E[%dL:DC=\E[%dP:DL=\E[%dM:DO=\E[%dB:IC=\E[%d@:\
9311	:LE=\E[%dD:RA=\E[?7l:RI=\E[%dC:SA=\E[?7h:SF=\E[%dS:\
9312	:SR=\E[%dT:UP=\E[%dA:\
9313	:ac=``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~:\
9314	:ae=\E(B:al=\EL:as=\E(0:bl=^G:cd=\E[J:ce=\E[0K:ch=\E[%dG:\
9315	:cl=\E[H\E[2J\E[1U\E[H\E[2J\E[1V:cm=\E[%i%d;%dH:cr=^M:\
9316	:ct=\E[3g:cv=\E[%dd:dc=\EP:dl=\E[M:do=\E[B:ei=:ho=\E[H:\
9317	:i1=\Ec\E[?7h:ic=\E\136:im=:is=\E[m\E[1;24r:k1=\EOP:\
9318	:k2=\EOQ:k3=\EOR:k4=\EOS:k5=\EOT:k6=\EOU:k7=\EOV:k8=\EOW:\
9319	:kB=\EO:kC=\E[2J:kH=\E[24;1H:kb=^H:kd=\EB:kh=\E[H:kl=\ED:\
9320	:kr=\EC:ku=\EA:le=\E[D:ll=\E[24H:md=\E[5m:me=\E[m\E(B:\
9321	:mr=\E[7m:nd=\E[C:nw=^M^J:rc=\E8:rs=\Ec\E[?3l\E[2;0y:\
9322	:sc=\E7:se=\E[m:sf=^J:so=\E[5m:sr=\ET:st=\E1:ta=^I:ue=\E[m:\
9323	:up=\E[A:us=\E[4m:
9324
9325# Terminfo entry for the AT&T 510 A Personal Terminal
9326# Function keys 9 - 16 are available only after the
9327# screen labeled (soft keys/action blocks) are labeled.  Function key
9328# 9 corresponds to the leftmost touch target on the screen,
9329# function key 16 corresponds to the rightmost.
9330#
9331# This entry is based on one done by Ernie Rice at Summit, NJ and
9332# changed by Anne Gallup, Skokie, IL, ttrdc!anne
9333att510a|bct510a|AT&T 510A Personal Terminal:\
9334	:am:mi:ms:xn:xo:\
9335	:Nl#8:co#80:lh#2:li#24:lw#7:\
9336	:#4=\E[u:%i=\E[v:AL=\E[%dL:DC=\E[%dP:DL=\E[%dM:DO=\E[%dB:\
9337	:F1=\EOe:F2=\EOf:F3=\EOg:F4=\EOh:F5=\EOi:F6=\EOj:LE=\E[%dD:\
9338	:RI=\E[%dC:UP=\E[%dA:\
9339	:ac=+g,h-f.e`bhrisjjkkllmmnnqqttuuvvwwxx{{||}}~~:\
9340	:ae=^O:al=\E[L:as=^N:bl=^G:bt=\E[Z:cb=\E[1K:cd=\E[0J:\
9341	:ce=\E[0K:cl=\E[H\E[J:cm=\E[%i%d;%dH:cr=^M:ct=\E[3g:\
9342	:dc=\E[P:dl=\E[M:do=\E[B:eA=\E(B\E)1:ff=^L:ho=\E[H:\
9343	:i1=\E(B\E)1\E[2l:i2=\E[21;1|\212:k1=\EOm:k2=\EOV:\
9344	:k3=\EOu:k4=\ENj:k5=\ENe:k6=\ENf:k7=\ENh:k8=\E[H:k9=\EOc:\
9345	:k;=\EOd:kB=\E[Z:kF=\E[S:kR=\E[T:kb=^H:kd=\E[B:ke=\E[19;0|:\
9346	:kl=\E[D:kr=\E[C:ks=\E[19;1|:ku=\E[A:le=^H:mb=\E[5m:\
9347	:md=\E[2;7m:me=\E[0m:mh=\E[2m:mr=\E[7m:nd=\E[C:nw=\EE:\
9348	:pf=\E[?8i:po=\E[?4i:ps=\E[0i:rc=\E8:sc=\E7:se=\E[m:sf=^J:\
9349	:so=\E[7m:sr=\EM:st=\EH:ta=^I:ue=\E[m:up=\E[A:us=\E[4m:\
9350	:ve=\E[11;3|:vi=\E[11;0|:vs=\E[11;2|:
9351
9352# Terminfo entry for the AT&T 510 D Personal Terminal
9353# Function keys 9 through 16 are accessed by bringing up the
9354# system blocks.
9355# Function key 9 corresponds to the leftmost touch target on the screen,
9356# function key 16 corresponds to the rightmost.
9357#
9358# There are problems with soft key labeling.  These are due to
9359# strangenesses in the native terminal that are impossible to
9360# describe in a terminfo.
9361# (sgr removed to fit entry within 1023 bytes)
9362# (acsc removed to fit entry within 1023 bytes)
9363att510d|bct510d|AT&T 510D Personal Terminal:\
9364	:am:da:db:mi:ms:xn:xo:\
9365	:Nl#8:co#80:lh#2:li#24:lm#48:lw#7:\
9366	:#4=\E[u:%i=\E[v:AL=\E[%dL:DC=\E[%dP:DL=\E[%dM:DO=\E[%dB:\
9367	:F1=\EOe:F2=\EOf:F3=\EOg:F4=\EOh:F5=\EOi:F6=\EOj:IC=\E[%d@:\
9368	:LE=\E[%dD:LF=\E<:LO=\E?:MC=\E\072:ML=\E4:MR=\E5:RI=\E[%dC:\
9369	:RX=\E[29;1|:SF=\E[%dS:SR=\E[%dT:SX=\E[29;0|:UP=\E[%dA:\
9370	:ae=^O:al=\E[L:as=^N:bl=^G:bt=\E[Z:cb=\E[1K:cd=\E[0J:\
9371	:ce=\E[0K:ch=\E[%+^AG:cl=\E[H\E[J:cm=\E[%i%d;%dH:cr=^M:\
9372	:ct=\E[3g:cv=\E[%+^Ad:dc=\E[P:dl=\E[M:do=\E[B:eA=\E(B\E)1:\
9373	:ei=\E[4l:ff=^L:ho=\E[H:i1=\E(B\E)1\E[5;0|:\
9374	:i2=\E[21;1|\212:im=\E[4h:k1=\EOm:k2=\EOV:k3=\EOu:k4=\ENj:\
9375	:k5=\ENe:k6=\ENf:k7=\ENh:k8=\E[H:k9=\EOc:k;=\EOd:kB=\E[Z:\
9376	:kF=\E[S:kR=\E[T:kb=^H:kd=\E[B:ke=\E[19;0|:kl=\E[D:kr=\E[C:\
9377	:ks=\E[19;1|:ku=\E[A:le=^H:ll=\E#2:mb=\E[5m:md=\E[2;7m:\
9378	:me=\E[0m:mh=\E[2m:mk=\E[8m:mr=\E[7m:nd=\E[C:nw=\EE:\
9379	:pf=\E[?8i:po=\E[?4i:ps=\E[0i:rc=\E8:rs=\E[5;0|:sc=\E7:\
9380	:se=\E[m:sf=^J:so=\E[7m:sr=\EM:st=\EH:ta=^I:ue=\E[m:up=\E[A:\
9381	:us=\E[4m:ve=\E[11;3|:vs=\E[11;2|:
9382
9383# (att500: I merged this with the att513 entry, att500 just used att513 -- esr)
9384# (sgr removed to fit entry within 1023 bytes)
9385# (acsc removed to fit entry within 1023 bytes)
9386# (terminfo-only capabilities suppressed to fit entry within 1023 bytes)
9387att500|att513|AT&T 513 using page mode:\
9388	:am:mi:ms:xn:xo:\
9389	:co#80:li#24:\
9390	:AL=\E[%dL:DC=\E[%dP:DL=\E[%dM:DO=\E[%dB:IC=\E[%d@:\
9391	:LE=\E[%dD:RI=\E[%dC:SF=\E[%dE:SR=\E[%dF:UP=\E[%dA:ae=^O:\
9392	:al=\E[L:as=^N:bl=^G:bt=\E[Z:cd=\E[J:ce=\E[K:cl=\E[H\E[J:\
9393	:cm=\E[%i%d;%dH:cr=^M:cs=%i\E[%d;%dr:ct=\E[3g:dc=1\E[P:\
9394	:dl=\E[M:do=^J:ei=\E[4l:ho=\E[H:\
9395	:i1=\E?\E[3;3|\E[10;0|\E[21;1|\212\E[6;1|\E[1{\E[?99l:\
9396	:im=\E[4h:k1=\EOc:k2=\EOd:k3=\EOe:k4=\EOf:k5=\EOg:k6=\EOh:\
9397	:k7=\EOi:k8=\EOj:kD=\ENf:kI=\ENj:kN=\E[U:kP=\E[V:kb=^H:\
9398	:kd=\E[B:ke=\E[19;0|\E[21;1|\212:kh=\E[H:kl=\E[D:kr=\E[C:\
9399	:ks=\E[19;1|\E[21;4|\Eent:ku=\E[A:le=^H:ll=\E#2:mb=\E[5m:\
9400	:md=\E[2;7m:me=\E[0m:mh=\E[2m:mr=\E[7m:nd=\E[C:nw=\EE:\
9401	:rc=\E8:sc=\E7:se=\E[m:sf=^J:so=\E[7m:sr=\EM:st=\EH:ta=^I:\
9402	:ue=\E[m:up=\E[A:us=\E[4m:ve=\E[11;0|:vs=\E[11;1|:
9403
9404# 01-07-88
9405# printer must be set to EMUL ANSI to accept ESC codes
9406# :up: stops at top margin
9407# :i1: sets cpi 10,lpi 6,form 66,left 1,right 132,top 1,bottom 66,font
9408#	and alt font ascii,wrap on,tabs cleared
9409# :is: disables newline on LF,Emphasized off
9410# The <u0> capability sets form length
9411att5310|att5320|AT&T Model 53210 or 5320 matrix printer:\
9412	:YA:YD:\
9413	:Ya#8192:Yi#10:Yj#12:Yk#100:Yl#72:Ym#120:co#132:it#8:li#66:\
9414	:DO=\E[%de:RI=\E[%da:ZM=\E[5m:ZU=\E[m:Zl=\E[;%dr:\
9415	:Zm=\E[%+^As:Zn=\E[;%+^As:Zp=\E[%dr:ch=\E[%d`:cr=^M:\
9416	:cv=\E[%dd:do=^J:ff=^L:i1=\Ec:is=\E[20l\r:nd=\040:ta=^I:\
9417	:u0=\E[%dt:up=\EM:
9418
9419# Teletype 5620, firmware version 1.1 (8;7;3) or earlier from BRL
9420# The following SET-UP modes are assumed for normal operation:
9421#	CR_DEF=CR	NL_DEF=INDEX	DUPLEX=FULL
9422# Other SET-UP modes may be set for operator convenience or communication
9423# requirements.  This termcap description is for the Resident Terminal Mode.
9424# No delays specified; use "stty ixon -ixany" to enable DC3/DC1 flow control!
9425# The BRL entry also said: UNSAFE :ll=\E[70H:
9426att5620-1|tty5620-1|dmd1|Teletype 5620 with old ROMs:\
9427	:am:xo:\
9428	:co#88:it#8:li#70:vt#3:\
9429	:AL=\E[%dL:DC=\E[%dP:DL=\E[%dM:IC=\E[%d@:SF=\E[%dS:\
9430	:SR=\E[%dT:al=\E[L:bl=^G:cd=\E[J:ce=\E[K:cl=\E[H\E[J:\
9431	:cm=\E[%i%d;%dH:cr=^M:dc=\E[P:dl=\E[M:do=^J:ei=:ho=\E[H:\
9432	:ic=\E[@:im=:kC=\E[2J:kH=\E[70;1H:kb=^H:kd=\E[B:kh=\E[H:\
9433	:kl=\E[D:kr=\E[C:ku=\E[A:le=^H:nd=\E[C:nw=^M^J:r1=\Ec:\
9434	:rc=\E8:sc=\E7:sf=^J:sr=\E[T:ta=^I:up=\E[A:
9435
9436# 5620 terminfo  (2.0 or later ROMS with char attributes)
9437# The following SET-UP modes are assumed for normal operation:
9438#	DUPLEX=FULL	GEN_FLOW=ON	NEWLINE=INDEX	RETURN=CR
9439# Other SET-UP modes may be set for operator convenience or communication
9440# requirements.  This termcap description is for Resident Terminal Mode.  No
9441# delays are specified; use "stty ixon -ixany" to enable DC3/DC1 flow control!
9442# assumptions: :sf: (scroll forward one line) is only done at screen bottom
9443# Be aware that older versions of the dmd have a firmware bug that affects
9444# parameter defaulting; for this terminal, the 0 in \E[0m is not optional.
9445# :ms: is from an otherwise inferior BRL for this terminal.  That entry
9446# also has :ll:=\E[70H commented out and marked unsafe.
9447# For more, see the 5620 FAQ maintained by David Breneman <daveb@dgtl.com>.
9448att5620|dmd|tty5620|ttydmd|5620|5620 terminal 88 columns:\
9449	:NL:NP:am:bs:ms:xo:\
9450	:co#88:it#8:li#70:\
9451	:AL=\E[%dL:DC=\E[%dP:DL=\E[%dM:IC=\E[%d@:SF=\E[%dS:\
9452	:SR=\E[%dT:al=\E[L:bl=^G:cd=\E[J:ce=\E[K:cl=\E[H\E[J:\
9453	:cm=\E[%i%d;%dH:cr=^M:dc=\E[P:dl=\E[M:do=\E[B:ei=:ho=\E[H:\
9454	:ic=\E[@:im=:kC=\E[2J:kH=\E[70;1H:kb=^H:kd=\E[B:kh=\E[H:\
9455	:kl=\E[D:kr=\E[C:ku=\E[A:le=^H:md=\E[2m:me=\E[0m:mh=\E[2m:\
9456	:mr=\E[7m:nd=\E[C:nw=^J:r1=\Ec:rc=\E8:sc=\E7:se=\E[0m:\
9457	:sf=\E[S:so=\E[7m:sr=\E[T:ta=^I:ue=\E[0m:up=\E[A:us=\E[4m:
9458att5620-24|tty5620-24|dmd-24|teletype dmd 5620 in a 24x80 layer:\
9459	:li#24:tc=att5620:
9460att5620-34|tty5620-34|dmd-34|teletype dmd 5620 in a 34x80 layer:\
9461	:li#34:tc=att5620:
9462# 5620 layer running the "S" system's downloaded graphics handler:
9463att5620-s|tty5620-s|layer|vitty|5620 S layer:\
9464	:am:bs:pt:\
9465	:co#80:it#8:li#72:\
9466	:al=\EI:bl=^G:ce=\EK:cl=^L:cm=\EY%r%+ %+ :cr=^M:dl=\ED:\
9467	:do=^J:kC=\E[2J:kH=\E[70;1H:kb=^H:kd=\E[B:kh=\E[H:kl=\E[D:\
9468	:kr=\E[C:ku=\E[A:le=^H:sf=^J:ta=^I:up=^K:vb=\E^G:
9469
9470# Entries for <kf15> thru <kf28> refer to the shifted system pf keys.
9471#
9472# Entries for <kf29> thru <kf46> refer to the alternate keypad mode
9473# keys:  = * / + 7 8 9 - 4 5 6 , 1 2 3 0 . ENTER
9474# (acsc removed to fit entry within 1023 bytes)
9475# (terminfo-only capabilities suppressed to fit entry within 1023 bytes)
9476att605|AT&T 605 80 column 102key keyboard:\
9477	:am:eo:xo:\
9478	:co#80:li#24:ws#80:\
9479	:DC=\E[%dP:DL=\E[%dM:IC=\E[%d@:ae=^O:al=\E[L:as=\E)0\016:\
9480	:bl=^G:bt=\E[Z:cd=\E[J:ce=\E[K:cl=\E[H\E[J:cm=\E[%i%d;%dH:\
9481	:cr=^M:dc=\E[P:dl=\E[M:do=\E[B:ei=\E[4l:fs=\E8:\
9482	:i1=\E[8;0|\E[?\E[13;20l\E[?\E[12h:ic=\E[@:im=\E[4h:\
9483	:is=\E[m\017:k1=\EOc:k2=\EOd:k3=\EOe:k4=\EOf:k5=\EOg:\
9484	:k6=\EOh:k7=\EOi:k8=\EOj:k9=\ENo:kD=\E[P:kI=\E[@:kN=\E[U:\
9485	:kP=\E[V:kb=^H:kd=\E[B:kh=\E[H:kl=\E[D:kr=\E[C:ku=\E[A:\
9486	:le=^H:ll=\E[24H:mb=\E[5m:md=\E[1m:me=\E[m\017:mh=\E[2m:\
9487	:mr=\E[7m:nd=\E[C:nw=\EE:rc=\E8:rs=\Ec\E[?3l:sc=\E7:\
9488	:se=\E[m:sf=^J:so=\E[7m:ta=^I:ts=\E7\E[25;%i%dx:ue=\E[m:\
9489	:up=\E[A:us=\E[4m:
9490att605-pc|ATT 605 in pc term mode:\
9491	:@7=\E[F:S4=250\E[?11l\E[50;1|:S5=400\E[50;0|:XF=g:XN=e:\
9492	:ac=j\331k\277l\332m\300n\305q\304t\303u\264v\301w\302x\263:\
9493	:al=\E[L:bt=\E[Z:dc=\E[P:dl=\E[M:do=\E[B:ei=:ic=\E[@:im=:\
9494	:k1=\E[M:k2=\E[N:k3=\E[O:k4=\E[P:k5=\E[Q:k6=\E[R:k7=\E[S:\
9495	:k8=\E[T:k9=\E[U:k;=\E[V:kB=\E[Z:kD=\E[P:kI=\E[@:kL=\E[M:\
9496	:kN=\E[G:kP=\E[I:kd=\E[B:kh=\E[H:kl=\E[D:kr=\E[C:ku=\E[A:\
9497	:le=\E[D:nd=\E[C:up=\E[A:tc=att605:
9498att605-w|AT&T 605-w 132 column 102 key keyboard:\
9499	:co#132:ws#132:\
9500	:i1=\E[8;0|\E[?4;5;13;15l\E[13;20l\E[?3;7h\E[12h\E(B\E)0:\
9501	:tc=att605:
9502# (att610: I added <rmam>/<smam> based on the init string.  I also
9503# added :SF: and :SR: because the BSD file says the att615s have them,
9504# and the 615 is like a 610 with a big keyboard, and most of their other
9505# smart terminals support the same sequence -- esr)
9506# (sgr removed to fit entry within 1023 bytes)
9507# (acsc removed to fit entry within 1023 bytes)
9508# (terminfo-only capabilities suppressed to fit entry within 1023 bytes)
9509att610|AT&T 610; 80 column; 98key keyboard:\
9510	:am:es:hs:mi:ms:xn:xo:\
9511	:co#80:it#8:li#24:ws#80:\
9512	:AL=\E[%dL:DC=\E[%dP:DL=\E[%dM:DO=\E[%dB:IC=\E[%d@:\
9513	:LE=\E[%dD:RI=\E[%dC:SF=\E[%dS:SR=\E[%dT:UP=\E[%dA:ae=^O:\
9514	:al=\E[L:as=^N:bl=^G:bt=\E[Z:cd=\E[J:ce=\E[K:cl=\E[H\E[J:\
9515	:cm=\E[%i%d;%dH:cr=^M:cs=\E[%i%d;%dr:dc=\E[P:dl=\E[M:\
9516	:do=\E[B:ei=\E[4l:fs=\E8:ho=\E[H:\
9517	:i1=\E[8;0|\E[?3;4;5;13;15l\E[13;20l\E[?7h\E[12h\E(B\E)0:\
9518	:i2=\E(B\E)0:im=\E[4h:is=\E[m\017:k1=\EOc:k2=\EOd:k3=\EOe:\
9519	:k4=\EOf:k5=\EOg:k6=\EOh:k7=\EOi:k8=\EOj:k9=\ENo:kb=^H:\
9520	:kd=\E[B:kh=\E[H:kl=\E[D:kr=\E[C:ku=\E[A:le=^H:ll=\E[24H:\
9521	:mb=\E[5m:md=\E[1m:me=\E[0m:mh=\E[2m:mr=\E[7m:nd=\E[C:\
9522	:nw=\EE:rc=\E8:rs=\Ec\E[?3l:sc=\E7:se=\E[m:sf=\ED:so=\E[7m:\
9523	:sr=\EM:ta=^I:ts=\E7\E[25;%i%dx:ue=\E[m:up=\E[A:us=\E[4m:\
9524	:vb=\E[?5h\E[?5l:ve=\E[?25h\E[?12l:vi=\E[?25l:\
9525	:vs=\E[?12;25h:
9526att610-w|AT&T 610; 132 column; 98key keyboard:\
9527	:co#132:ws#132:\
9528	:i1=\E[8;0|\E[?4;5;13;15l\E[13;20l\E[?3;7h\E[12h:\
9529	:tc=att610:
9530
9531att610-103k|AT&T 610; 80 column; 103key keyboard:\
9532	:!1=\EOO:!2=\EOP:!3=\EOS:#1=\EOM:%0=\EOt:%1=\EOm:%2=\ENi:\
9533	:%3=\EOl:%4=\ENc:%5=\ENh:%6=\EOv:%7=\EOr:%8=\ENg:%9=\EOz:\
9534	:%a=\EOL:%b=\ENC:%c=\ENH:%d=\EOR:%e=\ENG:%f=\EOZ:%g=\EOT:\
9535	:%h=\EOY:%j=\EOQ:&0=\EOW:&1=\EOb:&2=\ENa:&3=\EOy:&4=\EOB:\
9536	:&5=\EOq:&6=\EOo:&7=\EOp:&8=\EOs:&9=\ENB:*0=\EOX:*1=\EOU:\
9537	:*2=\END:*3=\EON:*4=\ENF:*5=\ENE:*6=\ENI:*7=\ENN:*8=\EOA:\
9538	:*9=\EOK:@0=\EOx:@1=\E9:@2=\EOw:@3=\EOV:@4=\EOu:@5=\ENd:\
9539	:@6=\EOn:@7=\E0:@8=^M:@9=\EOk:F1@:F2@:F3@:F4@:k9@:k;@:kD=\ENf:\
9540	:kE=\EOa:kI=\ENj:kL=\ENe:kM=\ENj:kN=\E[U:kP=\E[V:tc=att610:
9541att610-103k-w|AT&T 610; 132 column; 103key keyboard:\
9542	:co#132:ws#132:\
9543	:i1=\E[8;0|\E[?4;5;13;15l\E[13;20l\E[?3;7h\E[12h:\
9544	:tc=att610-103k:
9545att615|AT&T 615; 80 column; 98key keyboard:\
9546	:#4=\E[ A:%i=\E[ @:F5=\EOC:F6=\EOD:F7=\EOE:F8=\EOF:F9=\EOG:\
9547	:FA=\EOH:FB=\EOI:FC=\EOJ:FD=\ENO:FE=\ENP:FF=\ENQ:FG=\ENR:\
9548	:FH=\ENS:FI=\ENT:FJ=\EOP:FK=\EOQ:FL=\EOR:FM=\EOS:FN=\EOw:\
9549	:FO=\EOx:FP=\EOy:FQ=\EOm:FR=\EOt:FS=\EOu:FT=\EOv:FU=\EOl:\
9550	:FV=\EOq:FW=\EOr:FX=\EOs:FY=\EOp:FZ=\EOn:Fa=\EOM:tc=att610:
9551att615-w|AT&T 615; 132 column; 98key keyboard:\
9552	:#4=\E[ A:%i=\E[ @:F5=\EOC:F6=\EOD:F7=\EOE:F8=\EOF:F9=\EOG:\
9553	:FA=\EOH:FB=\EOI:FC=\EOJ:FD=\ENO:FE=\ENP:FF=\ENQ:FG=\ENR:\
9554	:FH=\ENS:FI=\ENT:FJ=\EOP:FK=\EOQ:FL=\EOR:FM=\EOS:FN=\EOw:\
9555	:FO=\EOx:FP=\EOy:FQ=\EOm:FR=\EOt:FS=\EOu:FT=\EOv:FU=\EOl:\
9556	:FV=\EOq:FW=\EOr:FX=\EOs:FY=\EOp:FZ=\EOn:Fa=\EOM:\
9557	:tc=att610-w:
9558att615-103k|AT&T 615; 80 column; 103key keyboard:\
9559	:#4=\E[ A:%i=\E[ @:tc=att610-103k:
9560att615-103k-w|AT&T 615; 132 column; 103key keyboard:\
9561	:#4=\E[ A:%i=\E[ @:tc=att610-103k-w:
9562# (att620: I added <rmam>/<smam> based on the init string and
9563# :SR:/:SF: from a BSD termcap -- esr)
9564# (sgr removed to fit entry within 1023 bytes)
9565# (acsc removed to fit entry within 1023 bytes)
9566# (terminfo-only capabilities suppressed to fit entry within 1023 bytes)
9567att620|AT&T 620; 80 column; 98key keyboard:\
9568	:am:es:hs:mi:ms:xn:xo:\
9569	:co#80:it#8:li#24:ws#80:\
9570	:AL=\E[%dL:DC=\E[%dP:DL=\E[%dM:DO=\E[%dB:IC=\E[%d@:\
9571	:LE=\E[%dD:RI=\E[%dC:SF=\E[%dS:SR=\E[%dT:UP=\E[%dA:\
9572	:ae=\E(B\017:al=\E[L:as=\E)0\016:bl=^G:bt=\E[Z:cd=\E[J:\
9573	:ce=\E[K:cl=\E[H\E[J:cm=\E[%i%d;%dH:cr=^M:cs=\E[%i%d;%dr:\
9574	:dc=\E[P:dl=\E[M:do=\E[B:ei=\E[4l:fs=\E8:ho=\E[H:\
9575	:i1=\E[8;0|\E[?3;4;5;13;15l\E[13;20l\E[?7h\E[12h:\
9576	:i2=\E(B\E)0:im=\E[4h:is=\E[m\017:k1=\EOc:k2=\EOd:k3=\EOe:\
9577	:k4=\EOf:k5=\EOg:k6=\EOh:k7=\EOi:k8=\EOj:k9=\ENo:kb=^H:\
9578	:kd=\E[B:kh=\E[H:kl=\E[D:kr=\E[C:ku=\E[A:le=^H:ll=\E[24H:\
9579	:mb=\E[5m:md=\E[1m:me=\E[m\E(B\017:mh=\E[2m:mr=\E[7m:\
9580	:nd=\E[C:nw=\EE:rc=\E8:rs=\Ec\E[?3l:sc=\E7:se=\E[m:sf=\ED:\
9581	:so=\E[7m:sr=\EM:ta=^I:ts=\E7\E[25;%i%dx:ue=\E[m:up=\E[A:\
9582	:us=\E[4m:vb=\E[?5h\E[?5l:ve=\E[?25h\E[?12l:vi=\E[?25l:\
9583	:vs=\E[?12;25h:
9584att620-w|AT&T 620; 132 column; 98key keyboard:\
9585	:co#132:ws#132:\
9586	:i1=\E[8;0|\E[?4;5;13;15l\E[13;20l\E[?3;7h\E[12h:\
9587	:tc=att620:
9588att620-103k|AT&T 620; 80 column; 103key keyboard:\
9589	:!1=\EOO:!2=\EOP:!3=\EOS:#1=\EOM:%0=\EOt:%1=\EOm:%2=\ENi:\
9590	:%3=\EOl:%4=\ENc:%5=\ENh:%6=\EOv:%7=\EOr:%8=\ENg:%9=\EOz:\
9591	:%a=\EOL:%b=\ENC:%c=\ENH:%d=\EOR:%e=\ENG:%f=\EOZ:%g=\EOT:\
9592	:%h=\EOY:%j=\EOQ:&0=\EOW:&1=\EOb:&2=\ENa:&3=\EOy:&4=\EOB:\
9593	:&5=\EOq:&6=\EOo:&7=\EOp:&8=\EOs:&9=\ENB:*0=\EOX:*1=\EOU:\
9594	:*2=\END:*3=\EON:*4=\ENF:*5=\ENE:*6=\ENI:*7=\ENN:*8=\EOA:\
9595	:*9=\EOK:@0=\EOx:@1=\E9:@2=\EOw:@3=\EOV:@4=\EOu:@5=\ENd:\
9596	:@6=\EOn:@7=\E0:@8=^M:@9=\EOk:F1@:F2@:F3@:F4@:F5@:F6@:F7@:F8@:\
9597	:F9@:FA@:FB@:FC@:FD@:FE@:FF@:FG@:FH@:FI@:FJ@:FK@:FL@:FM@:FN@:FO@:FP@:\
9598	:FQ@:FR@:FS@:FT@:FU@:FV@:FW@:FX@:FY@:FZ@:Fa@:k9@:k;@:kD=\ENf:\
9599	:kE=\EOa:kI=\ENj:kL=\ENe:kM=\ENj:kN=\E[U:kP=\E[V:tc=att620:
9600
9601att620-103k-w|AT&T 620; 132 column; 103key keyboard:\
9602	:co#132:ws#132:\
9603	:i1=\E[8;0|\E[?4;5;13;15l\E[13;20l\E[?3;7h\E[12h:\
9604	:tc=att620-103k:
9605
9606# AT&T (formerly Teletype) 630 Multi-Tasking Graphics terminal
9607# The following SETUP modes are assumed for normal operation:
9608#	Local_Echo=Off	Gen_Flow=On	Return=CR	Received_Newline=LF
9609#	Font_Size=Large		Non-Layers_Window_Cols=80
9610#				Non-Layers_Window_Rows=60
9611# Other SETUP modes may be set for operator convenience or communication
9612# requirements.  Some capabilities assume a printer attached to the Aux EIA
9613# port.  This termcap description is for the Fixed Non-Layers Window.  No
9614# delays are specified; use "stty ixon -ixany" to enable DC3/DC1 flow control!
9615# (att630: added :ic:, :mb: and :mh: from a BSD termcap file -- esr)
9616att630|AT&T 630 windowing terminal:\
9617	:NP:am:bs:da:db:mi:ms:xo:\
9618	:co#80:it#8:li#60:lm#0:\
9619	:@8=^M:AL=\E[%dL:DC=\E[%dP:DL=\E[%dM:DO=\E[%dB:F1=\ENq:\
9620	:F2=\ENr:F3=\ENs:F4=\ENt:F5=\ENu:F6=\ENv:F7=\ENw:F8=\ENx:\
9621	:F9=\ENy:FA=\ENz:FB=\EN{:FC=\EN|:FD=\EN}:FE=\EN~:IC=\E[%d@:\
9622	:LE=\E[%dD:RI=\E[%dC:SF=\E[%dS:SR=\E[%dT:UP=\E[%dA:\
9623	:al=\E[L:bl=^G:bt=\E[Z:cb=\E[1K:cd=\E[J:ce=\E[K:\
9624	:cl=\E[H\E[J:cm=\E[%i%d;%dH:cr=^M:dc=\E[P:dl=\E[M:do=\E[B:\
9625	:ei=\E[4l:ho=\E[H:ic=\E[@:im=\E[4h:is=\E[m:k9=\ENo:k;=\ENp:\
9626	:kA=\E[L:kB=\E[Z:kC=\E[2J:kD=\E[P:kI=\E[@:kL=\E[M:kb=^H:\
9627	:kd=\E[B:kh=\E[H:kl=\E[D:kr=\E[C:ku=\E[A:le=^H:mb=\E[5m:\
9628	:me=\E[m:mh=\E[2m:mr=\E[7m:nd=\E[C:nw=^M^J:pf=\E[?4i:\
9629	:po=\E[?5i:rc=\E8:rs=\Ec:sc=\E7:se=\E[m:sf=\ED:so=\E[7m:\
9630	:sr=\EM:ta=^I:ue=\E[m:up=\E[A:us=\E[4m:
9631att630-24|5630-24|5630DMD-24|630MTG-24|AT&T 630 windowing terminal 24 lines:\
9632	:li#24:tc=att630:
9633
9634# This is the att700 entry for 700 native emulation of the AT&T 700
9635# terminal.  Comments are relative to changes from the 605V2 entry and
9636# att730 on which the entry is based.  Comments show the terminfo
9637# capability name, termcap name, and description.
9638#
9639# Here is what's going onm in the init string:
9640#	ESC [ 50;4|	set 700 native mode (really is 605)
9641# x	ESC [ 56;ps| 	set lines to 24: ps=0; 40: ps=1 (plus status line)
9642#	ESC [ 53;0|	set GenFlow to Xon/Xoff
9643#	ESC [ 8 ;0|	set CR on NL
9644# x	ESC [ ? 3 l/h	set workspace: 80 col(l); 132 col(h)
9645#	ESC [ ? 4 l	jump scroll
9646#	ESC [ ? 5 l/h	video: normal (l); reverse (h)
9647#	ESC [ ?13 l	Labels on
9648#	ESC [ ?15 l	parity check = no
9649#	ESC [ 13 l	monitor mode off
9650#	ESC [ 20 l	LF on NL (not CRLF on NL)
9651#	ESC [ ? 7 h	autowrap on
9652#	ESC [ 12 h	local echo off
9653#	ESC ( B		GO = ASCII
9654#	ESC ) 0		G1 = Special Char & Line Drawing
9655#	ESC [ ? 31 l	Set 7 bit controls
9656#
9657# Note: Most terminals, especially the 600 family use Reverse Video for
9658# standout mode.  DEC also uses reverse video.  The VT100 uses bold in addition
9659# Assume we should stay with reverse video for 70..  However, the 605V2 exits
9660# standout mode with \E[m (all normal attributes).  The 730 entry simply
9661# exits reverse video which would leave other current attributes intact.  It
9662# was assumed the 730 entry to be more correct so rmso has changed.  The
9663# 605V2 has no sequences to turn individual attributes off, thus its setting
9664# and the rmso/smso settings from the 730.
9665#
9666# Note: For the same reason as above in rmso I changed exit under-score mode
9667# to specifically turn off underscore, rather than return to all normal
9668# attributes
9669#
9670# Note: The following pkey_xmit is taken from the 605V2 which contained the
9671# capability as pfxl.  It was changed here to pfx since pfxl
9672# will only compile successfully with Unix 4.0 tic.  Also note that pfx only
9673# allows strings to be parameters and label values must be programmed as
9674# constant strings.  Supposedly the pfxl of Version 4.0 allows both labels
9675# and strings to be parameters.  The 605V2 pfx entry should be examined later
9676# in this regard. For reference the 730 pfxl entry is shown here for comparison
9677# 730 pfx entry:
9678#     pfxl=\E[%?%p1%{25}%<%t%p1%e%p1%{24}%-%;%d;%p2%l%02d%?%p1%{25}%<%tq\s\s\s
9679# SYS\s\s\s\s\sF%p1%:-2d\s\s%e;0;3q%;%p2%s,
9680#
9681# (for 4.0 tic)
9682#     pfxl=\E[%p1%d;%p2%l%02dq%?%p1%{9}%<%t   F%p1%1d           %;%p2%s,
9683#
9684# (for <4.0 tic)
9685#     pfx=\E[%p1%d;%p2%l%02dq%?%p1%{9}%<%t   F%p1%1d           %;%p2%s,
9686#
9687# From the AT&T 705 Multi-tasking terminal user's guide Page 8-8,8-9
9688#
9689# Port1 Interface
9690#
9691# modular 10 pin Connector
9692# Left side       Right side
9693# Pin 1 2 3 4 5 6 7 8 9 10
9694#
9695#        Key (notch) at bottom
9696#
9697# Pin    1 DSR
9698#        3 DCD
9699#        4 DTR
9700#        5 Sig Ground
9701#        6 RD
9702#        7 SD
9703#        8 CTS
9704#        9 RTS
9705#        10 Frame Ground
9706#
9707# The manual is 189 pages and is loaded with details about the escape codes,
9708# etc..... Available from AT&T CIC 800-432-6600...
9709# ask for Document number 999-300-660..
9710#
9711# (sgr removed to fit entry within 1023 bytes)
9712# (acsc removed to fit entry within 1023 bytes)
9713# (terminfo-only capabilities suppressed to fit entry within 1023 bytes)
9714att700|AT&T 700 24x80 column display w/102key keyboard:\
9715	:am:es:hs:mi:ms:xn:xo:\
9716	:co#80:it#8:li#24:ws#80:\
9717	:AL=\E[%dL:DC=\E[%dP:DL=\E[%dM:DO=\E[%dB:IC=\E[%d@:\
9718	:LE=\E[%dD:RI=\E[%dC:UP=\E[%dA:ae=^O:al=\E[L:as=^N:bl=^G:\
9719	:bt=\E[Z:cd=\E[J:ce=\E[K:cl=\E[H\E[J:cm=\E[%i%d;%dH:cr=^M:\
9720	:cs=\E[%i%d;%dr:ct=\E[3g:dc=\E[P:dl=\E[M:do=\E[B:ei=\E[4l:\
9721	:fs=\E8:ho=\E[H:i2=\E(B\E)0:im=\E[4h:\
9722	:is=\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:\
9723	:k1=\EOc:k2=\EOd:k3=\EOe:k4=\EOf:k5=\EOg:k6=\EOh:k7=\EOi:\
9724	:k8=\EOj:k9=\ENo:kD=\E[P:kI=\E[@:kN=\E[U:kP=\E[V:kb=^H:\
9725	:kd=\E[B:kh=\E[H:kl=\E[D:kr=\E[C:ku=\E[A:le=^H:ll=\E[24H:\
9726	:mb=\E[5m:md=\E[1m:me=\E[0m:mh=\E[2m:mr=\E[7m:nd=\E[C:\
9727	:nw=\EE:rc=\E8:sc=\E7:se=\E[27m:sf=\ED:so=\E[7m:sr=\EM:\
9728	:st=\EH:ta=^I:ts=\E7\E[99;%i%dx:ue=\E[24m:up=\E[A:\
9729	:us=\E[4m:vb=\E[?5h\E[?5l:ve=\E[?25h\E[?12l:vi=\E[?25l:\
9730	:vs=\E[?12;25h:
9731
9732# This entry was modified 3/13/90 by JWE.
9733# fixes include additions of <enacs>, correcting :rp:, and modification
9734# of <kHOM>.  (See comments below)
9735# att730 has status line of 80 chars
9736# These were commented out: :SF=\E[%p1%dS:, :SR=\E[%p1%dT:,
9737# the <kf25> and up keys are used for shifted system Fkeys
9738# NOTE: JWE 3/13/90 The 98 key keyboard translation for shift/HOME is
9739# currently the same as :kh: (unshifted HOME or \E[H).  On the 102, 102+1
9740# and 122 key keyboards, the 730's translation is \E[2J.  For consistency
9741# <kHOM> has been commented out.  The user can uncomment <kHOM> if using the
9742# 102, 102+1, or 122 key keyboards
9743#       kHOM=\E[2J,
9744# (att730: I added <rmam>/<smam> based on the init string -- esr)
9745# (sgr removed to fit entry within 1023 bytes)
9746# (acsc removed to fit entry within 1023 bytes)
9747# (terminfo-only capabilities suppressed to fit entry within 1023 bytes)
9748att730|AT&T 730 windowing terminal:\
9749	:am:da:db:es:hs:mi:ms:xn:xo:\
9750	:co#80:it#8:li#60:lm#0:ws#80:\
9751	:AL=\E[%dL:DC=\E[%dP:DL=\E[%dM:DO=\E[%dB:IC=\E[%d@:\
9752	:LE=\E[%dD:RI=\E[%dC:UP=\E[%dA:ae=^O:al=\E[L:as=^N:bl=^G:\
9753	:bt=\E[Z:cd=\E[J:ce=\E[K:cl=\E[H\E[J:cm=\E[%i%d;%dH:cr=^M:\
9754	:cs=\E[%i%d;%dr:dc=\E[P:dl=\E[M:do=\E[B:ei=\E[4l:fs=\E8:\
9755	:ho=\E[H:\
9756	:i1=\E[8;0|\E[?3;4;5;13;15l\E[13;20l\E[?7h\E[12h\E(B\E)B:\
9757	:i2=\E(B\E)0:im=\E[4h:is=\E[m\017:k1=\EOc:k2=\EOd:k3=\EOe:\
9758	:k4=\EOf:k5=\EOg:k6=\EOh:k7=\EOi:k8=\EOj:k9=\ENo:kI=\E[@:\
9759	:kb=^H:kd=\E[B:kh=\E[H:kl=\E[D:kr=\E[C:ku=\E[A:le=^H:\
9760	:mb=\E[5m:md=\E[1m:me=\E[0m:mh=\E[2m:mr=\E[7m:nd=\E[C:\
9761	:nw=\EE:rc=\E8:rs=\Ec\E[?3l:sc=\E7:se=\E[27m:sf=\ED:\
9762	:so=\E[7m:sr=\EM:ta=^I:ts=\E7\E[;%i%dx:ue=\E[24m:up=\E[A:\
9763	:us=\E[4m:vb=\E[?5h\E[?5l:ve=\E[?25h\E[?12l:vi=\E[?25l:\
9764	:vs=\E[?12;25h:
9765att730-41|730MTG-41|AT&T 730-41 windowing terminal Version:\
9766	:li#41:tc=att730:
9767att730-24|730MTG-24|AT&T 730-24 windowing terminal Version:\
9768	:li#24:tc=att730:
9769att730r|730MTGr|AT&T 730 rev video windowing terminal Version:\
9770	:i1=\E[8;0|\E[?3;4;13;15l\E[?5h\E[13;20l\E[?7h\E[12h\E(B\E)B:\
9771	:vb=\E[?5l\E[?5h:tc=att730:
9772att730r-41|730MTG-41r|AT&T 730r-41 rev video windowing terminal Version:\
9773	:li#41:tc=att730r:
9774att730r-24|730MTGr-24|AT&T 730r-24 rev video windowing terminal Version:\
9775	:li#24:tc=att730r:
9776
9777# The following represents the screen layout along with the associated
9778# bezel buttons for the 5430/pt505 terminal. The "kf" designations do
9779# not appear on the screen but are shown to reference the bezel buttons.
9780# The "CMD", "MAIL", and "REDRAW" buttons are shown in their approximate
9781# position relative to the screen.
9782#
9783#
9784#
9785#      +----------------------------------------------------------------+
9786#      |                                                                |
9787# XXXX | kf0                                                       kf24 | XXXX
9788#      |                                                                |
9789#      |                                                                |
9790# XXXX | kf1                                                       kf23 | XXXX
9791#      |                                                                |
9792#      |                                                                |
9793# XXXX | kf2                                                       kf22 | XXXX
9794#      |                                                                |
9795#      |                                                                |
9796# XXXX | kf3                                                       kf21 | XXXX
9797#      |                                                                |
9798#      |                                                                |
9799# XXXX | kf4                                                       kf20 | XXXX
9800#      |                                                                |
9801#      |                                                                |
9802# XXXX | kf5                                                       kf19 | XXXX
9803#      |                                                                |
9804#      |                                                                |
9805# XXXX | kf6                                                       kf18 | XXXX
9806#      |                                                                |
9807#      |                                                                |
9808# XXXX |                                                                | XXXX
9809#      |                                                                |
9810#      |                                                                |
9811#      +----------------------------------------------------------------+
9812#
9813#          XXXX  XXXX  XXXX  XXXX  XXXX  XXXX  XXXX  XXXX  XXXX  XXXX
9814#
9815# Note: XXXX represents the screen buttons
9816#                                                          CMD   REDRAW
9817#
9818#                                                          MAIL
9819#
9820# version 1 note:
9821#	The character string sent by key 'kf26' may be user programmable
9822#       to send either \E[16s, or \E[26s.
9823#       The character string sent by key 'krfr' may be user programmable
9824#       to send either \E[17s, or \E[27s.
9825#
9826# Depression of the "CMD" key sends    \E!    (kcmd)
9827# Depression of the "MAIL" key sends   \E[26s (kf26)
9828# "REDRAW" same as "REFRESH" (krfr)
9829#
9830# "kf" functions adds carriage return to output string if terminal is in
9831# 'new line' mode.
9832#
9833# The following are functions not covered in the table above:
9834#
9835#       Set keyboard character (SKC): \EPn1;Pn2w
9836#                       Pn1= 0 Back Space key
9837#                       Pn1= 1 Break key
9838#                       Pn2=   Program char (hex)
9839#
9840#       Screen Definition (SDF): \E[Pn1;Pn2;Pn3;Pn4;Pn5t
9841#                       Pn1=     Window number (1-39)
9842#                       Pn2-Pn5= Y;X;Y;X coordinates
9843#
9844#       Screen Selection (SSL): \E[Pnu
9845#                       Pn= Window number
9846#
9847#       Set Terminal Modes (SM): \E[Pnh
9848#                       Pn= 3 Graphics mode
9849#                       Pn= > Cursor blink
9850#                       Pn= < Enter new line mode
9851#                       Pn= = Enter reverse insert/replace mode
9852#                       Pn= ? Enter no scroll mode
9853#
9854#       Reset Terminal Mode (RM): \E[Pnl
9855#                       Pn= 3 Exit graphics mode
9856#                       Pn= > Exit cursor blink
9857#                       Pn= < Exit new line mode
9858#                       Pn= = Exit reverse insert/replace mode
9859#                       Pn= ? Exit no scroll mode
9860#
9861#       Screen Status Report (SSR): \E[Pnp
9862#                       Pn= 0 Request current window number
9863#                       Pn= 1 Request current window dimensions
9864#
9865#       Device Status Report (DSR): \E[6n    Request cursor position
9866#
9867#       Call Status Report (CSR): \E[Pnv
9868#                       Pn= 0 Call failed
9869#                       Pn= 1 Call successful
9870#
9871#       Transparent Button String (TBS): \E[Pn1;Pn2;Pn3;{string
9872#                       Pn1= Button number to be loaded
9873#                       Pn2= Character count of "string"
9874#                       Pn3= Key mode being loaded:
9875#                               0= Unshifted
9876#                               1= Shifted
9877#                               2= Control
9878#                       String= Text string (15 chars max)
9879#
9880#       Screen Number Report (SNR): \E[Pnp
9881#                       Pn= Screen number
9882#
9883#       Screen Dimension Report (SDR): \E[Pn1;Pn2r
9884#                       Pn1= Number of rows available in window
9885#                       Pn2= Number of columns available in window
9886#
9887#       Cursor Position Report (CPR): \E[Pn1;Pn2R
9888#                       Pn1= "Y" Position of cursor
9889#                       Pn2= "X" Position of cursor
9890#
9891#       Request Answer Back (RAB): \E[c
9892#
9893#       Answer Back Response (ABR): \E[?;*;30;VSV
9894#                       *=  0 No printer available
9895#                       *=  2 Printer available
9896#                       V=  Software version number
9897#                       SV= Software sub version number
9898#	(printer-available field not documented in v1)
9899#
9900#       Screen Alignment Aid: \En
9901#
9902#       Bell (lower pitch): \E[x
9903#
9904#       Dial Phone Number: \EPdstring\
9905#                       string= Phone number to be dialed
9906#
9907#       Set Phone Labels: \EPpstring\
9908#                       string= Label for phone buttons
9909#
9910#       Set Clock: \EPchour;minute;second\
9911#
9912#       Position Clock: \EPsY;X\
9913#                       Y= "Y" coordinate
9914#                       X= "X" coordinate
9915#
9916#       Delete Clock: \Epr\
9917#
9918#       Programming The Function Buttons: \EPfPn;string\
9919#                       Pn= Button number (00-06, 18-24)
9920#                                         (kf00-kf06, kf18-kf24)
9921#                       string= Text to sent on button depression
9922#
9923# The following in version 2 only:
9924#
9925#       Request For Local Directory Data: \EPp12;\
9926#
9927#       Local Directory Data to host: \EPp11;LOCAL...DIRECTORY...DATA\
9928#
9929#	Request for Local Directory Data in print format: \EPp13;\
9930#
9931#	Enable 'Prt on Line' mode: \022 (DC2)
9932#
9933#	Disable 'Prt on Line' mode: \024 (DC4)
9934#
9935
9936# 05-Aug-86:
9937# The following Terminfo entry describes functions which are supported by
9938# the AT&T 5430/pt505 terminal software version 2 and later.
9939att505|pt505|att5430|gs5430|AT&T Personal Terminal 505 or 5430 GETSET terminal:\
9940	:am:xo:\
9941	:co#80:it#8:li#24:\
9942	:&2=\E[27s:@4=\E!:AL=\E[%dL:DC=\E[%dP:DL=\E[%dM:DO=\E[%dB:\
9943	:F8=\E[18s:F9=\E[19s:FA=\E[20s:FB=\E[21s:FC=\E[22s:\
9944	:FD=\E[23s:FE=\E[24s:FG=\E[26s:LE=\E[%dD:RA=\E[11;1j:\
9945	:RI=\E[%dC:SA=\E[11;0j:UP=\E[%dA:\
9946	:ac=``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~:\
9947	:ae=\E[10m:al=\E[L:as=\E[11m:bl=^G:cb=\E[2K:cd=\E[0J:\
9948	:ce=\E[0K:cl=\E[2J\E[H:cm=\E[%d;%dH:cr=^M:dc=\E[P:dl=\E[M:\
9949	:do=\E[B:ei=\E[4l:ho=\E[H:\
9950	:i1=\EPr\\E[0u\E[2J\E[0;0H\E[m\E[3l\E[<l\E[4l\E[>l\E[=l\E[?l:\
9951	:im=\E[4h:k0=\E[00s:k1=\E[01s:k2=\E[02s:k3=\E[03s:\
9952	:k4=\E[04s:k5=\E[05s:k6=\E[06s:kb=^H:kd=\E[B:kl=\E[D:\
9953	:kr=\E[C:ku=\E[A:le=\E[D:mb=\E[5m:md=\E[1m:me=\E[m:\
9954	:mr=\E[7m:nd=\E[C:pf=\E[4i:po=\E[5i:r1=\Ec:rc=\E8:sc=\E7:\
9955	:se=\E[m:sf=^J:so=\E[1m:ta=^I:ue=\E[m:up=\E[A:us=\E[4m:\
9956	:ve=\E[>l:vs=\E[>h:
9957
9958# The following Terminfo entry describes functions which are supported by
9959# the AT&T 5430/pt505 terminal software version 1.
9960att505-24|pt505-24|gs5430-24|AT&T PT505 or 5430 GETSET version 1 24 lines:\
9961	:li#24:\
9962	:RA@:SA@:pf@:po@:rc@:sc@:tc=att505:
9963tt505-22|pt505-22|gs5430-22|AT&T PT505 or 5430 GETSET version 1 22 lines:\
9964	:li#22:tc=att505:
9965#
9966#### ------------------ TERMINFO FILE CAN BE SPLIT HERE ---------------------
9967# This cut mark helps make life less painful for people running ncurses tic
9968# on machines with relatively little RAM.  The file can be broken in half here
9969# cleanly and compiled in sections -- no `use' references cross this cut
9970# going forward.
9971#
9972
9973#### Ampex (Dialogue)
9974#
9975# Yes, these are the same people who are better-known for making audio- and
9976# videotape.  I'm told they are located in Redwood City, CA.
9977#
9978
9979# From: <cbosg!ucbvax!SRC:george> Fri Sep 11 22:38:32 1981
9980# (ampex80: some capabilities merged in from SCO's entry -- esr)
9981ampex80|a80|d80|dialogue|dialogue80|ampex dialogue 80:\
9982	:am:bs:bw:ul:\
9983	:co#80:it#8:li#24:\
9984	:al=5*\EE:bl=^G:bt=\EI:cd=\Ey:ce=\Et:cl=75\E*:cm=\E=%+ %+ :\
9985	:cr=^M:ct=\E3:dc=\EW:dl=5*\ER:do=^J:ei=:ic=\EQ:im=:is=\EA:\
9986	:le=^H:nd=^L:se=\Ek:sf=^J:so=\Ej:st=\E1:ta=^I:ue=\Em:up=^K:\
9987	:us=\El:
9988# This entry was from somebody anonymous, Tue Aug  9 20:11:37 1983, who wrote:
9989ampex175|ampex d175:\
9990	:am:\
9991	:co#80:li#24:\
9992	:al=\EE:bl=^G:cd=\Ey:ce=\Et:cl=\E+:cm=\E=%+ %+ :cr=^M:\
9993	:dc=\EW:dl=\ER:do=^J:ei=:ho=^^:ic=\EQ:im=:is=\EX\EA\EF:\
9994	:kA=\EE:kD=\EW:kI=\EQ:kL=\ER:kd=^J:kh=^^:kl=^H:kr=^L:ku=^K:\
9995	:le=^H:ll=^^^K:nd=^L:se=\Ek:sf=^J:so=\Ej:te=\EF:ti=\EN:\
9996	:ue=\Em:up=^K:us=\El:
9997# No backspace key in the main QWERTY cluster. Fortunately, it has a
9998# NEWLINE/PAGE key just above RETURN that sends a strange single-character
9999# code.  Given a suitable Unix (one that lets you set an echo-erase-as-BS-SP-BS
10000# mode), this key can be used as the erase key; I find I like this. Because
10001# some people and some systems may not, there is another termcap ("ampex175")
10002# that suppresses this little eccentricity by omitting the relevant capability.
10003ampex175-b|ampex d175 using left arrow for erase:\
10004	:kb=^_:tc=ampex175:
10005# From: Richard Bascove <atd!dsd!rcb@ucbvax.berkeley.edu>
10006# (ampex210: removed obsolete ":kn#10:" -- esr)
10007ampex210|a210|ampex a210:\
10008	:am:bs:hs:xn:\
10009	:co#80:it#8:li#24:sg#1:\
10010	:al=\EE:bt=\EI:cd=\Ey:ce=\Et:cl=\E*:cm=\E=%+ %+ :dc=\EW:\
10011	:dl=\ER:ei=:fs=\E.2:ho=^^:ic=\EQ:if=/usr/share/tabset/std:\
10012	:im=:is=\EC\Eu\E'\E(\El\EA\E%\E{\E.2\EG0\Ed\En:\
10013	:k0=^A0\r:k1=^A1\r:k2=^A2\r:k3=^A3\r:k4=^A4\r:k5=^A5\r:\
10014	:k6=^A6\r:k7=^A7\r:k8=^A8\r:k9=^A9\r:kd=^V:kh=^^:kl=^H:\
10015	:kr=^L:ku=^K:le=^H:mk@:nd=^L:ta=^I:ts=\E.0\Eg\E}\Ef:up=^K:\
10016	:vb=\EU\EX\EU\EX\EU\EX\EU\EX:tc=adm+sgr:
10017# (ampex219: I added <rmam>/<smam> based on the init string, added :vs:
10018# from ampex219w, added :ve:=\E[?3l, irresistibly suggested by :vs:,
10019# and moved the padding to be *after* the caps -- esr)
10020ampex219|ampex-219|amp219|Ampex with Automargins:\
10021	:hs:xn:\
10022	:co#80:it#8:li#24:\
10023	:RA=\E[?7l:SA=\E[?7h:bl=^G:bt=\E[Z:cd=50\E[J:ce=3\E[K:\
10024	:cl=50\E[H\E[2J:cm=5\E[%i%d;%dH:cr=^M:cs=%i\E[%2;%2r:\
10025	:do=\E[B:ho=\E[H:\
10026	:is=\E>\E[?1l\E[?3l\E[?4l\E[?5l\E[?7h\E[?8h:k0=\E[21~:\
10027	:k1=\E[7~:k2=\E[8~:k3=\E[9~:k4=\E[10~:k5=\E[11~:k6=\E[17~:\
10028	:k7=\E[18~:k8=\E[19~:k9=\E[20~:kd=\E[B:ke=\E>:kh=\E[H:\
10029	:kl=\E[D:kr=\E[C:ks=\E=:ku=\E[A:le=^H:mb=2\E[5m:md=2\E[1m:\
10030	:me=2\E[m:mh=\E[1m:mr=\E[7m:nd=2\E[C:se=2\E[m:sf=^J:\
10031	:so=2\E[7m:sr=5\EM:ta=^I:ue=2\E[m:up=2\E[A:us=2\E[4m:\
10032	:ve=\E[?3l:vs=\E[?3h:
10033ampex219w|ampex-219w|amp219w|Ampex 132 cols:\
10034	:co#132:li#24:\
10035	:bl=^G:cr=^M:do=^J:is=\E>\E[?3h\E[?4l\E[?5l\E[?7h\E[?8h:\
10036	:sf=^J:tc=ampex219:
10037# (ampex232: removed :if=/usr/share/tabset/ampex:, no file and no :st: --esr)
10038ampex232|ampex-232|Ampex Model 232:\
10039	:am:\
10040	:co#80:li#24:sg#1:\
10041	:al=5*\EE:bt=\EI:cd=\EY:ce=\ET:cl=\E+:cm=\E=%+ %+ :dc=\EW:\
10042	:dl=5*\ER:do=^V:ei=:ic=\EQ:im=:is=\Eg\El:k0=^A@\r:k1=^AA\r:\
10043	:k2=^AB\r:k3=^AC\r:k4=^AD\r:k5=^AE\r:k6=^AF\r:k7=^AG\r:\
10044	:k8=^AH\r:k9=^AI\r:kb=^H:kd=^V:kh=^^:kl=^H:kr=^L:ku=^K:le=^H:\
10045	:mk@:nd=^L:ta=^I:up=^K:vb=\Eb\Ed:ve=\E.4:vi=\E.0:tc=adm+sgr:
10046# (ampex: removed :if=/usr/share/tabset/amp-132:, no file and no :st: -- esr)
10047ampex232w|Ampex Model 232 / 132 columns:\
10048	:co#132:li#24:\
10049	:is=\E\034Eg\El:tc=ampex232:
10050
10051#### Ann Arbor (aa)
10052#
10053# Ann Arbor made dream terminals for hackers -- large screen sizes and huge
10054# numbers of function keys.  At least some used monitors in portrait mode,
10055# allowing up to 76-character screen heights!  They were reachable at:
10056#
10057#	Ann Arbor Terminals
10058#	6175 Jackson Road
10059#	Ann Arbor, MI 48103
10060#	(313)-663-8000
10061#
10062# But in 1996 the phone number reaches some kitschy retail shop, and Ann Arbor
10063# can't be found on the Web; I fear they're long dead.  R.I.P.
10064#
10065
10066
10067# Originally from Mike O'Brien@Rand and Howard Katseff at Bell Labs.
10068# Highly modified 6/22 by Mike O'Brien.
10069# split out into several for the various screen sizes by dave-yost@rand
10070# Modifications made 3/82 by Mark Horton
10071# Modified by Tom Quarles at UCB for greater efficiency and more diversity
10072# status line moved to top of screen, :vb: removed 5/82
10073# Some unknown person at SCO then hacked the init strings to make them more
10074# efficient.
10075#
10076# assumes the following setup:
10077#   A menu: 0000 1010  0001 0000
10078#   B menu: 9600  0100 1000  0000 0000  1000 0000  17  19
10079#   C menu: 56   66   0    0    9600  0110 1100
10080#   D menu: 0110 1001   1   0
10081#
10082#	Briefly, the settings are for the following modes:
10083#	   (values are for bit set/clear with * indicating our preference
10084#	    and the value used to test these termcaps)
10085#	Note that many of these settings are irrelevent to the terminfo
10086#	and are just set to the default mode of the terminal as shipped
10087#	by the factory.
10088#
10089# A menu: 0000 1010  0001 0000
10090#	Block/underline cursor*
10091#	blinking/nonblinking cursor*
10092#	key click/no key click*
10093#	bell/no bell at column 72*
10094#
10095#	key pad is cursor control*/key pad is numeric
10096#	return and line feed/return for :cr: key *
10097#	repeat after .5 sec*/no repeat
10098#	repeat at 25/15 chars per sec. *
10099#
10100#	hold data until pause pressed/process data unless pause pressed*
10101#	slow scroll/no slow scroll*
10102#	Hold in area/don't hold in area*
10103#	functions keys have default*/function keys disabled on powerup
10104#
10105#	show/don't show position of cursor during page transmit*
10106#	unused
10107#	unused
10108#	unused
10109#
10110# B menu: 9600  0100 1000  0000 0000  1000 0000  17  19
10111#	Baud rate (9600*)
10112#
10113#	2 bits of parity - 00=odd,01=even*,10=space,11=mark
10114#	1 stop bit*/2 stop bits
10115#	parity error detection off*/on
10116#
10117#	keyboard local/on line*
10118#	half/full duplex*
10119#	disable/do not disable keyboard after data transmission*
10120#
10121#	transmit entire page/stop transmission at cursor*
10122#	transfer/do not transfer protected characters*
10123#	transmit all characters/transmit only selected characters*
10124#	transmit all selected areas/transmit only 1 selected area*
10125#
10126#	transmit/do not transmit line separators to host*
10127#	transmit/do not transmit page tab stops tabs to host*
10128#	transmit/do not transmit column tab stop tabs to host*
10129#	transmit/do not transmit graphics control (underline,inverse..)*
10130#
10131#	enable*/disable auto XON/XOFF control
10132#	require/do not require receipt of a DC1 from host after each LF*
10133#	pause key acts as a meta key/pause key is pause*
10134#	unused
10135#
10136#	unused
10137#	unused
10138#	unused
10139#	unused
10140#
10141#	XON character (17*)
10142#	XOFF character (19*)
10143#
10144# C menu: 56   66   0    0    9600  0110 1100
10145#	number of lines to print data on (printer) (56*)
10146#
10147#	number of lines on a sheet of paper (printer) (66*)
10148#
10149#	left margin (printer) (0*)
10150#
10151#	number of pad chars on new line to printer (0*)
10152#
10153#	printer baud rate (9600*)
10154#
10155#	printer parity: 00=odd,01=even*,10=space,11=mark
10156#	printer stop bits: 2*/1
10157#	print/do not print guarded areas*
10158#
10159#	new line is: 01=LF,10=CR,11=CRLF*
10160#	unused
10161#	unused
10162#
10163# D menu: 0110 1001   1   0
10164#	LF is newline/LF is down one line, same column*
10165#	wrap to preceding line if move left from col 1*/don't wrap
10166#	wrap to next line if move right from col 80*/don't wrap
10167#	backspace is/is not destructive*
10168#
10169#	display*/ignore DEL character
10170#	display will not/will scroll*
10171#	page/column tab stops*
10172#	erase everything*/erase unprotected only
10173#
10174#	editing extent: 0=display,1=line*,2=field,3=area
10175#
10176#	unused
10177#
10178
10179annarbor4080|aa4080|ann arbor 4080:\
10180	:am:bs:\
10181	:co#80:li#40:\
10182	:bl=^G:cl=2\014:cr=^M:ct=^\^P^P:do=^J:ho=^K:kb=^^:kd=^J:\
10183	:kh=^K:kl=^H:kr=^_:ku=^N:le=^H:nd=^_:sf=^J:st=^]^P1:ta=^I:\
10184	:up=^N:
10185
10186# Strange Ann Arbor terminal from BRL
10187aas1901|Ann Arbor K4080 w/S1901 mod:\
10188	:am:\
10189	:co#80:li#40:\
10190	:bl=^G:cl=^L:cr=^M:do=^J:ho=^K:kb=^H:kd=^J:kl=^H:le=^H:\
10191	:ll=^O\200c:nd=^_:nw=^M^J:sf=^J:ta=^I:up=^N:
10192
10193# If you're using the GNU termcap library, add
10194#	:cS=\E[%p1%d;%p2%d;%p3%d;%p4%dp:
10195# to these capabilities.  This is the nonstandard GNU termcap scrolling
10196# capability, arguments are:
10197#   1. Total number of lines on the screen.
10198#   2. Number of lines above desired scroll region.
10199#   3. Number of lines below (outside of) desired scroll region.
10200#   4. Total number of lines on the screen, the same as the first parameter.
10201# The generic Ann Arbor entry is the only one that uses this.
10202# (sgr removed to fit entry within 1023 bytes)
10203# (terminfo-only capabilities suppressed to fit entry within 1023 bytes)
10204aaa+unk|aaa-unk|ann arbor ambassador (internal - don't use this directly):\
10205	:am:bs:km:mi:xo:\
10206	:co#80:it#8:\
10207	:AL=\E[%dL:DC=\E[%dP:DL=\E[%dM:DO=\E[%dB:IC=4*\E[%d@:\
10208	:LE=\E[%dD:RI=\E[%dC:UP=\E[%dA:al=3\E[L:bl=^G:bt=\E[Z:\
10209	:cd=\E[J:ce=5\E[K:cl=156\E[H\E[J:cm=\E[%i%d;%dH:cr=^M:\
10210	:ct=\E[3g:dc=\E[P:dl=\E[M:do=^K:ei=:ho=\E[H:\
10211	:i1=\E[m\E7\E[H\E9\E8:i2=\E[1Q\E[>20;30l\EP`+x~M\E\\:\
10212	:ic=4\E[@:im=:k1=\EOA:k2=\EOB:k3=\EOC:k4=\EOD:k5=\EOE:\
10213	:k6=\EOF:k7=\EOG:k8=\EOH:k9=\EOI:kD=\E[P:kI=\E[@:kb=^H:\
10214	:kd=\E[B:\
10215	:ke=\EP`>y~[[J`8xy~[[A`4xy~[[D`6xy~[[C`2xy~[[B\E\\:\
10216	:kh=\E[H:kl=\E[D:kr=\E[C:\
10217	:ks=\EP`>z~[[J`8xz~[[A`4xz~[[D`6xz~[[C`2xz~[[B\E\\:\
10218	:ku=\E[A:le=^H:mb=\E[5m:md=\E[1m:me=\E[m:mm=\E[>52h:\
10219	:mo=\E[>52l:mr=\E[7m:nd=\E[C:rc=\E8:sc=\E7:se=\E[m:sf=^K:\
10220	:so=\E[7m:st=\EH:ta=^I:ue=\E[m:up=\E[A:us=\E[4m:
10221
10222aaa+rv|ann arbor ambassador in reverse video:\
10223	:i1=\E[7m\E7\E[H\E9\E8:mb=\E[5;7m:md=\E[1;7m:\
10224	:me=\E[7m\016:mk=\E[7;8m:mr=\E[m:r1=156\E[H\E[7m\E[J:\
10225	:se=\E[7m:so=\E[m:ue=\E[7m:us=\E[4;7m:
10226# Ambassador with the DEC option, for partial vt100 compatibility.
10227aaa+dec|ann arbor ambassador in dec vt100 mode:\
10228	:ac=aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}:\
10229	:ae=^N:as=^O:cs=\E[%i%d;%dr:eA=\E(0:
10230aaa-18|ann arbor ambassador/18 lines:\
10231	:li#18:\
10232	:is=\E7\E[60;0;0;18p\E8:te=\E[60;0;0;18p\E[60;1H\E[K:\
10233	:ti=\E[18;0;0;18p:tc=aaa+unk:
10234aaa-18-rv|ann arbor ambassador/18 lines+reverse video:\
10235	:tc=aaa+rv:tc=aaa-18:
10236aaa-20|ann arbor ambassador/20 lines:\
10237	:li#20:\
10238	:is=\E7\E[60;0;0;20p\E8:te=\E[60;0;0;20p\E[60;1H\E[K:\
10239	:ti=\E[20;0;0;20p:tc=aaa+unk:
10240aaa-22|ann arbor ambassador/22 lines:\
10241	:li#22:\
10242	:is=\E7\E[60;0;0;22p\E8:te=\E[60;0;0;22p\E[60;1H\E[K:\
10243	:ti=\E[22;0;0;22p:tc=aaa+unk:
10244aaa-24|ann arbor ambassador/24 lines:\
10245	:li#24:\
10246	:is=\E7\E[60;0;0;24p\E8:te=\E[60;0;0;24p\E[60;1H\E[K:\
10247	:ti=\E[24;0;0;24p:tc=aaa+unk:
10248aaa-24-rv|ann arbor ambassador/24 lines+reverse video:\
10249	:tc=aaa+rv:tc=aaa-24:
10250aaa-26|ann arbor ambassador/26 lines:\
10251	:li#26:\
10252	:is=\E7\E[60;0;0;26p\E8:te=\E[60;0;0;26p\E[26;1H\E[K:\
10253	:ti=\E[H\E[J\E[26;0;0;26p:tc=aaa+unk:
10254aaa-28|ann arbor ambassador/28 lines:\
10255	:li#28:\
10256	:is=\E7\E[60;0;0;28p\E8:te=\E[60;0;0;28p\E[28;1H\E[K:\
10257	:ti=\E[H\E[J\E[28;0;0;28p:tc=aaa+unk:
10258aaa-30-s|aaa-s|ann arbor ambassador/30 lines w/status:\
10259	:es:hs:\
10260	:li#29:\
10261	:ds=\E7\E[60;0;0;30p\E[1;1H\E[K\E[H\E8\r\n\E[K:\
10262	:fs=\E[>51l:is=\r\n\E[A\E7\E[60;1;0;30p\E8:\
10263	:te=\E[60;1;0;30p\E[29;1H\E[K:\
10264	:ti=\E[H\E[J\E[30;1;0;30p\E[30;1H\E[K:\
10265	:ts=\E[>51h\E[1;%dH\E[2K:tc=aaa+unk:
10266aaa-30-s-rv|aaa-s-rv|ann arbor ambassador/30 lines+status+reverse video:\
10267	:tc=aaa+rv:tc=aaa-30-s:
10268aaa-s-ctxt|aaa-30-s-ctxt|ann arbor ambassador/30 lines+status+save context:\
10269	:te=\E[60;1;0;30p\E[59;1H\E[K:\
10270	:ti=\E[30;1H\E[K\E[30;1;0;30p:tc=aaa-30-s:
10271aaa-s-rv-ctxt|aaa-30-s-rv-ct|ann arbor ambassador/30 lines+status+save context+reverse video:\
10272	:te=\E[60;1;0;30p\E[59;1H\E[K:\
10273	:ti=\E[30;1H\E[K\E[30;1;0;30p:tc=aaa-30-s-rv:
10274aaa|aaa-30|ambas|ambassador|ann arbor ambassador/30 lines:\
10275	:li#30:\
10276	:is=\E7\E[60;0;0;30p\E8:te=\E[60;0;0;30p\E[30;1H\E[K:\
10277	:ti=\E[H\E[J\E[30;0;0;30p:tc=aaa+unk:
10278aaa-30-rv|aaa-rv|ann arbor ambassador/30 lines in reverse video:\
10279	:tc=aaa+rv:tc=aaa-30:
10280aaa-30-ctxt|aaa-ctxt|ann arbor ambassador/30 lines; saving context:\
10281	:te=\E[60;0;0;30p\E[60;1H\E[K:ti=\E[30;0;0;30p:\
10282	:tc=aaa-30:
10283aaa-30-rv-ctxt|aaa-rv-ctxt|ann arbor ambassador/30 lines reverse video; saving context:\
10284	:te=\E[60;0;0;30p\E[60;1H\E[K:ti=\E[30;0;0;30p:\
10285	:tc=aaa+rv:tc=aaa-30:
10286aaa-36|ann arbor ambassador/36 lines:\
10287	:li#36:\
10288	:is=\E7\E[60;0;0;36p\E8:te=\E[60;0;0;36p\E[36;1H\E[K:\
10289	:ti=\E[H\E[J\E[36;0;0;36p:tc=aaa+unk:
10290aaa-36-rv|ann arbor ambassador/36 lines+reverse video:\
10291	:tc=aaa+rv:tc=aaa-36:
10292aaa-40|ann arbor ambassador/40 lines:\
10293	:li#40:\
10294	:is=\E7\E[60;0;0;40p\E8:te=\E[60;0;0;40p\E[40;1H\E[K:\
10295	:ti=\E[H\E[J\E[40;0;0;40p:tc=aaa+unk:
10296aaa-40-rv|ann arbor ambassador/40 lines+reverse video:\
10297	:tc=aaa+rv:tc=aaa-40:
10298aaa-48|ann arbor ambassador/48 lines:\
10299	:li#48:\
10300	:is=\E7\E[60;0;0;48p\E8:te=\E[60;0;0;48p\E[48;1H\E[K:\
10301	:ti=\E[H\E[J\E[48;0;0;48p:tc=aaa+unk:
10302aaa-48-rv|ann arbor ambassador/48 lines+reverse video:\
10303	:tc=aaa+rv:tc=aaa-48:
10304aaa-60-s|ann arbor ambassador/59 lines+status:\
10305	:es:hs:\
10306	:li#59:\
10307	:ds=\E7\E[60;0;0;60p\E[1;1H\E[K\E[H\E8\r\n\E[K:\
10308	:fs=\E[>51l:is=\r\n\E[A\E7\E[60;1;0;60p\E8:\
10309	:ts=\E[>51h\E[1;%dH\E[2K:tc=aaa+unk:
10310aaa-60-s-rv|ann arbor ambassador/59 lines+status+reverse video:\
10311	:tc=aaa+rv:tc=aaa-60-s:
10312aaa-60-dec-rv|ann arbor ambassador/dec mode+59 lines+status+rev video:\
10313	:tc=aaa+dec:tc=aaa+rv:tc=aaa-60-s:
10314aaa-60|ann arbor ambassador/60 lines:\
10315	:li#60:\
10316	:is=\E7\E[60;0;0;60p\E[1Q\E[m\E[>20;30l\E8:tc=aaa+unk:
10317aaa-60-rv|ann arbor ambassador/60 lines+reverse video:\
10318	:tc=aaa+rv:tc=aaa-60:
10319aaa-db|ann arbor ambassador 30/destructive backspace:\
10320	:bs@:\
10321	:i2=\E[1Q\E[m\E[>20l\E[>30h:le=\E[D:tc=aaa-30:
10322
10323guru|guru-33|guru+unk|ann arbor guru/33 lines 80 cols:\
10324	:li#33:\
10325	:i2=\E[>59l:is=\E7\E[255;0;0;33;80;80p\E8\E[J:\
10326	:te=\E[255p\E[255;1H\E[K:ti=\E[33p:vb=\E[>59h\E[>59l:\
10327	:tc=aaa+unk:
10328guru+rv|guru changes for reverse video:\
10329	:i2=\E[>59h:vb=\E[>59l\E[>59h:
10330guru-rv|guru-33-rv|ann arbor guru/33 lines+reverse video:\
10331	:tc=guru+rv:tc=guru-33:
10332guru+s|guru status line:\
10333	:es:hs:\
10334	:ds=\E7\E[;0p\E[1;1H\E[K\E[H\E8\r\n\E[K:fs=\E[>51l:\
10335	:te=\E[255;1p\E[255;1H\E[K:ti=:ts=\E[>51h\E[1;%dH\E[2K:
10336guru-nctxt|guru with no saved context:\
10337	:ti=\E[H\E[J\E[33p\E[255;1H\E[K:tc=guru:
10338guru-s|guru-33-s|ann arbor guru/33 lines+status:\
10339	:li#32:\
10340	:is=\r\n\E[A\E7\E[255;1;0;33;80;80p\E8\E[J:\
10341	:ti=\E[33;1p\E[255;1H\E[K:tc=guru+s:tc=guru+unk:
10342guru-24|ann arbor guru 24 lines:\
10343	:co#80:li#24:\
10344	:is=\E7\E[255;0;0;24;80;80p\E8\E[J:ti=\E[24p:\
10345	:tc=guru+unk:
10346guru-44|ann arbor guru 44 lines:\
10347	:co#97:li#44:\
10348	:is=\E7\E[255;0;0;44;97;100p\E8\E[J:ti=\E[44p:\
10349	:tc=guru+unk:
10350guru-44-s|ann arbor guru/44 lines+status:\
10351	:li#43:\
10352	:is=\r\n\E[A\E7\E[255;1;0;44;80;80p\E8\E[J:\
10353	:ti=\E[44;1p\E[255;1H\E[K:tc=guru+s:tc=guru+unk:
10354guru-76|guru with 76 lines by 89 cols:\
10355	:co#89:li#76:\
10356	:is=\E7\E[255;0;0;76;89;100p\E8\E[J:ti=\E[76p:\
10357	:tc=guru+unk:
10358guru-76-s|ann arbor guru/76 lines+status:\
10359	:co#89:li#75:\
10360	:is=\r\n\E[A\E7\E[255;1;0;76;89;100p\E8\E[J:\
10361	:ti=\E[76;1p\E[255;1H\E[K:tc=guru+s:tc=guru+unk:
10362guru-76-lp|guru-lp|guru with page bigger than line printer:\
10363	:co#134:li#76:\
10364	:is=\E7\E[255;0;0;76;134;134p\E8\E[J:ti=\E[76p:\
10365	:tc=guru+unk:
10366guru-76-w|guru 76 lines by 178 cols:\
10367	:co#178:li#76:\
10368	:is=\E7\E[255;0;0;76;178;178p\E8\E[J:ti=\E[76p:\
10369	:tc=guru+unk:
10370guru-76-w-s|ann arbor guru/76 lines+status+wide:\
10371	:co#178:li#75:\
10372	:is=\r\n\E[A\E7\E[255;1;0;76;178;178p\E8\E[J:\
10373	:ti=\E[76;1p\E[255;1H\E[K:tc=guru+s:tc=guru+unk:
10374guru-76-wm|guru 76 lines by 178 cols with 255 cols memory:\
10375	:co#178:li#76:\
10376	:is=\E7\E[255;0;0;76;178;255p\E8\E[J:ti=\E[76p:\
10377	:tc=guru+unk:
10378aaa-rv-unk|ann arbor unknown type:\
10379	:Nl#0:lh#0:lw#0:\
10380	:ho=\E[H:i1=\E[7m\E7\E[H\E9\E8:mb=\E[5;7m:md=\E[1;7m:\
10381	:me=\E[7m:mk=\E[7;8m:mr=\E[m:r1=\E[H\E[7m\E[J:se=\E[7m:\
10382	:so=\E[m:ue=\E[7m:us=\E[4;7m:
10383
10384#### Applied Digital Data Systems (adds)
10385#
10386# ADDS itself is long gone.  ADDS was bought by NCR, and the same group made
10387# ADDS and NCR terminals.  When AT&T and NCR merged, the engineering for
10388# terminals was merged again.  Then AT&T sold the terminal business to
10389# SunRiver, which later changed its  name to Boundless Technologies.  The
10390# engineers from Teletype, AT&T terminals, ADDS, and NCR (who are still there
10391# as of early 1995) are at:
10392#
10393#	Boundless Technologies
10394#	100 Marcus Boulevard
10395#	Hauppauge, NY 11788-3762
10396#	Vox: (800)-231-5445
10397#	Fax: (516)-342-7378
10398#	Web: http://boundless.com
10399#
10400# Their voice mail used to describe the place as "SunRiver (formerly ADDS)".
10401# In 1995 Boundless acquired DEC's terminals business.
10402#
10403
10404# Regent: lowest common denominator, works on all regents.
10405# (regent: renamed ":bc:" to ":le:" -- esr)
10406regent|Adds Regent Series:\
10407	:am:bs:\
10408	:co#80:li#24:\
10409	:bl=^G:cl=^L:cr=^M:do=^J:ho=\EY\040\040:le=^U:ll=^A:nd=^F:\
10410	:sf=^J:up=^Z:
10411# Regent 100 has a bug where if computer sends escape when user is holding
10412# down shift key it gets confused, so we avoid escape.
10413regent100|Adds Regent 100:\
10414	:sg#1:ug#1:\
10415	:bl=^G:cm=\013%+ \020%B%.:k0=^B1\r:k1=^B2\r:k2=^B3\r:\
10416	:k3=^B4\r:k4=^B5\r:k5=^B6\r:k6=^B7\r:k7=^B8\r:l0=F1:l1=F2:\
10417	:l2=F3:l3=F4:l4=F5:l5=F6:l6=F7:l7=F8:me=\E0@:se=\E0@:so=\E0P:\
10418	:ue=\E0@:us=\E0`:tc=regent:
10419regent20|Adds Regent 20:\
10420	:bl=^G:cd=\Ek:ce=\EK:cm=\EY%+ %+ :tc=regent:
10421regent25|Adds Regent 25:\
10422	:bl=^G:kd=^J:kh=^A:kl=^U:kr=^F:ku=^Z:tc=regent20:
10423regent40|Adds Regent 40:\
10424	:sg#1:ug#1:\
10425	:al=2*\EM:bl=^G:dl=2*\El:k0=^B1\r:k1=^B2\r:k2=^B3\r:\
10426	:k3=^B4\r:k4=^B5\r:k5=^B6\r:k6=^B7\r:k7=^B8\r:l0=F1:l1=F2:\
10427	:l2=F3:l3=F4:l4=F5:l5=F6:l6=F7:l7=F8:me=\E0@:se=\E0@:so=\E0P:\
10428	:ue=\E0@:us=\E0`:tc=regent25:
10429regent40+|Adds Regent 40+:\
10430	:is=\EB:tc=regent40:
10431regent60|regent200|Adds Regent 60:\
10432	:dc=\EE:ei=\EF:im=\EF:is=\EV\EB:kD=\EE:kI=\EF:kM=\EF:\
10433	:se=\ER\E0@\EV:so=\ER\E0P\EV:tc=regent40+:
10434# From: <edward@onyx.berkeley.edu> Thu Jul  9 09:27:33 1981
10435# (viewpoint: added :kr:, function key, and :dl: capabilities -- esr)
10436viewpoint|addsviewpoint|adds viewpoint:\
10437	:am:bs:\
10438	:co#80:li#24:\
10439	:bl=^G:cd=16.1*\Ek:ce=16\EK:cl=^L:cm=\EY%+ %+ :cr=^M:\
10440	:dl=\El:do=^J:is=\017\E0`:k0=^B1:k2=^B2:k3=^B!:k4=^B":\
10441	:k5=^B#:kd=^J:kh=^A:kl=^U:kr=^F:ku=^Z:le=^H:ll=^A:me=^O:nd=^F:\
10442	:se=^O:sf=^J:so=^N:ue=^O:up=^Z:us=^N:ve=\017\E0`:\
10443	:vs=\017\E0P:
10444# Some viewpoints have bad ROMs that foo up on ^O
10445screwpoint|adds viewpoint with ^O bug:\
10446	:se@:so@:ue@:us@:vs@:tc=viewpoint:
10447
10448# From: Jay S. Rouman <jsr@dexter.mi.org> 5 Jul 92
10449# The :vi:/:ve:/:sa:/:me: strings were added by ESR from specs.
10450# Theory; the vp3a+ wants \E0%c to set highlights, where normal=01000000,
10451# underline=01100000, rev=01010000, blink=01000010,dim=01000001,
10452# invis=01000100 and %c is the logical or of desired attributes.
10453# There is also a `tag bit' enabling attributes, set by \E) and unset by \E(.
10454#
10455# Update by TD - 2004:
10456# Adapted from
10457#	http://www.cs.utk.edu/~shuford/terminal/adds_viewpoint_news.txt
10458#
10459# COMMANDS                        ASCII CODE
10460#
10461# Address, Absolute               ESC,=,row,column
10462# Beep                            BEL
10463# Aux Port Enable                 ESC,@
10464# Aux Port Disable                ESC,A
10465# Backspace                       BS
10466# Cursor back                     BS
10467# Cursor down                     LF
10468# Cursor forward                  FF
10469# Cursor home                     RS
10470# Cursor up                       VT
10471# Cursor supress                  ETB
10472# Cursor enable                   CAN
10473# Erase to end of line            ESC,T
10474# Erase to end of page            ESC,Y
10475# Erase screen                    SUB
10476# Keyboard lock                   SI
10477# Keyboard unlock                 SO
10478# Read current cursor position    ESC,?
10479# Set Attribute                   ESC,0,x  (see below for values of x)
10480# Tag bit reset                   ESC,(
10481# Tag bit set                     ESC,)
10482# Transparent Print on            ESC,3
10483# Transparent Print off           ESC,4
10484#
10485#
10486# ATTRIBUTES
10487#
10488# Normal                          @	0100
10489# Half Intensity                  A	0101
10490# Blinking                        B	0102
10491# Half Intensity Blinking         C	0103
10492# Reverse Video                   P	0120
10493# Reverse Video Half Intensity    Q	0121
10494# Reverse Video Blinking          R	0122
10495# Reverse Video Half Intensity
10496#    Blinking                     S	0123
10497# Underlined                      `	0140
10498# Underlined Half Intensity       a	0141
10499# Underlined Blinking             b	0142
10500# Underlined Half Intensity
10501#    Blinking                     c	0143
10502# Video suppress                  D	0104
10503vp3a+|viewpoint3a+|adds viewpoint 3a+:\
10504	:am:bw:\
10505	:co#80:it#8:li#24:\
10506	:cd=80\EY:ce=\ET:cl=80\E*:cm=\E=%+ %+ :cr=^M:do=^J:ho=^^:\
10507	:kb=^H:kd=^J:kh=^^:kl=^H:kr=^L:ku=^K:le=^H:mb=\E0B\E):me=\E(:\
10508	:mh=\E0A\E):mk=\E0D\E):mr=\E0P\E):nd=^L:nw=^M^J:se=\E(:\
10509	:sf=^J:so=\E0Q\E):ta=^I:up=^K:us=\E0`\E):ve=^X:vi=^W:
10510vp60|viewpoint60|addsvp60|adds viewpoint60:\
10511	:tc=regent40:
10512#
10513# adds viewpoint 90 - from cornell
10514# Note:  emacs sends ei occasionally to insure the terminal is out of
10515#        insert mode. This unfortunately puts the viewpoint90 IN insert
10516#        mode.  A hack to get around this is :ic=\EF\s\EF^U:.  (Also,
10517#   -    :ei=:im=: must be present in the termcap translation.)
10518#   -    :xs: indicates glitch that attributes stick to location
10519#   -    :ms: means it's safe to move in standout mode
10520#   -    :cl=\EG\Ek:: clears screen and visual attributes without affecting
10521#               the status line
10522# Function key and label capabilities merged in from SCO.
10523vp90|viewpoint90|adds viewpoint 90:\
10524	:bs:bw:ms:xs:\
10525	:co#80:li#24:\
10526	:cd=\Ek:ce=\EK:cl=\EG\Ek:cm=\EY%+ %+ :dc=\EE:dl=\El:do=^J:\
10527	:ei=:ho=\EY\040\040:ic=\EF \EF\025:im=:k0=^B1\r:k1=^B2\r:\
10528	:k2=^B3\r:k3=^B4\r:k4=^B5\r:k5=^B6\r:k6=^B7\r:k7=^B8\r:\
10529	:k8=^B9\r:k9=^B\072\r:k;=^B;\r:kb=^H:kd=^J:kh=^A:kl=^U:\
10530	:kr=^F:ku=^Z:l0=F1:l1=F2:l2=F3:l3=F4:l4=F5:l5=F6:l6=F7:l7=F8:\
10531	:l8=F9:l9=F10:la=F11:le=^H:ll=^A:me=\ER\E0@\EV:nd=^F:\
10532	:se=\ER\E0@\EV:sf=^J:so=\ER\E0Q\EV:ta=^I:ue=\ER\E0@\EV:\
10533	:up=^Z:us=\ER\E0`\EV:
10534# Note: if return acts weird on a980, check internal switch #2
10535# on the top chip on the CONTROL pc board.
10536adds980|a980|adds consul 980:\
10537	:am:bs:\
10538	:co#80:li#24:\
10539	:al=13\E\016:bl=^G:cl=\014\013@:cm=\013%+@\E\005%2:cr=^M:\
10540	:dl=13\E\017:do=^J:k0=\E0:k1=\E1:k2=\E2:k3=\E3:k4=\E4:\
10541	:k5=\E5:k6=\E6:k7=\E7:k8=\E8:k9=\E9:le=^H:me=^O:nd=\E^E01:\
10542	:se=^O:sf=^J:so=^Y^^^N:
10543
10544#### C. Itoh Electronics
10545#
10546# As of 1995 these people no longer make terminals (they're still in the
10547# printer business).  Their terminals were all clones of the DEC VT series.
10548# They're located in Orange County, CA.
10549#
10550
10551# CIT 80  - vt-52 emulator, the termcap has been modified to remove
10552#           the delay times and do an auto tab set rather than the indirect
10553#           file used in vt100.
10554cit80|cit-80|citoh 80:\
10555	:am:bs:\
10556	:co#80:li#24:\
10557	:cd=\EJ:ce=\EK:cl=\E[H\EJ:cm=\E[%i%2;%2H:cr=^M:do=\E[B:\
10558	:ff=^L:is=\E>:kd=\EOB:ke=\E[?1l\E>:kl=\EOD:kr=\EOC:\
10559	:ks=\E[?1h\E=:ku=\EOA:le=^H:nd=\E[C:sf=^J:up=\E[A:
10560# From: Tim Wood <mtxinu!sybase!tim> Fri Sep 27 09:39:12 PDT 1985
10561# (cit101: added <rmam>/<smam> based on init string, merged this with c101 -- esr)
10562cit101|citc|C.itoh fast vt100:\
10563	:am:bs:xn:\
10564	:co#80:li#24:\
10565	:RA=\E[?7l:SA=\E[?7h:al=\E[L:bl=^G:cd=\E[J:ce=\E[K:\
10566	:cl=\E[H\E[2J:cm=\E[%i%d;%dH:dc=\E[P:dl=\E[M:do=\E[B:ei=:\
10567	:ic=\E[@:im=:\
10568	:is=\E>\E[?3l\E[?4l\E[?5l\E[?7h\E[?8h\E[3g\E[>5g:\
10569	:kd=\EOB:ke=\E[?1l\E>:kl=\EOD:kr=\EOC:ks=\E[?1h\E=:\
10570	:ku=\EOA:le=^H:me=\E[m:nd=\E[C:se=\E[m:so=\E[7m:ue=\E[m:\
10571	:up=\E[A:us=\E[4m:vb=\E[?5h\E[?5l:ve=\E[V\E8:vs=\E7\E[U:
10572# CIE Terminals CIT-101e from Geoff Kuenning <callan!geoff> via BRL
10573# The following termcap entry was created from the Callan cd100 entry.  The
10574# last two lines (with the capabilities in caps) are used by RM-cobol to allow
10575# full selection of combinations of reverse video, underline, and blink.
10576# (cit101e: removed unknown :f0=\EOp:f1=\EOq:f2=\EOr:f3=\EOs:f4=\EOt:f5=\EOu:\
10577# f6=\EOv:f7=\EOw:f8=\EOx:f9=\EOy:AB=\E[0;5m:AL=\E[m:AR=\E[0;7m:AS=\E[0;5;7m:\
10578# :NB=\E[0;1;5m:NM=\E[0;1m:NR=\E[0;1;7m:NS=\E[0;1;5;7m: -- esr)
10579cit101e|C. Itoh CIT-101e:\
10580	:am:bs:mi:ms:pt:\
10581	:co#80:it#8:li#24:\
10582	:ac=:ae=^O:al=\E[L:as=^N:cd=\E[J:ce=\E[K:cl=\E[H\E[J:\
10583	:cm=\E[%i%2;%2H:cs=\E[%i%2;%2r:dc=\E[P:dl=\E[M:do=\E[B:\
10584	:ei=\E[4l:if=/usr/share/tabset/vt100:im=\E[4h:k0=\EOT:\
10585	:k1=\EOP:k2=\EOQ:k3=\EOR:k4=\EOS:k5=\EOm:k6=\EOl:k7=\EOM:\
10586	:k8=\EOn:kd=\E[B:ke=\E>:kl=\E[D:kr=\E[C:ks=\E=:ku=\E[A:\
10587	:le=\E[D:nd=\E[C:rc=\E8:sc=\E7:se=\E[m:so=\E[7m:sr=\EM:\
10588	:ue=\E[m:up=\E[A:us=\E[4m:ve=:vs=\E[?1l\E[?4l\E[?7h:
10589# From: David S. Lawyer, June 1997:
10590# The CIT 101-e was made in Japan in 1983-4 and imported by CIE
10591# Terminals in Irvine, CA.  It was part of CITOH Electronics.  In the
10592# late 1980's CIT Terminals went out of business.
10593# There is no need to use the initialization string is=... (by invoking
10594# tset or setterm etc.) provided that the terminal has been manually set
10595# up (and the setup saved with ^S) to be compatible with this termcap.  To be
10596# compatible it should be in ANSI mode (not VT52).   A set-up that
10597# works is to set all the manually setable stuff to factory defaults
10598# by pressing ^D in set-up mode.  Then increse the brighness with the
10599# up-arrow key since the factory default will likely be dim on an old
10600# terminal.  Then change any options you want (provided that they are
10601# compatible with the termcap).  For my terminal I set: Screen
10602# Background: light; Keyclicks: silent; Auto wraparound: on; CRT saver:
10603# on.  I also set up mine for parity (but you may not need it).  Then
10604# save the setup with ^S.
10605# (cit101e-rv: added empty :te: to suppress a tic warning. --esr)
10606cit101e-rv|Citoh CIT-101e (sets reverse video):\
10607	:am:eo:mi:ms:xn:xo:\
10608	:co#80:it#8:li#24:\
10609	:AL=\E[%dL:DC=\E[%dP:DL=\E[%dM:DO=\E[%dB:IC=\E[%d@:\
10610	:LE=\E[%dD:RI=\E[%dC:SF=\E[%dS:SR=\E[%dT:UP=\E[%dA:\
10611	:al=\E[L:bl=^G:bt=\E[Z:cd=\E[J:ce=\E[K:ch=\E[%i%dG:\
10612	:cl=\E[H\E[J:cm=\E[%i%d;%dH:cr=^M:cs=\E[%i%d;%dr:\
10613	:ct=\E[3g:dc=\E[P:dl=\E[M:do=\E[B:ei=\E[4l:ho=\E[H:ic=\E[@:\
10614	:im=\E[4h:\
10615	:is=\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:\
10616	:k1=\EOP:k2=\EOQ:k3=\EOR:k4=\EOS:kb=\177:kd=\E[B:kl=\E[D:\
10617	:kr=\E[C:ku=\E[A:le=^H:mb=\E[5m:md=\E[1m:me=\E[m:mr=\E[7m:\
10618	:nd=\E[C:nl=\EM:nw=\EE:r1=\Ec\E[?7h\E[>5g:rc=\E8:sc=\E7:\
10619	:se=\E[m:sf=^J:so=\E[7m:sr=\EM:st=\EH:ta=^I:te=:\
10620	:ti=\E[>5g\E[?7h\E[?5h:u6=\E[%i%d;%dR:u7=\E[6n:\
10621	:u8=\E[?6c:u9=\E[c:ue=\E[m:up=\E[A:us=\E[4m:\
10622	:vb=200\E[?5l\E[?5h:ve=\E[0;3;4v:vi=\E[1v:vs=\E[3;5v:
10623cit101e-n|CIT-101e w/o am:\
10624	:am@:\
10625	:kb=^H:kd=^J:kl=^H:vs=\E[?1l\E[?4l\E[?7l:tc=cit101e:
10626cit101e-132|CIT-101e with 132 cols:\
10627	:co#132:\
10628	:kb=^H:kd=^J:kl=^H:tc=cit101e:
10629cit101e-n132|CIT-101e with 132 cols w/o am:\
10630	:am@:\
10631	:co#132:\
10632	:kb=^H:kd=^J:kl=^H:vs=\E[?1l\E[?4l\E[?7l:tc=cit101e:
10633# CIE Terminals CIT-500 from BRL
10634# The following SET-UP modes are assumed for normal operation:
10635#	GENERATE_XON/XOFF:YES	DUPLEX:FULL		NEWLINE:OFF
10636#	AUTOWRAP:ON		MODE:ANSI		SCREEN_LENGTH:64_LINES
10637#	DSPLY_CNTRL_CODES?NO	PAGE_WIDTH:80		EDIT_MODE:OFF
10638# Other SET-UP modes may be set for operator convenience or communication
10639# requirements.
10640# Hardware tabs are assumed to be set every 8 columns; they can be set up
10641# by the "reset", "tset", or "tabs" utilities.  No delays are specified; use
10642# "stty ixon -ixany" to enable DC3/DC1 flow control!
10643# (cit500: I added <rmam>/<smam> based on the init string -- esr)
10644cit500|CIE Terminals CIT-500:\
10645	:bs:mi:ms:pt:xo:\
10646	:co#80:it#8:kn#10:li#64:vt#3:\
10647	:AL=\E[%dL:DL=\E[%dM:DO=\E[%dB:LE=\E[%dD:RA=\E[?7l:\
10648	:RI=\E[%dC:SA=\E[?7h:UP=\E[%dA:ac=:ae=^O:al=\E[L:as=^N:\
10649	:bl=^G:bt=\E[Z:cd=\EJ:ce=\EK:cl=\E[H\E[J:cm=\E[%i%d;%dH:\
10650	:cr=^M:cs=\E[%i%d;%dr:ct=\E[3g:dc=\E[P:dl=\E[M:do=^J:\
10651	:ei=\E[4l:ho=\E[H:im=\E[4h:is=\E<\E)0:k0=\EOP:k1=\EOQ:\
10652	:k2=\EOR:k3=\EOS:k4=\EOU:k5=\EOV:k6=\EOW:k7=\EOX:k8=\EOY:\
10653	:k9=\EOZ:kA=\E[L:kB=\E[Z:kD=\E[P:kE=\EK:kI=\E[4h:kL=\E[M:\
10654	:kM=\E[4l:kS=\EJ:kb=^H:kd=\EOB:ke=\E[?1l\E>:kh=\E[H:\
10655	:kl=\EOD:kr=\EOC:ks=\E[?1h\E=:ku=\EOA:l0=PF1:l1=PF2:l2=PF3:\
10656	:l3=PF4:l4=F15:l5=F16:l6=F17:l7=F18:l8=F19:l9=F20:le=^H:\
10657	:ll=\E[64H:mb=\E[5m:md=\E[1m:me=\E[m:mr=\E[7m:nd=\E[C:\
10658	:nw=\EE:\
10659	:r1=\E<\E2\E[20l\E[?6l\E[r\E[m\E[q\E(B\017\E)0\E>:\
10660	:rc=\E8:sc=\E7:se=\E[m:sf=^J:so=\E[7m:sr=\EM:st=\EH:ta=^I:\
10661	:ue=\E[m:up=\EM:us=\E[4m:
10662
10663# C. Itoh printers begin here
10664citoh|ci8510|8510|c.itoh 8510a:\
10665	:co#80:it#8:\
10666	:is=\E(009,017,025,033,041,049,057,065,073.:le@:md=\E!:\
10667	:me=\E"\EY:rp=\ER%r%3%.:sr=\Er:ue=\EY:us=\EX:tc=lpr:
10668citoh-pica|citoh in pica:\
10669	:i1=\EN:tc=citoh:
10670citoh-elite|citoh in elite:\
10671	:co#96:\
10672	:i1=\EE:\
10673	:is=\E(009,017,025,033,041,049,057,065,073,081,089.:\
10674	:tc=citoh:
10675citoh-comp|citoh in compressed:\
10676	:co#136:\
10677	:i1=\EQ:\
10678	:is=\E(009,017,025,033,041,049,057,065,073,081,089,097,105,113,121,129.:\
10679	:tc=citoh:
10680# citoh has infinite cols because we don't want lp ever inserting \n\t**.
10681citoh-prop|citoh-ps|ips|citoh in proportional spacing mode:\
10682	:co#32767:\
10683	:i1=\EP:tc=citoh:
10684citoh-6lpi|citoh in 6 lines per inch mode:\
10685	:i2=\EA:tc=citoh:
10686citoh-8lpi|citoh in 8 lines per inch mode:\
10687	:li#88:\
10688	:i2=\EB:tc=citoh:
10689
10690#### Control Data (cdc)
10691#
10692
10693cdc456|cdc 456 terminal:\
10694	:am:bs:\
10695	:co#80:li#24:\
10696	:al=\EL:bl=^G:cd=^X:ce=^V:cl=^Y^X:cm=\E1%+ %+ :cr=^M:dl=\EJ:\
10697	:do=^J:ho=^Y:le=^H:nd=^L:sf=^J:up=^Z:
10698
10699# Assorted CDC terminals from BRL (improvements by DAG & Ferd Brundick)
10700cdc721|CDC Viking:\
10701	:am:bs:\
10702	:co#80:li#24:\
10703	:ce=^K:cl=^L:cm=\002%r%+ %+ :ho=^Y:kd=^J:kh=^Y:kl=^H:kr=^I:\
10704	:ku=^W:nd=^X:up=^W:
10705cdc721ll|CDC Vikingll:\
10706	:am:bs:\
10707	:co#132:li#24:\
10708	:ce=^K:cl=^L:cm=\002%r%+ %+ :ho=^Y:kd=^J:kh=^Y:kl=^H:kr=^I:\
10709	:ku=^W:nd=^X:up=^W:
10710# (cdc752: the BRL entry had :ll=\E1  ^Z: commented out
10711cdc752|CDC 752:\
10712	:am:bs:bw:xs:\
10713	:co#80:li#24:\
10714	:bl=^G:ce=^V:cl=\030\E1\040\040:cm=\E1%r%+ %+ :cr=^M:\
10715	:do=^J:ho=\E1\040\040:le=^H:ll=^Y:nd=^U:\
10716	:r1=\E1  \030\002\003\017:sf=^J:up=^Z:
10717# CDC 756
10718# The following switch/key settings are assumed for normal operation:
10719#	96 chars	SCROLL		FULL duplex	not BLOCK
10720# Other switches may be set according to communication requirements.
10721# Insert/delete-character cannot be used, as the whole display is affected.
10722# "so" & "se" are commented out until jove handles "sg" correctly.
10723cdc756|CDC 756:\
10724	:am:bs:bw:\
10725	:co#80:kn#10:li#24:\
10726	:al=6*\EL:bl=^G:cd=^X:ce=^V:cl=^Y^X:cm=\E1%r%+ %+ :cr=^M:\
10727	:dl=6*\EJ:do=^J:ho=^Y:k0=\EA:k1=\EB:k2=\EC:k3=\ED:k4=\EE:\
10728	:k5=\EF:k6=\EG:k7=\EH:k8=\Ea:k9=\Eb:kA=\EL:kD=\EI:kE=^V:\
10729	:kI=\EK:kL=\EL:kS=^X:kT=^O:kb=^H:kd=^J:kh=^Y:kl=^H:kr=^U:\
10730	:ku=^Z:l0=F1:l1=F2:l2=F3:l3=F4:l4=F5:l5=F6:l6=F7:l7=F8:l8=F9:\
10731	:l9=F10:le=^H:ll=^Y^Z:nd=^U:r1=\031\030\002\003\017:sf=^J:\
10732	:up=^Z:
10733#
10734# CDC 721 from Robert Viduya, Ga. Tech. <ihnp4!gatech!gitpyr!robert> via BRL.
10735#
10736# Part of the long initialization string defines the "DOWN" key to the left
10737# of the tab key to send an ESC.  The real ESC key is positioned way out
10738# in right field.
10739#
10740# The termcap won't work in 132 column mode due to the way it it moves the
10741# cursor.  Termcap doesn't have the capability (as far as I could tell) to
10742# handle the 721 in 132 column mode.
10743#
10744# (cdc721: changed :ri: to :sr: -- esr)
10745cdc721-esc|Control Data 721:\
10746	:am:bs:bw:ms:pt:xo:\
10747	:co#80:it#8:kn#10:li#30:\
10748	:al=^^R:bl=^G:bt=^^^K:cd=^^P:ce=^K:cl=^L:cm=\002%r%+ %+ :\
10749	:ct=^^^RY:dc=^^N:dl=^^Q:do=^Z:ei=:ho=^Y:ic=^^O:im=:\
10750	:is=\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\136\036\022b\036\022i\036W =\036\022Z\036\011C1-` `!k/o:\
10751	:k0=^^q:k1=^^r:k2=^^s:k3=^^t:k4=^^u:k5=^^v:k6=^^w:k7=^^x:\
10752	:k8=^^y:k9=^^z:kb=^H:kd=^Z:ke=^^^Rl:kh=^Y:kl=^H:kr=^X:\
10753	:ks=^^^Rk:ku=^W:le=^H:ll=^B =:mb=^N:\
10754	:me=\017\025\035\036E\036\022\\:mh=^\:mk=^^^R[:mr=^^D:\
10755	:nd=^X:se=^^E:sf=\036W =\036U:so=^^D:sr=\036W =\036V:\
10756	:st=^^^RW:ue=^]:up=^W:us=^\:
10757
10758#### Getronics
10759#
10760# Getronics is a Dutch electronics company that at one time was called
10761# `Geveke' and made async terminals; but (according to the company itself!)
10762# they've lost all their documentation on the command set.  The hardware
10763# documentation suggests the terminals were actually manufactured by a
10764# Taiwanese electronics company named Cal-Comp.  There are known
10765# to have been at least two models, the 33 and the 50.
10766#
10767
10768# The 50 seems to be a top end vt220 clone, with the addition of a higher
10769# screen resolution, a larger screen, at least 1 page of memory above and
10770# below the screen, apparently pages of memory right and left of the screen
10771# which can be panned, and about 75 function keys (15 function keys x normal,
10772# shift, control, func A, func B). It also has more setup possibilities than
10773# the vt220. The monitor case is dated November 1978 and the keyboard case is
10774# May 1982.
10775#
10776# The vt100 emulation works as is.  The entry below describes the rather
10777# non-conformant (but more featureful) ANSI mode.
10778#
10779# From: Stephen Peterson <stv@utrecht.ow.nl>, 27 May 1995
10780# (acsc removed to fit entry within 1023 bytes)
10781visa50|geveke visa 50 terminal in ansi 80 character mode:\
10782	:bw:mi:ms:\
10783	:co#80:li#25:\
10784	:AL=\E[%dL:DC=\E[%dX:DL=\E[%dM:DO=\E[%dB:IC=\E[%d@:\
10785	:K1=\E[f:K2=\EOP:K3=\EOQ:K4=\EOR:K5=\EOS:LE=\E[%dD:\
10786	:RA=\E[?7l:RI=\E[%dC:SA=\E?7h:UP=\E[%dA:ae=\E[3l:al=\E[L:\
10787	:as=\E3h:bl=^G:bt=\E[Z:cd=\E[J:ce=\E[K:ch=\E[%i%dG:\
10788	:cl=\E[H\E[2J:cm=\E[%i%d;%dH:cr=^M:cs=\E[%i%d;%dr:\
10789	:ct=\E[3g:cv=\E[%i%dd:dc=\E[X:dl=\E[M:do=\E[B:ei=\E[4l:\
10790	:ho=\E[H:ic=\E[@:im=\E[4h:\
10791	:is=\E0;2m\E[1;25r\E[25;1H\E[?3l\E[?7h\E[?8h:k0=\E010:\
10792	:k1=\E001:k2=\E002:k3=\E003:k4=\E004:k5=\E005:k6=\E006:\
10793	:k7=\E007:k8=\E008:k9=\E009:k;=\E011:kD=\177:kL=\EOS:kb=^H:\
10794	:kd=\E[A:ke=\E>:kh=\E[f:kl=\E[D:kr=\E[C:ks=\E=:ku=\E[A:\
10795	:l2=A delete char:l3=A insert line:l4=A delete line:\
10796	:l5=A clear:l6=A ce of/cf gn:l7=A print:l8=A on-line:\
10797	:l9=A funcl0=A send:le=\E[D:mb=\E[5m:md=\E[1m:me=\E[0;2m:\
10798	:mh=\E[2m:mk=\E[8m:mr=\E[7m:nd=\E[C:nw=^M^J:se=\E[0;2m:\
10799	:sf=^J:so=\E[2;7m:ta=^I:ue=\E[0m:up=\E[A:us=\E[4m:\
10800	:vb=\E[?5h\E[?5l:
10801
10802#### Human Designed Systems (Concept)
10803#
10804#	Human Designed Systems
10805#	400 Fehley Drive
10806#	King of Prussia, PA 19406
10807#	Vox: (610)-277-8300
10808#	Fax: (610)-275-5739
10809#	Net: support@hds.com
10810#
10811# John Martin <john@hds.com> is their termcap expert.  They're mostly out of
10812# the character-terminal business now (1995) and making X terminals.  In
10813# particular, the whole `Concept' line described here was discontinued long
10814# ago.
10815#
10816
10817# From: <vax135!hpk>  Sat Jun 27 07:41:20 1981
10818# Extensive changes to c108 by arpavax:eric Feb 1982
10819# Some unknown person at SCO then translated it to terminfo.
10820#
10821# There seem to be a number of different versions of the C108 PROMS
10822# (with bug fixes in its Z-80 program).
10823#
10824# The first one that we had would lock out the keyboard of you
10825# sent lots of short lines (like /usr/dict/words) at 9600 baud.
10826# Try that on your C108 and see if it sends a ^S when you type it.
10827# If so, you have an old version of the PROMs.
10828#
10829# You should configure the C108 to send ^S/^Q before running this.
10830# It is much faster (at 9600 baud) than the c100 because the delays
10831# are not fixed.
10832# new status line display entries for c108-8p:
10833# :i3: - init str #3 - setup term for status display -
10834# set programmer mode, select window 2, define window at last
10835# line of memory, set bkgnd stat mesg there, select window 0.
10836#
10837# :ts: - to status line - select window 2, home cursor, erase to
10838# end-of-window, 1/2 bright on, goto(line#0, col#?)
10839#
10840# :fs: - from status line - 1/2 bright off, select window 0
10841#
10842# :ds: - disable status display - set bkgnd status mesg with
10843# illegal window #
10844#
10845# There are probably more function keys that should be added but
10846# I don't know what they are.
10847#
10848# No delays needed on c108 because of ^S/^Q handshaking
10849#
10850c108|concept108|c108-8p|concept108-8p|concept 108 w/8 pages:\
10851	:i2=\EU\E z"\Ev\001\177 !p\E ;"\E z \Ev  \001\177p\Ep\n:\
10852	:te=\Ev  \001\177p\Ep\r\n:tc=c108-4p:
10853c108-4p|concept108-4p|concept 108 w/4 pages:\
10854	:bs:es:hs:xo:\
10855	:pb@:\
10856	:ac=jEkTl\\mMqLxU:ae=\Ej\040:as=\Ej!:cr=^M:dc=16*\E 1:\
10857	:ds=\E ;\177:fs=\Ee\E z\040:i1=\EK\E!\E F:\
10858	:i2=\EU\E z"\Ev\177 !p\E ;"\E z \Ev  \001 p\Ep\n:\
10859	:sf=^J:te=\Ev  \001 p\Ep\r\n:ti=\EU\Ev  8p\Ep\r\E\025:\
10860	:ve=\Ew:vs=\EW:tc=c100:
10861c108-rv|c108-rv-8p|concept 108 w/8 pages in reverse video:\
10862	:te=\Ev  \002 p\Ep\r\n:ti=\EU\Ev  8p\Ep\r:\
10863	:tc=c108-rv-4p:
10864c108-rv-4p|concept108rv4p|concept 108 w/4 pages in reverse video:\
10865	:i1=\Ek:se=\Ee:so=\EE:vb=\EK\Ek:tc=c108-4p:
10866c108-w|c108-w-8p|concept108-w-8|concept108-w8p|concept 108 w/8 pages in wide mode:\
10867	:co#132:\
10868	:i1=\E F\E":te=\Ev  ^A0\001D\Ep\r\n:\
10869	:ti=\EU\Ev  8\001D\Ep\r:tc=c108-8p:
10870
10871# Concept 100:
10872# These have only window relative cursor addressing, not screen
10873# relative. To get it to work right here, smcup/rmcup (which
10874# were invented for the concept) lock you into a one page
10875# window for screen style programs.
10876#
10877# To get out of the one page window, we use a clever trick:
10878# we set the window size to zero ("\Ev    " in rmcup) which the
10879# terminal recognizes as an error and resets the window to all
10880# of memory.
10881#
10882# This trick works on c100 but does not on c108, sigh.
10883#
10884# Some tty drivers use cr3 for concept, others use nl3, hence
10885# the delays on cr and ind below. This padding is only needed at
10886# 9600 baud and up.  One or the other is commented out depending on
10887# local conventions.
10888#
10889# 2 ms padding on :te: isn't always enough. 6 works fine. Maybe
10890# less than 6 but more than 2 will work.
10891#
10892# Note: can't use function keys f7-f10 because they are
10893# indistinguishable from arrow keys (!), also, del char and
10894# clear eol use xon/xoff so they probably won't work very well.
10895#
10896# Also note that we don't define insrt/del char/delline/eop/send
10897# because they don't transmit unless we reset them - I figured
10898# it was a bad idea to clobber their definitions.
10899#
10900# The <mc5> sequence changes the escape character to ^^ so that
10901# escapes will be passed through to the printer. Only trouble
10902# is that ^^ won't be - ^^ was chosen to be unlikely.
10903# Unfortunately, if you're sending raster bits through to be
10904# plotted, any character you choose will be likely, so we lose.
10905#
10906# \EQ"\EY(^W (send anything from printer to host, for xon/xoff)
10907# cannot be # in is2 because it will hang a c100 with no printer
10908# if sent twice.
10909c100|concept100|concept|c104|c100-4p|hds concept 100:\
10910	:am:bs:eo:mi:ul:xn:\
10911	:co#80:li#24:pb#9600:vt#8:\
10912	:al=3*\E\022:bl=^G:cd=16*\E\005:ce=16\E\025:\
10913	:cl=2*\E?\E\005:cm=\Ea%+ %+ :cr=\r:dc=16*\E\021:\
10914	:dl=3*\E\002:do=^J:ei=\E\040\040:i1=\EK:i2=\Ev    \Ep\n:\
10915	:im=\E^P:ip=16*:\
10916	:is=\EU\Ef\E7\E5\E8\El\ENH\E\200\Eo&\200\Eo'\E\Eo!\200\E\007!\E\010A@ \E4#\072"\E\072a\E4#;"\E\072b\E4#<"\E\072c:\
10917	:k1=\E5:k2=\E6:k3=\E7:k4=\E8:k5=\E9:k6=\E\072a:k7=\E\072b:\
10918	:k8=\E\072c:kA=\E^R:kB=\E':kD=\E^Q:kE=\E^S:kF=\E[:kI=\E^P:\
10919	:kL=\E^B:kM=\E\200:kN=\E-:kP=\E.:kR=\E\\:kS=\E^C:kT=\E]:\
10920	:kb=^H:kd=\E<:ke=\Ex:kh=\E?:kl=\E>:kr=\E=:ks=\EX:kt=\E_:\
10921	:ku=\E;:le=^H:mb=\EC:me=\EN@:mh=\EE:mk=\EH:mp=\EI:mr=\ED:\
10922	:nd=\E=:pf=\036o \E\EQ!\EYP\027:\
10923	:po=\EQ"\EY(\027\EYD\Eo \036:rp=.2*\Er%.%+ :se=\Ed:\
10924	:sf=^J:so=\ED:ta=8\011:te=\Ev    \Ep\r\n:\
10925	:ti=16\EU\Ev  8p\Ep\r\E\025:ue=\Eg:up=\E;:us=\EG:\
10926	:vb=\Ek\EK:
10927c100-rv|c100-rv-4p|concept100-rv|c100 rev video:\
10928	:i1=\Ek:se=\Ee:so=\EE:vb=\EK\Ek:ve@:vs@:tc=c100:
10929oc100|oconcept|c100-1p|old 1 page concept 100:\
10930	:in:\
10931	:i3@:tc=c100:
10932
10933# From: Walter Skorski <walt@genetics1.JMP.TJU.EDU>, 16-oct-1996.
10934# Lots of notes, originally inline, but ncurses doesn't grok that.
10935#
10936# am: 	not available in power on mode, but turned on with \E[=107;207h in
10937#	is2=.  Also, \E=124l in is2= could have been used to prevent needing
10938#	to specify xenl:, but that would have rendered the last space on the
10939#	last line useless.
10940# bw:	Not available in power on mode, but turned on with \E[=107;207h in
10941#	is2=.
10942# clear: Could be done with \E[2J alone, except that vi (and probably most
10943#	other programs) assume that this also homes the cursor.
10944# dsl:	Go to window 2, go to the beginning of the line, use a line feed to
10945#	scroll the window, and go back to window 1.
10946# is2:	the string may cause a warning to be issued by tic that it
10947#	found a very long line and that it suspects that a comma is missing
10948#	somewhere.  This warning can be ignored (unless it comes up more than
10949#	once).  The initialization string contains the following commands:
10950#
10951#	 [Setup mode items changed from factory defaults:]
10952#		\E)0			set alternate character set to
10953#						graphics
10954#		^O			set character set to default
10955#	 [In case it wasn't]
10956#		\E[m			turn off all attributes
10957#	 [In case they weren't off]
10958#		\E[=107;		cursor wrap and
10959#			207h			character wrap on
10960#		\E[90;3u		set Fkey definitions to "transmit"
10961#						defaults
10962#		\E[92;3u		set cursor key definitions to
10963#						"transmit" defaults
10964#		\E[43;1u		set shift F13 to transmit...
10965#		\177\E$P\177
10966#		\E[44;1u		set shift F14 to transmit...
10967#			\177\E$Q\177
10968#		\E[45;1u		set shift F15 to transmit...
10969#			\177\E$R\177
10970#		\E[46;1u		set shift F16 to transmit...
10971#			\177\E$S\177
10972#		\E[200;1u		set shift up to transmit...
10973#			\177\E$A\177
10974#		\E[201;1u		set shift down to transmit...
10975#			\177\E$B\177
10976#		\E[202;1u		set shift right to transmit...
10977#			\177\E$C\177
10978#		\E[203;1u		set shift left to transmit...
10979#			\177\E$D\177
10980#		\E[204;1u		set shift home to transmit...
10981#			\177\E$H\177
10982#		\E[212;1u		set backtab to transmit...
10983#			\177\E$I\177
10984#		\E[213;1u		set shift backspace to transmit...
10985#			\177\E$^H\177
10986#		\E[214;1u		set shift del to transmit...
10987#			"\E$\177"
10988#	 [Necessary items not mentioned in setup mode:]
10989#		\E[2!w			move to window 2
10990#		\E[25;25w		define window as line 25 of memory
10991#		\E[!w			move to window 1
10992#		\E[2*w			show current line of window 2 as
10993#						status line
10994#		\E[2+x			set meta key to use high bit
10995#		\E[;3+}			move underline to bottom of character
10996#
10997#	All Fkeys are set to their default transmit definitions with \E[90;3u
10998#	in is2=.  IMPORTANT:  to use this terminal definition, the "quit" stty
10999#	setting MUST be redefined or deactivated, because the default is
11000#	contained in almost all of this terminal's Fkey strings!  If for some
11001#	reason "quit" cannot be altered, the Fkeys can, but it would be
11002#	necessary to change ^| to ^] in all of these definitions, and add
11003#	\E[2;029!t to is2.
11004# lines: is set to 24 because this terminal refuses to treat the 25th
11005#	line normally.
11006# ll:	Not available in power on mode, but turned on with \E[=107;207h in
11007#	is2=.
11008# lm:	Pointless, given that this definition locks a single screen of
11009#	memory into view, but what the hey...
11010# rmso: Could use \E[1;7!{ to turn off only bold and reverse (leaving any
11011#	other attributes alone), but some programs expect this to turn off
11012#	everything.
11013# rmul: Could use \E[4!{ to turn off only underline (leaving any other
11014#	attributes alone), but some programs expect this to turn off
11015#	everything.
11016# sgr:	Attributes are set on this terminal with the string \E[ followed by
11017#	a list of attribute code numbers (in decimal, separated by
11018#	semicolons), followed by the character m.  The attribute code
11019#	numbers are:
11020#		  1 for bold;
11021#		  2 for dim (which is ignored in power on mode);
11022#		  4 for underline;
11023#		  5 for blinking;
11024#		  7 for inverse;
11025#		  8 for not displayable; and
11026#		=99 for protected (except that there are strange side
11027#		effects to protected characters which make them inadvisable).
11028#	 The mapping of terminfo parameters to attributes is as follows:
11029#		%p1 (standout) = bold and inverse together;
11030#		%p2 (underline) = underline;
11031#		%p3 (reverse) = inverse;
11032#		%p4 (blink) = blinking;
11033#		%p5 (dim) is ignored;
11034#		%p6 (bold) = bold;
11035#		%p7 (invisible) = not displayable;
11036#		%p8 (protected) is ignored; and
11037#		%p9 (alt char set) = alt char set.
11038#	 The code to do this is:
11039#		\E[0		OUTPUT	\E[0
11040#		%?%p1%p6%O	IF	(standout; bold) OR
11041#		%t;1		THEN	OUTPUT	;1
11042#		%;		ENDIF
11043#		%?%p2		IF	underline
11044#		%t;4		THEN	OUTPUT	;4
11045#		%;		ENDIF
11046#		%?%p4		IF	blink
11047#		%t;5		THEN	OUTPUT	;5
11048#		%;		ENDIF
11049#		%?%p1%p3%O	IF	(standout; reverse) OR
11050#		%t;7		THEN	OUTPUT	;7
11051#		%;		ENDIF
11052#		%?%p7		IF	invisible
11053#		%t;8		THEN	OUTPUT	;8
11054#		%;		ENDIF
11055#		m		OUTPUT	m
11056#		%?%p9		IF	altcharset
11057#		%t^N		THEN	OUTPUT	^N
11058#		%e^O		ELSE	OUTPUT	^O
11059#		%;		ENDIF
11060# sgr0: Everything is turned off (including alternate character set), since
11061#	there is no way of knowing what it is that the program wants turned
11062#	off.
11063# smul: The "underline" attribute is reconfigurable to an overline or
11064#	strikethru, or (as done with \E[;3+} in is2=), to a line at the true
11065#	bottom of the character cell.  This was done to allow for more readable
11066#	underlined characters, and to be able to distinguish between an
11067#	underlined space, an underscore, and an underlined underscore.
11068# xenl: Terminal can be configured to not need this, but this "glitch"
11069#	behavior is actually preferable with autowrap terminals.
11070#
11071# Parameters kf31= thru kf53= actually contain the strings sent by the shifted
11072# Fkeys.  There are no parameters for shifted Fkeys in terminfo.  The is2
11073# string modifies the 'O' in kf43 to kf46 to a '$'.
11074#
11075# kcbt was originally ^I but redefined in is2=.
11076# kHOM was \E[H originally but redefined in is2=, as were a number of
11077# other keys.
11078# kDC was originally \177 but redefined in is2=.
11079#
11080# kbs:	Shift was also ^H originally but redefined as \E$^H in is2=.
11081# tsl:	Go to window 2, then do an hpa=.
11082#
11083#------- flash=\E[8;3!}^G\E[3;3!}
11084#------- flash=\E[?5h$<100>\E[?5l
11085# There are two ways to flash the screen, both of which have their drawbacks.
11086# The first is to set the bell mode to video, transmit a bell character, and
11087# set the bell mode back - but to what?  There is no way of knowing what the
11088# user's old bell setting was before we messed with it.  Worse, the command to
11089# set the bell mode also sets the key click volume, and there is no way to say
11090# "leave that alone", or to know what it's set to, either.
11091# The second way to do a flash is to set the screen to inverse video, pad for a
11092# tenth of a second, and set it back - but like before, there's no way to know
11093# that the screen wasn't ALREADY in inverse video, or that the user may prefer
11094# it that way.  The point is moot anyway, since vi (and probably other
11095# programs) assume that by defining flash=, you want the computer to use it
11096# INSTEAD of bel=, rather than as a secondary type of signal.
11097#
11098#------- cvvis=\E[+{
11099# The is the power on setting, which is also as visible as the cursor
11100# gets.
11101#-------  wind=\E[%i%p1%d;%p2%d;%p3%{1}%+%d;%p4%{1}%+%dw
11102# Windowing is possible, but not defined here because it is also used to
11103# emulate status line functions.  Allowing a program to set a window could
11104# clobber the status line or render it unusable.  There is additional memory,
11105# but screen scroll functions are destructive and do not make use of it.
11106#
11107#-------   dim=			Not available in power on mode.
11108# You have a choice of defining low intensity characters as "half bright" and
11109# high intensity as "normal", or defining low as "normal" and high as "bold".
11110# No matter which you choose, only one of either "half bright" or "bold" is
11111# available at any time, so taking the time to override the default is
11112# pointless.
11113#
11114#-------  prot=\E[=0;99m
11115# Not defined, because it appears to have some strange side effects.
11116#------- pfkey=%?%p1%{24}%<%p1%{30}%>%p1%{54}%<%A%O%t\E[%p1%du\177%p2%s\177%;
11117#------- pfloc=%?%p1%{24}%<%p1%{30}%>%p1%{54}%<%A%O%t\E[%p1%du\177%p2%s\177%;
11118#-------   pfx=%?%p1%{24}%<%p1%{30}%>%p1%{54}%<%A%O%t\E[%p1%d;1u\177%p2%s\177%;
11119#	 Available, but making them available to programs is inadvisable.
11120#	 The code to do this is:
11121#		%?%p1%{24}%<	IF	((key; 24) <;
11122#		%p1%{30}%>		 ((key; 30) >;
11123#		%p1%{54}%<		  (key; 54) <
11124#		%A			 ) AND
11125#		%O		  	) OR
11126#	 [that is, "IF key < 24 OR (key > 30 AND key < 54)",]
11127#		%t\E[		THEN	OUTPUT	\E[
11128#		%p1%d			OUTPUT	(key) as decimal
11129#	 [next line applies to pfx only]
11130#		;1			OUTPUT	;1
11131#		u			OUTPUT	u
11132#		\177			OUTPUT	\177
11133#		%p2%s			OUTPUT	(string) as string
11134#		\177			OUTPUT	\177
11135#	 [DEL chosen as delimiter, but could be any character]
11136#	 [implied:		ELSE	do nothing]
11137#		%;		ENDIF
11138#
11139#-------   rs2=
11140# Not defined since anything it might do could be done faster and easier with
11141# either Meta-Shift-Reset or the main power switch.
11142#
11143#-------  smkx=\E[1!z
11144#-------  rmkx=\E[!z
11145# These sequences apply to the cursor and setup keys only, not to the
11146# numeric keypad.  But it doesn't matter anyway, since making these
11147# available to programs is inadvisable.
11148# For the key definitions below, all sequences beginning with \E$ are
11149# custom and programmed into the terminal via is2.  \E$ also has no
11150# meaning to any other terminal.
11151#
11152#------- cmdch=\E[;%p1%d!t
11153# Available, but making it available to programs is inadvisable.
11154#------- smxon=\E[1*q
11155# Available, but making it available to programs is inadvisable.
11156# Terminal will send XON/XOFF on buffer overflow.
11157#------- rmxon=\E[*q
11158# Available, but making it available to programs is inadvisable.
11159# Terminal will not notify on buffer overflow.
11160#-------   smm=\E[2+x
11161#-------   rmm=\E[+x
11162# Available, but making them available to programs is inadvisable.
11163#
11164# Printing:
11165#	 It's not made clear in the manuals, but based on other ansi/vt type
11166#	 terminals, it's a good guess that this terminal is capable of both
11167#	 "transparent print" (which doesn't copy data to the screen, and
11168#	 therefore needs mc5i: specified to say so) and "auxilliary print"
11169#	 (which does duplicate printed data on the screen, in which case mc4=
11170#	 and mc5= should use the \E[?4i and \E[?5i strings instead).
11171
11172# (sgr removed to fit entry within 1023 bytes)
11173# (acsc removed to fit entry within 1023 bytes)
11174# (terminfo-only capabilities suppressed to fit entry within 1023 bytes)
11175# (some function-key capabilities suppressed to fit entry within 1023 bytes)
11176hds200|Human Designed Systems HDS200:\
11177	:am:bw:es:hs:km:mi:ms:xn:xo:\
11178	:co#80:it#8:li#24:lm#0:\
11179	:AL=\E[%dL:DC=\E[%dP:DL=\E[%dM:DO=\E[%dB:IC=\E[%d@:\
11180	:LE=\E[%dD:RI=\E[%dC:UP=\E[%dA:ae=^O:al=\E[L:as=^N:bl=^G:\
11181	:bt=\E[Z:cd=\E[J:ce=\E[K:cl=\E[H\E[J:cm=\E[%i%d;%dH:cr=^M:\
11182	:cs=\E[%i%d;%dr:ct=\E[3g:dc=\E[P:dl=\E[M:do=\E[B:\
11183	:ds=\E[2!w\r\n\E[!w:ei=\E[4l:fs=\E[!w:ho=\E[H:im=\E[4h:\
11184	:is=\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+}:\
11185	:kD=\177:kN=\E[U:kP=\E[V:kb=^H:kd=\E[B:kh=\E[H:kl=\E[D:\
11186	:kr=\E[C:ku=\E[A:le=\E[D:ll=\E[H\E[A:mb=\E[0;5m:\
11187	:md=\E[0;1m:me=\E[0m:mr=\E[0;7m:nd=\E[C:nw=\E[E:rc=\E8:\
11188	:sc=\E7:se=\E[m\017:sf=\ED:so=\E[0;1;7m:sr=\EM:st=\EH:\
11189	:ta=^I:ts=\E[2!w\E[%i%dG:ue=\E[m\017:up=\E[A:us=\E[0;4m:\
11190	:ve=\E[+{:vi=\E[6+{:
11191
11192# :ta: through :ce: included to specify padding needed in raw mode.
11193# (avt-ns: added empty <acsc> to suppress a tic warning --esr)
11194avt-ns|concept avt no status line:\
11195	:am:bs:eo:mi:ul:xn:xo:\
11196	:co#80:it#8:li#24:lm#192:\
11197	:AL=4*\E[%dL:DL=4*\E[%dM:DO=\E[%dB:IC=\E[%d@:LE=\E[%dD:\
11198	:RI=\E[%dC:UP=\E[%dA:ac=:ae=1\016:al=4\E[L:as=1\017:bl=^G:\
11199	:bt=\E[Z:cd=96\E[J:ce=6\E[K:ch=\E[%+^AG:cl=38\E[H\E[J:\
11200	:cm=\E[%i%d;%dH:cr=^M:cs=\E[%i%d;%dr:ct=\E[3g:\
11201	:cv=\E[%+^Ad:dc=\E[P:dl=4\E[M:do=^J:ei=\E[4l:ho=\E[H:\
11202	:i1=\E[=103l\E[=205l:ic=\E[@:im=\E[4h:ip=4:\
11203	:is=\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\0720\07232!r\E[0*w\E[w\E2\r\n\E[2;27!t:\
11204	:k1=\EOP:k2=\EOQ:k3=\EOR:k4=\EOS:kA=\E^C\r:kD=\E^B\r:\
11205	:kI=\E^A\r:kS=\E^D\r:kb=^H:kd=\E[B:ke=\E[!z\E[0;2u:\
11206	:kh=\E[H:kl=\E[D:kr=\E[C:ks=\E[1!z\E[0;3u:ku=\E[A:le=^H:\
11207	:ll=\E[24H:mb=\E[5m:md=\E[1m:me=\E[m:mh=\E[1!{:mk=\E[8m:\
11208	:mp=\E[99m:mr=\E[7m:nd=\E[C:pf=\E[4i:po=\E[5i:ps=\E[0i:\
11209	:rc=\E8:sc=\E7:se=\E[7!{:sf=8\n:so=\E[7m:sr=4\EM:st=\EH:\
11210	:ta=4\011:te=\E[w\E2\r\n:ti=\E[=4l\E[1;24w\E2\r:\
11211	:ue=\E[4!{:up=\E[A:us=\E[4m:ve=\E[=119l:vs=\E[=119h:
11212avt-rv-ns|concept avt in reverse video mode/no status line:\
11213	:i1=\E[=103l\E[=205h:vb=\E[=205l\E[=205h:tc=avt-ns:
11214avt-w-ns|concept avt in 132 column mode/no status line:\
11215	:i1=\E[=103h\E[=205l:ti=\E[H\E[1;24;1;132w:tc=avt-ns:
11216avt-w-rv-ns|concept avt in 132 column mode/no status line/reverse video:\
11217	:i1=\E[=103h\E[=205h:ti=\E[H\E[1;24;1;132w:\
11218	:vb=\E[=205l\E[=205h:tc=avt-ns:
11219
11220# Concept AVT with status line. We get the status line using the
11221# "Background status line" feature of the terminal. We swipe the
11222# first line of memory in window 2 for the status line, keeping
11223# 191 lines of memory and 24 screen lines for regular use.
11224# The first line is used instead of the last so that this works
11225# on both 4 and 8 page AVTs. (Note the lm#191 or 192 - this
11226# assumes an 8 page AVT but lm isn't currently used anywhere.)
11227#
11228avt+s|concept avt status line changes:\
11229	:es:hs:\
11230	:lm#191:\
11231	:ds=\E[0*w:fs=\E[1;1!w:\
11232	:i2=\E[2w\E[2!w\E[1;1;1;80w\E[H\E[2*w\E[1!w\E2\r\n:\
11233	:te=\E[2w\E2\r\n:ti=\E[2;25w\E2\r:\
11234	:ts=\E[2;1!w\E[;%dH\E[2K:
11235avt|avt-s|concept-avt|avt w/80 columns:\
11236	:tc=avt+s:tc=avt-ns:
11237avt-rv|avt-rv-s|avt reverse video w/sl:\
11238	:i1=\E[=103l\E[=205h:vb=\E[=205l\E[=205h:tc=avt+s:\
11239	:tc=avt-ns:
11240avt-w|avt-w-s|concept avt 132 cols+status:\
11241	:i1=\E[=103h\E[=205l:ti=\E[H\E[1;24;1;132w:tc=avt+s:\
11242	:tc=avt-ns:
11243avt-w-rv|avt-w-rv-s|avt wide+status+rv:\
11244	:i1=\E[=103h\E[=205h:ti=\E[H\E[1;24;1;132w:\
11245	:vb=\E[=205l\E[=205h:tc=avt+s:tc=avt-ns:
11246
11247#### Contel Business Systems.
11248#
11249
11250# Contel c300 and c320 terminals.
11251contel300|contel320|c300|Contel Business Systems C-300 or C-320:\
11252	:am:in:xo:\
11253	:co#80:li#24:sg#1:\
11254	:al=5.5*\EL:bl=^G:cd=5.5*\EJ:ce=5.5\EI:cl=\EK:\
11255	:cm=\EX%+ \EY%+ :cr=^M:ct=\E3:dc=5.5*\EO:dl=5.5*\EM:do=^J:\
11256	:ei=:ho=\EH:ic=\EN:im=:ip=5.5*:k0=\ERJ:k1=\ERA:k2=\ERB:\
11257	:k3=\ERC:k4=\ERD:k5=\ERE:k6=\ERF:k7=\ERG:k8=\ERH:k9=\ERI:\
11258	:kb=^H:le=^H:ll=\EH\EA:me=\E!\200:nd=\EC:se=\E!\200:sf=^J:\
11259	:so=\E!\r:st=\E1:up=\EA:vb=\020\002\020\003:
11260# Contel c301 and c321 terminals.
11261contel301|contel321|c301|c321|Contel Business Systems C-301 or C-321:\
11262	:ic@:ip@:se=20\E!\200:so=20\E!\r:vb@:tc=contel300:
11263
11264#### Data General (dg)
11265#
11266# According to James Carlson <carlson@xylogics.com> writing in January 1995,
11267# the terminals group at Data General was shut down in 1991; all these
11268# terminals have thus been discontinued.
11269#
11270# DG terminals have function keys that respond to the SHIFT and CTRL keys,
11271# e.g., SHIFT-F1 generates a different code from F1.  To number the keys
11272# sequentially, first the unmodified key codes are listed as F1 through F15.
11273# Then their SHIFT versions are listed as F16 through F30, their CTRL versions
11274# are listed as F31 through F45, and their CTRL-SHIFT versions are listed as
11275# F46 through F60.  This is done in the private "includes" below whose names
11276# start with "dgkeys+".
11277#
11278# DG terminals generally support 8 bit characters.  For each of these terminals
11279# two descriptions are supplied:
11280#	1) A default description for 8 bits/character communications, which
11281#	   uses the default DG international character set and keyboard codes.
11282#	2) A description with suffix "-7b" for 7 bits/character communications.
11283#	   This description must use the NON-DEFAULT native keyboard language.
11284
11285# Unmodified fkeys (kf1-kf11), Shift fkeys (kf12-kf22), Ctrl fkeys (kf23-kf33),
11286# Ctrl/Shift fdkeys (kf34-kf44).
11287
11288dgkeys+8b|Private entry describing DG terminal 8-bit ANSI mode special keys:\
11289	:%9=\233i:F1=\233011z:F2=\233012z:F3=\233013z:\
11290	:F4=\233014z:F5=\233000z:F6=\233101z:F7=\233102z:\
11291	:F8=\233103z:F9=\233104z:FA=\233105z:FB=\233106z:\
11292	:FC=\233107z:FD=\233108z:FE=\233109z:FF=\233110z:\
11293	:FG=\233111z:FH=\233112z:FI=\233113z:FJ=\233114z:\
11294	:FK=\233100z:FL=\233201z:FM=\233202z:FN=\233203z:\
11295	:FO=\233204z:FP=\233205z:FQ=\233206z:FR=\233207z:\
11296	:FS=\233208z:FT=\233209z:FU=\233210z:FV=\233211z:\
11297	:FW=\233212z:FX=\233213z:FY=\233214z:FZ=\233200z:\
11298	:Fa=\233301z:Fb=\233302z:Fc=\233303z:Fd=\233304z:\
11299	:Fe=\233305z:Ff=\233306z:Fg=\233307z:Fh=\233308z:\
11300	:Fi=\233309z:Fj=\233310z:Fk=\233311z:Fl=\233312z:\
11301	:Fm=\233313z:Fn=\233314z:Fo=\233300z:K1=\233020z:\
11302	:K3=\233021z:K4=\233022z:K5=\233023z:k1=\233001z:\
11303	:k2=\233002z:k3=\233003z:k4=\233004z:k5=\233005z:\
11304	:k6=\233006z:k7=\233007z:k8=\233008z:k9=\233009z:\
11305	:k;=\233010z:kC=\2332J:kE=\233K:kd=\233B:kh=\233H:\
11306	:kl=\233D:kr=\233C:ku=\233A:
11307
11308dgkeys+7b|Private entry describing DG terminal 7-bit ANSI mode special keys:\
11309	:%9=\E[i:F1=\E[011z:F2=\E[012z:F3=\E[013z:F4=\E[014z:\
11310	:F5=\E[000z:F6=\E[101z:F7=\E[102z:F8=\E[103z:F9=\E[104z:\
<