]> ncurses.scripts.mit.edu Git - ncurses.git/blobdiff - misc/terminfo.src
ncurses 5.0
[ncurses.git] / misc / terminfo.src
index 496be629995ea476fd8bf1e80f3cc348a1fcea81..ee3db89d8a1ad31464bf7857e576aa21bde69233 100644 (file)
@@ -1,14 +1,18 @@
 ######## TERMINAL TYPE DESCRIPTIONS SOURCE FILE
 #
-#      Version 10.1.1
+# This version of terminfo.src is distributed with ncurses.
+#
+#      Version 10.2.1
+#      $Date: 1999/10/24 00:28:48 $
 #      terminfo syntax
 #
 #      Eric S. Raymond         (current maintainer)
 #      John Kunze, Berkeley
 #      Craig Leres, Berkeley
 #
-# Please e-mail changes to terminfo@ccil.org.  The old termcap@berkeley.edu
-# address is no longer valid.
+# Please e-mail changes to terminfo@ccil.org; the old termcap@berkeley.edu
+# address is no longer valid.  The latest version can always be found at
+# <http://earthspace.net/terminfo>.
 #
 # PURPOSE OF THIS FILE:
 #
@@ -24,7 +28,7 @@
 # termcap/terminfo versions.
 #
 # Pointers to related resources (including the ncurses distribution) may
-# be found at <http://www.ccil.org/terminfo>.
+# be found at <http://earthspace.net/terminfo>.
 #
 # INTERNATIONALIZATION:
 #
@@ -86,7 +90,9 @@
 # FILE ORGANIZATION:
 #
 # Comments in this file begin with # - they cannot appear in the middle
-# of a terminfo/termcap entry.  Individual capabilities are commented out by
+# of a terminfo/termcap entry (this feature had to be sacrificed in order
+# to allow standard terminfo and termcap syntax to be generated cleanly from
+# the master format).  Individual capabilities are commented out by
 # placing a period between the colon and the capability name.
 #
 # The file is divided up into major sections (headed by lines beginning with 
 # to see a listing of section headings.  The intent of the divisions is
 # (a) to make it easier to find things, and (b) to order the database so
 # that important and frequently-encountered terminal types are near the
-# front (so that you'll get reasonable search efficiency even if you don't
-# use reorder).  Minor sections usually correspond to manufacturers or
-# standard terminal classes.  Parenthesized words following manufacturer
-# names are type prefixes or product line names used by that manufacturers.
+# front (so that you'll get reasonable search efficiency from a linear
+# search of the termcap form even if you don't use reorder).  Minor sections
+# usually correspond to manufacturers or standard terminal classes. 
+# Parenthesized words following manufacturer names are type prefixes or
+# product line names used by that manufacturers.
 #
 # HOW TO READ THE ENTRIES:
 #
 #              only support one attribute without magic-cookie lossage.
 #              Their base entry is usually paired with another that
 #              uses magic cookies to support multiple attributes.
-#      -na     No arrow keys - termcap ignores arrow keys which are
-#              actually there on the terminal, so the user can use
-#              the arrow keys locally.
 #      -nam    No auto-margin - suppress <am> capability
 #      -nl     No labels - suppress soft labels
 #      -ns     No status line - suppress status line
 #      -vb     Use visible bell (<flash>) rather than <bel>.
 #      -w      Wide - in 132 column mode.
 # If a name has multiple suffixes and one is a line height, that one should 
-# go first.  Thus `aaa-30-s-rv' is recommended over `aaa-s-rv'.  
+# go first.  Thus `aaa-30-s-rv' is recommended over `aaa-s-rv-30'.  
 # 
 # Entries with embedded plus signs are designed to be included through use/tc
 # capabilities, not used as standalone entries. 
 #
 # All the entries in this file have been edited to assume that the tabset
 # files directory is /usr/share/tabset, in conformance with the File Hierarchy
-# Standard for Linux and free BSD systems.  Some vendors (notably Sun) use
-# /usr/lib/tabset or (more recently) /usr/share/lib/tabset.  
+# Standard for Linux and open-source BSD systems.  Some vendors (notably Sun)
+# use /usr/lib/tabset or (more recently) /usr/share/lib/tabset.  
 #
-# No curses package we know of uses these files.  If their location is an
-# issue, you will have to hand-patch the file locations before compiling
+# No curses package we know of actually uses these files.  If their location
+# is an issue, you will have to hand-patch the file locations before compiling
 # this file.
 # 
-# REQUEST FOR CONTACT INFORMATION AND HISTORICAL MATERIAL:
+# REQUEST FOR CONTACT INFORMATION AND HISTORICAL MATERIAL
 #
 # As the ANSI/ECMA-48 standard and variants take firmer hold, and as
 # character-cell terminals are increasingly replaced by X displays, much of
 # There are no guarantees anywhere.  Svaha!
 #
 
-######## STANDARD AND SPECIAL TYPES
+######## ANSI, UNIX CONSOLE, AND SPECIAL TYPES
 #
 # This section describes terminal classes and maker brands that are still
 # quite common.
@@ -290,7 +294,7 @@ glasstty|classic glass tty interpreting ASCII control characters,
 # will work with any Intel console, they all seem to have inherited \E[11m
 # from the ANSI.SYS de-facto standard.
 klone+acs|alternate character set for ansi.sys displays, 
-       acsc=`\004a\261f\370g\361h\260j\331k\277l\332m\300n\305o~q\304r\362s_t\303u\264v\301w\302x\263y\371z\372{\373|\374}\375~\376.\031-\030\,\021+^P0\333p\304r\304y\363z\362{\343|\330}\234
+       acsc=+\020\,\021-\030.^Y0\333`\004a\261f\370g\361h\260j\331k\277l\332m\300n\305o~p\304q\304r\304s_t\303u\264v\301w\302x\263y\363z\362{\343|\330}\234~\376
        rmacs=\E[10m, smacs=\E[11m, 
 
 # Highlight controls corresponding to the ANSI.SYS standard.  Most 
@@ -315,10 +319,10 @@ klone+sgr-dumb|attribute control for ansi.sys displays (no ESC [ 11 m),
        sgr0=\E[0;10m, smacs=\E[12m, smso=\E[7m, smul=\E[4m, 
        use=klone+acs, 
 
-# KOI8 (RFC1489) alternate character set 
+# KOI8-R (RFC1489) acs (alternate character set)
 # From: Qing Long <qinglong@Bolizm.ihep.su>, 24 Feb 1996.
 klone+koi8acs|alternate character set for ansi.sys displays with KOI8 charset, 
-       acsc=l\202m\204k\203j\205u\207t\206v\210w\211q\200x\201n\212o\213s\214p\216r\217`\004a\237f\234g\232~\225.\037-\036+\020\,\021h\222I\2200\215y\230z\231{\267}L|\274
+       acsc=+\020\,\021-\036.^_0\215`\004a\237f\234g\232h\222i\220j\205k\203l\202m\204n\212o\213p\216q\0r\217s\214t\206u\207v\210w\211x\201y\230z\231{\267|\274}L~\225
        rmacs=\E[10m, smacs=\E[11m, 
 
 # ANSI.SYS color control.  The setab/setaf caps depend on the coincidence
@@ -330,7 +334,7 @@ klone+koi8acs|alternate character set for ansi.sys displays with KOI8 charset,
 # They match a subset of ECMA-48.
 klone+color|color control for ansi.sys and ISO6429-compatible displays, 
        colors#8, ncv#3, pairs#64, 
-       op=\E[37;40m, setb=\E[4%p1%dm, setf=\E[3%p1%dm, 
+       op=\E[37;40m, setab=\E[4%p1%dm, setaf=\E[3%p1%dm, 
 
 # This is better than klone+color, it doesn't assume white-on-black as the
 # default color pair,  but many `ANSI' terminals don't grok the <op> cap.
@@ -378,7 +382,7 @@ ansi-mini|any ansi terminal with pessimistic assumptions,
 # not to require any -- even at 9600 bps.  If you encounter problems,
 # try including the padding specifications.
 #
-# Note: the "as" and "ae" specifications are not implemented here, for
+# Note: the :as: and :ae: specifications are not implemented here, for
 # the available termcap documentation does not make clear WHICH alternate
 # character set to specify.  ANSI 3.64 seems to make allowances for several.
 # Please make the appropriate adjustments to fit your needs -- that is
@@ -468,8 +472,7 @@ ansi|ansi/pc-term compatible with color,
        u9=\E[c, 
        use=ecma+color, use=klone+sgr, use=ansi-m, 
 
-#
-# ANSI.SYS entries
+#### DOS ANSI.SYS variants
 #
 # This completely describes the sequences specified in the DOS 2.1 ANSI.SYS
 # documentation (except for the keyboard key reassignment feature, which
@@ -523,11 +526,34 @@ nansi.sysk|nansisysk|PC-DOS Public Domain NANSI.SYS with keypad redefined for vi
 #### ANSI console types
 #
 
-# This entry is good for the 1.2.13 version of the Linux console driver.
+#### BeOS
 #
-# Note: there are numerous broken linux entries out there, which didn't screw
-# up BSD termcap but hose ncurses's smarter cursor-movement optimization.
-# One common pathology is an incorrect tab length of 4.
+# BeOS entry for Terminal program Seems to be almost ANSI
+beterm|BeOS Terminal, 
+       am, eo, mir, msgr, xenl, xon, 
+       colors#8, cols#80, it#8, lines#25, ncv#5, pairs#64, 
+       bel=^G, bold=\E[1m, clear=\E[H\E[J, cr=^M, 
+       csr=\E[%i%p1%d;%p2%dr, cub1=^H, cud1=^J, cuf1=\E[C, 
+       cup=\E[%i%p1%d;%p2%dH, cuu1=\E[A, dch=\E[%p1%dP, 
+       dch1=\E[P, dl=\E[%p1%dM, dl1=\E[M, ed=\E[J, el=\E[K, 
+       home=\E[H, hpa=\E[%i%p1%dG, ht=^I, hts=\EH, ich=\E[%p1%d@, 
+       ich1=\E[@, il=\E[%p1%dL, il1=\E[L, ind=^J, kbs=^H, 
+       kcub1=\E[D, kcud1=\E[B, kcuf1=\E[C, kcuu1=\E[A, 
+       kdch1=\E[3~, kend=\E[4~, kf1=\E[11~, kf10=\E[20~, 
+       kf11=\E[21~, kf12=\E[22~, kf2=\E[12~, kf3=\E[13~, 
+       kf4=\E[14~, kf5=\E[15~, kf6=\E[16~, kf7=\E[17~, kf8=\E[18~, 
+       kf9=\E[19~, khome=\E[1~, kich1=\E[2~, knp=\E[6~, kpp=\E[5~, 
+       kspd=^Z, nel=^M^J, op=\E[m, rc=\E8, rev=\E[7m, ri=\EM, 
+       rmir=\E[4l, rmso=\E[m, rmul=\E[24m, rs1=\Ec, sc=\E7, 
+       setab=\E[4%p1%dm, setaf=\E[3%p1%dm, 
+       setb=\E[%p1%{40}%+%cm, setf=\E[%p1%{30}%+%cm, 
+       sgr0=\E[0;10m, smir=\E[4h, smso=\E[7m, smul=\E[4m, 
+       u6=\E[%i%p1%d;%p2%dR, u7=\E[6n, vpa=\E[%i%p1%dd, 
+
+#### Linux consoles
+#
+
+# This entry is good for the 1.2.13 or later version of the Linux console.
 #
 # ***************************************************************************
 # *                                                                         *
@@ -542,7 +568,7 @@ nansi.sysk|nansisysk|PC-DOS Public Domain NANSI.SYS with keypad redefined for vi
 #      string F26 ="\033[Z"
 # *                                                                         *
 # * This has to use a key slot which is unfortunate (any unused one will    *
-# # do, F26 is the higher-numbered one).  The change ought to be built      *
+# * do, F26 is the higher-numbered one).  The change ought to be built      *
 # * into the kernel tables.                                                 *
 # *                                                                         *
 # ***************************************************************************
@@ -553,27 +579,30 @@ nansi.sysk|nansisysk|PC-DOS Public Domain NANSI.SYS with keypad redefined for vi
 # 1.9.9. All linux kernels since 1.2.13 (at least) set the screen size
 # themselves; this entry assumes that capability.
 #
-# From: Eric S. Raymond <esr@snark.thyrsus.com> 15 Dec 1995
+# The 2.2.x kernels add a private mode that sets the cursor type; use that to
+# get a block cursor for cvvis.
+# reported by Frank Heckenbach <frank@g-n-u.de>.
 linux|linux console, 
        am, bce, eo, mir, msgr, xenl, xon, 
-       it#8, 
-       bel=^G, civis=\E[?25l, clear=\E[H\E[J, cnorm=\E[?25h, 
-       cr=^M, csr=\E[%i%p1%d;%p2%dr, cub1=^H, cud1=^J, cuf1=\E[C, 
-       cup=\E[%i%p1%d;%p2%dH, cuu1=\E[A, dch=\E[%p1%dP, 
-       dch1=\E[P, dim=\E[2m, dl=\E[%p1%dM, dl1=\E[M, 
-       ech=\E[%p1%dX, ed=\E[J, el=\E[K, el1=\E[1K, 
-       flash=\E[?5h\E[?5l$<200/>, home=\E[H, hpa=\E[%i%p1%dG, 
-       ht=^I, hts=\EH, ich=\E[%p1%d@, ich1=\E[@, il=\E[%p1%dL, 
-       il1=\E[L, ind=^J, kb2=\E[G, kbs=\177, kcbt=\E[Z, kcub1=\E[D, 
-       kcud1=\E[B, kcuf1=\E[C, kcuu1=\E[A, kdch1=\E[3~, 
-       kend=\E[4~, kf1=\E[[A, kf10=\E[21~, kf11=\E[23~, 
-       kf12=\E[24~, kf13=\E[25~, kf14=\E[26~, kf15=\E[28~, 
-       kf16=\E[29~, kf17=\E[31~, kf18=\E[32~, kf19=\E[33~, 
-       kf2=\E[[B, kf20=\E[34~, kf3=\E[[C, kf4=\E[[D, kf5=\E[[E, 
-       kf6=\E[17~, kf7=\E[18~, kf8=\E[19~, kf9=\E[20~, 
+       it#8, ncv#2, 
+       acsc=+\020\,\021-\030.^Y0\333`\004a\261f\370g\361h\260i\316j\331k\277l\332m\300n\305o~p\304q\304r\304s_t\303u\264v\301w\302x\263y\363z\362{\343|\330}\234~\376, 
+       bel=^G, civis=\E[?25l\E[?1c, clear=\E[H\E[J, 
+       cnorm=\E[?25h\E[?0c, cr=^M, csr=\E[%i%p1%d;%p2%dr, 
+       cub1=^H, cud1=^J, cuf1=\E[C, cup=\E[%i%p1%d;%p2%dH, 
+       cuu1=\E[A, cvvis=\E[?25h\E[?8c, dch=\E[%p1%dP, dch1=\E[P, 
+       dim=\E[2m, dl=\E[%p1%dM, dl1=\E[M, ech=\E[%p1%dX, ed=\E[J, 
+       el=\E[K, el1=\E[1K, flash=\E[?5h\E[?5l$<200/>, home=\E[H, 
+       hpa=\E[%i%p1%dG, ht=^I, hts=\EH, ich=\E[%p1%d@, ich1=\E[@, 
+       il=\E[%p1%dL, il1=\E[L, ind=^J, kb2=\E[G, kbs=\177, 
+       kcbt=\E[Z, kcub1=\E[D, kcud1=\E[B, kcuf1=\E[C, kcuu1=\E[A, 
+       kdch1=\E[3~, kend=\E[4~, kf1=\E[[A, kf10=\E[21~, 
+       kf11=\E[23~, kf12=\E[24~, kf13=\E[25~, kf14=\E[26~, 
+       kf15=\E[28~, kf16=\E[29~, kf17=\E[31~, kf18=\E[32~, 
+       kf19=\E[33~, kf2=\E[[B, kf20=\E[34~, kf3=\E[[C, kf4=\E[[D, 
+       kf5=\E[[E, kf6=\E[17~, kf7=\E[18~, kf8=\E[19~, kf9=\E[20~, 
        khome=\E[1~, kich1=\E[2~, knp=\E[6~, kpp=\E[5~, kspd=^Z, 
        nel=^M^J, rc=\E8, rev=\E[7m, ri=\EM, rmir=\E[4l, rmso=\E[27m, 
-       rmul=\E[24m, rs1=\Ec, sc=\E7, 
+       rmul=\E[24m, rs1=\Ec\E]R, sc=\E7, 
        sgr=\E[0;10%?%p1%t;7%;%?%p2%t;4%;%?%p3%t;7%;%?%p4%t;5%;%?%p5%t;2%;%?%p6%t;1%;%?%p7%t;8%;%?%p9%t;11%;m, 
        smir=\E[4h, smul=\E[4m, tbc=\E[3g, u6=\E[%i%d;%dR, 
        u7=\E[6n, u8=\E[?6c, u9=\E[c, vpa=\E[%i%p1%dd, 
@@ -583,12 +612,14 @@ linux-m|Linux console no color,
        setab@, setaf@, setb@, setf@, use=linux, 
 linux-c-nc|linux console 1.3.x hack for ncurses only, 
        ccc, 
-       initc=\E]P%p1%x%p2%02x%p3%02x%p4%02x, oc=\E]R, use=linux, 
+       initc=\E]P%p1%x%p2%{255}%*%{1000}%/%02x%p3%{255}%*%{1000}%/%02x%p4%{255}%*%{1000}%/%02x, 
+       oc=\E]R, 
+       use=linux, 
 # From: Dennis Henriksen <opus@osrl.dk>, 9 July 1996
-linux-c|linux console 1.3.6+, with private palette for each virtual console, 
+linux-c|linux console 1.3.6+ with private palette for each virtual console, 
        ccc, 
        colors#8, pairs#64, 
-       initc=\E]P%?%p1%{9}%>%t%p1%{10}%-%p'a'%+%c%e%p1%d%p2%{255}%&%Pr%gr%{16}%/%Px%?%gx%{9}%>%t%gx%{10}%-%'A'%+%c%e%gx%d%;%gr%{15}%&%Px%?%gx%{9}%>%t%gx%{10}%-%'A'%+%c%e%gx%d%;%p3%{255}%&%Pr%gr%{16}%/%Px%?%gx%{9}%>%t%gx%{10}%-%'A'%+%c%e%gx%d%;%gr%{15}%&%Px%?%gx%{9}%>%t%gx%{10}%-%'A'%+%c%e%gx%d%;%p4%{255}%&%Pr%gr%{16}%/%Px%?%gx%{9}%>%t%gx%{10}%-%'A'%+%c%e%gx%d%;%gr%{15}%&%Px%?%gx%{9}%>%t%gx%{10}%-%'A'%+%c%e%gx%d%;, 
+       initc=\E]P%?%p1%{9}%>%t%p1%{10}%-%'a'%+%c%e%p1%d%;%p2%{255}%&%Pr%gr%{16}%/%Px%?%gx%{9}%>%t%gx%{10}%-%'A'%+%c%e%gx%d%;%gr%{15}%&%Px%?%gx%{9}%>%t%gx%{10}%-%'A'%+%c%e%gx%d%;%p3%{255}%&%Pr%gr%{16}%/%Px%?%gx%{9}%>%t%gx%{10}%-%'A'%+%c%e%gx%d%;%gr%{15}%&%Px%?%gx%{9}%>%t%gx%{10}%-%'A'%+%c%e%gx%d%;%p4%{255}%&%Pr%gr%{16}%/%Px%?%gx%{9}%>%t%gx%{10}%-%'A'%+%c%e%gx%d%;%gr%{15}%&%Px%?%gx%{9}%>%t%gx%{10}%-%'A'%+%c%e%gx%d%;, 
        oc=\E]R, 
        use=linux, 
 
@@ -598,9 +629,41 @@ linux-nic|linux with ich/ich1 suppressed for non-curses programs,
        use=linux, 
 
 # This assumes you have used setfont(8) to load one of the Linux koi8-r fonts.
+# acsc entry from Pavel Roskin" <pavel@absolute.spb.su>, 29 Sep 1997.
 linux-koi8|linux with koi8 alternate character set, 
+       acsc=+\020\,\021-\030.^Y0\215`\004a\221f\234g\237h\220i\276j\205k\203l\202m\204n\212o~p\0q\0r\0s_t\206u\207v\211w\210x\201y\230z\231{\267|\274~\224, 
+       use=linux, use=klone+koi8acs, 
+
+# Another entry for KOI8-r with Qing Long's acsc.
+# (which one better complies with the standard?)
+linux-koi8r|linux with koi8-r alternate character set, 
+       kbs=^H, kcub1=^H, kcud1=^J, 
        use=linux, use=klone+koi8acs, 
 
+# From:  Matthew Vernon <mcv21@pick.sel.cam.ac.uk>
+mach|Mach Console, 
+       am, km, 
+       cols#80, it#8, lines#25, 
+       bel=^G, blink=\E[5m, bold=\E[1m, clear=\Ec, cr=^M, 
+       cub=\E[%p1%dD, cub1=^H, cud=\E[%p1%dB, cud1=^J, 
+       cuf=\E[%p1%dC, cuf1=\E[C, cup=\E[%i%p1%d;%p2%dH, 
+       cuu=\E[%p1%dA, cuu1=\E[A, dl=\E[%p1%dM, dl1=\E[M, ed=\E[J, 
+       el=\E[K, home=\E[H, ht=^I, il=\E[%p1%dL, il1=\E[L, ind=^J, 
+       kbs=^H, kcub1=\E[D, kcud1=\E[B, kcuf1=\E[C, kcuu1=\E[A, 
+       kdch1=\E[9, kend=\E[Y, kf1=\EOP, kf10=\EOY, kf2=\EOQ, 
+       kf3=\EOR, kf4=\EOS, kf5=\EOT, kf6=\EOU, kf7=\EOV, kf8=\EOW, 
+       kf9=\EOX, khome=\E[H, kich1=\E[@, kll=\E[F, knp=\E[U, 
+       kpp=\E[V, nel=^M^J, rev=\E[7m, rmso=\E[0m, sgr0=\E[0m, 
+       smso=\E[7m, 
+mach-bold|Mach Console with bold instead of underline, 
+       rmul=\E[0m, smul=\E[1m, 
+       use=mach, 
+
+# Entry for the latin1 and latin2 fonts
+linux-lat|linux with latin1 or latin2 alternate character set, 
+       acsc=+\020\,\021-\030.^Y0\333`\004a\013f\370g\361h\260i\316j\211k\214l\206m\203n\305o~p\304q\212r\304s_t\207u\215v\301w\302x\205y\363z\362{\343|\330}\234~\376, 
+       use=linux, 
+
 # SCO console and SOS-Syscons console for 386bsd
 # (scoansi: had unknown capabilities
 #      :Gc=N:Gd=K:Gh=M:Gl=L:Gu=J:Gv=\072:\
@@ -610,18 +673,38 @@ linux-koi8|linux with koi8 alternate character set,
 #      :WL=\E[S:WR=\E[T:CL=\E[U:CR=\E[V:\
 # I renamed GS/GE/HM/EN/PU/PD/RT and added klone+sgr-dumb, based
 # on the <smacs>=\E[12m  -- esr)
+#
+# klone+sgr-dumb is an error since the acsc does not match -TD
+#
+# In this description based on SCO's keyboard(HW) manpage list of default function key
+# values:
+#      F13-F24 are shifted F1-F12
+#      F25-F36 are control F1-F12
+#      F37-F48 are shift+control F1-F12
 scoansi|SCO Extended ANSI standard crt, 
        am, eo, xon, 
-       cols#80, it#8, lines#25, 
+       colors#8, cols#80, it#8, lines#25, pairs#64, 
+       acsc=0[5566778899\:\:;;<<==>>FFGGHHIIJJKKLLMMNNOOPPQQRRSSTTUUVVWWXX`ja0fxgqh2jYk?lZm@nEqDtCu4vAwBx3~y, 
        blink=\E[5m, bold=\E[1m, cbt=\E[Z, clear=\E[H\E[2J, 
        cub1=\E[D, cud1=\E[B, cuf1=\E[C, cup=\E[%i%p1%d;%p2%dH, 
        cuu1=\E[A, dch1=\E[P, dl1=\E[M, ed=\E[J, el=\E[K, home=\E[H, 
-       ht=^I, ich1=\E[@, il1=\E[L, ind=\E[S, kbs=^H, kcub1=\E[D, 
-       kcud1=\E[B, kcuf1=\E[C, kcuu1=\E[A, kend=\E[F, kf1=\E[M, 
-       kf10=\E[V, kf2=\E[N, kf3=\E[O, kf4=\E[P, kf5=\E[Q, kf6=\E[R, 
-       kf7=\E[S, kf8=\E[T, kf9=\E[U, khome=\E[H, knp=\E[G, kpp=\E[I, 
-       ri=\E[T, 
-       use=klone+sgr-dumb, 
+       ht=^I, ich1=\E[@, il1=\E[L, ind=\E[S, invis=\E[8m, kbeg=\E[E, 
+       kbs=^H, kcbt=\E[Z, kcub1=\E[D, kcud1=\E[B, kcuf1=\E[C, 
+       kcuu1=\E[A, kend=\E[F, kf1=\E[M, kf10=\E[V, kf11=\E[W, 
+       kf12=\E[X, kf13=\E[Y, kf15=\E[a, kf16=\E[b, kf17=\E[c, 
+       kf18=\E[d, kf19=\E[e, kf2=\E[N, kf20=\E[f, kf21=\E[g, 
+       kf22=\E[h, kf23=\E[i, kf24=\E[j, kf25=\E[k, kf26=\E[l, 
+       kf27=\E[m, kf28=\E[n, kf29=\E[o, kf3=\E[O, kf30=\E[p, 
+       kf31=\E[q, kf32=\E[r, kf33=\E[s, kf34=\E[t, kf35=\E[u, 
+       kf36=\E[v, kf37=\E[w, kf38=\E[x, kf39=\E[y, kf4=\E[P, 
+       kf40=\E[z, kf41=\E[@, kf42=\E[[, kf43=\E[\\, kf44=\E[], 
+       kf45=\E[\^, kf46=\E[_, kf47=\E[`, kf48=\E[{, kf5=\E[Q, 
+       kf6=\E[R, kf7=\E[S, kf8=\E[T, kf9=\E[U, khome=\E[H, 
+       kich1=\E[L, knp=\E[G, kpp=\E[I, op=\E[37;40m, rev=\E[7m, 
+       ri=\E[T, rmacs=\E[10m, rmso=\E[m, rmul=\E[m, 
+       setab=\E[4%p1%dm, setaf=\E[3%p1%dm, 
+       sgr=\E[0;10%?%p1%t;7%;%?%p2%t;4%;%?%p3%t;7%;%?%p4%t;5%;%?%p6%t;1%;%?%p7%t;8%;%?%p9%t;12%;m, 
+       sgr0=\E[0;10m, smacs=\E[12m, smso=\E[7m, smul=\E[4m, 
 
 # This actually describes the generic SVr4 display driver for Intel boxes.
 # The <dim=\E[2m> isn't documented and therefore may not be reliable.
@@ -646,7 +729,7 @@ att6386|at386|386at|AT&T WGS 6386 console,
        knp=\E[U, kpp=\E[V, krmir=\E0, nel=\r\E[S, rc=\E8, rev=\E[7m, 
        ri=\E[T, rin=\E[%p1%dT, rmacs=\E[10m, rmso=\E[m, rmul=\E[m, 
        sc=\E7, 
-       sgr=\E[10m\E[0%?%p1%p3%|%t;7%;%?%p2%t;4%;%?%p4%t;5%;%?%p5%t;2%;?%p6%t;1%;%?%p9%t;12%e;10%;%?%p7%t;9%;m, 
+       sgr=\E[10m\E[0%?%p1%p3%|%t;7%;%?%p2%t;4%;%?%p4%t;5%;%?%p5%t;2%;%?%p6%t;1%;%?%p9%t;12%e;10%;%?%p7%t;9%;m, 
        sgr0=\E[0;10m, smacs=\E[12m, smso=\E[7m, smul=\E[4m, 
        tbc=\E[2g, vpa=\E[%i%p1%dd, 
        use=klone+color, 
@@ -665,7 +748,74 @@ pc6300plus|AT&T 6300 plus,
        nel=^M^J, rev=\E[7m, rmso=\E[m, rmul=\E[m, sgr0=\E[m, 
        smso=\E[7m, smul=\E[4m, tbc=\E[3g, 
 
+# From: Benjamin C. W. Sittler <bsittler@nmt.edu>
 #
+# I have a UNIX PC which I use as a terminal attached to my Linux PC.
+# Unfortunately, the UNIX PC terminfo entry that comes with ncurses
+# is broken. All the special key sequences are broken, making it unusable
+# with Emacs. The problem stems from the following:
+# 
+# The UNIX PC has a plethora of keys (103 of them, and there's no numeric
+# keypad!), loadable fonts, and strange highlighting modes ("dithered"
+# half-intensity, "smeared" bold, and real strike-out, for example.) It also
+# uses resizable terminal windows, but the bundled terminal program always
+# uses an 80x24 window (and doesn't support seem to support a 132-column
+# mode.) 
+# 
+# HISTORY: The UNIX PC was one of the first machines with a GUI, and used a
+# library which was a superset of SVr3.5 curses (called tam, for "terminal
+# access method".) tam includes support for real, overlapping windows,
+# onscreen function key labels, and bitmap graphics. But since the primary
+# user interface on the UNIX PC was a GUI program (ua, for "user
+# assistant",) and remote administration was considered important for the
+# machine, tam also supported VT100-compatible terminals attached to the
+# serial port or used across the StarLan network. To simulate the extra keys
+# not present on a VT100, users could press ESC and a two-letter sequence,
+# such as u d (Undo) or U D (Shift-Undo.) These two-letter sequences,
+# however, were not the same as those sent by the actual Undo key. The
+# actual Undo key sends ESC 0 s unshifted, and ESC 0 S shifted, for example.
+# (If you're interested in adding some of the tam calls to ncurses, btw, I
+# have the full documentation and several programs which use tam. It also
+# used an extended terminfo format to describe key sequences, special
+# highlighting modes, etc.) 
+# 
+# KEYS: This means that ncurses would quite painful on the UNIX PC, since
+# there are two sequences for every key-modifier combination (local keyboard
+# sequence and remote "VT100" sequence.) But I doubt many people are trying
+# to use ncurses on the UNIX PC, since ncurses doesn't properly handle the
+# GUI. Unfortunately, the terminfo entry (and the termcap, too, I presume) 
+# seem to have been built from the manual describing the VT100 sequences. 
+# This means it doesn't work for a real live UNIX PC. 
+# 
+# FONTS: The UNIX PC also has a strange interpretation of "alternate
+# character set". Rather than the VT100 graphics you might expect, it allows
+# up to 8 custom fonts to be loaded at any given time. This means that
+# programs expecting VT100 graphics will usually be disappointed. For this
+# reason I have disabled the smacs/rmacs sequences, but they could easily be
+# re-enabled. Here are the relevant control sequences (from the ESCAPE(7) 
+# manpage), should you wish to do so: 
+# 
+# SGR10 - Select font 0 - ESC [ 10 m or SO
+# SGR11 - Select font 1 - ESC [ 11 m or SI
+# SGR12 - Select font 2 - ESC [ 12 m
+# ... (etc.)
+# SGR17 - Select font 7 - ESC [ 17 m
+# 
+# Graphics for line drawing are not reliably found at *any* character
+# location because the UNIX PC has dynamically reloadable fonts. I use font
+# 0 for regular text and font 1 for italics, but this is by no means
+# universal. So ASCII line drawing is in order if smacs/rmacs are enabled.
+# 
+# MISC: The cursor visible/cursor invisible sequences were swapped in the
+# distributed terminfo.
+# 
+# To ameliorate these problems (and fix a few highlighting bugs) I rewrote
+# the UNIX PC terminfo entry. The modified version works great with Lynx,
+# Emacs, and XEmacs running on my Linux PC and displaying on the UNIX PC
+# attached by serial cable. In Emacs, even the Undo key works, and many
+# applications can now use the F1-F8 keys. 
+# 
+# esr's notes:
 #      Terminfo entry for the AT&T Unix PC 7300
 #      from escape(7) in Unix PC 7300 Manual.
 #      Somewhat similar to a vt100-am (but different enough
@@ -716,36 +866,66 @@ pc6300plus|AT&T 6300 plus,
 # they're confirmed by the man page for the System V display---esr)
 #
 att7300|unixpc|pc7300|3b1|s4|AT&T UNIX PC Model 7300, 
-       am, xenl, xon, 
+       am, xon, 
        cols#80, it#8, lines#24, 
-       acsc=``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~, 
-       bel=^G, bold=\E[7m, cbt=\E^I, civis=\E[=C, clear=\E[2J\E[H, 
-       cnorm=\E[=1C, cr=^M, cub=\E[%p1%dD, cud=\E[%p1%dB, 
-       cud1=\E[B, cuf=\E[%p1%dC, cuf1=\E[C, 
-       cup=\E[%i%p1%d;%p2%dH, cuu=\E[%p1%dA, cuu1=\E[A, 
-       dch1=\E[P, dim=\E[2m, dl=\E[%p1%dM, dl1=\E[M, ed=\E[0J, 
-       el=\E[0K, home=\E[H, ich1=\E[@, il=\E[%p1%dL, il1=\E[L, 
-       ind=^J, invis=\E[9m, is1=^O, kBEG=\EBG, kCAN=\ECN, kCPY=\ECP, 
-       kCRT=\ECR, kDC=\EDC, kDL=\EDL, kEND=\EEN, kEOL=\ECI, 
-       kFND=\EFI, kHLP=\EHL, kHOM=\EHM, kIC=\ENJ, kLFT=\EBW, 
-       kMOV=\EMV, kNXT=\ENX, kOPT=\EOT, kPRV=\EPV, kRDO=\ERO, 
-       kRIT=\EFW, kRPL=\ERP, kSAV=\ESV, kUND=\EUD, kbeg=\Ebg, 
-       kbs=^H, kcan=\Ecn, kcbt=\E^I, kclo=\Ecl, kclr=\Ece, 
-       kcmd=\Ecm, kcpy=\Ecp, kcrt=\Ecr, kcub1=\E[D, kcud1=\E[B, 
-       kcuf1=\E[C, kcuu1=\E[A, kdch1=\Edc, ked=\Ece, kel=\Eci, 
-       kend=\Een, kext=\Eex, kf1=\EOP, kf2=\EOQ, kf3=\EOR, kf4=\EOS, 
-       kf5=\E5, kf6=\E6, kf7=\E7, kf8=\E8, kfnd=\Efi, khlp=\Ehl, 
-       khome=\Ehm, kich1=\Eim, kind=\Erd, kmov=\Emv, kmrk=\Emk, 
-       knp=\Epg, knxt=\Enx, kopn=\Eop, kopt=\Eot, kpp=\EPG, 
-       kprt=\Epr, kprv=\Epv, krdo=\Ero, kref=\Ere, krfr=\Erf, 
-       kri=\Eru, krpl=\Erp, krst=\Ers, ksav=\Esv, kslt=\Esl, 
-       kund=\Eud, nel=\EE, rev=\E[7m, ri=\EM, rmacs=\E[10m, 
-       rmso=\E[m, rmul=\E[m, sgr0=\E[0;10m, smacs=\E[11m, 
-       smso=\E[7m, smul=\E[4m, 
+       bel=^G, blink=\E[9m, bold=\E[1m, cbt=\E^I, civis=\E[=1C, 
+       clear=\E[2J\E[H, cnorm=\E[=0C, cr=^M, cub=\E[%p1%dD, 
+       cub1=^H, cud=\E[%p1%dB, cud1=\E[B, cuf=\E[%p1%dC, 
+       cuf1=\E[C, cup=\E[%i%p1%d;%p2%dH, cuu=\E[%p1%dA, 
+       cuu1=\E[A, dch1=\E[P, dim=\E[2m, dl=\E[%p1%dM, dl1=\E[M, 
+       ed=\E[0J, el=\E[0K, home=\E[H, ich1=\E[@, il=\E[%p1%dL, 
+       il1=\E[L, ind=^J, invis=\E[9m, is1=\017\E[=1w, kBEG=\ENB, 
+       kCAN=\EOW, kCPY=\END, kCRT=\EON, kDC=\ENF, kDL=\ENE, 
+       kEND=\ENN, kEOL=\EOA, kFND=\EOX, kHLP=\EOM, kHOM=\ENM, 
+       kIC=\ENJ, kLFT=\ENK, kMOV=\ENC, kNXT=\ENH, kOPT=\EOR, 
+       kPRV=\ENG, kRDO=\EOT, kRIT=\ENL, kRPL=\EOY, kSAV=\EOO, 
+       kUND=\EOS, kbeg=\ENb, kbs=^H, kcan=\EOw, kcbt=\E[Z, 
+       kclo=\EOV, kclr=\E[J, kcmd=\EOu, kcpy=\ENd, kcrt=\EOn, 
+       kcub1=\E[D, kcud1=\E[B, kcuf1=\E[C, kcuu1=\E[A, kdch1=\ENf, 
+       ked=\E[J, kel=\EOa, kend=\E0, kext=\EOk, kf1=\EOc, kf2=\EOd, 
+       kf3=\EOe, kf4=\EOf, kf5=\EOg, kf6=\EOh, kf7=\EOi, kf8=\EOj, 
+       kfnd=\EOx, khlp=\EOm, khome=\E[H, kich1=\ENj, kind=\E[B, 
+       kmov=\ENc, kmrk=\ENi, knp=\E[U, knxt=\ENh, kopn=\EOv, 
+       kopt=\EOr, kpp=\E[V, kprt=\EOz, kprv=\ENg, krdo=\EOt, 
+       kref=\EOb, krfr=\ENa, kri=\E[A, krpl=\EOy, krst=\EOB, 
+       ksav=\EOo, kslt=\ENI, kund=\EOs, nel=\EE, rev=\E[7m, ri=\EM, 
+       rmso=\E[m, rmul=\E[m, sgr0=\E[0;10m, smso=\E[7m, 
+       smul=\E[4m, 
 
-# From: davis@unidata.ucar.edu
+# Sent by Stefan Stapelberg <stefan@rent-a-guru.de>, 24 Feb 1997, this is
+# from SGI's terminfo database.  SGI's entry shows F9-F12 with the codes
+# for the application keypad mode.  We have added iris-ansi-ap rather than
+# change the original to keypad mode.
+#
 # (iris-ansi: added rmam/smam based on init string -- esr)
-iris-ansi|iris-ansi-net|IRIS emulating ANSI terminal, 
+#
+# This entry, and those derived from it, is used in xwsh (also known as
+# winterm).  Some capabilities that do not fit into the terminfo model
+# include the shift- and control-functionkeys:
+#
+# F1-F12 generate different codes when shift or control modifiers are used.
+# For example:
+#      F1              \E[001q
+#      shift F1        \E[013q
+#      control-F1      \E[025q
+#
+# In application keypad mode, F9-F12 generate codes like vt100 PF1-PF4, i.e.,
+# \EOP to \EOS.  The shifted and control modifiers still do the same thing.
+#
+# The cursor keys also have different codes:
+#      control-up      \E[162q
+#      control-down    \E[165q
+#      control-left    \E[159q
+#      control-right   \E[168q
+#
+#      shift-up        \E[161q
+#      shift-down      \E[164q
+#      shift-left      \E[158q
+#      shift-right     \E[167q
+#
+#      control-tab     \[072q
+#
+iris-ansi|iris-ansi-net|IRIS emulating 40 line ANSI terminal (almost VT100), 
        am, 
        cols#80, it#8, lines#40, 
        bel=^G, bold=\E[1m, clear=\E[H\E[2J, 
@@ -759,20 +939,31 @@ iris-ansi|iris-ansi-net|IRIS emulating ANSI terminal,
        kEND=\E[147q, kHOM=\E[143q, kLFT=\E[158q, kPRT=\E[210q, 
        kRIT=\E[167q, kSPD=\E[218q, kbs=^H, kcbt=\E[Z, kcub1=\E[D, 
        kcud1=\E[B, kcuf1=\E[C, kcuu1=\E[A, kdch1=\177, 
-       kend=\E[146q, kent=^M, kf1=\E[001q, kf10=\EOQ, kf11=\EOR
-       kf12=\EOS, kf2=\E[002q, kf3=\E[003q, kf4=\E[004q, 
-       kf5=\E[005q, kf6=\E[006q, kf7=\E[007q, kf8=\E[008q, 
-       kf9=\EOP, khome=\E[H, kich1=\E[139q, knp=\E[154q, 
-       kpp=\E[150q, kprt=\E[209q, krmir=\E[146q, kspd=\E[217q, 
-       nel=\EE, pfkey=\EP101;%p1%d.y%p2%s\E\\, rc=\E8
-       rev=\E[7m, ri=\EM, rmam=\E[?7l, rmso=\E[m, rmul=\E[m, sc=\E7
-       sgr0=\E[m, smam=\E[?7h, smso=\E[1;7m, smul=\E[4m, 
+       kend=\E[146q, kent=^M, kf1=\E[001q, kf10=\E[010q
+       kf11=\E[011q, kf12=\E[012q, kf2=\E[002q, kf3=\E[003q, 
+       kf4=\E[004q, kf5=\E[005q, kf6=\E[006q, kf7=\E[007q, 
+       kf8=\E[008q, kf9=\E[009q, khome=\E[H, kich1=\E[139q, 
+       knp=\E[154q, kpp=\E[150q, kprt=\E[209q, krmir=\E[146q, 
+       kspd=\E[217q, nel=\EE, pfkey=\EP101;%p1%d.y%p2%s\E\\
+       rc=\E8, rev=\E[7m, ri=\EM, rmam=\E[?7l, rmso=\E[m, rmul=\E[m
+       sc=\E7, sgr0=\E[m, smam=\E[?7h, smso=\E[1;7m, smul=\E[4m, 
        tbc=\E[3g, 
 iris-ansi-ap|IRIS ANSI in application-keypad mode, 
-       is2=\E[?1l\E>\E[?7h, kf10=\E[010q, kf11=\E[011q, 
-       kf12=\E[012q, rmkx=\E>, smkx=\E=
+       is2=\E[?1l\E=\E[?7h, kent=\EOM, kf10=\E[010q, 
+       kf11=\E[011q, kf12=\E[012q, kf9=\E[009q
        use=iris-ansi, 
 
+# From the man-page, this is a quasi-vt100 emulator that runs on SGI's IRIX
+# (T.Dickey 98/1/24)
+iris-color|xwsh|IRIX ANSI with color, 
+       ncv#33, 
+       csr=\E[%i%p1%d;%p2%dr, dch=\E[%p1%dP, dim=\E[2m, 
+       ech=\E[%p1%dX, ich=\E[%p1%d@, rc=\E8, ritm=\E[23m, 
+       rmul=\E[24m, rs1=\Ec, 
+       rs2=\E>\E[?3l\E[?4l\E[?5l\E[?7h\E[?8h, sc=\E7, 
+       sitm=\E[3m, u6=\E[%i%d;%dR, u7=\E[6n, u8=\E[?1;2c, u9=\E[c, 
+       use=klone+color, use=iris-ansi-ap, 
+
 # The following is a version of the ibm-pc entry distributed with PC/IX,
 # (Interactive Systems' System 3 for the Big Blue), modified by Richard
 # McIntosh at UCB/CSM.  The :pt: and :uc: have been removed from the original,
@@ -818,13 +1009,14 @@ ibmpcx|xenix|ibmx|IBM PC xenix console display,
 # handle this case with the <ich1> capability, and prefers <am> for better
 # optimization.  Bug: The <op> capability resets attributes.
 # From: Michael Hunter <mphunter@qnx.com> 30 Jul 1996
+# (removed: <sgr=%?%p1%t\E<%;%p2%t\E[%;%p3%t\E(%;%p4%t\E{%;%p6%t\E<%;,>)
 qnx|qnx4|qnx console, 
        daisy, km, mir, msgr, xhpa, xt, 
        colors#8, cols#80, it#4, lines#25, ncv#3, pairs#8, 
-       acsc=l\332m\300k\277j\331q\304x\263u\264t\303n\305v\301w\302O\333a\261o\337s\334
+       acsc=O\333a\261j\331k\277l\332m\300n\305o\337q\304s\334t\303u\264v\301w\302x\263
        bel=^G, blink=\E{, bold=\E<, civis=\Ey0, clear=\EH\EJ, 
        cnorm=\Ey1, cr=^M, cub1=^H, cud1=^J, cuf1=\EC, 
-       cup=\EY%p1%' '%+%c%p2%' '%+%c, cuu1=\EA, cvvis=\Ey2, 
+       cup=\EY%p1%{32}%+%c%p2%{32}%+%c, cuu1=\EA, cvvis=\Ey2, 
        dch1=\Ef, dl1=\EF, ed=\EJ, el=\EK, home=\EH, ht=^I, ich1=\Ee, 
        il1=\EE, ind=^J, kBEG=\377\356, kCAN=\377\263, 
        kCMD=\377\267, kCPY=\377\363, kCRT=\377\364, 
@@ -835,44 +1027,51 @@ qnx|qnx4|qnx console,
        kOPT=\377\372, kPRT=\377\275, kPRV=\377\262, 
        kRDO=\377\315, kRES=\377\374, kRIT=\377\266, 
        kRPL=\377\373, kSAV=\377\307, kSPD=\377\303, 
-       kUND=\377\337, kbeg=\377\300, kcan=\377\243, 
-       kcbt=\377\200, kclo=\377\343, kclr=\377\341, 
-       kcmd=\377\245, kcpy=\377\265, kcrt=\377\305, 
-       kctab=\377\237, kcub1=\377\244, kcud1=\377\251, 
-       kcuf1=\377\246, kcuu1=\377\241, kdch1=\377\254, 
-       kdl1=\377\274, ked=\377\314, kel=\377\310, kend=\377\250, 
-       kent=\377\320, kext=\377\270, kf1=\377\201, 
-       kf10=\377\212, kf11=\377\256, kf12=\377\257, 
-       kf13=\377\213, kf14=\377\214, kf15=\377\215, 
-       kf16=\377\216, kf17=\377\217, kf18=\377\220, 
-       kf19=\377\221, kf2=\377\202, kf20=\377\222, 
-       kf21=\377\223, kf22=\377\224, kf23=\377\333, 
-       kf24=\377\334, kf25=\377\225, kf26=\377\226, 
-       kf27=\377\227, kf28=\377\230, kf29=\377\231, 
-       kf3=\377\203, kf30=\377\232, kf31=\377\233, 
-       kf32=\377\234, kf33=\377\235, kf34=\377\236, 
-       kf35=\377\276, kf36=\377\277, kf37=\377\321, 
-       kf38=\377\322, kf39=\377\323, kf4=\377\204, 
-       kf40=\377\324, kf41=\377\325, kf42=\377\326, 
-       kf43=\377\327, kf44=\377\330, kf45=\377\331, 
-       kf46=\377\332, kf47=\377\316, kf48=\377\317, 
-       kf5=\377\205, kf6=\377\206, kf7=\377\207, kf8=\377\210, 
-       kf9=\377\211, kfnd=\377\346, khlp=\377\350, 
-       khome=\377\240, khts=\377\342, kich1=\377\253, 
-       kil1=\377\273, kind=\377\261, kmov=\377\351, 
-       kmrk=\377\355, kmsg=\377\345, knp=\377\252, 
-       knxt=\377\312, kopn=\377\357, kopt=\377\353, 
-       kpp=\377\242, kprt=\377\255, kprv=\377\302, 
-       krdo=\377\336, kref=\377\354, kres=\377\360, 
-       krfr=\377\347, kri=\377\271, krmir=\377\313, 
-       krpl=\377\362, krst=\377\352, ksav=\377\361, 
-       kslt=\377\247, kspd=\377\335, ktbc=\377\344, 
-       kund=\377\365, mvpa=\E!%p1%02d, op=\ER, 
-       rep=\Eg%p2%' '%+%c%p1%c, rev=\E(, ri=\EI, rmcup=\Eh\ER, 
+       kUND=\377\337, kbeg=\377\300, kcan=\377\243, kcbt=\377\0, 
+       kclo=\377\343, kclr=\377\341, kcmd=\377\245, 
+       kcpy=\377\265, kcrt=\377\305, kctab=\377\237, 
+       kcub1=\377\244, kcud1=\377\251, kcuf1=\377\246, 
+       kcuu1=\377\241, kdch1=\377\254, kdl1=\377\274, 
+       ked=\377\314, kel=\377\310, kend=\377\250, kent=\377\320, 
+       kext=\377\270, kf1=\377\201, kf10=\377\212, 
+       kf11=\377\256, kf12=\377\257, kf13=\377\213, 
+       kf14=\377\214, kf15=\377\215, kf16=\377\216, 
+       kf17=\377\217, kf18=\377\220, kf19=\377\221, 
+       kf2=\377\202, kf20=\377\222, kf21=\377\223, 
+       kf22=\377\224, kf23=\377\333, kf24=\377\334, 
+       kf25=\377\225, kf26=\377\226, kf27=\377\227, 
+       kf28=\377\230, kf29=\377\231, kf3=\377\203, 
+       kf30=\377\232, kf31=\377\233, kf32=\377\234, 
+       kf33=\377\235, kf34=\377\236, kf35=\377\276, 
+       kf36=\377\277, kf37=\377\321, kf38=\377\322, 
+       kf39=\377\323, kf4=\377\204, kf40=\377\324, 
+       kf41=\377\325, kf42=\377\326, kf43=\377\327, 
+       kf44=\377\330, kf45=\377\331, kf46=\377\332, 
+       kf47=\377\316, kf48=\377\317, kf5=\377\205, kf6=\377\206, 
+       kf7=\377\207, kf8=\377\210, kf9=\377\211, kfnd=\377\346, 
+       khlp=\377\350, khome=\377\240, khts=\377\342, 
+       kich1=\377\253, kil1=\377\273, kind=\377\261, 
+       kmov=\377\351, kmrk=\377\355, kmsg=\377\345, 
+       knp=\377\252, knxt=\377\312, kopn=\377\357, 
+       kopt=\377\353, kpp=\377\242, kprt=\377\255, 
+       kprv=\377\302, krdo=\377\336, kref=\377\354, 
+       kres=\377\360, krfr=\377\347, kri=\377\271, 
+       krmir=\377\313, krpl=\377\362, krst=\377\352, 
+       ksav=\377\361, kslt=\377\247, kspd=\377\335, 
+       ktbc=\377\344, kund=\377\365, mvpa=\E!%p1%02d, op=\ER, 
+       rep=\Eg%p2%{32}%+%c%p1%c, rev=\E(, ri=\EI, rmcup=\Eh\ER, 
        rmso=\E), rmul=\E], rs1=\ER, setb=\E@%p1%Pb%gb%gf%d%d, 
-       setf=\E@%p1%Pf%gb%gf%d%d, 
-       sgr=%?%p1%t\E<%;%p2%t\E[%;%p3%t\E(%;%p4%t\E{%;%p6%t\E<%;, 
-       sgr0=\E}\E]\E>\E), smcup=\Ei, smso=\E(, smul=\E[, 
+       setf=\E@%p1%Pf%gb%gf%d%d, sgr0=\E}\E]\E>\E), smcup=\Ei, 
+       smso=\E(, smul=\E[, 
+
+# From: Federico Bianchi <bianchi@pc-arte2.arte.unipi.it>, 1 Jul 1998
+# (esr: commented out <scp> and <rmcup> to avoid warnings.)
+# (TD: derive from original qnx4 entry)
+qnxt2|qnx 2.15 serial terminal, 
+       am, 
+       civis@, cnorm@, cvvis@, dch1@, ich1@, kRES@, kRPL@, kUND@, kspd@, 
+       rep@, rmcup@, rmso=\E>, setb@, setf@, smcup@, smso=\E<, 
+       use=qnx4, 
 
 #### NetBSD consoles
 #
@@ -884,15 +1083,15 @@ qnx|qnx4|qnx console,
 # the :Xs: flag. Then I split :is: into a size-independent <is1> and a
 # size-dependent <is2>.  Finally, I added <rmam>/<smam> -- esr)
 
-# NOTE: because the 386BSD "vi"/"elvis" seems to have a bug if
-# both <ich1> and <smir> are specified (an original VT220 
-# shows the same buggy behaviour!), <ich1> has been taken
-# out of this entry. for reference, it should be <ich1=\E[@>.
+# NOTE: <ich1> has been taken out of this entry. for reference, it should
+# be <ich1=\E[@>.  For discussion, see ICH/ICH1 VERSUS RMIR/SMIR below.
+# (esr: added <civis> and <cnorm> to resolve NetBSD Problem Report #4583)
 pcvtXX|pcvt vt200 emulator (DEC VT220), 
        am, km, mir, msgr, xenl, 
        it#8, vt#3, 
-       acsc=llmmkkjjuuttvvwwqqxxnnoosspprr``aaffgg~~..--++\,\,hhII00yyzz, 
-       bel=^G, blink=\E[5m, bold=\E[1m, clear=\E[H\E[J, cr=^M, 
+       acsc=++\,\,--..00``aaffgghhiijjkkllmmnnooppqqrrssttuuvvwwxxyyzz~~, 
+       bel=^G, blink=\E[5m, bold=\E[1m, civis=\E[?25l, 
+       clear=\E[H\E[J, cnorm=\E[?25h, cr=^M, 
        csr=\E[%i%p1%d;%p2%dr, cub=\E[%p1%dD, cub1=^H, 
        cud=\E[%p1%dB, cud1=\E[B, cuf=\E[%p1%dC, cuf1=\E[C, 
        cup=\E[%i%p1%d;%p2%dH, cuu=\E[%p1%dA, cuu1=\E[A, 
@@ -955,6 +1154,38 @@ pcvt50w|dec vt220 emulation with 50 lines and 132 cols,
        cols#132, lines#50, 
        is2=\E[1;50r\E[50;1H, use=pcvtXX, 
 
+# Terminfo entries to enable the use of the ncurses library in colour on a
+# NetBSD-arm32 console (only tested on a RiscPC).
+# Created by Dave Millen <dmill@globalnet.co.uk> 22.07.98
+# modified codes for setf/setb to setaf/setab, then to klone+color, corrected
+# typo in invis - TD
+arm100|arm100-am|Arm(RiscPC) ncurses compatible (for 640x480), 
+       am, bce, msgr, xenl, xon, 
+       cols#80, it#8, lines#30, 
+       acsc=``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~, 
+       bel=^G, blink=\E[5m$<2>, bold=\E[1m$<2>, 
+       clear=\E[H\E[J$<50>, cr=^M, csr=\E[%i%p1%d;%p2%dr, 
+       cub=\E[%p1%dD, cub1=^H, cud=\E[%p1%dB, cud1=^J, 
+       cuf=\E[%p1%dC, cuf1=\E[C$<2>, 
+       cup=\E[%i%p1%d;%p2%dH$<5>, cuu=\E[%p1%dA, 
+       cuu1=\E[A$<2>, ed=\E[J$<50>, el=\E[K$<3>, el1=\E[1K$<3>, 
+       enacs=\E(B\E)0, home=\E[H, ht=^I, hts=\EH, ind=^J, 
+       invis=\E[8m$<2>, ka1=\E[q, ka3=\E[s, kb2=\E[r, kbs=^H, 
+       kc1=\E[p, kc3=\E[n, kcub1=\E[D, kcud1=\E[B, kcuf1=\E[C, 
+       kcuu1=\E[A, kent=\E[M, kf0=\E[y, kf1=\E[P, kf10=\E[x, 
+       kf2=\E[Q, kf3=\E[R, kf4=\E[S, kf5=\E[t, kf6=\E[u, kf7=\E[v, 
+       kf8=\E[l, kf9=\E[w, rc=\E8, rev=\E[6m$<2>, ri=\EM$<5>, 
+       rmacs=^O, rmam=\E[?7l, rmkx=\E[?1l\E>, rmso=\E[m$<2>, 
+       rmul=\E[m$<2>, rs2=\E>\E[?3l\E[?4l\E[?5l\E[?7h\E[?8h, 
+       sc=\E7, 
+       sgr=\E[0%?%p1%p6%|%t;1%;%?%p2%t;4%;%?%p1%p3%|%t;7%;%?%p4%t;5%;m%?%p9%t\016%e\017%;, 
+       sgr0=\E[m\017$<2>, smacs=^N, smam=\E[?7h, smkx=\E[?1h\E=, 
+       smso=\E[7m$<2>, smul=\E[4m$<2>, tbc=\E[3g, 
+       use=ecma+sgr, use=klone+color, 
+
+arm100-w|arm100-wam|Arm(RiscPC) ncurses compatible (for 1024x768), 
+       cols#132, lines#50, use=arm100, 
+
 # NetBSD/x68k console vt200 emulator. This port runs on a 68K machine
 # manufactured by Sharp for the Japenese market.
 # From Minoura Makoto <minoura@netlaputa.or.jp>, 12 May 1996
@@ -962,6 +1193,46 @@ x68k|x68k-ite|NetBSD/x68k ITE,
        cols#96, lines#32, 
        kclr=\E[9~, khlp=\E[28~, use=vt220, 
 
+# <tv@pobox.com>:
+# Entry for the DNARD OpenFirmware console, close to ANSI but not quite.
+#
+# (still unfinished, but good enough so far.)
+ofcons, 
+       bw, 
+       cols#80, lines#30, 
+       bel=^G, blink=\2337;2m, bold=\2331m, clear=^L, cr=^M, 
+       cub=\233%p1%dD, cub1=\233D, cud=\233%p1%dB, cud1=\233B, 
+       cuf=\233%p1%dC, cuf1=\233C, cup=\233%i%p1%d;%p2%dH, 
+       cuu=\233%p1%dA, cuu1=\233A, dch=\233%p1%dP, dch1=\233P, 
+       dim=\2332m, dl=\233%p1%dM, dl1=\233M, ed=\233J, el=\233K, 
+       flash=^G, ht=^I, ich=\233%p1%d@, ich1=\233@, il=\233%p1%dL, 
+       il1=\233L, ind=^J, invis=\2338m, kbs=^H, kcub1=\233D, 
+       kcud1=\233B, kcuf1=\233C, kcuu1=\233A, kdch1=\233P, 
+       kf1=\2330P, kf10=\2330M, kf2=\2330Q, kf3=\2330W, 
+       kf4=\2330x, kf5=\2330t, kf6=\2330u, kf7=\2330q, kf8=\2330r, 
+       kf9=\2330p, knp=\233/, kpp=\233?, nel=^M^J, rev=\2337m, 
+       rmso=\2330m, rmul=\2330m, sgr0=\2330m, 
+
+# NetBSD "wscons" emulator in vt220 mode
+# These are micro-minimal and probably need to be redone for real
+# after the manner of the pcvt entries.
+wsvt25|NetBSD wscons in 25 line DEC VT220 mode, 
+       cols#80, lines#25, use=vt220, 
+
+wsvt25m|NetBSD wscons in 25 line DEC VT220 mode with Meta, 
+       km, 
+       cols#80, lines#25, use=vt220, 
+
+# `rasterconsole' provided by 4.4BSD, NetBSD and OpenBSD on SPARC, and 
+# DECstation/pmax.
+rcons|BSD rasterconsole, 
+       use=sun-il, 
+# Color version of above. Color currenly only provided by NetBSD.
+rcons-color|BSD rasterconsole with ANSI color, 
+       bce, 
+       colors#8, pairs#64, 
+       op=\E[m, setab=\E[4%dm, setaf=\E[3%dm, use=rcons, 
+
 #### FreeBSD console entries
 #
 # From: Andrey Chernov <ache@astral.msk.su> 29 Mar 1996
@@ -982,26 +1253,30 @@ x68k|x68k-ite|NetBSD/x68k ITE,
 # Bug? The ech and el1 attributes appear to move the cursor in some cases; for
 # instance el1 does if the cursor is moved to the right margin first.  Removed
 # by T.Dickey 97/5/3 (ech=\E[%p1%dX, el1=\E[1K)
+#
+# Setting colors turns off reverse; we cannot guarantee order, so use ncv.
+# Note that this disables standout with color.
 cons25w|ansiw|ansi80x25-raw|freebsd console (25-line raw mode), 
        am, bce, bw, eo, msgr, npc, 
-       colors#8, cols#80, it#8, lines#25, pairs#64, 
+       colors#8, cols#80, it#8, lines#25, ncv#21, pairs#64, 
        bel=^G, blink=\E[5m, bold=\E[1m, cbt=\E[Z, clear=\E[H\E[J, 
-       cr=^M, cub=\E[%p1%dD, cub1=^H, cud=\E[%p1%dB, cud1=\E[B, 
-       cuf=\E[%p1%dC, cuf1=\E[C, cup=\E[%i%p1%d;%p2%dH, 
-       cuu=\E[%p1%dA, cuu1=\E[A, dch=\E[%p1%dP, dch1=\E[P, 
-       dim=\E[30;1m, dl=\E[%p1%dM, dl1=\E[M, ed=\E[J, el=\E[K, 
-       home=\E[H, hpa=\E[%i%p1%d`, ht=^I, ich=\E[%p1%d@, 
-       ich1=\E[@, il=\E[%p1%dL, il1=\E[L, ind=\E[S, 
-       indn=\E[%p1%dS, kb2=\E[E, kbs=^H, kcbt=\E[Z, kcub1=\E[D, 
-       kcud1=\E[B, kcuf1=\E[C, kcuu1=\E[A, kdch1=\177, kend=\E[F, 
-       kf1=\E[M, kf10=\E[V, kf11=\E[W, kf12=\E[X, kf2=\E[N, 
-       kf3=\E[O, kf4=\E[P, kf5=\E[Q, kf6=\E[R, kf7=\E[S, kf8=\E[T, 
-       kf9=\E[U, khome=\E[H, kich1=\E[L, knp=\E[G, kpp=\E[I, 
-       nel=\E[E, op=\E[x, rev=\E[7m, ri=\E[T, rin=\E[%p1%dT, 
-       rmso=\E[m, rs1=\E[x\E[m\Ec, setab=\E[4%p1%dm, 
-       setaf=\E[3%p1%dm, sgr0=\E[m, smso=\E[7m, vpa=\E[%i%p1%dd, 
+       cnorm=\E[=0C, cr=^M, cub=\E[%p1%dD, cub1=^H, cud=\E[%p1%dB, 
+       cud1=\E[B, cuf=\E[%p1%dC, cuf1=\E[C, 
+       cup=\E[%i%p1%d;%p2%dH, cuu=\E[%p1%dA, cuu1=\E[A, 
+       cvvis=\E[=1C, dch=\E[%p1%dP, dch1=\E[P, dim=\E[30;1m, 
+       dl=\E[%p1%dM, dl1=\E[M, ed=\E[J, el=\E[K, home=\E[H, 
+       hpa=\E[%i%p1%d`, ht=^I, ich=\E[%p1%d@, ich1=\E[@, 
+       il=\E[%p1%dL, il1=\E[L, ind=\E[S, indn=\E[%p1%dS, kb2=\E[E, 
+       kbs=^H, kcbt=\E[Z, kcub1=\E[D, kcud1=\E[B, kcuf1=\E[C, 
+       kcuu1=\E[A, kdch1=\177, kend=\E[F, kf1=\E[M, kf10=\E[V, 
+       kf11=\E[W, kf12=\E[X, kf2=\E[N, kf3=\E[O, kf4=\E[P, kf5=\E[Q, 
+       kf6=\E[R, kf7=\E[S, kf8=\E[T, kf9=\E[U, khome=\E[H, 
+       kich1=\E[L, knp=\E[G, kpp=\E[I, nel=\E[E, op=\E[x, rev=\E[7m, 
+       ri=\E[T, rin=\E[%p1%dT, rmso=\E[m, rs1=\E[x\E[m\Ec, 
+       setab=\E[4%p1%dm, setaf=\E[3%p1%dm, sgr0=\E[m, 
+       smso=\E[7m, vpa=\E[%i%p1%dd, 
 cons25|ansis|ansi80x25|freebsd console (25-line ansi mode), 
-       acsc=l\332m\300k\277j\331u\264t\303v\301w\302q\304x\263n\305`\004a\260f\370g\361~\371.\031-\030h\261I^U0\333y\363z\362
+       acsc=-\030.^Y0\333`\004a\260f\370g\361h\261i\025j\331k\277l\332m\300n\305q\304t\303u\264v\301w\302x\263y\363z\362~\371
        use=cons25w, 
 cons25-m|ansis-mono|ansi80x25-mono|freebsd console (25-line mono ansi mode), 
        colors@, pairs@, 
@@ -1023,7 +1298,7 @@ cons60|ansi80x60|freebsd console (60-line ansi mode),
 cons60-m|ansi80x60-mono|freebsd console (60-line mono ansi mode), 
        lines#60, use=cons25-m, 
 cons25r|pc3r|ibmpc3r|cons25-koi8-r|freebsd console w/koi8-r cyrillic, 
-       acsc=q\200x\201m\204v\211j\205t\206n\212u\207l\202w\210k\203y\230z\231f\234~\225a\220h\221`\004.\031-\030I^U0\215, 
+       acsc=-\030.^Y0\215`\004a\220f\234h\221i\025j\205k\203l\202m\204n\212q\0t\206u\207v\211w\210x\201y\230z\231~\225, 
        use=cons25w, 
 cons25r-m|pc3r-m|ibmpc3r-mono|cons25-koi8r-m|freebsd console w/koi8-r cyrillic (mono), 
        colors@, pairs@, 
@@ -1038,7 +1313,7 @@ cons60r-m|cons60-koi8r-m|freebsd console w/koi8-r cyrillic (60-line mono),
        lines#60, use=cons25r-m, 
 # ISO 8859-1 FreeBSD console
 cons25l1|cons25-iso8859|freebsd console w/iso 8859-1 chars, 
-       acsc=l\215m\216k\214j\213u\226t\225v\227w\230q\222x\231n\217o\220s\224p\221r\223`\201a\202f\207g\210~\237.\031-\030+\253\,\273I\247y\232z\233
+       acsc=+\253\,\273-\030.\031`\201a\202f\207g\210i\247j\213k\214l\215m\216n\217o\220p\221q\222r\223s\224t\225u\226v\227w\230x\231y\232z\233~\237
        use=cons25w, 
 cons25l1-m|cons25-iso-m|freebsd console w/iso 8859-1 chars (mono), 
        colors@, pairs@, 
@@ -1061,7 +1336,7 @@ cons60l1-m|cons60-iso-m|freebsd console w/iso 8859-1 chars (60-line mono),
 origpc3|origibmpc3|IBM PC 386BSD Console, 
        am, bw, eo, xon, 
        cols#80, lines#25, 
-       acsc=l\332q\304k\277x\263j\331m\300w\302u\264v\301t\303n\305
+       acsc=j\331k\277l\332m\300n\305q\304t\303u\264v\301w\302x\263
        bold=\E[7m, clear=\Ec, cub1=^H, cud1=\E[B, cuf1=\E[C, 
        cup=\E[%i%p1%2d;%p2%2dH, cuu1=\E[A, ed=\E[J, el=\E[K, 
        home=\E[H, ind=\E[S, kcub1=\E[D, kcud1=\E[B, kcuf1=\E[C, 
@@ -1086,30 +1361,34 @@ oldpc3|oldibmpc3|old IBM PC BSD/386 Console,
 # "stty rows NN", e.g. to use 24 lines.
 # (Color support from Kevin Rosenberg <kevin@cyberport.com>, 2 May 1996) 
 # Bug: The <op> capability resets attributes.
-bsdos|BSD/OS console, 
-       am, bw, eo, km, xon, 
-       colors#8, cols#80, it#8, lines#25, pairs#64, 
-       bel=^G, blink=\E[5m, bold=\E[1m, clear=\Ec, cr=^M, 
-       cub=\E[%p1%dD, cub1=^H, cud=\E[%p1%dB, cud1=^J, 
-       cuf=\E[%p1%dC, cuf1=\E[C, cup=\E[%i%p1%d;%p2%dH, 
-       cuu=\E[%p1%dA, cuu1=\E[A, dim=\E[=8F, dl=\E[%p1%dM, 
-       dl1=\E[M, ed=\E[J, el=\E[K, home=\E[H, ht=^I, il=\E[%p1%dL, 
-       il1=\E[L, ind=^J, kbs=^H, kcub1=\E[D, kcud1=\E[B, kcuf1=\E[C, 
-       kcuu1=\E[A, khome=\E[H, kich1=\E[L, kll=\E[F, knp=\E[G, 
-       kpp=\E[I, nel=^M^J, op=\E[x, rc=\E8, rev=\E[7m, rmso=\E[0m, 
-       sc=\E7, setab=\E[4%p1%dm, setaf=\E[3%p1%dm, sgr0=\E[0m, 
-       smso=\E[7m, 
-bsdos-bold|IBM PC BSD/386 Console with bold instead of underline, 
-       rmul=\E[0m, smul=\E[1m, 
-       use=bsdos, 
-
-# If you are BSDI, you want the following entries, for the moment.  
-# In release 2.0 they will probably phase out the pc3 and ibmpc3 names
-pc3|IBM PC BSD/386 Console, 
-       use=bsdos, 
-ibmpc3|pc3-bold|IBM PC BSD/386 Console with bold instead of underline, 
-       smul=\E[1m, 
-       use=bsdos-bold, 
+bsdos-pc-nobold|BSD/OS PC console w/o bold, 
+       am, eo, km, xon, 
+       cols#80, it#8, lines#25, 
+       bel=^G, clear=\Ec, cr=^M, cub=\E[%p1%dD, cub1=^H, 
+       cud=\E[%p1%dB, cud1=^J, cuf=\E[%p1%dC, cuf1=\E[C, 
+       cup=\E[%i%p1%d;%p2%dH, cuu=\E[%p1%dA, cuu1=\E[A, 
+       dl=\E[%p1%dM, dl1=\E[M, ed=\E[J, el=\E[K, home=\E[H, ht=^I, 
+       il=\E[%p1%dL, il1=\E[L, ind=^J, kbs=^H, kcub1=\E[D, 
+       kcud1=\E[B, kcuf1=\E[C, kcuu1=\E[A, khome=\E[H, kich1=\E[L, 
+       kll=\E[F, knp=\E[G, kpp=\E[I, nel=^M^J, rc=\E8, sc=\E7, 
+       sgr=\E[0;10%?%p1%t;7%;%?%p3%t;7%;%?%p4%t;5%;%?%p6%t;1%;%?%p7%t;8%;%?%p9%t;11%;m%?%p5%t\E[=8F%;, 
+       use=klone+sgr, use=klone+color, 
+bsdos-pc|IBM PC BSD/OS Console, 
+       sgr=\E[0;10%?%p1%t;7%;%?%p2%t;1%;%?%p3%t;7%;%?%p4%t;5%;%?%p6%t;1%;%?%p7%t;8%;%?%p9%t;11%;m, use=bsdos-pc-nobold, 
+
+# Old names for BSD/OS PC console used in releases before 4.1. 
+pc3|BSD/OS on the PC Console, 
+       use=bsdos-pc-nobold, 
+ibmpc3|pc3-bold|BSD/OS on the PC Console with bold instead of underline, 
+       use=bsdos-pc, 
+# BSD/OS on the SPARC 
+bsdos-sparc|Sun SPARC BSD/OS Console, 
+       use=sun, 
+        
+# BSD/OS on the PowerPC 
+bsdos-ppc|PowerPC BSD/OS Console, 
+       use=bsdos-pc, 
 
 #### DEC VT100 and compatibles
 #
@@ -1125,11 +1404,11 @@ ibmpc3|pc3-bold|IBM PC BSD/386 Console with bold instead of underline,
 # are kept available at ftp://gatekeeper.dec.com/pub/DEC/termcaps.
 #
 # In October 1995 DEC sold its terminals business, including the VT and Dorio
-# line and trademark, to SunRiver Data Systems.
+# line and trademark, to SunRiver Data Systems.  SunRiver has since changed
+# its name to Boundless Technologies; see http://www.boundless.com.
 #
-# (The <acsc>, <rmacs>, and <smacs> capabilities aren't in DEC's official
-# entry -- esr)
 
+# (<acsc>/<rmacs>/<smacs> capabilities aren't in DEC's official entry -- esr)
 vt52|dec vt52, 
        cols#80, it#8, lines#24, 
        acsc=``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~, 
@@ -1222,7 +1501,7 @@ vt52|dec vt52,
 # (and even then, whenever it can be arranged!) you should set
 #      INTERLACE_OFF
 #
-# (I added <rmam>/<smam> based on the init string, also <OTbs> -- esr)
+# (vt100: I added <rmam>/<smam> based on the init string, also <OTbs>. -- esr)
 vt100|vt100-am|dec vt100 (w/advanced video), 
        am, msgr, xenl, xon, 
        cols#80, it#8, lines#24, vt#3, 
@@ -1246,6 +1525,8 @@ vt100|vt100-am|dec vt100 (w/advanced video),
        smso=\E[7m$<2>, smul=\E[4m$<2>, tbc=\E[3g, 
 vt100nam|vt100-nam|vt100 no automargins, 
        am@, xenl@, use=vt100-am, 
+vt100-vb|dec vt100 (w/advanced video) & no beep, 
+       bel@, flash=\E[?5h\E[?5l, use=vt100, 
 
 # Ordinary vt100 in 132 column ("wide") mode.
 vt100-w|vt100-w-am|dec vt100 132 cols (w/advanced video), 
@@ -1290,7 +1571,7 @@ vt102|dec vt102,
        mir, 
        dch1=\E[P, dl1=\E[M, il1=\E[L, rmir=\E[4l, smir=\E[4h, use=vt100, 
 vt102-w|dec vt102 in wide mode, 
-       lines#132, 
+       cols#132, 
        rs3=\E[?3h, use=vt102, 
 
 # Many brain-dead PC comm programs that pretend to be `vt100-compatible'
@@ -1391,6 +1672,7 @@ vt220-nam|v200-nam|VT220 in vt100 mode with no auto margins,
        am@, 
        rs2=\E>\E[?3l\E[?4l\E[?5l\E[?7l\E[?8h, use=vt220, 
 
+# This is misnamed (see xterm-8bit for an example of 8-bit controls)
 vt220-8|dec vt220 8 bit terminal, 
        am, mc5i, mir, msgr, xenl, xon, 
        cols#80, it#8, lines#24, 
@@ -1417,6 +1699,35 @@ vt220-8|dec vt220 8 bit terminal,
        rmul=\E[24m, rs1=\E[?3l, sc=\E7, sgr0=\E[m, smacs=^N, 
        smam=\E[?7h, smir=\E[4h, smso=\E[7m, smul=\E[4m, tbc=\E[3g, 
 
+# vt220 termcap written Tue Oct 25 20:41:10 1988 by Alex Latzko
+# (not an official DEC entry!)
+# The problem with real vt220 terminals is they don't send escapes when in
+# in vt220 mode.  This can be gotten around two ways.  1> don't send
+# escapes or 2> put the vt220 into vt100 mode and use all the nifty
+# features of vt100 advanced video which it then has.
+#
+# This entry takes the view of putting a vt220 into vt100 mode so
+# you can use the escape key in emacs and everything else which needs it.
+#
+# You probably don't want to use this on a VMS machine since VMS will think
+# it has a vt220 and will get fouled up coming out of emacs
+#
+# From: Alexander Latzko <latzko@marsenius.rutgers.edu>, 30 Dec 1996
+vt200-js|vt220-js|dec vt200 series with jump scroll, 
+       am, 
+       cols#80, 
+       bel=^G, clear=\E[H\E[J, cr=^M, csr=\E[%i%p1%d;%p2%dr, 
+       cub1=^H, cud1=^J, cup=\E[%i%p1%d;%p2%dH, cuu1=\E[A, 
+       dch1=\E[P, dl1=\E[M, ed=\E[J, el=\E[K, home=\E[H, ht=^I, 
+       il1=\E[L, ind=\ED, 
+       is2=\E[61"p\E[H\E[?3l\E[?4l\E[?1l\E[?5l\E[?6l\E[?7h\E[?8h\E[?25h\E>\E[m, 
+       kbs=^H, kcub1=\EOD, kcud1=\EOB, kcuf1=\EOC, kcuu1=\EOA, 
+       kf1=\EOP, kf2=\EOQ, kf3=\EOR, kf4=\EOS, nel=^M\ED, 
+       rf=/usr/lib/tabset/vt100, ri=\EM, rmdc=, rmir=\E[4l, 
+       rmkx=\E[?1l\E>, rmso=\E[27m$<5/>, rmul=\E[24m, 
+       rs1=\E>\E[?3l\E[?4l\E[?5l\E[?7h\E[?8h, smdc=, 
+       smir=\E[4h, smkx=\E[?1h\E=, smso=\E[7m$<5/>, smul=\E[4m, 
 # This was DEC's vt320.  Use the purpose-built one below instead 
 #vt320|DEC VT320 in vt100 emulation mode,
 #      use=vt220,
@@ -1606,7 +1917,11 @@ vt420|DEC VT420,
        smkx=\E=, smso=\E[7m, smul=\E[4m, 
 
 #
-#  DECUDK   
+# DEC VT220 and up support DECUDK (user-defined keys).  DECUDK (i.e., pfx)
+# takes two parameters, the key and the string.  Translating the key is
+# straightforward (keys 1-5 are not defined on real terminals, though some
+# emulators define these):
+#
 #               if (key < 16) then  value = key;
 #               else if (key < 21) then value = key + 1; 
 #               else if (key < 25) then value = key + 2;
@@ -1614,6 +1929,10 @@ vt420|DEC VT420,
 #               else if (key < 30) then value = key + 4;
 #               else value = key + 5;
 #
+# The string must be the hexadecimal equivalent, e.g., "5052494E" for "PRINT". 
+# There's no provision in terminfo for emitting a string in this format, so the
+# application has to know it.
+#
 vt420pc|DEC VT420 w/PC keyboard, 
        kdch1=\177, kend=\E[4~, kf1=\E[11~, kf10=\E[21~, 
        kf11=\E[23~, kf12=\E[24~, kf13=\E[11;2~, kf14=\E[12;2~, 
@@ -1748,12 +2067,89 @@ z340|zstem vt340 terminal emulator 132col 42line,
        is2=\E>\E[?3h\E[?4l\E[?5l\E[?7h\E[?8h\E[1;42r\E[42;1H, 
        rs2=\E>\E[?3h\E[?4l\E[?5l\E[?7h\E[?8h\E[1;42r\E[42;1H, 
        use=vt320-w, 
-z340-nam|zstem vt340 terminal emulator 132col 42line, 
+z340-nam|zstem vt340 terminal emulator 132col 42line (no automatic margins)
        am@, 
        is2=\E>\E[?3h\E[?4l\E[?5l\E[?7l\E[?8h\E[1;42r\E[42;1H, 
        rs2=\E>\E[?3h\E[?4l\E[?5l\E[?7l\E[?8h\E[1;42r\E[42;1H, 
        use=z340, 
 
+# CRT is shareware.  It implements some xterm features, including mouse.
+crt|crt-vt220|CRT 2.3 emulating VT220, 
+       bce, msgr, 
+       colors#8, pairs#64, 
+       hts=\EH, op=\E[39;49m, setab=\E[4%p1%dm, 
+       setaf=\E[3%p1%dm, setb=\E[4%p1%dm, setf=\E[3%p1%dm, 
+       u6=\E[%i%d;%dR, u7=\E[6n, u8=\E[?1;2c, u9=\E[c, 
+       use=vt220, 
+
+# This entry is for Tera Term Pro version 2.3, for MS-Windows 95/NT written by
+# T. Teranishi dated Mar 10, 1998.  It is a free software terminal emulator
+# (communication program) which supports:
+#
+#      - Serial port connections.
+#      - TCP/IP (telnet) connections.
+#      - VT100 emulation, and selected VT200/300 emulation.
+#      - TEK4010 emulation.
+#      - File transfer protocols (Kermit, XMODEM, ZMODEM, B-PLUS and
+#        Quick-VAN).
+#      - Scripts using the "Tera Term Language".
+#      - Japanese and Russian character sets.
+#
+# The program does not come with terminfo or termcap entries.  However, the
+# emulation (testing with vttest and ncurses) is reasonably close to vt100 (no
+# vt52 or doublesize character support; blinking is done with color).  Besides
+# the HPA, VPA extensions it also implements CPL and CNL.
+#
+# All of the function keys can be remapped.  This description shows the default
+# mapping, as installed.  Both vt100 PF1-PF4 keys and quasi-vt220 F1-F4 keys
+# are supported.  F13-F20 are obtained by shifting F3-F10.  The editing keypad
+# is laid out like vt220, rather than the face codes on the PC keyboard, i.e,
+#      kfnd    Insert
+#      kslt    Delete
+#      kich1   Home
+#      kdch1   PageUp
+#      kpp     End
+#      knp     PageDown
+#
+# ANSI colors are implemented, but cannot be combined with video attributes
+# except for reverse.
+#
+# No fonts are supplied with the program, so the acsc string is chosen to
+# correspond with the default Microsoft terminal font.
+#
+# Tera Term recognizes some xterm sequences, including those for setting and
+# retrieving the window title, and for setting the window size (i.e., using
+# "resize -s"), though it does not pass SIGWINCH to the application if the
+# user resizes the window with the mouse.
+teraterm|Tera Term Pro, 
+       km, xon@, 
+       ncv#43, vt@, 
+       acsc=+\020\,\021-\030.^Y0\333`\004a\261f\370g\361h\260i\316j\331k\277l\332m\300n\305o~p\304q\304r\304s_t\303u\264v\301w\302x\263y\363z\362{\343|\330}\234~\376, 
+       blink=\E[5m, bold=\E[1m, civis=\E[?25l, clear=\E[H\E[J, 
+       cnorm=\E[?25h, cuf1=\E[C, cup=\E[%i%p1%d;%p2%dH, 
+       cuu1=\E[A, dch=\E[%p1%dP, dch1=\E[P, dl=\E[%p1%dM, 
+       dl1=\E[M, ech=\E[%p1%dX, ed=\E[J, el=\E[K, el1=\E[1K, 
+       flash=\E[?5h\E[?5l$<200/>, hpa=\E[%i%p1%dG, 
+       il=\E[%p1%dL, il1=\E[L, kdch1=\E[3~, kf1=\E[11~, 
+       kf10=\E[21~, kf11=\E[23~, kf12=\E[24~, kf13=\E[25~, 
+       kf14=\E[26~, kf15=\E[28~, kf16=\E[29~, kf17=\E[31~, 
+       kf18=\E[32~, kf19=\E[33~, kf2=\E[12~, kf20=\E[34~, 
+       kf3=\E[13~, kf4=\E[14~, kf5=\E[15~, kf6=\E[17~, kf7=\E[18~, 
+       kf8=\E[19~, kf9=\E[20~, kfnd=\E[1~, kich1=\E[2~, knp=\E[6~, 
+       kpp=\E[5~, kslt=\E[4~, op=\E[100m, rev=\E[7m, ri=\EM, 
+       rmso=\E[27m, rmul=\E[24m, sgr0=\E[m, smso=\E[7m, 
+       smul=\E[4m, u6=\E[%i%d;%dR, u7=\E[6n, u8=\E[?1;2c, u9=\E[c, 
+       vpa=\E[%i%p1%dd, 
+       use=klone+color, use=vt100, 
+
+# Tested with WinNT 4.0, the telnet application assumes the screensize is
+# 25x80.  This entry uses the 'Terminal' font, to get line-drawing characters.
+ms-vt100|MS telnet imitating dec vt100, 
+       lines#25, 
+       acsc=+\020\,\021-\030.^Y0\333`\004a\261f\370g\361h\260i\316j\331k\277l\332m\300n\305o~p\304q\304r\304s_t\303u\264v\301w\302x\263y\363z\362{\343|\330}\234~\376, 
+       tbc@, u6=\E[%i%d;%dR, u7=\E[6n, u8=\E[?6c, u9=\E[c, 
+       use=vt100, 
+
 #### X terminal emulators
 #
 # You can add the following line to your .Xdefaults to change the terminal type
@@ -1786,6 +2182,8 @@ x10term|vs100-x10|xterm terminal emulator (X10 window system),
        smso=\E[7m, smul=\E[4m, 
 # Compatible with the R5 xterm 
 # (from the XFree86 3.2 distribution, <blink=@> removed)
+# added khome/kend, rmir/smir, rmul/smul based on the R5 xterm code - TD
+# corrected typos in rs2 string - TD
 xterm-r5|xterm R5 version, 
        am, km, msgr, xenl, 
        cols#80, it#8, lines#24, 
@@ -1797,21 +2195,25 @@ xterm-r5|xterm R5 version,
        el=\E[K, home=\E[H, ht=^I, hts=\EH, ich=\E[%p1%d@, ich1=\E[@, 
        il=\E[%p1%dL, il1=\E[L, ind=^J, kbs=^H, kcub1=\EOD, 
        kcud1=\EOB, kcuf1=\EOC, kcuu1=\EOA, kdch1=\E[3~, 
-       kdl1=\E[31~, kel=\E[8~, kf0=\EOq, kf1=\E[11~, kf10=\E[21~, 
-       kf11=\E[23~, kf12=\E[24~, kf2=\E[12~, kf3=\E[13~, 
-       kf4=\E[14~, kf5=\E[15~, kf6=\E[17~, kf7=\E[18~, kf8=\E[19~, 
-       kf9=\E[20~, khome=\E[7~, kich1=\E[2~, kil1=\E[30~, 
-       knp=\E[6~, kpp=\E[5~, rc=\E8, rev=\E[7m, ri=\EM, 
-       rmkx=\E[?1l\E>, rmso=\E[m, 
-       rs1=\E>\E[1;3;4;5;6l\E[?7h\E[m\E[r\E[2J\E[H, sc=\E7, 
+       kdl1=\E[31~, kel=\E[8~, kend=\E[4~, kf0=\EOq, kf1=\E[11~, 
+       kf10=\E[21~, kf11=\E[23~, kf12=\E[24~, kf2=\E[12~, 
+       kf3=\E[13~, kf4=\E[14~, kf5=\E[15~, kf6=\E[17~, kf7=\E[18~, 
+       kf8=\E[19~, kf9=\E[20~, khome=\E[1~, kich1=\E[2~, 
+       kil1=\E[30~, kmous=\E[M, knp=\E[6~, kpp=\E[5~, rc=\E8, 
+       rev=\E[7m, ri=\EM, rmir=\E[4l, rmkx=\E[?1l\E>, rmso=\E[m, 
+       rmul=\E[m, 
+       rs2=\E>\E[?1;3;4;5;6l\E[4l\E[?7h\E[m\E[r\E[2J\E[H, 
+       sc=\E7, 
        sgr=\E[%?%p1%t;7%;%?%p2%t;4%;%?%p3%t;7%;%?%p4%t;5%;%?%p6%t;1%;m, 
-       sgr0=\E[m, smkx=\E[?1h\E=, smso=\E[7m, tbc=\E[3g, 
+       sgr0=\E[m, smir=\E[4h, smkx=\E[?1h\E=, smso=\E[7m, 
+       smul=\E[4m, tbc=\E[3g, 
 # Compatible with the R6 xterm
 # (from XFree86 3.2 distribution, <acsc> and <it> added, <blink@> removed)
+# added khome/kend - TD
 xterm-r6|xterm-old|xterm X11R6 version, 
        am, km, mir, msgr, xenl, 
        cols#80, it#8, lines#24, 
-       acsc=``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~, 
+       acsc=``aaffggiijjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~, 
        bel=^G, bold=\E[1m, clear=\E[H\E[2J, cr=^M, 
        csr=\E[%i%p1%d;%p2%dr, cub=\E[%p1%dD, cub1=^H, 
        cud=\E[%p1%dB, cud1=^J, cuf=\E[%p1%dC, cuf1=\E[C, 
@@ -1826,28 +2228,30 @@ xterm-r6|xterm-old|xterm X11R6 version,
        kf16=\E[29~, kf17=\E[31~, kf18=\E[32~, kf19=\E[33~, 
        kf2=\EOQ, kf20=\E[34~, kf3=\EOR, kf4=\EOS, kf5=\E[15~, 
        kf6=\E[17~, kf7=\E[18~, kf8=\E[19~, kf9=\E[20~, kfnd=\E[1~, 
-       kich1=\E[2~, knp=\E[6~, kpp=\E[5~, kslt=\E[4~, meml=\El
-       memu=\Em, rc=\E8, rev=\E[7m, ri=\EM, rmacs=^O, 
+       kich1=\E[2~, kmous=\E[M, knp=\E[6~, kpp=\E[5~, kslt=\E[4~
+       meml=\El, memu=\Em, rc=\E8, rev=\E[7m, ri=\EM, rmacs=^O, 
        rmcup=\E[2J\E[?47l\E8, rmir=\E[4l, rmkx=\E[?1l\E>, 
        rmso=\E[m, rmul=\E[m, 
        rs2=\E7\E[r\E[m\E[?7h\E[?1;3;4;6l\E[4l\E8\E>, sc=\E7, 
        sgr0=\E[m, smacs=^N, smcup=\E7\E[?47h, smir=\E[4h, 
        smkx=\E[?1h\E=, smso=\E[7m, smul=\E[4m, tbc=\E[3g, 
-# This is the stock xterm entry supplied with XFree86 3.2
+       u6=\E[%i%d;%dR, u7=\E[6n, u8=\E[?1;2c, u9=\E[c, 
+# This is the base xterm entry for the xterm supplied with XFree86 3.2 & up.
 # The name has been changed and some aliases have been removed.
-xterm-xf86-v32|xterm terminal emulator (X Window System), 
+xterm-xf86-v32|xterm terminal emulator (XFree86 3.2 Window System), 
        am, bce, km, mir, msgr, xenl, 
        colors#8, cols#80, it#8, lines#24, pairs#64, 
-       acsc=``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~, 
-       bel=^G, bold=\E[1m, civis=\E[?25l, clear=\E[H\E[2J, 
-       cnorm=\E[?25h, cr=^M, csr=\E[%i%p1%d;%p2%dr, 
-       cub=\E[%p1%dD, cub1=^H, cud=\E[%p1%dB, cud1=^J, 
-       cuf=\E[%p1%dC, cuf1=\E[C, cup=\E[%i%p1%d;%p2%dH, 
-       cuu=\E[%p1%dA, cuu1=\E[A, cvvis=\E[?25h, dch=\E[%p1%dP, 
-       dch1=\E[P, dl=\E[%p1%dM, dl1=\E[M, ech=\E[%p1%dX, ed=\E[J, 
-       el=\E[K, el1=\E[1K, enacs=\E(B\E)0, flash=\E[?5h\E[?5l, 
-       home=\E[H, hpa=\E[%i%p1%dG, ht=^I, hts=\EH, ich=\E[%p1%d@, 
-       ich1=\E[@, il=\E[%p1%dL, il1=\E[L, ind=^J, 
+       acsc=``aaffggiijjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~, 
+       bel=^G, bold=\E[1m, cbt=\E[Z, civis=\E[?25l, 
+       clear=\E[H\E[2J, cnorm=\E[?25h, cr=^M, 
+       csr=\E[%i%p1%d;%p2%dr, cub=\E[%p1%dD, cub1=^H, 
+       cud=\E[%p1%dB, cud1=^J, cuf=\E[%p1%dC, cuf1=\E[C, 
+       cup=\E[%i%p1%d;%p2%dH, cuu=\E[%p1%dA, cuu1=\E[A, 
+       cvvis=\E[?25h, dch=\E[%p1%dP, dch1=\E[P, dl=\E[%p1%dM, 
+       dl1=\E[M, ech=\E[%p1%dX, ed=\E[J, el=\E[K, el1=\E[1K, 
+       enacs=\E(B\E)0, flash=\E[?5h\E[?5l, home=\E[H, 
+       hpa=\E[%i%p1%dG, ht=^I, hts=\EH, ich=\E[%p1%d@, ich1=\E[@, 
+       il=\E[%p1%dL, il1=\E[L, ind=^J, 
        is2=\E7\E[r\E[m\E[?7h\E[?1;3;4;6l\E[4l\E8\E>, 
        ka1=\EOw, ka3=\EOu, kb2=\EOy, kbeg=\EOE, kbs=^H, kc1=\EOq, 
        kc3=\EOs, kcub1=\EOD, kcud1=\EOB, kcuf1=\EOC, kcuu1=\EOA, 
@@ -1868,13 +2272,108 @@ xterm-xf86-v32|xterm terminal emulator (X Window System),
        sgr=\E[0%?%p1%p6%|%t;1%;%?%p2%t;4%;%?%p1%p3%|%t;7%;%?%p4%t;5%;m%?%p9%t\016%e\017%;, 
        sgr0=\E[m\017, smacs=^N, smam=\E[?7h, smcup=\E7\E[?47h, 
        smir=\E[4h, smkx=\E[?1h\E=, smso=\E[7m, smul=\E[4m, 
-       tbc=\E[3g, vpa=\E[%i%p1%dd, 
+       tbc=\E[3g, u6=\E[%i%d;%dR, u7=\E[6n, u8=\E[?1;2c, u9=\E[c, 
+       vpa=\E[%i%p1%dd, 
+
+# This is the stock xterm entry supplied with XFree86 3.3, which uses VT100
+# codes for F1-F4 except while in VT220 mode.
+xterm-xf86-v33|xterm terminal emulator (XFree86 3.3 Window System), 
+       kf1=\EOP, kf2=\EOQ, kf3=\EOR, kf4=\EOS, 
+       use=xterm-xf86-v32, 
 
-# This is xterm for ncurses. It mainly adds mappings for more high-half
-# characters.  Note that these will only work for fixed-width fonts.
-# Once XFree86 3.2 is established, we'll switch this to use=xterm-xf86-v32
-xterm|vs100|xterms|xterm terminal emulator (X Window System), 
-       acsc=``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~..--++\,\,II00, 
+# This version was released in XFree86 3.3.3 (November 1998).
+# Besides providing printer support, it exploits a new feature that allows
+# xterm to use terminfo-based descriptions with the titeInhibit resource.
+xterm-xf86-v333|xterm terminal emulator (XFree86 3.3.3 Window System), 
+       mc5i, 
+       blink=\E[5m, ich1@, invis=\E[8m, 
+       is2=\E[!p\E[?3;4l\E[4l\E>, kdch1=\E[3~, kend=\E[4~, 
+       kfnd@, khome=\E[1~, kslt@, mc0=\E[i, mc4=\E[4i, mc5=\E[5i, 
+       rmcup=\E[?1047l\E[?1048l, rs1=\Ec, 
+       rs2=\E[!p\E[?3;4l\E[4l\E>, 
+       sgr=\E[0%?%p1%p6%|%t;1%;%?%p2%t;4%;%?%p1%p3%|%t;7%;%?%p4%t;5%;%?%p7%t;8%;m%?%p9%t\016%e\017%;, 
+       smcup=\E[?1048h\E[?1047h, 
+       use=xterm-xf86-v33, 
+
+# This beta version will probably be released in XFree86 4.0.
+xterm-xf86-v40|xterm terminal emulator (XFree86 4.0 Window System), 
+       ka1=\EOH, ka3=\E[5~, kb2=\EOE, kc1=\EOF, kc3=\E[6~, 
+       kdch1=\177, kend=\EOF, khome=\EOH, rmcup=\E[?1049l, 
+       smcup=\E[?1049h, 
+       use=xterm-xf86-v333, 
+
+xterm-xfree86|xterm-new|xterm terminal emulator (XFree86 4.0 Window System), 
+       use=xterm-xf86-v40, 
+
+# From: David J. MacKenzie <djm@va.pubnix.com>, 14 Nov 1997
+xterm-xi|xterm on XI Graphics Accelerated X under BSD/OS 3.1, 
+       rmso=\E[m, rmul=\E[m, 
+       use=xterm-xf86-v33, 
+
+# This is one of the variants of XFree86 3.3 xterm, updated for 4.0 (T.Dickey)
+xterm-16color|xterm with 16 colors like aixterm, 
+       colors#16, ncv#32, pairs#256, 
+       setab=\E[%?%p1%{8}%<%t%p1%{40}%+%e%p1%{92}%+%;%dm, 
+       setaf=\E[%?%p1%{8}%<%t%p1%{30}%+%e%p1%{82}%+%;%dm, 
+       setb=%p1%{8}%/%{6}%*%{4}%+\E[%d%p1%{8}%m%Pa%?%ga%{1}%=%t4%e%ga%{3}%=%t6%e%ga%{4}%=%t1%e%ga%{6}%=%t3%e%ga%d%;m, 
+       setf=%p1%{8}%/%{6}%*%{3}%+\E[%d%p1%{8}%m%Pa%?%ga%{1}%=%t4%e%ga%{3}%=%t6%e%ga%{4}%=%t1%e%ga%{6}%=%t3%e%ga%d%;m, 
+       use=xterm-xf86-v40, 
+
+# This is another variant, for XFree86 4.0 xterm (T.Dickey)
+# This is an 8-bit version of xterm, which emulates DEC vt220 with ANSI color.
+# To use it, your decTerminalID resource must be set to 200 or above.
+#
+#      HTS     \E H    \210
+#      RI      \E M    \215
+#      SS3     \E O    \217
+#      CSI     \E [    \233
+#
+xterm-8bit|xterm terminal emulator 8-bit controls (X Window System), 
+       am, bce, km, mc5i, mir, msgr, xenl, 
+       colors#8, cols#80, it#8, lines#24, pairs#64, 
+       acsc=``aaffggiijjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~, 
+       bel=^G, blink=\2335m, bold=\2331m, cbt=\233Z, 
+       civis=\233?25l, clear=\233H\2332J, cnorm=\233?25h, cr=^M, 
+       csr=\233%i%p1%d;%p2%dr, cub=\233%p1%dD, cub1=^H, 
+       cud=\233%p1%dB, cud1=^J, cuf=\233%p1%dC, cuf1=\233C, 
+       cup=\233%i%p1%d;%p2%dH, cuu=\233%p1%dA, cuu1=\233A, 
+       cvvis=\233?25h, dch=\233%p1%dP, dch1=\233P, 
+       dl=\233%p1%dM, dl1=\233M, ech=\233%p1%dX, ed=\233J, 
+       el=\233K, el1=\2331K, enacs=\E(B\E)0, 
+       flash=\233?5h\233?5l, home=\233H, hpa=\233%i%p1%dG, 
+       ht=^I, hts=\210, ich=\233%p1%d@, il=\233%p1%dL, il1=\233L, 
+       ind=^J, invis=\2338m, 
+       is2=\E7\E G\233r\233m\233?7h\233?1;3;4;6l\2334l\E8\E>, 
+       ka1=\217w, ka3=\217u, kb2=\217y, kbeg=\217E, kbs=^H, 
+       kc1=\217q, kc3=\217s, kcub1=\217D, kcud1=\217B, 
+       kcuf1=\217C, kcuu1=\217A, kdch1=\2333~, kend=\2334~, 
+       kent=\217M, kf1=\23311~, kf10=\23321~, kf11=\23323~, 
+       kf12=\23324~, kf13=\23325~, kf14=\23326~, kf15=\23328~, 
+       kf16=\23329~, kf17=\23331~, kf18=\23332~, kf19=\23333~, 
+       kf2=\23312~, kf20=\23334~, kf3=\23313~, kf4=\23314~, 
+       kf5=\23315~, kf6=\23317~, kf7=\23318~, kf8=\23319~, 
+       kf9=\23320~, khome=\2331~, kich1=\2332~, kmous=\233M, 
+       knp=\2336~, kpp=\2335~, mc0=\233i, mc4=\2334i, mc5=\2335i, 
+       meml=\El, memu=\Em, op=\23339;49m, rc=\E8, rev=\2337m, 
+       ri=\215, rmacs=^O, rmam=\233?7l, rmcup=\233?1049l, 
+       rmir=\2334l, rmkx=\233?1l\E>, rmso=\23327m, rmul=\23324m, 
+       rs1=\Ec, 
+       rs2=\E7\E[62"p\E G\233r\233m\233?7h\233?1;3;4;6l\2334l\E8\E>, 
+       sc=\E7, setab=\2334%p1%dm, setaf=\2333%p1%dm, 
+       setb=\2334%?%p1%{1}%=%t4%e%p1%{3}%=%t6%e%p1%{4}%=%t1%e%p1%{6}%=%t3%e%p1%d%;m, 
+       setf=\2333%?%p1%{1}%=%t4%e%p1%{3}%=%t6%e%p1%{4}%=%t1%e%p1%{6}%=%t3%e%p1%d%;m, 
+       sgr=\2330%?%p1%p6%|%t;1%;%?%p2%t;4%;%?%p1%p3%|%t;7%;%?%p4%t;5%;%?%p7%t;8%;m%?%p9%t\016%e\017%;, 
+       sgr0=\233m^O, smacs=^N, smam=\233?7h, smcup=\233?1049h, 
+       smir=\2334h, smkx=\233?1h\E=, smso=\2337m, smul=\2334m, 
+       tbc=\2333g, u6=\233[%i%d;%dR, u7=\E[6n, u8=\233[?1;2c, 
+       u9=\E[c, vpa=\233%i%p1%dd, 
+
+xterm-24|vs100|xterms|xterm terminal emulator (X Window System), 
+       lines#24, use=xterm, 
+
+# This is xterm for ncurses.
+xterm|xterm terminal emulator (X Window System), 
+       acsc=``aaffggiijjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~, 
        kmous=\E[M, u6=\E[%i%d;%dR, u7=\E[6n, u8=\E[?1;2c, u9=\E[c, 
        use=xterm-r6, 
 
@@ -1885,26 +2384,28 @@ xterm|vs100|xterms|xterm terminal emulator (X Window System),
 xterm+sl|access X title line and icon name, 
        hs, 
        wsl#40, 
-       dsl=\E]0;\007, fsl=^G, tsl=\E]0;, 
+       dsl=\E]0;\007, fsl=^G, tsl=\E]0;, use=xterm, 
 xterm+sl-twm|access X title line (pacify twm-descended window managers), 
        hs, 
        wsl#40, 
-       dsl=\E]2;\007, fsl=^G, tsl=\E]2;, 
+       dsl=\E]2;\007, fsl=^G, tsl=\E]2;, use=xterm, 
 
 #
 # The following xterm variants don't depend on your base version
 #
+# xterm with bold instead of underline
 xterm-bold|xterm terminal emulator (X11R6 Window System) standout w/bold, 
-       smso=\E[1m, 
+       smso=\E[7m, smul=\E[1m, 
        use=xterm, 
 # (kterm: this had extension capabilities ":KJ:TY=ascii:" -- esr)
 # (kterm should not invoke DEC Graphics as the alternate character set
 #  -- Kenji Rikitake)
 kterm|kterm kanji terminal emulator (X window system), 
        eslok, hs, 
-       csr=\E[%i%p1%d;%p2%dr, dsl=\E[?H, enacs=\E(B, fsl=\E[?F, 
-       rc=\E8, sc=\E7, tsl=\E[?E\E[?%i%dT, 
-       use=xterm, 
+       acsc@, csr=\E[%i%p1%d;%p2%dr, dsl=\E[?H, enacs@, fsl=\E[?F, 
+       kmous=\E[M, op=\E[39;49m, rc=\E8, rmacs@, sc=\E7, smacs@, 
+       tsl=\E[?E\E[?%i%dT, 
+       use=xterm-r6, use=klone+color, 
 # See the note on ICH/ICH1 VERSUS RMIR/SMIR near the end of file
 xterm-nic|xterm with ich/ich1 suppressed for non-curses programs, 
        ich@, ich1@, 
@@ -1918,6 +2419,8 @@ xterm1|xterm terminal emulator ignoring the alternate screen buffer,
 # before ECMA-64 color support was folded into the main-line xterm release.
 # This entry is straight from color_xterm's maintainer.
 # From: Jacob Mandelson <jlm@ugcs.caltech.edu>, 09 Nov 1996
+# The README's with the distribution also say that it supports SGR 21, 24, 25
+# and 27, but they are not present in the terminfo or termcap.
 color_xterm|cx|cx100|color_xterm color terminal emulator for X, 
        am, km, mir, msgr, xenl, 
        colors#8, cols#80, it#8, lines#65, pairs#64, 
@@ -1945,10 +2448,36 @@ color_xterm|cx|cx100|color_xterm color terminal emulator for X,
        smcup=\E[?1;41s\E[?1;41h\E=, smir=\E[4h, smso=\E[7m, 
        smul=\E[4m, 
 
-# From: Mark Olesen & Thomas Dickey <dickey@clark.net> 13 Jul 1996
-rxvt|reduced xterm terminal (X Window System), 
-       am, bce, km, mir, msgr, xenl, xon, 
-       colors#8, cols#80, it#8, lines#24, pairs#64, 
+# The 'nxterm' distributed with Redhat Linux is a slight rehack of
+# xterm-sb_right-ansi-3d, which implements ANSI colors, but does not support
+# SGR 39 or 49.  SGR 0 does reset colors (along with everything else).  This
+# description is "compatible" with color_xterm, rxvt and XFree86 xterm, except
+# that each of those implements the home, end, delete keys differently.
+nxterm|xterm-color|generic color xterm, 
+       ncv@, 
+       op=\E[m, use=xterm-r6, use=klone+color, 
+
+# From: Thomas Dickey <dickey@clark.net> 04 Oct 1997
+# Updated: Oezguer Kesim <kesim@math.fu-berlin.de> 02 Nov 1997
+# Notes:
+# rxvt 2.21b uses
+#      smacs=\E(B\E)U^N, rmacs=\E(B\E)0^O,
+# but some applications don't work with that.
+# It also has an AIX extension
+#      box2=lqkxjmwuvtn,
+# and
+#      ech=\E[%p1%dX,
+# but the latter does not work correctly.
+#
+# The distributed terminfo says it implements hpa and vpa, but they are not
+# implemented correctly, using relative rather than absolute positioning.
+#
+# rxvt is normally configured to look for "xterm" or "xterm-color" as $TERM.
+# Since rxvt is not really compatible with xterm, it should be configured as
+# "rxvt" (monochrome) and "rxvt-color". 
+rxvt-basic|rxvt terminal base (X Window System), 
+       am, bce, eo, km, mir, msgr, xenl, xon, 
+       cols#80, it#8, lines#24, 
        acsc=``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~, 
        bel=^G, blink=\E[5m, bold=\E[1m, civis=\E[?25l, 
        clear=\E[H\E[2J, cnorm=\E[?25h, cr=^M, 
@@ -1956,30 +2485,68 @@ rxvt|reduced xterm terminal (X Window System),
        cud=\E[%p1%dB, cud1=^J, cuf=\E[%p1%dC, cuf1=\E[C, 
        cup=\E[%i%p1%d;%p2%dH, cuu=\E[%p1%dA, cuu1=\E[A, 
        cvvis=\E[?25h, dch=\E[%p1%dP, dch1=\E[P, dl=\E[%p1%dM, 
-       dl1=\E[M, ech=\E[%p1%dX, ed=\E[J, el=\E[K, el1=\E[1K
-       enacs=\E(B\E)0, flash=\E[?5h\E[?5l, home=\E[H, 
-       hpa=\E[%i%p1%dG, ht=^I, hts=\EH, ich=\E[%p1%d@, ich1=\E[@
-       il=\E[%p1%dL, il1=\E[L, ind=^J, is1=\E[?47l\E=\E[?1l, 
+       dl1=\E[M, ed=\E[J, el=\E[K, el1=\E[1K, enacs=\E(B\E)0
+       flash=\E[?5h\E[?5l, home=\E[H, ht=^I, hts=\EH, 
+       ich=\E[%p1%d@, ich1=\E[@, il=\E[%p1%dL, il1=\E[L, ind=^J
+       is1=\E[?47l\E=\E[?1l, 
        is2=\E[r\E[m\E[2J\E[H\E[?7h\E[?1;3;4;6l\E[4l, 
        kDC=\E[3$, kEND=\E[8$, kHOM=\E[7$, kLFT=\E[d, kNXT=\E[6$, 
-       kPRV=\E[5$, kRIT=\E[c, ka1=\EOq, ka3=\EOs, kb2=\EOr, kbs=^H, 
-       kc1=\EOp, kc3=\EOn, kcbt=\E[Z, kcub1=\E[D, kcud1=\E[B, 
-       kcuf1=\E[C, kcuu1=\E[A, kdch1=\E[3~, kend=\E[8~, kent=\EOM
-       kf0=\E[21~, kf1=\E[11~, kf10=\E[21~, kf11=\E[23~, 
-       kf12=\E[24~, kf13=\E[25~, kf14=\E[26~, kf15=\E[28~, 
-       kf16=\E[29~, kf17=\E[31~, kf18=\E[32~, kf19=\E[33~, 
-       kf2=\E[12~, kf20=\E[34~, kf3=\E[13~, kf4=\E[14~, 
-       kf5=\E[15~, kf6=\E[17~, kf7=\E[18~, kf8=\E[19~, kf9=\E[20~, 
-       khome=\E[7~, kich1=\E[2~, kmous=\E[M, knp=\E[6~, kpp=\E[5~, 
-       op=\E[39m\E[49m, rc=\E8, rev=\E[7m, ri=\EM
-       rmacs=\E(B\E)0\017, rmcup=\E[?47l\E8, rmir=\E[4l
-       rmkx=\E>, rmso=\E[27m, rmul=\E[24m, 
+       kPRV=\E[5$, kRIT=\E[c, ka1=\EOw, ka3=\EOy, kb2=\EOu, kbs=^H, 
+       kc1=\EOq, kc3=\EOs, kcbt=\E[Z, kcub1=\E[D, kcud1=\E[B, 
+       kcuf1=\E[C, kcuu1=\E[A, kdch1=\E[3~, kel=\E[8\^
+       kend=\E[8~, kent=\EOM, kf0=\E[21~, kf1=\E[11~, kf10=\E[21~, 
+       kf11=\E[23~, kf12=\E[24~, kf13=\E[25~, kf14=\E[26~, 
+       kf15=\E[28~, kf16=\E[29~, kf17=\E[31~, kf18=\E[32~, 
+       kf19=\E[33~, kf2=\E[12~, kf20=\E[34~, kf3=\E[13~, 
+       kf4=\E[14~, kf5=\E[15~, kf6=\E[17~, kf7=\E[18~, kf8=\E[19~, 
+       kf9=\E[20~, kfnd=\E[1~, khome=\E[7~, kich1=\E[2~, 
+       kmous=\E[M, knp=\E[6~, kpp=\E[5~, kslt=\E[4~, rc=\E8
+       rev=\E[7m, ri=\EM, rmacs=^O, rmcup=\E[2J\E[?47l\E8
+       rmir=\E[4l, rmkx=\E>, rmso=\E[27m, rmul=\E[24m, 
        rs1=\E>\E[1;3;4;5;6l\E[?7h\E[m\E[r\E[2J\E[H, 
        rs2=\E[r\E[m\E[2J\E[H\E[?7h\E[?1;3;4;6l\E[4l\E>, 
-       sc=\E7, setab=\E[4%p1%dm, setaf=\E[3%p1%dm, sgr0=\E[m, 
-       smacs=\E(B\E)U\016, smcup=\E7\E[?47h, smir=\E[4h, 
-       smkx=\E=, smso=\E[7m, smul=\E[4m, tbc=\E[3g, 
-       vpa=\E[%i%p1%dd, 
+       s0ds=\E(B, s1ds=\E(0, sc=\E7, sgr0=\E[0m\017, smacs=^N, 
+       smcup=\E7\E[?47h, smir=\E[4h, smkx=\E=, smso=\E[7m, 
+       smul=\E[4m, tbc=\E[3g, 
+rxvt|rxvt terminal emulator (X Window System), 
+       colors#8, pairs#64, 
+       op=\E[39;49m, setab=\E[%p1%{40}%+%dm, 
+       setaf=\E[%p1%{30}%+%dm, sgr0=\E[m\017, use=rxvt-basic, 
+
+# These (xtermc and xtermm) are distributed with Solaris.  They refer to a
+# variant of xterm which is apparently no longer supported, but are interesting
+# because they illustrate SVr4 curses mouse controls - T.Dickey
+xtermm|xterm terminal emulator (monocrome), 
+       am, km, mir, msgr, xenl, 
+       btns#3, cols#80, it#8, lines#24, 
+       acsc=``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~, 
+       bel=^G, blink=@, bold=\E[1m, clear=\E[H\E[2J, cr=^M, 
+       csr=\E[%i%p1%d;%p2%dr, cub=\E[%p1%dD, cub1=\E[1D, 
+       cud=\E[%p1%dB, cud1=^J, cuf=\E[%p1%dC, cuf1=\E[C, 
+       cup=\E[%i%p1%d;%p2%dH, cuu=\E[%p1%dA, cuu1=\E[A, 
+       dch=\E[%p1%dP, dch1=\E[P, dl=\E[%p1%dM, dl1=\E[M, ed=\E[J, 
+       el=\E[K, el1=\E[1K$<3>, enacs=\E(B\E)0, getm=\E[%p1%dY, 
+       home=\E[H, ht=^I, hts=\EH, ich=\E[%p1%d@, ich1=\E[@, 
+       il=\E[%p1%dL, il1=\E[L, ind=^J, ka1=\EOq, ka3=\EOs, kb2=\EOr, 
+       kbs=^H, kc1=\EOp, kc3=\EOn, kcub1=\EOD, kcud1=\EOB, 
+       kcuf1=\EOC, kcuu1=\EOA, kend=\E[Y, kent=\EOM, kf0=\EOy, 
+       kf1=\EOP, kf10=\EOY, kf11=\EOZ, kf12=\EOA, kf2=\EOQ, 
+       kf3=\EOR, kf4=\EOS, kf5=\EOT, kf6=\EOU, kf7=\EOV, kf8=\EOW, 
+       kf9=\EOX, khome=\E[H, kmous=\E[^_, knp=\E[U, kpp=\E[V, 
+       rc=\E8, reqmp=\E[492Z, rev=\E[7m, ri=\EM, rmacs=^O, 
+       rmcup=\E@0\E[?4r, rmso=\E[m, 
+       rs1=\E>\E[1;3;4;5;6l\E[?7h\E[m\E[r\E[2J\E[H, 
+       rs2=\E>\E[?3l\E[?4l\E[?5l\E[?7h\E[?8h, sc=\E7, 
+       sgr=\E[0%?%p1%p6%|%t;1%;%?%p2%t;4%;%?%p1%p3%|%t;7%;%?%p4%t;5%;m%?%p9%t\016%e\017%;, 
+       sgr0=\E[m\017, smacs=^N, smcup=\E@0\E[?4s\E[?4h\E@1, 
+       smso=\E[7m, tbc=\E[3g, 
+
+xtermc|xterm terminal emulator (color), 
+       colors#8, ncv#7, pairs#64, 
+       op=\E[100m, setab=\E[4%p1%dm, setaf=\E[3%p1%dm, 
+       setb=\E[4%?%p1%{1}%=%t4%e%p1%{3}%=%t6%e%p1%{4}%=%t1%e%p1%{6}%=%t3%e%p1%d%;m, 
+       setf=\E[3%?%p1%{1}%=%t4%e%p1%{3}%=%t6%e%p1%{4}%=%t1%e%p1%{6}%=%t3%e%p1%d%;m, 
+       use=xtermm, 
 
 # From: David J. MacKenzie <djm@va.pubnix.com> 20 Apr 1995
 # Here's a termcap entry I've been using for xterm_color, which comes
@@ -1989,11 +2556,11 @@ rxvt|reduced xterm terminal (X Window System),
 xterm-pcolor|xterm with color used for highlights and status line, 
        bold=\E[1m\E[43m, rev=\E[7m\E[34m, smso=\E[7m\E[31m, 
        smul=\E[4m\E[42m, 
-       use=xterm+sl, use=xterm, 
+       use=xterm+sl, use=xterm-r6
 
 # HP ships this, except for the pb#9600 which was merged in from BSD termcap.
 # (hpterm: added empty <acsc>, we have no idea what ACS chars look like --esr)
-xhpterm|X-hpterm|hp X11 terminal emulator, 
+hpterm|X-hpterm|hp X11 terminal emulator, 
        am, da, db, mir, xhp, 
        cols#80, lh#2, lines#24, lm#0, lw#8, nlab#8, pb#9600, xmc#0, 
        acsc=, bel=^G, bold=\E&dB, cbt=\Ei, clear=\E&a0y0C\EJ, cr=^M, 
@@ -2011,7 +2578,7 @@ xhpterm|X-hpterm|hp X11 terminal emulator,
        pln=\E&f%p1%dk%p2%l%dd0L%p2%s, rev=\E&dB, ri=\ET, 
        rmacs=^O, rmir=\ER, rmkx=\E&s0A, rmln=\E&j@, rmso=\E&d@, 
        rmul=\E&d@, 
-       sgr=\E&d%?%p7%t%'s'%c%;%p1%p3%|%p6%|%{2}%*%p2%{4}%*%+%p4%+%p5%{8}%*%+%'@'%+%c%?%p9%t%'\016'%c%e%'\017'%c%;, 
+       sgr=\E&d%?%p7%t%{115}%c%;%p1%p3%|%p6%|%{2}%*%p2%{4}%*%+%p4%+%p5%{8}%*%+%{64}%+%c%?%p9%t%'\016'%c%e%'\017'%c%;, 
        sgr0=\E&d@, smacs=^N, smir=\EQ, smkx=\E&s1A, smln=\E&jB, 
        smso=\E&dJ, smul=\E&dD, tbc=\E3, vpa=\E&a%p1%dY, 
 
@@ -2038,18 +2605,18 @@ xterm-sun|xterm with sunFunctionKeys true,
 xterms-sun|small (80x24) xterm with sunFunctionKeys true, 
        cols#80, lines#24, use=xterm-sun, 
 
-# This is for the extensible terminal emulator on the X11R6 contrib tape (emu).
+# This is for the extensible terminal emulator on the X11R6 contrib tape.
 emu|emu native mode, 
        mir, msgr, xon, 
        colors#15, cols#80, it#8, lines#24, pairs#64, vt#200, 
-       acsc=a\202f\260g261j\213k\214l\215m\216n\217o\220q\222s\224t\225u\226v\227w\230x\231~\244, 
+       acsc=61a\202f\260g2j\213k\214l\215m\216n\217o\220q\222s\224t\225u\226v\227w\230x\231~\244, 
        bel=^G, blink=\ES\EW, bold=\ES\EU, civis=\EZ, 
        clear=\EP\EE0;0;, cnorm=\Ea, cr=^M, csr=\Ek%p1%d;%p2%d;, 
        cub=\Eq-%p1%d;, cub1=^H, cud=\Ep%p1%d;, cud1=\EB, 
        cuf=\Eq%p1%d;, cuf1=\ED, cup=\EE%p1%d;%p2%d;, 
        cuu=\Ep-%p1%d;, cuu1=\EA, cvvis=\Ea, dch=\EI%p1%d;, 
        dch1=\EI1;, dl=\ER%p1%d;, dl1=\ER1;, ech=\Ej%p1%d;, ed=\EN, 
-       el=\EK, el1=\EL, enacs=\200, home=\EE0;0;, ht=^I, hts=\Eh, 
+       el=\EK, el1=\EL, enacs=\0, home=\EE0;0;, ht=^I, hts=\Eh, 
        il=\EQ%p1%d;, il1=\EQ1;, ind=\EG, is2=\ES\Er0;\Es0;, 
        kbs=^H, kcub1=\EC, kcud1=\EB, kcuf1=\ED, kcuu1=\EA, 
        kdch1=\177, kent=^M, kf0=\EF00, kf1=\EF01, kf10=\EF10, 
@@ -2058,12 +2625,48 @@ emu|emu native mode,
        kf20=\EF20, kf3=\EF03, kf4=\EF04, kf5=\EF05, kf6=\EF06, 
        kf7=\EF07, kf8=\EF08, kf9=\EF09, kfnd=\Efind, kich1=\Eins, 
        knp=\Enext, kpp=\Eprior, kslt=\Esel, oc=\Es0;\Er0;, 
-       rev=\ES\ET, ri=\EF, rmacs=\200, rmir=\EX, rmso=\ES, rmul=\ES, 
-       rs2=\ES\Es0;\Er0;, 
-       setab=\Es%i%p1%d; setaf=\Er%i%p1%d;, sgr0=\ES, 
-       smacs=\200, smir=\EY, smso=\ES\ET, smul=\ES\EV, tbc=\Ej, 
+       rev=\ES\ET, ri=\EF, rmacs=\0, rmir=\EX, rmso=\ES, rmul=\ES, 
+       rs2=\ES\Es0;\Er0;, setab=\Es%i%p1%d;, 
+       setaf=\Er%i%p1%d;, sgr0=\ES, smacs=\0, smir=\EY, 
+       smso=\ES\ET, smul=\ES\EV, tbc=\Ej, 
+
+#### MGR
+#
+# MGR is a Bell Labs window system lighter-weight than X.
+# These entries describe MGR's xterm-equivalent. 
+# They are courtesy of Vincent Broman <broman@nosc.mil> 14 Jan 1997 
+#
 
-######## UNIX VIRTUAL TERMINALS AND VIRTUAL CONSOLES
+mgr|Bellcore MGR (non X) window system terminal emulation, 
+       am, km, 
+       bel=^G, bold=\E2n, civis=\E9h, clear=^L, cnorm=\Eh, cr=^M, 
+       csr=\E%p1%d;%p2%dt, cub1=^H, cud1=\Ef, cuf1=\Er, 
+       cup=\E%p2%d;%p1%dM, cuu1=\Eu, cvvis=\E0h, 
+       dch=\E%p1%dE$<5>, dch1=\EE, dl=\E%p1%dd$<3*>, 
+       dl1=\Ed$<3>, ed=\EC, el=\Ec, hd=\E1;2f, ht=^I, hu=\E1;2u, 
+       ich=\E%p1%dA$<5>, ich1=\EA, il=\E%p1%da$<3*>, 
+       il1=\Ea$<3>, ind=^J, kbs=^H, kcub1=\E[D, kcud1=\E[B, 
+       kcuf1=\E[C, kcuu1=\E[A, nel=^M^J, rev=\E1n, rmam=\E5S, 
+       rmso=\E0n, rmul=\E0n, sgr0=\E0n, smam=\E5s, smso=\E1n, 
+       smul=\E4n, 
+mgr-sun|Mgr window with Sun keyboard, 
+       ka1=\E[214z, ka3=\E[216z, kb2=\E[218z, kc1=\E[220z, 
+       kc3=\E[222z, kcpy=\E197z, kend=\E[220z, kent=\E[250z, 
+       kf1=\E[224z, kf10=\E[233z, kf11=\E[234z, kf12=\E[235z, 
+       kf2=\E[225z, kf3=\E[226z, kf4=\E[227z, kf5=\E[228z, 
+       kf6=\E[229z, kf7=\E[230z, kf8=\E[231z, kf9=\E[232z, 
+       kfnd=\E[200z, khlp=\E[207z, khome=\E[214z, knp=\E[222z, 
+       kopn=\E[198z, kpp=\E[216z, kund=\E[195z, 
+       use=mgr, 
+mgr-linux|Mgr window with Linux keyboard, 
+       ka1=\E[H, ka3=\E[5~, kb2=\E[G, kc1=\E[Y, kc3=\E[6~, 
+       kdch1=\E[3~, kend=\E[4~, kf0=\E[[J, kf1=\E[[A, kf10=\E[21~, 
+       kf11=\E[23~, kf12=\E[24~, kf2=\E[[B, kf3=\E[[C, kf4=\E[[D, 
+       kf5=\E[[E, kf6=\E[17~, kf7=\E[18~, kf8=\E[19~, kf9=\E[20~, 
+       khome=\E[1~, knp=\E[6~, kpp=\E[5~, 
+       use=mgr, 
+
+######## UNIX VIRTUAL TERMINALS, VIRTUAL CONSOLES, AND TELNET CLIENTS
 #
 
 # Columbus UNIX virtual terminal. This terminal also appears in 
@@ -2081,6 +2684,7 @@ cbunix|cb unix virtual terminal,
 vremote|virtual remote terminal, 
        am@, 
        cols#79, use=cbunix, 
+
 pty|4bsd pseudo teletype, 
        cup=\EG%p1%{32}%+%c%p2%{32}%+%c, rmso=\Eb$, rmul=\Eb!, 
        smso=\Ea$, smul=\Ea!, 
@@ -2094,7 +2698,7 @@ eterm|gnu emacs term.el terminal emulation,
        csr=\E[%i%p1%d;%p2%dr, cub=\E[%p1%dD, cub1=^H, 
        cud=\E[%p1%dB, cud1=^J, cuf=\E[%p1%dC, cuf1=\E[C, 
        cup=\E[%i%p1%d;%p2%dH, cuu=\E[%p1%dA, cuu1=\E[A, 
-       dch=\E[%p1%dP, dch1=\E[P, dl=\E[%p1%dM, dl1=\E[M, ed=\\E[J, 
+       dch=\E[%p1%dP, dch1=\E[P, dl=\E[%p1%dM, dl1=\E[M, ed=\E[J, 
        el=\E[K, el1=\E[1K, home=\E[H, ht=^I, ich=\E[%p1%d@, 
        il=\E[%p1%dL, il1=\E[L, ind=^J, rev=\E[7m, 
        rmcup=\E[2J\E[?47l\E8, rmir=\E[4l, rmso=\E[m, rmul=\E[m, 
@@ -2109,30 +2713,30 @@ eterm|gnu emacs term.el terminal emulation,
 screen|VT 100/ANSI X3.64 virtual terminal, 
        am, km, mir, msgr, xenl, 
        colors#8, cols#80, it#8, lines#24, pairs#64, 
-       acsc=``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~..--++\,\,hhII00
+       acsc=++\,\,--..00``aaffgghhiijjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~
        bel=^G, blink=\E[5m, bold=\E[1m, cbt=\E[Z, civis=\E[?25l, 
-       clear=\E[H\E[J, cnorm=\E[?25h, cr=^M, 
+       clear=\E[H\E[J, cnorm=\E[34h\E[?25h, cr=^M, 
        csr=\E[%i%p1%d;%p2%dr, cub=\E[%p1%dD, cub1=^H, 
        cud=\E[%p1%dB, cud1=^J, cuf=\E[%p1%dC, cuf1=\E[C, 
        cup=\E[%i%p1%d;%p2%dH, cuu=\E[%p1%dA, cuu1=\EM, 
        cvvis=\E[34l, dch=\E[%p1%dP, dch1=\E[P, dl=\E[%p1%dM, 
-       dl1=\E[M, ed=\E[J, el=\E[K, enacs=\E(B\E)0, flash=\Eg
-       home=\E[H, ht=^I, hts=\EH, ich=\E[%p1%d@, il=\E[%p1%dL
-       il1=\E[L, ind=^J, is2=\E)0, kbs=^H, kcub1=\EOD, kcud1=\EOB
-       kcuf1=\EOC, kcuu1=\EOA, kdch1=\E[3~, kf1=\EOP, kf10=\E[21~
-       kf11=\E[23~, kf12=\E[24~, kf2=\EOQ, kf3=\EOR, kf4=\EOS
-       kf5=\E[15~, kf6=\E[17~, kf7=\E[18~, kf8=\E[19~, kf9=\E[20~, 
-       khome=\E[1~, kich1=\E[2~, kll=\E[4~, knp=\E[6~, kpp=\E[5~, 
-       nel=\EE, rc=\E8, rev=\E[7m, ri=\EM, rmacs=^O, rmir=\E[4l
-       rmkx=\E[?1l\E>, rmso=\E[23m, rmul=\E[24m, rs2=\Ec, sc=\E7
-       sgr0=\E[m, smacs=^N, smir=\E[4h, smkx=\E[?1h\E=
-       smso=\E[3m, smul=\E[4m, tbc=\E[3g, 
+       dl1=\E[M, ed=\E[J, el=\E[K, el1=\E[1K, enacs=\E(B\E)0
+       flash=\Eg, home=\E[H, ht=^I, hts=\EH, ich=\E[%p1%d@
+       il=\E[%p1%dL, il1=\E[L, ind=^J, is2=\E)0, kbs=^H, kcub1=\EOD
+       kcud1=\EOB, kcuf1=\EOC, kcuu1=\EOA, kdch1=\E[3~, kf1=\EOP
+       kf10=\E[21~, kf11=\E[23~, kf12=\E[24~, kf2=\EOQ, kf3=\EOR
+       kf4=\EOS, kf5=\E[15~, kf6=\E[17~, kf7=\E[18~, kf8=\E[19~, 
+       kf9=\E[20~, khome=\E[1~, kich1=\E[2~, kll=\E[4~, knp=\E[6~, 
+       kpp=\E[5~, nel=\EE, rc=\E8, rev=\E[7m, ri=\EM, rmacs=^O
+       rmir=\E[4l, rmkx=\E[?1l\E>, rmso=\E[23m, rmul=\E[24m
+       rs2=\Ec, sc=\E7, sgr0=\E[m, smacs=^N, smir=\E[4h
+       smkx=\E[?1h\E=, smso=\E[3m, smul=\E[4m, tbc=\E[3g, 
        use=ecma+color, 
 
 screen-w|VT 100/ANSI X3.64 virtual terminal with 132 cols, 
        cols#132, use=screen, 
 
-screen2|VT 100/ANSI X3.64 virtual terminal, 
+screen2|old VT 100/ANSI X3.64 virtual terminal, 
        cols#80, it#8, lines#24, 
        cbt=\E[Z, clear=\E[2J\E[H, cr=^M, cub=\E[%p1%dD, cub1=^H, 
        cud=\E[%p1%dB, cud1=\E[B, cuf=\E[%p1%dC, cuf1=\E[C, 
@@ -2146,7 +2750,7 @@ screen2|VT 100/ANSI X3.64 virtual terminal,
        rmul=\E[24m, rs1=\Ec, sc=\E7, sgr0=\E[m, smir=\E[4h, 
        smso=\E[3m, smul=\E[4m, tbc=\E[3g, 
 # (screen3: removed unknown ":xv:LP:G0:" -- esr)
-screen3|VT 100/ANSI X3.64 virtual terminal, 
+screen3|older VT 100/ANSI X3.64 virtual terminal, 
        km, mir, msgr, 
        cols#80, it#8, lines#24, 
        bel=^G, blink=\E[5m, bold=\E[1m, cbt=\E[Z, clear=\E[H\E[J, 
@@ -2162,8 +2766,116 @@ screen3|VT 100/ANSI X3.64 virtual terminal,
        sc=\E7, sgr0=\E[m, smir=\E[4h, smkx=\E=, smso=\E[3m, 
        smul=\E[4m, tbc=\E[3g, 
 
-######## WORKSTATION CONSOLES
+# Francesco Potorti <F.Potorti@cnuce.cnr.it>:
+# NCSA telnet is one of the most used telnet clients for the Macintosh.  It has
+# been maintained until recently by the National Center for Supercomputer
+# Applications, and it is feature rich, stable and free.  It can be downloaded
+# from www.ncsa.edu.  This terminfo description file is based on xterm-vt220,
+# xterm+sl, and the docs at NCSA.  It works well.
+#
+# NCSA Telnet 2.6 for Macintosh in vt220 8-bit emulation mode
+# The terminal options should be set as follows:
+#         Xterm sequences ON
+#         use VT wrap mode ON
+#         use Emacs arrow keys OFF
+#         CTRL-COMND is Emacs meta ON
+#         8 bit mode ON
+#         answerback string: "ncsa-vt220-8"
+#         setup keys: all disabled
+#
+# Application mode is not used.
+#
+# Other special mappings:
+#      Apple           VT220
+#      HELP            Find
+#      HOME            Insert here
+#      PAGEUP          Remove
+#      DEL             Select
+#      END             Prev Screen
+#      PAGEDOWN        Next Screen
+#
+# Though it supports ANSI color, NCSA Telnet uses color to represent blinking
+# text.
+#
+# The status-line manipulation is a mapping of the xterm-compatible control
+# sequences for setting the window-title.  So you must use tsl and fsl in
+# pairs, since the latter ends the string that is loaded to the window-title.
+ncsa-m|ncsa-vt220-8|NCSA Telnet 2.6 for Macintosh in vt220-8 mode, 
+       am, hs, km, mir, msgr, xenl, 
+       acsc=``aaffggiijjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~, 
+       bel=^G, blink=\E[5m, bold=\E[1m, civis=\E[?25l, 
+       clear=\E[H\E[2J, cnorm=\E[?25h, cr=^M, 
+       csr=\E[%i%p1%d;%p2%dr, cub=\E[%p1%dD, cub1=^H, 
+       cud=\E[%p1%dB, cud1=^J, cuf=\E[%p1%dC, cuf1=\E[C, 
+       cup=\E[%i%p1%d;%p2%dH, cuu=\E[%p1%dA, cuu1=\E[A, 
+       dch=\E[%p1%dP, dch1=\E[P, dl=\E[%p1%dM, dl1=\E[M, 
+       dsl=\E]0;\007, ed=\E[J, el=\E[K, el1=\E[1K, enacs=\E)0, 
+       flash=\E[?5h\E[?5l, fsl=^G, home=\E[H, ht=^I, hts=\EH, 
+       ich=\E[%p1%d@, if=/usr/share/tabset/vt100, 
+       il=\E[%p1%dL, il1=\E[L, ind=\n$<150*>, 
+       is2=\E7\E[r\E[m\E[?7h\E[?1;4;6l\E[4l\E8\E>, kbs=^H, 
+       kcub1=\E[D, kcud1=\E[B, kcuf1=\E[C, kcuu1=\E[A, 
+       kdch1=\E[4~, kend=\E[5~, kf1=\E[17~, kf10=\E[28~, 
+       kf11=\E[29~, kf12=\E[31~, kf13=\E[32~, kf14=\E[33~, 
+       kf15=\E[34~, kf2=\E[18, kf3=\E[19~, kf4=\E[20~, kf5=\E[21~, 
+       kf6=\E23~, kf7=\E[24~, kf8=\E[25~, kf9=\E[26~, khlp=\E[1~, 
+       khome=\E[2~, knp=\E[6~, kpp=\E[3~, mc4=\E[4i, mc5=\E[5i, 
+       rc=\E8, rev=\E[7m, rf=/usr/share/tabset/vt100, ri=\EM, 
+       rmacs=^O, rmam=\E[?7l, rmcup=\E[2J\E8, rmir=\E[4l, 
+       rmso=\E[27m, rmul=\E[24m, 
+       rs2=\E7\E[r\E[m\E[?7h\E[?1;4;6l\E[4l\E8\E>, sc=\E7, 
+       sgr=\E[0%?%p6%t;1%;%?%p2%t;4%;%?%p4%t;5%;%?%p1%p3%|%t;7%;m%?%p9%t\E(0%e\E(B%;, 
+       sgr0=\E[m\017, smacs=^N, smam=\E[?7h, smcup=\E7, 
+       smir=\E[4h, smso=\E[7m, smul=\E[4m, tbc=\E[3g, tsl=\E]0;, 
+       u6=\E[%i%d;%dR, u7=\E[6n, u8=\E[?62;1;6c, u9=\E[c, 
+ncsa|NCSA Telnet 2.7 for Macintosh in vt220-8 mode, 
+       use=ncsa-m, use=klone+color, 
+ncsa-ns|NCSA Telnet 2.7 for Macintosh in vt220-8 mode, 
+       hs@, 
+       dsl@, fsl@, tsl@, use=ncsa, 
+ncsa-m-ns|NCSA Telnet 2.6 for Macintosh in vt220-8 mode, 
+       hs@, 
+       dsl@, fsl@, tsl@, use=ncsa-m, 
+# alternate -TD:
+# The documented function-key mapping refers to the Apple Extended Keyboard
+# (e.g., NCSA Telnet's F1 corresponds to a VT220 F6).  We use the VT220-style
+# codes, however, since the numeric keypad (VT100) PF1-PF4 are available on
+# some keyboards and many applications require these as F1-F4.
+#
+ncsa-vt220|NCSA Telnet using vt220-compatible function keys, 
+       kf1=\EOP, kf10=\E[21~, kf11=\E[23~, kf12=\E[24~, 
+       kf13=\E[25~, kf14=\E[26~, kf15=\E[28~, kf16=\E[29~, 
+       kf17=\E[31~, kf18=\E[32~, kf19=\E[33~, kf2=\EOQ, 
+       kf20=\E[34~, kf3=\EOR, kf4=\EOS, kf6=\E[17~, kf7=\E[18~, 
+       kf8=\E[19~, kf9=\E[20~, 
+       use=ncsa, 
+
+#### Pilot Pro Palm-Top
 #
+# From: Jason Downs <downsj@downsj.com>, 15 Jun 1997 (Top Gun Telnet's author)
+pilot|tgtelnet|Top Gun Telnet on the Palm Pilot Professional, 
+       am, xenl, 
+       cols#39, lines#16, 
+       bel=^G, clear=\Ec, cr=^M, cub1=^H, cud1=^J, 
+       cup=\Em%p1%{32}%+%c%p2%{32}%+%c, home=\Em\s\s, ht=^I, 
+       ind=^J, kbs=^H, kcub1=^H, kcud1=^J, knp=^L, kpp=^K, nel=\Em~\s, 
+       rmso=\EB, smso=\Eb, 
+
+######## COMMERCIAL WORKSTATION CONSOLES
+#
+
+#### Alpha consoles
+#
+
+# This is from the OSF/1 Release 1.0 termcap file
+pccons|pcconsole|ANSI (mostly) Alpha PC console terminal emulation, 
+       am, xon, 
+       cols#80, lines#25, 
+       bel=^G, clear=\E[H\E[2J, cr=^M, cub1=^H, cud1=^J, cuf1=\E[C, 
+       cup=\E[%i%p1%d;%p2%dH, cuu1=\E[A, dch1=\E[P, dl1=\E[M, 
+       el=\E[K, home=\E[H, ht=^I, ich1=\E[@, il1=\E[L, kbs=^H, 
+       kcub1=\E[D, kcud1=\E[B, kcuf1=\E[C, kcuu1=\E[A, khome=\E[H, 
+       nel=^M^J, rev=\E[7m, rmso=\E[m, sgr0=\E[m, smso=\E[7m, 
 
 #### Sun consoles
 #
@@ -2181,23 +2893,23 @@ oldsun|Sun Microsystems Workstation console,
        rmso=\E[m, sgr0=\E[m, smso=\E[7m, 
 # From: Alexander Lukyanov <lav@video.yars.free.net>, 14 Nov 1995
 # <lines> capability later corrected by J.T. Conklin <jtc@cygnus.com>
+# SGR 1, 4 aren't supported - removed bold/underline (T.Dickey 17 Jan 1998)
 sun-il|Sun Microsystems console with working insert-line, 
        am, km, msgr, 
        cols#80, lines#34, 
-       bel=^G, bold=\E[1m, clear=^L, cr=^M, cub1=^H, cud1=^J, 
-       cuf1=\E[C, cup=\E[%i%p1%d;%p2%dH, cuu1=\E[A, 
-       dch=\E[%p1%dP, dch1=\E[P, dl=\E[%p1%dM, dl1=\E[M, ed=\E[J, 
-       el=\E[K, ht=^I, ich=\E[%p1%d@, ich1=\E[@, il=\E[%p1%dL, 
-       il1=\E[L, ind=^J, kb2=\E[218z, kbs=^H, kcub1=\E[D, 
-       kcud1=\E[B, kcuf1=\E[C, kcuu1=\E[A, kdch1=\177, 
-       kend=\E[220z, kf1=\E[224z, kf10=\E[233z, kf11=\E[234z, 
-       kf12=\E[235z, kf2=\E[225z, kf3=\E[226z, kf4=\E[227z, 
-       kf5=\E[228z, kf6=\E[229z, kf7=\E[230z, kf8=\E[231z, 
-       kf9=\E[232z, khome=\E[214z, knp=\E[222z, kopt=\E[194z, 
-       kpp=\E[216z, kres=\E[193z, kund=\E[195z, rev=\E[7m, 
-       rmso=\E[m, rmul=\E[m, rs2=\E[s, 
+       bel=^G, bold@, clear=^L, cr=^M, cub1=^H, cud1=^J, cuf1=\E[C, 
+       cup=\E[%i%p1%d;%p2%dH, cuu1=\E[A, dch=\E[%p1%dP, 
+       dch1=\E[P, dl=\E[%p1%dM, dl1=\E[M, ed=\E[J, el=\E[K, ht=^I, 
+       ich=\E[%p1%d@, ich1=\E[@, il=\E[%p1%dL, il1=\E[L, ind=^J, 
+       kb2=\E[218z, kbs=^H, kcub1=\E[D, kcud1=\E[B, kcuf1=\E[C, 
+       kcuu1=\E[A, kdch1=\177, kend=\E[220z, kf1=\E[224z, 
+       kf10=\E[233z, kf11=\E[234z, kf12=\E[235z, kf2=\E[225z, 
+       kf3=\E[226z, kf4=\E[227z, kf5=\E[228z, kf6=\E[229z, 
+       kf7=\E[230z, kf8=\E[231z, kf9=\E[232z, khome=\E[214z, 
+       knp=\E[222z, kopt=\E[194z, kpp=\E[216z, kres=\E[193z, 
+       kund=\E[195z, rev=\E[7m, rmso=\E[m, rmul@, rs2=\E[s, 
        sgr=\E[0%?%p6%t;1%;%?%p2%t;4%;%?%p1%p3%|%t;7%;m, 
-       sgr0=\E[m, smso=\E[7m, smul=\E[4m
+       sgr0=\E[m, smso=\E[7m, smul@, u8=\E[1t, u9=\E[11t
 # On a SparcStation 5, <il1>/<il> flake out on the last line.
 # Unfortunately, without them the terminal has no way to scroll.
 sun-ss5|Sun SparcStation 5 console, 
@@ -2296,7 +3008,7 @@ psterm-fast|NeWS psterm fast version (flaky ctrl chars),
        rmso=^No, rmul=^Nu, sc=^], sgr0=^N*, smcup=^Ot, smir=^Oi, 
        smso=^Oo, smul=^Ou, tsl=^Ol, 
 
-#### NeXT Consoles
+#### NeXT consoles
 #
 # Use `glasstty' for the Workspace application
 #
@@ -2315,10 +3027,146 @@ nextshell|NeXT Shell application,
        bel=^G, cr=^M, cub1=^H, cud1=^J, ht=^I, kbs=^H, kcub1=^H, 
        kcud1=^J, nel=^M^J, 
 
-### Common Desktop Environment
+#### Sony NEWS workstations
+#
+
+# (news-unk: this had :KB=news: -- esr)
+news-unk|SONY NEWS vt100 emulator common entry, 
+       am, xenl, 
+       cols#80, 
+       bel=^G, blink=\E[5m, bold=\E[1m, clear=\E[H\E[2J, cr=^M, 
+       csr=\E[%i%p1%d;%p2%dr, cub1=^H, cud1=^J, cuf1=\E[C, 
+       cup=\E[%i%p1%d;%p2%dH, cuu1=\E[A, dl=\E[%p1%dM, dl1=\E[M, 
+       ed=\E[J, el=\E[K, home=\E[H, ht=^I, 
+       if=/usr/lib/tabset/vt100, il=\E[%p1%dL, il1=\E[L, 
+       is2=\E[?7h\E[?1l\E[?3l\E7\E8, kbs=^H, kcub1=\EOD, 
+       kcud1=\EOB, kcuf1=\EOC, kcuu1=\EOA, kf0=\EOY, kf1=\EOP, 
+       kf2=\EOQ, kf3=\EOR, kf4=\EOS, kf5=\EOT, kf6=\EOU, kf7=\EOV, 
+       kf8=\EOW, kf9=\EOX, rc=\E8, rev=\E[7m, ri=\EM, 
+       rmkx=\E[?1l\E>, rmso=\E[m, rmul=\E[m, sc=\E7, sgr0=\E[m, 
+       smkx=\E[?1h\E=, smso=\E[7m, smul=\E[4m, 
+#
+# (news-29: this had :TY=ascii: --esr)
+news-29, 
+       lines#29, use=news-unk, 
+# (news-29-euc: this had :TY=euc: --esr)
+news-29-euc, 
+       use=news-29, 
+# (news-29-sjis: this had :TY=sjis: --esr)
+news-29-sjis, 
+       use=news-29, 
+#
+# (news-33: this had :TY=ascii: --esr)
+news-33, 
+       lines#33, use=news-unk, 
+# (news-33-euc: this had :TY=euc: --esr)
+news-33-euc, 
+       use=news-33, 
+# (news-33-sjis: this had :TY=sjis: --esr)
+news-33-sjis, 
+       use=news-33, 
+#
+# (news-42: this had :TY=ascii: --esr)
+news-42, 
+       lines#42, use=news-unk, 
+# (news-42-euc: this had :TY=euc: --esr)
+news-42-euc, 
+       use=news-42, 
+# (news-42-sjis: this had :TY=sjis: --esr)
+news-42-sjis, 
+       use=news-42, 
+#
+#      NEWS-OS old termcap entry 
+#
+# (news-old-unk: this had :KB=news:TY=sjis: --esr)
+news-old-unk|SONY NEWS vt100 emulator common entry, 
+       am, xenl, 
+       cols#80, vt#3, 
+       bel=^G, blink=\E[5m, bold=\E[1m, clear=\E[;H\E[2J, cr=^M, 
+       csr=\E[%i%p1%d;%p2%dr, cub1=^H, cud1=^J, cuf1=\E[C, 
+       cup=\E[%i%p1%d;%p2%dH, cuu1=\E[A, ed=\E[J, el=\E[K, 
+       home=\E[H, ht=^I, if=/usr/lib/tabset/vt100, kbs=^H, 
+       kcub1=\EOD, kcud1=\EOB, kcuf1=\EOC, kcuu1=\EOA, kf1=\EOP, 
+       kf2=\EOQ, kf3=\EOR, kf4=\EOS, rc=\E8, rev=\E[7m, ri=\EM, 
+       rmkx=\E[?1l\E>, rmso=\E[m, rmul=\E[m, sc=\E7, sgr0=\E[m, 
+       smkx=\E[?1h\E=, smso=\E[7m, smul=\E[4m, 
+#
+# (nwp512: this had :DE=^H:, which I think means <OTbs> --esr)
+nwp512|news|nwp514|news40|vt100-bm|sony vt100 emulator 40 lines, 
+       lines#40, 
+       is2=\E7\E[r\E8\EE\EE\EE\EM\EM\EM\E[?7h\E[?1l\E[?3l\E7\E[1;40r\E8, use=news-old-unk, 
+#
+# (nwp512-a: this had :TY=ascii: and the alias vt100-bm --esr)
+nwp512-a|nwp514-a|news-a|news42|news40-a|sony vt100 emulator 42 line, 
+       lines#42, 
+       is2=\E[?7h\E[?1l\E[?3l\E7\E[1;42r\E8, use=news-old-unk, 
+#
+# (nwp-512-o: this had :KB=nwp410:DE=^H:  I interpret the latter as <OTbs>. --esr)
+nwp512-o|nwp514-o|news-o|news40-o|vt100-bm-o|sony vt100 emulator 40 lines, 
+       lines#40, 
+       is2=\E7\E[r\E8\EE\EE\EE\EM\EM\EM\E[?7h\E[?1l\E[?3l\E7\E[1;40r\E8, use=news-old-unk, 
+#
+# (nwp513: this had :DE=^H: and the alias vt100-bm --esr)
+nwp513|nwp518|nwe501|newscbm|news31|sony vt100 emulator 33 lines, 
+       lines#31, 
+       is2=\E7\E[r\E8\EE\EE\EE\EM\EM\EM\E[?7h\E[?1l\E[?3l\E7\E[1;31r\E8, use=news-old-unk, 
+#
+# (nwp513-a: this had :TY=ascii: and :DE=^H:, which I interpret as <OTbs>; --esr)
+# also the alias vt100-bm.
+nwp513-a|nwp518-a|nwe501-a|nwp251-a|newscbm-a|news31-a|newscbm33|news33|sony vt100 emulator 33 lines, 
+       lines#33, 
+       is2=\E7\E[r\E8\EE\EE\EE\EM\EM\EM\E[?7h\E[?1l\E[?3l\E7\E[1;33r\E8, use=news-old-unk, 
+#
+# (nwp513-o: had :DE=^H:, I think that's <OTbs>; also the alias vt100-bm --esr)
+nwp513-o|nwp518-o|nwe501-o|nwp251-o|newscbm-o|news31-o|sony vt100 emulator 33 lines, 
+       lines#31, 
+       is2=\E7\E[r\E8\EE\EE\EE\EM\EM\EM\E[?7h\E[?1l\E[?3l\E7\E[1;31r\E8, use=news-old-unk, 
+#
+# (news28: this had :DE=^H:, I think that's <OTbs>, and :KB=nws1200: --esr)
+news28|sony vt100 emulator 28 lines, 
+       lines#28, 
+       is2=\E7\E[r\E8\EE\EE\EE\EM\EM\EM\E[?7h\E[?1l\E[?3l\E7\E[1;28r\E8, use=news-old-unk, 
+#
+# (news29: this had :TY=ascii:KB=nws1200:\ --esr)
+news29|news28-a|sony vt100 emulator 29 lines, 
+       lines#29, 
+       is2=\E7\E[r\E8\EE\EE\EE\EM\EM\EM\E[?7h\E[?1l\E[?3l\E7\E[1;29r\E8, use=news-old-unk, 
+#
+# (news511: this had :TY=sjis: --esr)
+nwp511|nwp-511|nwp-511 vt100, 
+       am, xenl, 
+       cols#80, lines#24, 
+       clear=\E[;H\E[2J$<20/>, cuf1=\E[C, 
+       cup=\E[%i%p1%d;%p2%dH, cuu1=\E[A$<2/>, dl1=\E[M, 
+       ed=\E[J$<30/>, el=\E[K$<3/>, 
+       flash=\E[?5h\0\0\0\0\0\0\0\0\0\0\0\0\0\E[?5l, 
+       il1=\E[L, is2=\E[?5l\E[?1l\E>\E[?7h\E[?8h, kcub1=\E[D, 
+       kcud1=\E[B, kcuf1=\E[C, kcuu1=\E[A, kf1=\EOP, kf2=\EOQ, 
+       kf3=\EOR, kf4=\EOS, kf5=\EOT, kf6=\E#W, khome=\E[H, 
+       ri=\EM$<5/>, rmso=\E[m$<2/>, rmul=\E[m$<2/>, 
+       smso=\E[7m$<2/>, smul=\E[4m$<2/>, 
+# (news517: this had :TY=sjis:. --esr)
+nwp517|nwp-517|nwp-517 vt200 80 cols 30 rows, 
+       eslok, hs, 
+       cols#80, lines#30, 
+       dsl=\E[1$~, fsl=\E[0$}, 
+       is2=\E7\E[r\E8\E>\E[?3l\E[?4l\E[?5l\E[?7h\E[?8h, 
+       tsl=\E[1$}\E[;%df, 
+       use=vt200, 
+# (news517-w: this had :TY=sjis:. --esr)
+nwp517-w|nwp-517-w|nwp-517 vt200 132 cols 50 rows, 
+       eslok, hs, 
+       cols#132, lines#50, 
+       dsl=\E[1$~, fsl=\E[0$}, 
+       is2=\E7\E[r\E8\E>\E[?3h\E[?4l\E[?5l\E[?7h\E[?8h, 
+       tsl=\E[1$}\E[;%df, 
+       use=vt200, 
+
+#### Common Desktop Environment
 #
 
 # This ships with Sun's CDE in Solaris 2.5
+# Corrected Sun Aug 9 1998 by Alexander V. Lukyanov <lav@video.yars.free.net>
 dtterm|CDE desktop terminal, 
        am, mir, msgr, xenl, xon, 
        colors#8, cols#80, it#8, lines#24, lm#0, pairs#64, 
@@ -2330,10 +3178,10 @@ dtterm|CDE desktop terminal,
        cup=\E[%i%p1%d;%p2%dH, cuu=\E[%p1%dA, cuu1=\E[A, 
        dch=\E[%p1%dP, dch1=\E[P, dim=\E[2m, dl=\E[%p1%dM, 
        dl1=\E[M, ech=\E[%p1%dX, ed=\E[J, el=\E[K, el1=\E[1K, 
-       flash=\E[?5h$<200>\E[?5l, home=\E[H, ht=^I, hts=\EH, 
-       ich=\E[%p1%d@, il=\E[%p1%dL, il1=\E[L, ind=\ED
-       invis=\E[8m, is2=\E F\E>\E[?1l\E[?7h\E[?45l, kbs=^H
-       kcub1=\E[D, kcud1=\E[B, kcuf1=\E[C, kcuu1=\E[A, 
+       enacs=\E(B\E)0, flash=\E[?5h$<200>\E[?5l, home=\E[H, 
+       ht=^I, hts=\EH, ich=\E[%p1%d@, il=\E[%p1%dL, il1=\E[L
+       ind=\ED, invis=\E[8m, is2=\E F\E>\E[?1l\E[?7h\E[?45l
+       kbs=^H, kcub1=\E[D, kcud1=\E[B, kcuf1=\E[C, kcuu1=\E[A, 
        kdch1=\E[3~, kf1=\E[11~, kf10=\E[21~, kf11=\E[23~, 
        kf12=\E[24~, kf13=\E[25~, kf14=\E[26~, kf15=\E[28~, 
        kf16=\E[29~, kf17=\E[31~, kf18=\E[32~, kf19=\E[33~, 
@@ -2348,6 +3196,128 @@ dtterm|CDE desktop terminal,
        sgr0=\E[m\017, smacs=^N, smam=\E[?7h, smir=\E[4h, 
        smso=\E[2;7m, smul=\E[4m, tbc=\E[3g, 
 
+#### Non-Unix Consoles
+#
+
+# Except for the "-emx" suffixes, these are as distributed with EMX 0.9b,
+# a Unix-style environment used on OS/2.  (Note that the suffix makes some
+# names longer than 14 characters, the nominal maximum).
+#
+# Removed: rmacs=\E[10m, smacs=\E[11m, because OS/2 does not implement acs.
+ansi-emx|ANSI.SYS color, 
+       am, bce, eo, mir, msgr, xenl, xon, 
+       colors#16, cols#80, it#8, lines#25, pairs#64, 
+       bel=^G, blink=\E[5m, bold=\E[1m, civis=\E[?25l, 
+       clear=\E[1;33;44m\E[H\E[J, cnorm=\E[?25h, cr=^M, cub1=^H, 
+       cud1=^J, cuf1=\E[C, cup=\E[%i%p1%d;%p2%dH, cuu1=\E[A, 
+       dch=\E[%p1%dp, ed=\E[J, el=\E[K, flash=\E[?5h\E[?5l, 
+       home=\E[H, ht=^I, hts=\EH, ich=\E[%p1%d@, ich1=\E[@, ind=^J, 
+       kb2=\E[G, kbs=^H, kcub1=\0K, kcud1=\0P, kcuf1=\0M, kcuu1=\0H, 
+       kf0=\0D, kf1=\0;, kf2=\0<, kf3=\0=, kf4=\0>, kf5=\0?, kf6=\0@, 
+       kf7=\0A, kf8=\0B, kf9=\0C, khome=\0G, kich1=\0R, kll=\0O, 
+       knp=\0Q, kpp=\0I, kspd=^Z, nel=^M^J, rev=\E[5;37;41m, 
+       rmir=\E[4l, rmpch=\E[10m, rmso=\E[0;44m\E[1;33m, 
+       rmul=\E[0;44m\E[1;33m, rs1=\Ec, setab=\E[4%p1%dm, 
+       setaf=\E[3%p1%dm, sgr0=\E[0m\E[1;33;44m, smir=\E[4h, 
+       smpch=\E[11m, smso=\E[0;31;47m, smul=\E[1;31;44m, 
+       tbc=\E[3g, u8=\E[?6c, u9=\E[c, 
+ansi-color-2-emx|ANSI.SYS color 2, 
+       am, bce, eo, mir, msgr, xenl, xon, 
+       colors#16, cols#80, it#8, lines#25, pairs#64, 
+       bel=^G, blink=\E[5m, bold=\E[1m, civis=\E[?25l, 
+       clear=\E[0;37;44m\E[H\E[J, cnorm=\E[?25h, cr=^M, cub1=^H, 
+       cud1=^J, cuf1=\E[C, cup=\E[%i%p1%d;%p2%dH, cuu1=\E[A, 
+       dch=\E[%p1%dp, ed=\E[J, el=\E[K, flash=\E[?5h\E[?5l, 
+       home=\E[H, ht=^I, hts=\EH, ich=\E[%p1%d@, ich1=\E[@, ind=^J, 
+       kb2=\E[G, kbs=^H, kcub1=\0K, kcud1=\0P, kcuf1=\0M, kcuu1=\0H, 
+       kf0=\0D, kf1=\0;, kf2=\0<, kf3=\0=, kf4=\0>, kf5=\0?, kf6=\0@, 
+       kf7=\0A, kf8=\0B, kf9=\0C, khome=\0G, kich1=\0R, kll=\0O, 
+       knp=\0Q, kpp=\0I, kspd=^Z, nel=^M^J, rev=\E[1;37;46m, 
+       rmir=\E[4l, rmpch=\E[10m, rmso=\E[0;37;44m, 
+       rmul=\E[0;37;44m, rs1=\Ec, setab=\E[4%p1%dm, 
+       setaf=\E[3%p1%dm, sgr0=\E[0;37;44m, smir=\E[4h, 
+       smpch=\E[11m, smso=\E[1;37;46m, smul=\E[1;36;44m, 
+       tbc=\E[3g, u8=\E[?6c, u9=\E[c, 
+ansi-color-3-emx|ANSI.SYS color 3, 
+       am, bce, eo, mir, msgr, xenl, xon, 
+       colors#16, cols#80, it#8, lines#25, pairs#64, 
+       bel=^G, blink=\E[5m, bold=\E[1m, civis=\E[?25l, 
+       clear=\E[0;37;40m\E[H\E[J, cnorm=\E[?25h, cr=^M, cub1=^H, 
+       cud1=^J, cuf1=\E[C, cup=\E[%i%p1%d;%p2%dH, cuu1=\E[A, 
+       dch=\E[%p1%dp, ed=\E[J, el=\E[K, flash=\E[?5h\E[?5l, 
+       home=\E[H, ht=^I, hts=\EH, ich=\E[%p1%d@, ich1=\E[@, ind=^J, 
+       kb2=\E[G, kbs=^H, kcub1=\0K, kcud1=\0P, kcuf1=\0M, kcuu1=\0H, 
+       kf0=\0D, kf1=\0;, kf2=\0<, kf3=\0=, kf4=\0>, kf5=\0?, kf6=\0@, 
+       kf7=\0A, kf8=\0B, kf9=\0C, khome=\0G, kich1=\0R, kll=\0O, 
+       knp=\0Q, kpp=\0I, kspd=^Z, nel=^M^J, rev=\E[1;37;46m, 
+       rmir=\E[4l, rmpch=\E[10m, rmso=\E[0;37;40m, 
+       rmul=\E[0;37;40m, rs1=\Ec, setab=\E[4%p1%dm, 
+       setaf=\E[3%p1%dm, sgr0=\E[0;10m, smir=\E[4h, 
+       smpch=\E[11m, smso=\E[1;37;46m, smul=\E[0;36;40m, 
+       tbc=\E[3g, u8=\E[?6c, u9=\E[c, 
+mono-emx|stupid monochrome ansi terminal with only one kind of emphasis, 
+       am, 
+       cols#80, it#8, lines#24, 
+       clear=\E[H\E[2J$<50>, cub1=\E[D, cud1=\E[B, cuf1=\E[C, 
+       cup=\E[%i%p1%d;%p2%dH, cuu1=\E[A, el=\E[K, home=\E[H, 
+       ht=^I, kb2=\E[G, kbs=^H, kcub1=\0K, kcud1=\0P, kcuf1=\0M, 
+       kcuu1=\0H, kf0=\0D, kf1=\0;, kf2=\0<, kf3=\0=, kf4=\0>, 
+       kf5=\0?, kf6=\0@, kf7=\0A, kf8=\0B, kf9=\0C, khome=\0G, 
+       kich1=\0R, kll=\0O, knp=\0Q, kpp=\0I, nel=^M^J, rev=\E[7m, 
+       sgr0=\E[0m, 
+
+# Use this for cygwin32 (tested with beta 19.1)
+# underline is colored bright magenta
+# shifted kf1-kf12 are kf11-kf22
+cygwin|ansi emulation for cygwin32, 
+       kcub1=\E[D, kcud1=\E[B, kcuf1=\E[C, kcuu1=\E[A, 
+       kdch1=\E[3~, kend=\E[4~, kf1=\E[[A, kf10=\E[21~, 
+       kf11=\E[23~, kf12=\E[24~, kf13=\E[25~, kf14=\E[26~, 
+       kf15=\E[28~, kf16=\E[29~, kf17=\E[31~, kf18=\E[32~, 
+       kf19=\E[33~, kf2=\E[[B, kf20=\E[34~, kf3=\E[[C, kf4=\E[[D, 
+       kf5=\E[[E, kf6=\E[17~, kf7=\E[18~, kf8=\E[19~, kf9=\E[20~, 
+       khome=\E[1~, kich1=\E[2~, knp=\E[6~, kpp=\E[5~, rmam@, smam@, 
+       use=ansi.sys, 
+
+# This entry fits the Windows NT console when the _POSIX_TERM environment
+# variable is set to 'on'.  While the Windows NT POSIX console is seldom used,
+# the Telnet client supplied with both the Windows for WorkGroup 3.11 TCP/IP
+# stack and the Win32 (i.e., Windows 95 and Windows NT 3.1 or later) operating
+# systems is not, and (surprise!) they match very well.
+#
+# See:  MS Knowledge Base item Q108581, dated 13-MAY-1997, titled "Setting Up
+# VI POSIX Editor for Windows NT 3.1".  True to Microsoft form, not only
+# are the installation instructions a pile of mind-numbing bureaucratese,
+# but the termcap entry is actually broken and unusable as given; the :do:
+# capability is misspelled "d".
+#
+# To use this, you need to a bunch of environment variables: 
+#
+# SET _POSIX_TERM=on
+# SET TERM=ansi
+# SET TERMCAP=location of termcap file in POSIX file format
+# which is case-sensitive.
+# e.g. SET TERMCAP=//D/RESKIT35/posix/termcap
+# SET TMP=//C/TEMP
+#
+# Important note: setting the TMP environment variable in POSIX style renders
+# it incompatible with a lot of other applications, including Visual C++. So
+# you should have a separate command window just for vi. All the other
+# variables may be permanently set in the Control Panel\System applet. 
+#
+# You can find out more about the restrictions of this facility at
+# <http://www.nentug.org/unix-to-nt/ntposix.htm>.
+#
+# From: Federico Bianchi <bianchi@magna.cisid.unipi.it>, 15 Jan 1997
+ansi-nt|psx_ansi|Microsoft Windows NT console POSIX ANSI mode, 
+       am, bw, msgr, 
+       cols#80, it#8, lines#25, 
+       bel=^G, clear=\E[2J, cr=^M, cub1=^H, cud1=^J, cuf1=\E[C, 
+       cup=\E[%i%p1%d;%p2%dH, cuu1=\E[A, ed=\E[J, el=\E[K, 
+       home=\E[H, ht=^I, ind=\E[S, kbs=^H, kcub1=\E[D, kcud1=\E[V, 
+       kcuf1=\E[C, kcuu1=\E[A, nel=\r\E[S, rc=\E[u, rev=\E[7m, 
+       ri=\E[T, rmso=\E[m, sc=\E[s, sgr0=\E[0m, smso=\E[7m, 
+
 ######## COMMON TERMINAL TYPES
 #
 # This section describes terminal classes and maker brands that are still
@@ -2419,7 +3389,7 @@ altos4|alt4|altos-4|altos IV,
 altos7|alt7|altos VII, 
        am, mir, 
        cols#80, lines#24, xmc#0, 
-       acsc=l2m1k3j5t4u9v=w0q\:x6n8, blink=\EG2, bold=\EGt, 
+       acsc=j5k3l2m1n8q\:t4u9v=w0x6, blink=\EG2, bold=\EGt, 
        clear=\E+^^, cr=^M, cub1=^H, cud1=^J, cuf1=^L, 
        cup=\E=%p1%{32}%+%c%p2%{32}%+%c, cuu1=^K, dch1=\EW, 
        dim=\EGp, dl=\ER, ed=\EY, el=\ET, home=^^, ht=^I, il1=\EE, 
@@ -2491,7 +3461,7 @@ hp262x|HP 262x terminals,
        kcuu1=\EA, kdch1=\EP, kdl1=\EM, ked=\EJ, kel=\EK, khome=\Eh, 
        kich1=\EQ, kil1=\EL, kind=\ES, knp=\EU, kpp=\EV, kri=\ET, 
        krmir=\ER, rev=\E&dB, rmkx=\E&s0A, rmso=\E&d@, rmul=\E&d@, 
-       sgr=\E&d%'@'%?%p1%t%'B'%|%;%?%p2%t%'D'%|%;%?%p3%t%'B'%|%;%?%p4%t%'A'%|%;%c, 
+       sgr=\E&d%{64}%?%p1%t%{66}%|%;%?%p2%t%{68}%|%;%?%p3%t%{66}%|%;%?%p4%t%{65}%|%;%c, 
        sgr0=\E&d@, smkx=\E&s1A, smso=\E&dB, smul=\E&dD, 
 
 # Note: no <home> on HPs since that homes to top of memory, not screen.
@@ -2698,7 +3668,7 @@ hp2645|hp45|HP 2645 series,
        ked=\EJ, kel=\EK, khome=\Eh, khts=\E1, kich1=\EQ, kil1=\EL, 
        kind=\ES, knp=\EU, kpp=\EV, kri=\ET, krmir=\ER, rev=\E&dB, 
        rmkx=\E&s0A, 
-       sgr=\E&d%'@'%?%p1%t%'B'%|%;%?%p2%t%'D'%|%;%?%p3%t%'B'%|%;%?%p4%t%'A'%|%;%?%p5%t%'H'%|%;%?%p6%t%'B'%|%;%c, 
+       sgr=\E&d%{64}%?%p1%t%{66}%|%;%?%p2%t%{68}%|%;%?%p3%t%{66}%|%;%?%p4%t%{65}%|%;%?%p5%t%{72}%|%;%?%p6%t%{66}%|%;%c, 
        sgr0=\E&d@, smkx=\E&s1A, smul=\E&dD, 
        use=hpgeneric, 
 # You should use this terminal at 4800 baud or less.
@@ -2722,7 +3692,7 @@ hp2382a|hp2382|hewlett packard 2382a,
        acsc@, 
        pln=\E&f0a%p1%dk%p2%l%Pa%?%ga%t%ga%d%e1%;d0L%?%ga%!%t %;%p2%s, 
        rmacs@, 
-       sgr=\E&d%{0}%Pa%?%p4%t%{1}%ga%+%Pa%;%?%p1%p3%|%p6%|%t%{2}%ga%+%Pa%;%?%p2%p6%|%t%{4}%ga%+%Pa%;%?%p1%p5%|%t%{8}%ga%+%Pa%;%?%p7%t%?%ga%ts%ga%'@'%+%e%'S'%;%e%?%ga%t%ga%'@'%+%e%'@'%;%;%c, 
+       sgr=\E&d%{0}%Pa%?%p4%t%{1}%ga%+%Pa%;%?%p1%p3%|%p6%|%t%{2}%ga%+%Pa%;%?%p2%p6%|%t%{4}%ga%+%Pa%;%?%p1%p5%|%t%{8}%ga%+%Pa%;%?%p7%t%?%ga%ts%ga%{64}%+%e%{83}%;%e%?%ga%t%ga%{64}%+%e%{64}%;%;%c, 
        sgr0=\E&d@, smacs@, 
        use=hp+labels, use=scrhp, 
 
@@ -2741,7 +3711,7 @@ newhpkeyboard|generic entry for HP extended keyboard,
 newhp|generic entry for new hewlett packard terminals, 
        am, bw, mir, xhp, xon, 
        cols#80, lines#24, pb#4800, 
-       acsc=T1R!U2S"W3O#V4P$t5u6w7v8\:'9(LQKWlRkT5I3@2[MAJSmFjGdHQ;Y+Z*X\:4>q\,x.n/
+       acsc=2[3@4>5I9(\:'JSKWLQMAO#P$Q;R!S"T1U2V4W3X\:Y+Z*dHjGkTlRmFn/q\,t5u6v8w7x.
        bel=^G, blink=\E&dA, bold=\E&dF, cbt=\Ei, cr=^M, cub1=^H, 
        cud1=^J, cuf1=\EC, cuu1=\EA, dch1=\EP$<2>, dim=\E&dH, 
        dl1=\EM, ed=\EJ, el=\EK, ht=\011$<2>, hts=\E1, il1=\EL, ind=^J, 
@@ -2750,7 +3720,7 @@ newhp|generic entry for new hewlett packard terminals,
        pfloc=\E&f1a%p1%dk0d%p2%l%dL%p2%s, 
        pfx=\E&f2a%p1%dk0d%p2%l%dL%p2%s, rev=\E&dB, ri=\ET, 
        rmacs=^O, rmir=\ER, rmso=\E&d@, rmul=\E&d@, rs1=\Eg, 
-       sgr=\E&d%{0}%Pa%?%p4%t%{1}%ga%+%Pa%;%?%p1%p3%|%p6%|%t%{2}%ga%+%Pa%;%?%p2%p6%|%t%{4}%ga%+%Pa%;%?%p1%p5%|%t%{8}%ga%+%Pa%;%?%p7%t%?%ga%ts%ga%'@'%+%e%'S'%;%e%?%ga%t%ga%'@'%+%e%'@'%;%;%c%?%p9%t\016%e\017%;, 
+       sgr=\E&d%{0}%Pa%?%p4%t%{1}%ga%+%Pa%;%?%p1%p3%|%p6%|%t%{2}%ga%+%Pa%;%?%p2%p6%|%t%{4}%ga%+%Pa%;%?%p1%p5%|%t%{8}%ga%+%Pa%;%?%p7%t%?%ga%ts%ga%{64}%+%e%{83}%;%e%?%ga%t%ga%{64}%+%e%{64}%;%;%c%?%p9%t\016%e\017%;, 
        sgr0=\E&d@\017, smacs=^N, smir=\EQ, smso=\E&dJ, smul=\E&dD, 
        tbc=\E3, 
        use=newhpkeyboard, 
@@ -2788,7 +3758,7 @@ hp2621b|hp 2621b with old style keyboard,
        lh#1, lm#48, lw#8, nlab#8, 
        kcub1=\ED, kcud1=\EB, kcuf1=\EC, kcuu1=\EA, khome=\Eh, 
        kind=\ET, kll=\EF, kri=\ES, 
-       pln=\E&f0a%p1%dk%p2%l%Pa%?%ga%t%ga%d%e1%;d3L%?%ga%!%t%{32}%c%;%p2%s\E%'o'%p1%+%c\r, 
+       pln=\E&f0a%p1%dk%p2%l%Pa%?%ga%t%ga%d%e1%;d3L%?%ga%!%t%{32}%c%;%p2%s\E%{111}%p1%+%c\r, 
        smln=\E&jB, 
        use=hp2621, 
 
@@ -2839,7 +3809,7 @@ hp2624b-10p-p|hewlett packard 2624 B w/ extra memory & printer,
 hp+color|hp with colors, 
        ccc, 
        colors#16, ncv#17, pairs#7, 
-       initp=\E&v%?%p2%{1000}%=%t1%e.%p2%d%;a\n%?%p3%{1000}%=%t1%e.%p3%d%;b\n%?%p4%{1000}%=%t1%e.%p4%d%;c\n%?%p5%{1000}%=%t1%e.%p5%d%;x\n%?%p6%{1000}%=%t1%e.%p6%d%;y\n%?%p7%{1000}%=%t1%e.%p7%d%;z\n%p1%dI, 
+       initp=\E&v%?%p2%{1000}%=%t1%e.%p2%d%;a%?%p3%{1000}%=%t1%e.%p3%d%;b%?%p4%{1000}%=%t1%e.%p4%d%;c%?%p5%{1000}%=%t1%e.%p5%d%;x%?%p6%{1000}%=%t1%e.%p6%d%;y%?%p7%{1000}%=%t1%e.%p7%d%;z%p1%dI, 
        oc=\E&v0m1a1b1c0I\E&v1a1I\E&v1b2I\E&v1a1b3I\E&v1c4I\E&v1a1c5I\E&v1b1c6I\E&v1x1y7I, 
        op=\E&v0S, scp=\E&v%p1%dS, 
 
@@ -2864,7 +3834,7 @@ hp2397a|hp2397|hewlett packard 2397A color terminal,
 hpansi|hp700|hewlett packard 700/44 in HP-PCterm mode, 
        am, eo, xenl, xon, 
        cols#80, lines#25, 
-       acsc=k\277l\332m\300j\331n\305w\302q\304u\264t\303v\301x\263, 
+       acsc=j\331k\277l\332m\300n\305q\304t\303u\264v\301w\302x\263, 
        bel=^G, cbt=\E[Z, civis=\E[?25l, clear=\E[2J\E[H, 
        cnorm=\E[?25h, cr=^M, cub1=\E[D, cud1=\E[B, cuf1=\E[C, 
        cup=\E[%i%p1%d;%p2%dH, cuu1=\E[A, dch1=\E[P, dl1=\E[M, 
@@ -2934,7 +3904,7 @@ hp2|hpex2|hewlett-packard extended capabilities newer version,
        pfx=\E&f2a%p1%dk%p2%l%dL%p2%s, 
        pln=\E&f%p1%dk%p2%l%dd0L%p2%s, rmir=\ER, rmkx=\E&s0A, 
        rmln=\E&j@, rmso=\E&d@, rmul=\E&d@, 
-       sgr=\E&d%?%p7%t%'s'%c%;%p1%p3%|%p6%|%{2}%*%p2%{4}%*%+%p4%+%p5%{8}%*%+%'@'%+%c%?%p9%t%'\016'%c%e%'\017'%c%;, 
+       sgr=\E&d%?%p7%t%{115}%c%;%p1%p3%|%p6%|%{2}%*%p2%{4}%*%+%p4%+%p5%{8}%*%+%{64}%+%c%?%p9%t%'\016'%c%e%'\017'%c%;, 
        sgr0=\E&d@, smir=\EQ, smkx=\E&s1A, smln=\E&jB, smso=\E&dB, 
        smul=\E&dD, tbc=\E3, vpa=\E&a%p1%dY, 
 
@@ -3019,22 +3989,22 @@ hp700-wy|HP700/41 emulating wyse30,
        sgr0=\EG0$<10/>, smir=\Eq, smso=\EG4$<10/>, 
        smul=\EG8$<10/>, tbc=\E0, vpa=\E[%p1%{32}%+%c, 
 # (hp70092: added empty <acsc> to avoid warnings re <smacs>/<rmacs> --esr)
-hp70092|hp70092a|hp70092A|HP 700/92, 
+hp70092|hp70092a|hp70092A|70092|HP 700/92, 
        am, da, db, xhp, 
        cols#80, lh#2, lines#24, lm#0, lw#8, nlab#8, 
-       acsc=, bel=^G, blink=\E&dA, bold=\E&dB, cbt=\Ei
-       clear=\E&a0y0C\EJ, cr=^M, cub1=^H, cud1=\EB, cuf1=\EC
-       cup=\E&a%p1%dy%p2%dC, cuu1=\EA, dch1=\EP, dim=\E&dH
-       dl1=\EM, el=\EK, hpa=\E&a%p1%dC, ht=^I, hts=\E1, il1=\EL
-       kbs=^H, kclr=\EJ, kctab=\E2, kcub1=\ED, kcud1=\EB, kcuf1=\EC
-       kcuu1=\EA, kdch1=\EP, kdl1=\EM, ked=\EJ, kel=\EK, kf1=\Ep
-       kf2=\Eq, kf3=\Er, kf4=\Es, kf5=\Et, kf6=\Eu, kf7=\Ev, kf8=\Ew
-       khome=\Eh, khts=\E1, kich1=\EQ, kil1=\EL, kind=\ES, kll=\EF
-       knp=\EU, kpp=\EV, kri=\ET, krmir=\ER, ktbc=\E3, rev=\E&dB
-       ri=\ET, rmacs=^O, rmir=\ER, rmkx=\E&s0A, rmln=\E&j@
-       rmso=\E&d@, rmul=\E&d@, sgr0=\E&d@, smacs=^N, smir=\EQ
-       smkx=\E&s1A, smln=\E&jB, smso=\E&dJ, smul=\E&dD, tbc=\E3
-       vpa=\E&a%p1%dY, 
+       acsc=0cjgktlrmfn/q\,t5u6v8w7x., bel=^G, blink=\E&dA
+       bold=\E&dB, cbt=\Ei, clear=\E&a0y0C\EJ, cr=^M, cub1=^H
+       cud1=\EB, cuf1=\EC, cup=\E&a%p1%dy%p2%dC, cuu1=\EA
+       dch1=\EP, dim=\E&dH, dl1=\EM, el=\EK, hpa=\E&a%p1%dC, ht=^I
+       hts=\E1, il1=\EL, kbs=^H, kclr=\EJ, kctab=\E2, kcub1=\ED
+       kcud1=\EB, kcuf1=\EC, kcuu1=\EA, kdch1=\EP, kdl1=\EM
+       ked=\EJ, kel=\EK, kf1=\Ep, kf2=\Eq, kf3=\Er, kf4=\Es, kf5=\Et
+       kf6=\Eu, kf7=\Ev, kf8=\Ew, khome=\Eh, khts=\E1, kich1=\EQ
+       kil1=\EL, kind=\ES, kll=\EF, knp=\EU, kpp=\EV, kri=\ET
+       krmir=\ER, ktbc=\E3, rev=\E&dB, ri=\ET, rmacs=^O, rmir=\ER
+       rmkx=\E&s0A, rmln=\E&j@, rmso=\E&d@, rmul=\E&d@
+       sgr0=\E&d@, smacs=^N, smir=\EQ, smkx=\E&s1A, smln=\E&jB
+       smso=\E&dJ, smul=\E&dD, tbc=\E3, vpa=\E&a%p1%dY, 
 
 bobcat|sbobcat|HP 9000 model 300 console, 
        am, da, db, mir, xhp, 
@@ -3093,14 +4063,12 @@ dku7003|Honeywell Bull DKU 7003 all features described,
 # emulations (usually their stupidest, and usually labeled adm3, though
 # these `adm3' emulations normally have adm3a+ capabilities).
 #
-# WARNING: Some early ADM terminals (including the ADM3 and ADM5) are 
-# reputed to have had the weird `feature' that sending them a ^G would trigger
-# a diagnostic dump to screen if one of the more obscure RS-232 pins
-# (variously reported as 22 or as `Ring Indicator') was being held high during
-# receipt of the ^G.  If you have a real ADM and think you've run into this,
-# check it out with a breakout box and tell us if this rumor is correct!
-# A quick fix might be to drop back to a cheesy 4-wire cable.
-#
+# WARNING: Some early ADM terminals (including the ADM3 and ADM5) had a 
+# `diagnostic feature' that sending them a ^G while pin 22 (`Ring Indicator')
+# was being held to ground would trigger a send of the top line on the screen.
+# A quick fix might be to drop back to a cheesy 4-wire cable with pin 22
+# hanging in the air. (Thanks to Eric Fischer, <eric@fudge.uchicago.edu>,
+# for clearing up this point.)
 
 adm1a|adm1|lsi adm1a, 
        am, 
@@ -3172,10 +4140,49 @@ adm11|LSI ADM-11,
        use=adm+sgr, 
 # From: Andrew Scott Beals <bandy@lll-crg.ARPA>
 # Corrected by Olaf Siebert <rhialto@polder.ubc.kun.nl>, 11 May 1995
+# Supervisor mode info by Ari Wuolle, <awuolle@delta.hut.fi>, 27 Aug 1996
 # (adm12: removed obsolete ":kn:ma=j^Jk^P^K^Pl ^R^L^L :".  This formerly had
 # <is2>=\Eq but that looked wrong; this <is2> is from Dave Yost <esquire!yost>
 # via BRL.  That entry asserted <xmc#1>, but I've left that out because 
 # neither earlier nor later ADMSs have it -- esr)
+#
+# You will need to get into the supervisor setup before you can set
+# baudrate etc. for your ADM-12+. Press Shift-Ctrl-Setup and you should
+# see a lot more setup options.
+# 
+# While in supervisor setup you can also use following codes:
+# 
+# Ctrl-P Personality character selections (configure for example what
+#        arrow keys send, if I recall correctly)
+# Ctrl-T tabs 1-80   use left&right to move and up to set and
+# Ctrl-V tabs 81-158 down to clear tab. Shift-Ctrl-M sets right margin at cursor
+# Ctrl-B Binary setup (probably not needed. I think that everything can
+#        be set using normal setup)
+# Ctrl-A Answerback mode (enter answerback message)
+# Ctrl-U User friendly mode (normal setup)
+# Ctrl-D Defaults entire setup and function keys from EPROM tables
+# Ctrl-S Save both setup and functions keys. Takes from 6 to 10 seconds.
+# Ctrl-R Reads both setup and functions keys from NVM.
+# Shift-Ctrl-X Unlock keyboard and cancel received X-OFF status
+# 
+# ADM-12+ supports hardware handshaking, but it is DTR/CTS as opposed to
+# RTS/CTS used nowadays with virtually every modem and computer. 19200
+# bps works fine with hardware flow control.
+# 
+# The following null-modem cable should fix this and enable you to use
+# RTS/CTS handshaking (which Linux supports, use CRTSCTS setting). Also
+# set ADM-12+ for DTR handshaking from supervisor setup.
+# 
+# PC Serial   ADM-12+
+#  --------   -------
+#         2 - 3
+#         3 - 2
+#         4 - 5
+#         5 - 20
+#       6,8 - 4
+#         7 - 7
+#        20 - 6,8
+#
 adm12|lsi adm12, 
        am, mir, 
        cols#80, it#8, lines#24, 
@@ -3211,7 +4218,7 @@ adm22|lsi adm22,
        bel=^G, cbt=\EI, clear=\E+, cr=^M, cub1=^H, cud1=^J, cuf1=^L, 
        cup=\E=%p1%{32}%+%c%p2%{32}%+%c, cuu1=^K, dch1=\EW, 
        dl1=\ER, ed=\Ey, el=\Et, home=^^, ht=\Ei, ich1=\EQ, il1=\EE, 
-       is2=\E%\014\014\014\016\003\200\003\002\003\002\200\200\200\200\200\200\200\200\200\200\200, 
+       is2=\E%\014\014\014\016\003\0\003\002\003\002\0\0\0\0\0\0\0\0\0\0\0, 
        kbs=^H, kcub1=^H, kcud1=^J, kcuf1=^L, kcuu1=^K, kf1=^A@\r, 
        kf2=^AA\r, kf3=^AB\r, kf4=^AC\r, kf5=^AD\r, kf6=^AE\r, 
        kf7=^AF\r, khome=^^, lf1=F1, lf2=F2, lf3=F3, lf4=F4, lf5=F5, 
@@ -3413,8 +4420,13 @@ adm1178|1178|lsi adm1178,
 
 #### Prime
 #
-# Yes, Prime makes terminals.  These entries were posted by Kevin J. Cummings
-# <cummings@primerd.Prime.COM> on 14 Dec 1992 and lightly edited by esr.
+# Yes, Prime made terminals.  These entries were posted by Kevin J. Cummings
+# <cummings@primerd.prime.com> on 14 Dec 1992 and lightly edited by esr.
+# Prime merged with ComputerVision in the late 1980s; you can reach them at:
+#
+#      ComputerVision Services
+#      500 Old Connecticut Path
+#      Framingham, Mass.
 #
 
 # Standout mode is dim reverse-video.
@@ -3423,12 +4435,13 @@ pt100|pt200|wren|fenix|prime pt100/pt200,
        cols#80, it#8, lines#24, 
        cbt=\E[Z, clear=\E?, cr=^M, cub=\E[%p1%dD, cub1=^H, 
        cud=\E[%p1%dB, cud1=\ED, cuf=\E[%p1%dC, cuf1=\E[C, 
-       cup=\E0%p1%'!'%+%c%p2%'!'%+%c, cuu=\E[%p1%dA, cuu1=\EM, 
-       dch=\E[%p1%dP, dch1=\E[P, dim=\E[2m, dl=\E[M, ed=\E[J\E[r, 
-       el=\E[K\E[t, flash=\E$$<200/>\E$P, home=\E$B, ht=^I, 
-       il1=\E[L\E[t, ind=^J, kbs=^H, kcub1=\E[D, kcud1=\E[B, 
-       kcuf1=\E[C, kcuu1=\E[A, khome=\E$A, nel=^M^J, rmcup=, 
-       rmir=\E[4l, rmkx=\E[>13l, rmso=\E[m, rmul=\E[m, sgr0=\E[m, 
+       cup=\E0%p1%{33}%+%c%p2%{33}%+%c, cuu=\E[%p1%dA, 
+       cuu1=\EM, dch=\E[%p1%dP, dch1=\E[P, dim=\E[2m, dl=\E[M, 
+       ed=\E[J\E[r, el=\E[K\E[t, flash=\E$$<200/>\E$P, 
+       home=\E$B, ht=^I, il1=\E[L\E[t, ind=^J, kbs=^H, kcub1=\E[D, 
+       kcud1=\E[B, kcuf1=\E[C, kcuu1=\E[A, khome=\E$A, nel=^M^J, 
+       rmcup=, rmir=\E[4l, rmkx=\E[>13l, rmso=\E[m, rmul=\E[m, 
+       sgr0=\E[m, 
        smcup=\E[>1l\E[>2l\E[>16l\E[4l\E[>9l\E[20l\E[>3l\E[>7h\E[>12l\E[1Q, 
        smir=\E[4h, smkx=\E[>13h, smso=\E[2;7m, smul=\E[4m, 
 pt100w|pt200w|wrenw|fenixw|prime pt100/pt200 in 132-column mode, 
@@ -3469,6 +4482,9 @@ pt250w|Prime PT250 in 132-column mode,
 # model is the qvt520, which is vt420-compatible.
 #
 # There are some ancient printing Qume terminals under `Daisy Wheel Printers'
+#
+# If you inherit a Qume without docs, try Ctrl-Shift-Setup to enter its
+# setup mode.  Shift-s should be a configuration save to NVRAM.
 
 qvt101|qvt108|qume qvt 101 and QVT 108, 
        xmc#1, use=qvt101+, 
@@ -3816,7 +4832,7 @@ tvi921|televideo model 921 with sysline same as page & real vi function,
 # without the beeper
 # (tvi92B: removed :ko=bt: before translation, I see no backtab cap;
 # also added empty <acsc> to suppress tic warning -- esr)
-tvi92B|televideo model 921 with sysline same as page & real vi function, 
+tvi92B|televideo model 921 with sysline same as page & real vi function & no beeper
        am, hs, xenl, xhp, 
        cols#80, lines#24, xmc#0, 
        acsc=, clear=^Z, cnorm=\E.3, cr=^M, cub1=^H, cud1=^V, cuf1=^L, 
@@ -3827,7 +4843,7 @@ tvi92B|televideo model 921 with sysline same as page & real vi function,
        invis@, is2=\El\E"\EF1\E.3\017\EA\E<, kbs=^H, kclr=^Z, 
        kcub1=^H, kcud1=^V, kcuf1=^L, kcuu1=^K, kdch1=\EW, 
        kdl1=\ER$<1*/>, ked=\EY, kel=\ET, kich1=\EQ, kil1=\EE, 
-       nel=^M^J, rmacs=\E%, rmir=, smacs=\E$, smir=, tsl=\Ef\EG0, 
+       nel=^M^J, rmacs=\E%, smacs=\E$, tsl=\Ef\EG0, 
        use=adm+sgr, 
 # (tvi92D: removed :ko=bt: before translation, I see no backtab cap -- esr)
 tvi92D|tvi92B with DTR instead of XON/XOFF & better padding, 
@@ -3857,7 +4873,7 @@ tvi924|televideo tvi924,
        kf6=^AF\r, kf7=^AG\r, kf8=^AH\r, kf9=^AI\r, khome=^^, 
        kich1=\EQ, kil1=\EE, lf0=F1, lf1=F2, lf10=F11, lf2=F3, lf3=F4, 
        lf4=F5, lf5=F6, lf6=F7, lf7=F8, lf8=F9, lf9=F10, 
-       pfkey=\E|%p1%'1'%+%c%p2%s\031, ri=\Ej, tbc=\E3, tsl=\Ef, use=adm+sgr, 
+       pfkey=\E|%p1%{49}%+%c%p2%s\031, ri=\Ej, tbc=\E3, tsl=\Ef, use=adm+sgr, 
 
 # TVI925 DIP switches.  In each of these, D = Down and U = Up,
 #
@@ -4112,13 +5128,13 @@ tvi925-hi|TeleVideo Model 925 with half intensity standout mode,
 tvi950|televideo 950, 
        am, hs, mir, msgr, xenl, xon, 
        cols#80, it#8, lines#24, xmc#1, 
-       acsc=d\rc\014e\nb\011i\013, bel=^G, cbt=\EI, clear=\E*, 
+       acsc=b\011c\014d\re\ni\013, bel=^G, cbt=\EI, clear=\E*, 
        cr=^M, cub1=^H, cud1=^J, cuf1=^L, 
        cup=\E=%p1%{32}%+%c%p2%{32}%+%c, cuu1=^K, dch1=\EW, 
        dl1=\ER, dsl=\Eg\Ef\r, ed=\Ey, el=\Et, flash=\Eb$<200/>\Ed, 
        fsl=^M, home=^^, ht=^I, hts=\E1, ich1=\EQ, il1=\EE, ind=^J, 
        invis@, 
-       is2=\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, 
+       is2=\EDF\EC\Ed\EG0\Eg\Er\EO\E'\E(\E%\Ew\EX\Ee \017\011\El\E016\E004\Ex0\0\0\Ex1\0\0\Ex2\0\0\011\Ex3\0\0\Ex4\r\0\Ef\r, 
        kbs=^H, kcbt=\EI, kclr=\E*, kcub1=^H, kcud1=^V, kcuf1=^L, 
        kcuu1=^K, kdch1=\EW, kdl1=\ER, ked=\Ey, kel=\Et, kf0=^A0\r, 
        kf1=^A@\r, kf2=^AA\r, kf3=^AB\r, kf4=^AC\r, kf5=^AD\r, 
@@ -4140,7 +5156,7 @@ tvi950|televideo 950,
 #      set local (no send) edit keys (\Ek) when exiting vi
 #
 tvi950-2p|televideo950 w/2 pages, 
-       is2=\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, 
+       is2=\EDF\EC\Ed\EG0\Eg\Er\EO\E'\E(\E%\Ew\EX\Ee \017\011\Ek\E016\E004\Ex0\0\0\Ex1\0\0\Ex2\0\0\011\Ex3\0\0\Ex4\r\0\E\\2\E-07 \011, 
        rmcup=\E\\2\E-07\s, rmkx=\Ek, smcup=\E\\1\E-07\s, 
        smkx=\El, 
        use=tvi950, 
@@ -4155,7 +5171,7 @@ tvi950-2p|televideo950 w/2 pages,
 #                       place cursor at 0,24,1 (\E-07 )
 #
 tvi950-4p|televideo950 w/4 pages, 
-       is2=\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, 
+       is2=\EDF\EC\Ed\EG0\Eg\Er\EO\E'\E(\E%\Ew\EX\Ee \017\011\Ek\E016\E004\Ex0\0\0\Ex1\0\0\Ex2\0\0\011\Ex3\0\0\Ex4\r\0\E\\3\E-07 \011, 
        rmcup=\E\\3\E-07\s, rmkx=\Ek, smcup=\E\\1\E-07\s, 
        smkx=\El, 
        use=tvi950, 
@@ -4167,12 +5183,12 @@ tvi950-4p|televideo950 w/4 pages,
 #
 tvi950-rv|televideo950 rev video, 
        flash=\Ed$<200/>\Eb, 
-       is2=\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, use=tvi950, 
+       is2=\EDF\EC\Eb\EG0\Eg\Er\EO\E'\E(\E%\Ew\EX\Ee \017\011\El\E016\E004\Ex0\0\0\Ex1\0\0\Ex2\0\0\011\Ex3\0\0\Ex4\r\0, use=tvi950, 
 
 # tvi950-rv-2p uses the appropriate entries from 950-2p and 950-rv
 tvi950-rv-2p|televideo950 rev video w/2 pages, 
        flash=\Ed$<200/>\Eb, 
-       is2=\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\s, 
+       is2=\EDF\EC\Eb\EG0\Eg\Er\EO\E'\E(\E%\Ew\EX\Ee \017\011\Ek\E016\E004\Ex0\0\0\Ex1\0\0\Ex2\0\0\011\Ex3\0\0\Ex4\r\0\E\\2\E-07\s, 
        rmcup=\E\\2\E-07\s, rmkx=\Ek, smcup=\E\\1\E-07\s, 
        smkx=\El, 
        use=tvi950, 
@@ -4180,7 +5196,7 @@ tvi950-rv-2p|televideo950 rev video w/2 pages,
 # tvi950-rv uses the appropriate entries from 950-4p and 950-rv
 tvi950-rv-4p|televideo950 rev video w/4 pages, 
        flash=\Ed$<200/>\Eb, 
-       is2=\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\s, 
+       is2=\EDF\EC\Eb\EG0\Er\EO\E'\E(\E%\Ew\EX\Ee \017\011\Ek\E016\E004\Ex0\0\0\Ex1\0\0\Ex2\0\0\011\Ex3\0\0\Ex4\r\0\E\\3\E-07\s, 
        rmcup=\E\\3\E-07\s, rmkx=\Ek, smcup=\E\\1\E-07\s, 
        smkx=\El, 
        use=tvi950, 
@@ -4203,7 +5219,7 @@ tvi955|televideo 955,
        is2=\E[=3l\EF1\Ed\EG0\E[=5l\E%\El, kctab=\E2, khts=\E1, 
        knp=\EK, kpp=\EJ, krmir=\EQ, ktbc=\E3, mc0=\EP, rmacs=\E%, 
        rmam=\E[=7l, rmxon=^N, 
-       rs1=\EDF\EC\Eg\Er\EO\E'\E(\Ew\EX\Ee \017\E0P\E6\200\E0p\E4\200\Ef\r, 
+       rs1=\EDF\EC\Eg\Er\EO\E'\E(\Ew\EX\Ee \017\E0P\E6\0\E0p\E4\0\Ef\r, 
        sgr0=\EG0\E[=5l, smacs=\E$, smam=\E[=7h, smxon=^O, 
        use=tvi950, 
 tvi955-w|955-w|televideo955 w/132 cols, 
@@ -4237,7 +5253,7 @@ tvi970|televideo 970,
        smcup=\E[?20l\E[?7h\E[1Q, smir=\E[4h, smso=\E[7m, 
        smul=\E[4m, vpa=\E[%i%p1%dd, 
 tvi970-vb|televideo 970 with visual bell, 
-       flash=\E[?5h\200\200\200\200\200\200\200\200\200\200\200\200\200\E[?5l, use=tvi970, 
+       flash=\E[?5h\0\0\0\0\0\0\0\0\0\0\0\0\0\E[?5l, use=tvi970, 
 tvi970-2p|televideo 970 with using 2 pages of memory, 
        rmcup=\E[H\E[J\E[V, smcup=\E[U\E[?20l\E[?7h\E[1Q, 
        use=tvi970, 
@@ -4246,7 +5262,7 @@ tvi970-2p|televideo 970 with using 2 pages of memory,
 # padding is needed, but adapted from the tvi920c termcap.  The <smso> and 
 # <smul> strings are klutzy, but at least use no screen space.
 # (tvipt: removed obsolete ":ma=^Kk^Ll^R^L:".  I wish we knew <rmam>,
-# its absence means <smam>=\Ev isn't save to use. -- esr)
+# its absence means <smam>=\Ev isn't safe to use. -- esr)
 # From: Gene Rochlin <armsis@amber.berkeley.edu> 9/19/84. 
 # The <ed>/<kf0>/<kf1>/<khome>/<mc4>, and <mc5> caps are from BRL, which says:
 # F1 and F2 should be programmed as ^A and ^B; required for UNIFY.
@@ -4264,12 +5280,12 @@ tvi9065|televideo 9065,
        am, bw, chts, hs, mc5i, mir, msgr, xenl, xon, 
        cols#80, it#8, lh#1, lines#25, lm#0, lw#9, ma#4, nlab#8, vt#0, 
        wnum#0, wsl#30, 
-       acsc=0_'rjhkglfmeniopxjqksqtmulvown, bel=^G, 
+       acsc='r0_jhkglfmeniopqksqtmulvownxj, bel=^G, 
        blink=\EG2, bold=\EG\,, cbt=\EI, civis=\E.0, clear=^Z, 
        cnorm=\E.3, cr=^M, csr=\E[%i%p1%d;%p2%dr, cub=\E[%p1%dD, 
        cub1=^H, cud=\E[%p1%dB, cud1=^V, cuf=\E[%p1%dC, cuf1=^L, 
-       cup=\E=%p1%' '%+%c%p2%' '%+%c, cuu=\E[%p1%dA, cuu1=^K
-       cvvis=\E.2, dch=\E[%p1%dP, dch1=\EW, dim=\EGp, 
+       cup=\E=%p1%{32}%+%c%p2%{32}%+%c, cuu=\E[%p1%dA
+       cuu1=^K, cvvis=\E.2, dch=\E[%p1%dP, dch1=\EW, dim=\EGp, 
        dl=\E[%p1%dM, dl1=\ER, dsl=\E_30\r, ech=\E[%p1%d@, ed=\EY, 
        el=\ET, flash=\Eb$<15>\Ed, fsl=^M, home=^^, ht=^I, hts=\E1, 
        ich=\E[%p1%d@, if=/usr/share/tabset/stdcrt, 
@@ -4282,17 +5298,17 @@ tvi9065|televideo 9065,
        kf2=^AA\r, kf3=^AB\r, kf4=^AC\r, kf5=^AD\r, kf6=^AE\r, 
        kf7=^AF\r, kf8=^AG\r, kf9=^AH\r, khome=^^, ll=\E[25;1H, 
        mc0=\E[0;0i, mc4=\Ea, mc5=\E`, nel=^M^J, 
-       pfkey=\E|%p1%'0'%+%c3%p2%s\031, 
-       pfloc=\E|%p1%'0'%+%c2%p2%s\031, 
-       pfx=\E|%p1%'0'%+%c1%p2%s\031, 
-       pln=\E_%p1%'?'%+%c%p2%s\r, prot=\E&, 
+       pfkey=\E|%p1%{48}%+%c3%p2%s\031, 
+       pfloc=\E|%p1%{48}%+%c2%p2%s\031, 
+       pfx=\E|%p1%{48}%+%c1%p2%s\031, 
+       pln=\E_%p1%{63}%+%c%p2%s\r, prot=\E&, 
        rep=\E[%p2%db%p1%c, rev=\EG4, 
        rf=/usr/share/tabset/stdcrt, ri=\Ej, rin=\E[%p1%dT, 
        rmacs=\E%, rmam=\E[=7l, rmcup=\E.3\Er\E[1;25r\E[25;0H, 
-       rmdc=\200, rmir=\Er, rmln=\E[4;1v, rmso=\EG0, rmul=\EG0, 
+       rmdc=\0, rmir=\Er, rmln=\E[4;1v, rmso=\EG0, rmul=\EG0, 
        rmxon=^N, rs1=\EC\EDF\E[0;0v\E[8;1v\E[=65l, 
-       rs2=\E.b\E[10;20v\E[14;1v\E[3;0v\E[7;0v\E[=11.h\E[=12.h\E[=13.h\E[=14.h\E[=15l\E[=20h\E[=60l\E[=61h\E[=9l\E[=10l\E[=21l\E[=23l\E[=3l\E_40\E_50\En\Ew\Ee \Ex0\200\200\Ex1\200\200\Ex2\200\200\Ex3\200\200\Ex4\200\200\E1, 
-       rs3=\E[=19h\E.3\E9\E0O\200\200\200\200\200\E0o\200\200\200\200\200\E0J\177\200\200\200\200, 
+       rs2=\E.b\E[10;20v\E[14;1v\E[3;0v\E[7;0v\E[=11.h\E[=12.h\E[=13.h\E[=14.h\E[=15l\E[=20h\E[=60l\E[=61h\E[=9l\E[=10l\E[=21l\E[=23l\E[=3l\E_40\E_50\En\Ew\Ee \Ex0\0\0\Ex1\0\0\Ex2\0\0\Ex3\0\0\Ex4\0\0\E1, 
+       rs3=\E[=19h\E.3\E9\E0O\0\0\0\0\0\E0o\0\0\0\0\0\E0J\177\0\0\0\0, 
        sgr=\EG0%?%p1%t\EGt%;%?%p2%t\EG8%;%?%p3%t\EG4%;%?%p4%t\EG2%;%?%p5%t\EGp%;%?%p6%t\EG\,%;%?%p7%t\EG1%;%?%p9%t\E$%e\E%%%;, 
        sgr0=\EG0, smacs=\E$, smam=\E=7h, smcup=\E.2, smdc=\Er, 
        smir=\Eq, smln=\E[4;2v, smso=\EGt, smul=\EG8, smxon=^O, 
@@ -4344,7 +5360,7 @@ vi50adm|visual 50 in adm3a mode,
 vi55|Visual 55, 
        am, mir, msgr, 
        cols#80, it#8, lines#24, 
-       clear=\Ev, csr=\E_%p1%'A'%+%c%p2%'A'%+%c, cub1=^H, 
+       clear=\Ev, csr=\E_%p1%{65}%+%c%p2%{65}%+%c, cub1=^H, 
        cud1=^J, cuf1=\EC, cup=\EY%p1%{32}%+%c%p2%{32}%+%c, 
        cuu1=\EA, dch1=\Ew, dl1=\EM, ed=\EJ, el=\EK, home=\EH, ht=^I, 
        il1=\EL, is2=\Ev\E_AX\Eb\EW\E9P\ET, kbs=^H, kcub1=\ED, 
@@ -4374,8 +5390,8 @@ vi200|visual 200,
        kf7=\E?w, kf8=\E?x, kf9=\E?y, khome=\EH, khts=\E1, kich1=\Ei, 
        kil1=\EL, krmir=\Ej, mc0=\EH\E], mc4=\EX, mc5=\EW, ri=\EI, 
        rmacs=\EG, rmkx=\E>, rmso=\E3, 
-       rs1=\E3\Eb\Ej\E\\\El\EG\Ec\Ek\EX, sgr0=\E3\Eb
-       smacs=\EF, smkx=\E=, smso=\E4, tbc=\Eg, 
+       rs1=\E3\Eb\Ej\E\El\EG\Ec\Ek\EX, sgr0=\E3\Eb, smacs=\EF
+       smkx=\E=, smso=\E4, tbc=\Eg, 
 # The older Visuals didn't come with function keys. This entry uses
 # <smkx> and <rmkx> so that the keypad keys can be used as function keys.
 # If your version of vi doesn't support function keys you may want
@@ -4465,20 +5481,14 @@ vi603|visual603|visual 603,
 #
 # Wyse sales can be reached by phone at 1-800-GET-WYSE.  Tech support is at
 # (800)-800-WYSE (option 5 gets you a human).  There's a Web page at the
-# obvious address, http://www.wyse.com.
+# obvious address, <http://www.wyse.com>.  They keep terminfo entries at
+# <http://www.wyse.co.uk/support/appnotes/idxappnt.htm>.
 #
 # Wyse bought out Link Technology, Inc. in 1990 and closed it down in 1995.
 # They now own the Qume and Amdek brands, too.  So these are the people to
 # talk with about all Link, Qume, and Amdek terminals.
 #
-# Wyse has a BBS containing termcap and terminfo stuff for their terminals
-# (though this may not last long -- I expect the Web will kill it off by
-# mid-1997 or so).  According to their tech support, at 800-800-9973, it's
-# at 408-922-4400 thru 4405.  The 4400 modem is flaky as of 5/96, so
-# call 4401 etc.  Come in at 9600 hard; don't use autospeed sense.
-#
-# All the following entries until (but not including) wy520 are direct from
-# Wyse technical support and represent their best knowledge as of January 1995.
+# These entries include a few small fixes.
 # I canceled the bel capacities in the vb entries.
 # I made two trivial syntax fixes in the wyse30 entry.
 # I made some entries relative to adm+sgr.
@@ -4508,8 +5518,8 @@ wy30|wyse30|Wyse 30,
        kf1=^A@\r, kf2=^AA\r, kf3=^AB\r, kf4=^AC\r, kf5=^AD\r, 
        kf6=^AE\r, kf7=^AF\r, kf8=^AG\r, khome=^^, kich1=\EQ, 
        kil1=\EE, knp=\EK, kpp=\EJ, krpl=\Er, ll=^^^K, mc0=\EP, mc4=^T, 
-       mc5=^X, nel=^M^J, pfx=\Ez%p1%'?'%+%c%p2%s\177, 
-       pln=\Ez%p1%'/'%+%c%p2%s\r, prot=\E`7\E), ri=\Ej$<3>, 
+       mc5=^X, nel=^M^J, pfx=\Ez%p1%{63}%+%c%p2%s\177, 
+       pln=\Ez%p1%{47}%+%c%p2%s\r, prot=\E`7\E), ri=\Ej$<3>, 
        rmacs=\EH^C, rmir=\Er, rmln=\EA11, rmso=\E(, 
        sgr=%?%p1%p5%p8%|%|%t\E`7\E)%e\E(%;%?%p9%t\EH\002%e\EH\003%;, 
        sgr0=\E(\EH\003, smacs=\EH^B, smir=\Eq, smln=\EA10, 
@@ -4523,10 +5533,11 @@ wy30-mc|wyse30-mc|wyse 30 with magic cookies,
        msgr@, 
        ma@, xmc#1, 
        blink=\EG2, dim=\EGp, prot=\EG0\E), rmacs=\EG0\EH\003, 
-       rmcup=\EG0, 
-       sgr=\EG%'0'%?%p2%p6%|%t%{8}%|%;%?%p1%p3%|%p6%|%t%{4}%|%;%?%p4%t%{2}%|%;%?%p1%p5%|%t%{64}%|%;%?%p7%t%{1}%|%;%c%?%p8%t\E)%e\E(%;%?%p9%t\EH\002%e\EH\003%;, 
+       rmcup=\EG0, rmso=\EG0, 
+       sgr=\EG%{48}%?%p2%p6%|%t%{8}%|%;%?%p1%p3%|%p6%|%t%{4}%|%;%?%p4%t%{2}%|%;%?%p1%p5%|%t%{64}%|%;%?%p7%t%{1}%|%;%c%?%p8%t\E)%e\E(%;%?%p9%t\EH\002%e\EH\003%;, 
        sgr0=\EG0\E(\EH\003, smacs=\EG0\EH\002, smcup=, 
-       use=wy30, use=adm+sgr, 
+       smso=\EG4, use=wy30, 
+       use=adm+sgr, 
 #      The mandatory pause used by <flash> does not work with
 #      older versions of terminfo.  If you see this effect then
 #      unset xon and delete the / from the delay.
@@ -4560,10 +5571,10 @@ wy50|wyse50|Wyse 50,
        kf6=^AE\r, kf7=^AF\r, kf8=^AG\r, kf9=^AH\r, khome=^^, 
        kich1=\EQ, kil1=\EE, knp=\EK, kpp=\EJ, kprt=\EP, krpl=\Er, 
        ll=^^^K, mc0=\EP, mc4=^T, mc5=^X, nel=^M^J, 
-       pfx=\Ez%p1%'?'%+%c%p2%s\177, 
-       pln=\Ez%p1%'/'%+%c%p2%s\r, prot=\E`7\E), rev=\E`6\E), 
+       pfx=\Ez%p1%{63}%+%c%p2%s\177, 
+       pln=\Ez%p1%{47}%+%c%p2%s\r, prot=\E`7\E), rev=\E`6\E), 
        ri=\Ej, rmacs=\EH^C, rmir=\Er, rmln=\EA11, rmso=\E(, 
-       sgr=%?%p1%p3%|%t\E`6\E)\n%e%p5%p8%|%t\E`7\E)%e\E(%;\n%?%p9%t\EH\002%e\EH\003%;, 
+       sgr=%?%p1%p3%|%t\E`6\E)%e%p5%p8%|%t\E`7\E)%e\E(%;%?%p9%t\EH\002%e\EH\003%;, 
        sgr0=\E(\EH\003, smacs=\EH^B, smir=\Eq, smln=\EA10, 
        smso=\E`6\E), tbc=\E0, tsl=\EF, 
 #
@@ -4578,9 +5589,9 @@ wy50|wyse50|Wyse 50,
 wy50-mc|wyse50-mc|wyse 50 with magic cookies, 
        msgr@, 
        ma@, xmc#1, 
-       blink=\EG2, dim=\EGp, prot=\EG0\E), rmacs=\EG0\EH\003
-       rmcup=\EG0, 
-       sgr=\EG%'0'%?%p2%p6%|%t%{8}%|%;%?%p1%p3%|%p6%|%t%{4}%|%;%?%p4%t%{2}%|%;%?%p1%p5%|%t%{64}%|%;%?%p7%t%{1}%|%;%c%?%p8%t\E)%e\E(%;%?%p9%t\EH\002%e\EH\003%;, 
+       blink=\EG2, dim=\EGp, prot=\EG0\E), rev=\EG4
+       rmacs=\EG0\EH\003, rmcup=\EG0, rmso=\EG0, 
+       sgr=\EG%{48}%?%p2%p6%|%t%{8}%|%;%?%p1%p3%|%p6%|%t%{4}%|%;%?%p4%t%{2}%|%;%?%p1%p5%|%t%{64}%|%;%?%p7%t%{1}%|%;%c%?%p8%t\E)%e\E(%;%?%p9%t\EH\002%e\EH\003%;, 
        sgr0=\EG0\E(\EH\003, smacs=\EG0\EH\002, smcup=, 
        smso=\EGt, use=wy50, 
        use=adm+sgr, 
@@ -4592,6 +5603,7 @@ wy50-w|wyse50-w|wyse 50 132-column,
 wy50-wvb|wyse50-wvb|wyse 50 132-column visible bell, 
        bel@, 
        use=wy50-w, 
+
 #
 #      The Wyse 350 is a Wyse 50 with color.
 #      Unfortunately this means that it has magic cookies.
@@ -4634,11 +5646,11 @@ wy350|wyse350|Wyse 350,
        kf6=^AE\r, kf7=^AF\r, kf8=^AG\r, kf9=^AH\r, khome=^^, 
        kich1=\EQ, kil1=\EE, knp=\EK, kpp=\EJ, kprt=\EP, krpl=\Er, 
        ll=^^^K, mc0=\EP, mc4=^T, mc5=^X, nel=^M^J, oc=\E%?, op=\EG0, 
-       pfx=\Ez%p1%'?'%+%c%p2%s\177, 
-       pln=\Ez%p1%'/'%+%c%p2%s\r, prot=\EG0\E), ri=\Ej, 
+       pfx=\Ez%p1%{63}%+%c%p2%s\177, 
+       pln=\Ez%p1%{47}%+%c%p2%s\r, prot=\EG0\E), ri=\Ej, 
        rmacs=\EG0\EH\003, rmir=\Er, rmln=\EA11, setb=, 
-       setf=%?%p1%{0}%=%t%{76}\n%e%p1%{1}%=%t%{64}\n%e%p1%{2}%=%t%{8}\n%e%p1%{3}%=%t%{72}\n%e%p1%{4}%=%t%{4}\n%e%p1%{5}%=%t%{68}\n%e%p1%{6}%=%t%{12}\n%e%p1%{7}%=%t%{0}\n%;%PC\n\EG%gC%gA%+%'0'%+%c, 
-       sgr=%{0}%?%p4%t%{2}%|%;\n%?%p7%t%{1}%|%;%PA\n\EG%?%gC%t%gC%e\n%{0}%?%p1%t%{4}%|%;\n%?%p2%t%{8}%|%;\n%?%p3%t%{4}%|%;\n%?%p5%t%{64}%|%;\n%;%gA%+%'0'%+%c\n%?%p8%t\E)%e\E(%;%?%p9%t\EH\002%e\EH\003%;, 
+       setf=%?%p1%{0}%=%t%{76}%e%p1%{1}%=%t%{64}%e%p1%{2}%=%t%{8}%e%p1%{3}%=%t%{72}%e%p1%{4}%=%t%{4}%e%p1%{5}%=%t%{68}%e%p1%{6}%=%t%{12}%e%p1%{7}%=%t%{0}%;%PC\EG%gC%gA%+%{48}%+%c, 
+       sgr=%{0}%?%p4%t%{2}%|%;%?%p7%t%{1}%|%;%PA\EG%?%gC%t%gC%e%{0}%?%p1%t%{4}%|%;%?%p2%t%{8}%|%;%?%p3%t%{4}%|%;%?%p5%t%{64}%|%;%;%gA%+%{48}%+%c%?%p8%t\E)%e\E(%;%?%p9%t\EH\002%e\EH\003%;, 
        sgr0=\EG0\E(\EH\003%{0}%PA%{0}%PC, smacs=\EG0\EH\002, 
        smir=\Eq, smln=\EA10, tbc=\E0, tsl=\EF, 
        use=adm+sgr, 
@@ -4675,7 +5687,7 @@ wy100|wyse 100,
 wy120|wyse120|wy150|wyse150|Wyse 120/150, 
        am, bw, hs, km, mc5i, mir, msgr, xon, 
        cols#80, it#8, lh#1, lines#24, lw#8, nlab#8, pb#9601, wsl#45, 
-       acsc=+/\\\,.0[Iha2fxgqh1jYk?lZm@nEqDtCu4vAwBx3yszr{c~~, 
+       acsc=+/\,.0[Iha2fxgqh1jYk?lZm@nEqDtCu4vAwBx3yszr{c~~, 
        bel=^G, blink=\EG2, cbt=\EI, civis=\E`0, clear=\E+$<50>, 
        cnorm=\E`1, cr=^M, cub1=^H, cud1=^J, cuf1=^L, 
        cup=\E=%p1%{32}%+%c%p2%{32}%+%c, cuu1=^K, dch1=\EW$<7>, 
@@ -4691,16 +5703,17 @@ wy120|wyse120|wy150|wyse150|Wyse 120/150,
        kf7=^AF\r, kf8=^AG\r, kf9=^AH\r, khome=^^, kich1=\EQ, 
        kil1=\EE, knp=\EK, kpp=\EJ, kprt=\EP, krpl=\Er, ll=^^^K, 
        mc0=\EP, mc4=^T, mc5=\Ed#, nel=\r\n$<3>, 
-       pfloc=\EZ2%p1%'?'%+%c%p2%s\177, 
-       pfx=\EZ1%p1%'?'%+%c%p2%s\177, 
-       pln=\Ez%p1%'/'%+%c%p2%s\r, prot=\E), ri=\Ej$<2>, 
+       pfloc=\EZ2%p1%{63}%+%c%p2%s\177, 
+       pfx=\EZ1%p1%{63}%+%c%p2%s\177, 
+       pln=\Ez%p1%{47}%+%c%p2%s\r, prot=\E), ri=\Ej$<2>, 
        rmacs=\EcD, rmam=\Ed., rmcup=\Ew1, rmir=\Er, rmln=\EA11, 
        rmxon=\Ec20, rs1=\E~!\E~4$<30>, rs2=\EeF\E`\:$<70>, 
        rs3=\EwG\Ee($<100>, 
-       sgr=%?%p8%t\E)%e\E(%;%?%p9%t\EcE%e\EcD%;\EG%'0'%?%p2%t%{8}%|%;%?%p1%p3%|%p6%|%t%{4}%|%;%?%p4%t%{2}%|%;%?%p1%p5%|%t%{64}%|%;%?%p7%t%{1}%|%;%c, 
+       sgr=%?%p8%t\E)%e\E(%;%?%p9%t\EcE%e\EcD%;\EG%{48}%?%p2%t%{8}%|%;%?%p1%p3%|%p6%|%t%{4}%|%;%?%p4%t%{2}%|%;%?%p1%p5%|%t%{64}%|%;%?%p7%t%{1}%|%;%c, 
        sgr0=\E(\EH\003\EG0\EcD, smacs=\EcE, smam=\Ed/, 
-       smcup=\Ew0, smir=\Eq, smln=\EA10, smso=\EGt, 
-       smxon=\Ec21\ntbc=\E0, tsl=\EF, use=adm+sgr, 
+       smcup=\Ew0, smir=\Eq, smln=\EA10, smso=\EGt, smxon=\Ec21, 
+       tbc=\E0, tsl=\EF, 
+       use=adm+sgr, 
 #
 wy120-w|wyse120-w|wy150-w|wyse150-w|wyse 120/150 132-column, 
        cols#132, lw#7, nlab#16, wsl#97, 
@@ -4756,7 +5769,7 @@ wy120-w-vb|wy120-wvb|wyse120-wvb|wy150-w-vb|wyse150-w-vb|Wyse 120/150 132-column
 wy60|wyse60|Wyse 60, 
        am, bw, hs, km, mc5i, mir, msgr, 
        cols#80, lh#1, lines#24, lw#8, nlab#8, wsl#45, 
-       acsc=+/\\\,.0[Iha2fxgqh1jYk?lZm@nEqDtCu4vAwBx3yszr{c~~, 
+       acsc=+/\,.0[Iha2fxgqh1jYk?lZm@nEqDtCu4vAwBx3yszr{c~~, 
        bel=^G, blink=\EG2, cbt=\EI, civis=\E`0, clear=\E+$<100>, 
        cnorm=\E`1, cr=^M, cub1=^H, cud1=^J, cuf1=^L, 
        cup=\E=%p1%{32}%+%c%p2%{32}%+%c, cuu1=^K, 
@@ -4773,13 +5786,13 @@ wy60|wyse60|Wyse 60,
        kf7=^AF\r, kf8=^AG\r, kf9=^AH\r, khome=^^, kich1=\EQ, 
        kil1=\EE, knp=\EK, kpp=\EJ, kprt=\EP, krpl=\Er, ll=\E{^K, 
        mc0=\EP, mc4=^T, mc5=\Ed#, nel=\r\n$<3>, 
-       pfloc=\EZ2%p1%'?'%+%c%p2%s\177, 
-       pfx=\EZ1%p1%'?'%+%c%p2%s\177, 
-       pln=\Ez%p1%'/'%+%c%p2%s\r, prot=\E), ri=\Ej$<7>, 
+       pfloc=\EZ2%p1%{63}%+%c%p2%s\177, 
+       pfx=\EZ1%p1%{63}%+%c%p2%s\177, 
+       pln=\Ez%p1%{47}%+%c%p2%s\r, prot=\E), ri=\Ej$<7>, 
        rmacs=\EcD, rmam=\Ed., rmclk=\E`c, rmcup=\Ew1, rmir=\Er, 
        rmln=\EA11, rmxon=\Ec20, rs1=\E~!\E~4$<150>, 
        rs2=\EeG$<150>, rs3=\EwG\Ee($<200>, 
-       sgr=%?%p8%t\E)%e\E(%;%?%p9%t\EcE%e\EcD%;\EG%'0'%?%p2%t%{8}%|%;%?%p1%p3%|%p6%|%t%{4}%|%;%?%p4%t%{2}%|%;%?%p1%p5%|%t%{64}%|%;%?%p7%t%{1}%|%;%c, 
+       sgr=%?%p8%t\E)%e\E(%;%?%p9%t\EcE%e\EcD%;\EG%{48}%?%p2%t%{8}%|%;%?%p1%p3%|%p6%|%t%{4}%|%;%?%p4%t%{2}%|%;%?%p1%p5%|%t%{64}%|%;%?%p7%t%{1}%|%;%c, 
        sgr0=\E(\EH\003\EG0\EcD, smacs=\EcE, smam=\Ed/, 
        smcup=\Ew0, smir=\Eq, smln=\EA10, smso=\EGt, smxon=\Ec21, 
        tbc=\E0, tsl=\EF, 
@@ -4867,6 +5880,99 @@ wy99gt-vb|wyse99gt-vb|Wyse 99gt visible bell,
 wy99gt-w-vb|wy99gt-wvb|wyse99gt-wvb|Wyse 99gt 132-column visible bell, 
        bel@, 
        use=wy99gt-w, 
+
+# Can't set tabs! Other bugs (ANSI mode only):
+# - can't redefine function keys (anyway, key redefinition in ANSI mode
+#   is too much complex to be described);
+# - meta key can't be described (the terminal forgets it when reset);
+# The xon-xoff handshaking can't be disabled while in ansi personality, so
+# emacs can't work at speed greater than 9600 baud.  No padding is needed at
+# this speed.
+#   dch1 has been commented out because it causes annoying glittering when
+# vi deletes one character at the beginning of a line with tabs in it.
+#   dch makes sysgen(1M) have a horrible behaviour when deleting
+# a screen and makes screen(1) behave badly, so it is disabled too. The nice
+# thing is that vi goes crazy if smir-rmir are present and both dch-dch1 are
+# not, so smir and rmir are commented out as well.
+# From: Francesco Potorti` <F.Potorti@cnuce.cnr.it>, 24 Aug 1998
+wy99-ansi|Wyse WY-99GT in ansi mode (int'l PC keyboard), 
+       am, km, mc5i, mir, msgr, xenl, 
+       cols#80, it#8, lines#25, vt#3, 
+       acsc=``aaffggjjkkllmmnnooqqssttuuvvwwxx{{||}}~~, 
+       bel=^G, blink=\E[5m, bold=\E[1m, cbt=\E[Z, civis=\E[?25l, 
+       clear=\E[H\E[J$<200>, cnorm=\E[34h\E[?25h, cr=^M, 
+       csr=\E[%i%p1%d;%p2%dr, cub=\E[%p1%dD$<1>, 
+       cub1=\010$<1>, cud=\E[%p1%dB, cud1=\ED, 
+       cuf=\E[%p1%dC$<1>, cuf1=\E[C$<1>, 
+       cup=\E[%i%p1%d;%p2%dH, cuu=\E[%p1%dA, cuu1=\EM, 
+       cvvis=\E[34l\E[?25h, dim=\E[2m, dl=\E[%p1%dM, dl1=\E[M, 
+       ech=\E[%p1%dX, ed=\E[J$<8*>, el=\E[K$<1>, el1=\E[1K$<1>, 
+       enacs=\E)0, flash=\E[?5h$<30/>\E[?5l, home=\E[H, 
+       hpa=\E[%i%p1%dG, ht=^I, ich=\E[%p1%d@, il=\E[%p1%dL, 
+       il1=\E[L, ind=\n$<1>, invis=\E[8m, 
+       is2=\E7\E[1r\E8\E[2;3;4;13;20;34;39;36l\E[12;16;34h\E[?1;3;4;5;10;18l\E[?7;8;25h\E>\E[?5W\E(B\017\E[4i, 
+       kbs=^H, kcbt=\E[z, kcub1=\EOD, kcud1=\EOB, kcuf1=\EOC, 
+       kcuu1=\EOA, kf1=\EOP, kf10=\E[21~, kf11=\E[23~, 
+       kf12=\E[24~, kf17=\E[K, kf18=\E[31~, kf19=\E[32~, kf2=\EOQ, 
+       kf20=\E[33~, kf21=\E[34~, kf22=\E[35~, kf23=\E[1~, 
+       kf24=\E[2~, kf3=\EOR, kf4=\EOS, kf5=\E[M, kf6=\E[17~, 
+       kf7=\E[18~, kf8=\E[19~, kf9=\E[20~, ll=\E[24E, mc0=\E[?19h, 
+       mc4=\E[4i, mc5=\E[5i, nel=\EE, prot=\E[1"q, rc=\E8, 
+       rev=\E[7m, ri=\EM, rmacs=^O, rmam=\E[?7l, rmir=\E[4l, 
+       rmkx=\E[?1l, rmso=\E[27m, rmul=\E[24m, 
+       rs2=\E[61"p\E[40h\E[?6l\E[1r\E[2;3;4;13;20;34;39;36l\E[12;16;34h\E[?1;3;4;5;10;18l\E[?7;8;25h\E>\E[?5W\E(B\017\E[24E\E[4i, 
+       sc=\E7, 
+       sgr=\E[0%?%p6%t;1%;%?%p2%t;4%;%?%p1%p3%O%t;7%;%?%p4%t;5%;%?%p5%t;2%;%?%p7%t;8%;m\E[%?%p8%t1%;"q%?%p9%t\016%e\017%;, 
+       sgr0=\E[m\017\E["q, smacs=^N, smam=\E[?7h, smir=\E[4h, 
+       smkx=\E[?1h, smso=\E[7m, smul=\E[4m, vpa=\E[%i%p1%dd, 
+
+#   This is the american terminal. Here tabs work fine.
+# From: Francesco Potorti` <F.Potorti@cnuce.cnr.it>, 24 Aug 1998
+wy99a-ansi|Wyse WY-99GT in ansi mode (US PC keyboard), 
+       hts=\EH, is3=\E[?5l, rs3=\E[?5l, tbc=\E[3g, 
+       use=wy99-ansi, 
+
+# This terminal (firmware version 02) has a lot of bugs:
+# - can't set tabs;
+# - other bugs in ANSI modes (see above).
+# This description disables handshaking when using cup. This is because
+# GNU emacs doesn't like Xon-Xoff handshaking. This means the terminal
+# cannot be used at speeds greater than 9600 baud, because at greater
+# speeds handshaking is needed even for character sending. If you use
+# DTR handshaking, you can use even greater speeds.
+# From: Francesco Potorti` <F.Potorti@cnuce.cnr.it>, 24 Aug 1998
+wy99f|wy99fgt|wy-99fgt|Wyse WY-99GT (int'l PC keyboard), 
+       am, bw, hs, km, mc5i, mir, msgr, xon, 
+       cols#80, it#8, lines#25, wsl#46, 
+       acsc='x+y.wI~_vj(k'l&m%n)o9q*s8t-u.v\,w+x=, bel=^G, 
+       blink=\EG2, cbt=\EI, civis=\E`0, clear=\E'\E(\032, 
+       cnorm=\E`4\E`1, cr=^M, cub1=^H, cud1=\Ej, cuf1=^L, 
+       cup=\E=%p1%{32}%+%c%p2%{32}%+%c, cuu1=^K, 
+       cvvis=\E`2\E`1, dch1=\EW, dim=\EGp, dl1=\ER, dsl=\EF\r, 
+       ed=\EY$<8*>, el=\ET$<8>, enacs=\Ec@1J$<2000>, 
+       flash=\E\^1$<30/>\E\^0, fsl=^M, home=^^, ht=^I, il1=\EE, 
+       ind=^J, invis=\EG3, 
+       is2=\Eu\Ee6\EC\EDF\Ec21\Ec31\Ec62\Ec72\Ee;\016\E'\EeL\E`9\E\^0\E`1\E`4\Ee.\E`\:\Ee1\EG0\E(\Ed/\Ee4\Ed*\EO\E`I\Er\Ee"\EcD\024, 
+       ka1=^^, ka3=\EJ, kbs=^H, kc1=\ET, kc3=\EK, kcbt=\EI, kcub1=^H, 
+       kcud1=^J, kcuf1=^L, kcuu1=^K, kf1=^A@\r, kf10=^AI\r, 
+       kf11=^AJ\r, kf12=^AK\r, kf13=^A`\r, kf14=^Aa\r, kf15=^Ab\r, 
+       kf16=^Ac\r, kf17=^Ad\r, kf18=^Ae\r, kf19=^Af\r, kf2=^AA\r, 
+       kf20=^Ag\r, kf21=^Ah\r, kf22=^Ai\r, kf23=^Aj\r, kf24=^Ak\r, 
+       kf3=^AB\r, kf4=^AC\r, kf5=^AD\r, kf6=^AE\r, kf7=^AF\r, 
+       kf8=^AG\r, kf9=^AH\r, kprt=\EP, mc0=\EP, mc4=^T, mc5=\Ed#, 
+       nel=^_, prot=\E), rev=\EG4, ri=\Ej, rmacs=\EcD, rmam=\Ed., 
+       rmcup=\Ec21\Ec31, rmir=\Er, rmso=\EG0, rmxon=\Ec20\Ec30, 
+       rs2=\Eu\E~4\Ee6\EC\EDF\Ec21\Ec31\Ec62\Ec72\Ee;\016\E'\EeL\E`9\E\^0\E`1\E`4\Ee.\E`\:\Ee)\Ew\EwG\Ew0\Ee1\EG0\E(\Ed/\Ee4\Ed*\EO\E`I\Er\Ee"\Ec@0B\EcD\024, 
+       sgr=\E(\EG%{48}%?%p1%p3%O%t%{4}%+%;%?%p2%t%{8}%+%;%?%p4%t%{2}%+%;%?%p5%t%{64}%+%;%?%p7%t%{1}%+%;%c%?%p8%t\E)%;%?%p9%t\EcE%e\EcD%;, 
+       sgr0=\E(\EG0, smacs=\EcE, smam=\Ed/, smcup=\Ec20\Ec30, 
+       smir=\Eq, smso=\EG4, smxon=\Ec21\Ec31, tsl=\EF, 
+
+# This is the american terminal. Here tabs work.
+# From: Francesco Potorti` <F.Potorti@cnuce.cnr.it>, 24 Aug 1998
+wy99fa|wy99fgta|wy-99fgta|Wyse WY-99GT (US PC keyboard), 
+       hts=\E1, tbc=\E0, 
+       use=wy99f, 
+
 #
 #      The Wyse 160 is combination of the WY-60 and the WY-99gt.
 #      The reset strings are slow and the pad times very depending
@@ -4891,7 +5997,7 @@ wy99gt-w-vb|wy99gt-wvb|wyse99gt-wvb|Wyse 99gt 132-column visible bell,
 wy160|wyse160|Wyse 160, 
        am, bw, hs, km, mc5i, mir, msgr, 
        cols#80, lh#1, lines#24, lw#8, nlab#8, wsl#38, 
-       acsc=+/\\\,.0[Iha2fxgqh1jYk?lZm@nEqDtCu4vAwBx3yszr{c~~, 
+       acsc=+/\,.0[Iha2fxgqh1jYk?lZm@nEqDtCu4vAwBx3yszr{c~~, 
        bel=^G, blink=\EG2, cbt=\EI, civis=\E`0, clear=\E+$<30>, 
        cnorm=\E`1, cr=^M, cub1=^H, cud1=^J, cuf1=^L, 
        cup=\E=%p1%{32}%+%c%p2%{32}%+%c, cuu1=^K, dch1=\EW$<5>, 
@@ -4907,13 +6013,13 @@ wy160|wyse160|Wyse 160,
        kf7=^AF\r, kf8=^AG\r, kf9=^AH\r, khome=^^, kich1=\EQ, 
        kil1=\EE, knp=\EK, kpp=\EJ, kprt=\EP, krpl=\Er, ll=\E{^K, 
        mc0=\EP, mc4=^T, mc5=\Ed#, nel=\r\n$<1>, 
-       pfloc=\EZ2%p1%'?'%+%c%p2%s\177, 
-       pfx=\EZ1%p1%'?'%+%c%p2%s\177, 
-       pln=\Ez%p1%'/'%+%c%p2%s\r, prot=\E), ri=\Ej$<1>, 
+       pfloc=\EZ2%p1%{63}%+%c%p2%s\177, 
+       pfx=\EZ1%p1%{63}%+%c%p2%s\177, 
+       pln=\Ez%p1%{47}%+%c%p2%s\r, prot=\E), ri=\Ej$<1>, 
        rmacs=\EcD, rmam=\Ed., rmclk=\E`c, rmcup=\Ew0, rmir=\Er, 
        rmln=\EA11, rmxon=\Ec20, rs1=\E~!\E~4$<70>, 
        rs2=\E`\:$<100>, rs3=\EwG\Ee($<140>, 
-       sgr=%?%p8%t\E)%e\E(%;%?%p9%t\EcE%e\EcD%;\EG%'0'%?%p2%t%{8}%|%;%?%p1%p3%|%p6%|%t%{4}%|%;%?%p4%t%{2}%|%;%?%p1%p5%|%t%{64}%|%;%?%p7%t%{1}%|%;%c, 
+       sgr=%?%p8%t\E)%e\E(%;%?%p9%t\EcE%e\EcD%;\EG%{48}%?%p2%t%{8}%|%;%?%p1%p3%|%p6%|%t%{4}%|%;%?%p4%t%{2}%|%;%?%p1%p5%|%t%{64}%|%;%?%p7%t%{1}%|%;%c, 
        sgr0=\E(\EH\003\EG0\EcD, smacs=\EcE, smam=\Ed/, 
        smcup=\Ew1, smir=\Eq, smln=\EA10, smso=\EGt, smxon=\Ec21, 
        tbc=\E0, tsl=\EF, 
@@ -4977,9 +6083,9 @@ wy75|wyse75|wyse 75,
        cuf=\E[%p1%dC, cuf1=\E[C, cup=\E[%i%p1%d;%p2%dH, 
        cuu=\E[%p1%dA, cuu1=\E[A, dch=\E[%p1%dP$<3*>, 
        dch1=\E[P$<3>, dim=\E[0t\E[2m, dl=\E[%p1%dM$<1*>, 
-       dl1=\E[M, dsl=\E[>\\\,\001\001\E[>-\001\001, 
+       dl1=\E[M, dsl=\E[>\,\001\001\E[>-\001\001, 
        ech=\E[%p1%dX, ed=\E[J$<30>, el=\E[K$<3>, el1=\E[1K$<3>, 
-       enacs=\E)0, flash=\E[30h\E\\\,\E[30l$<250>, fsl=^A, 
+       enacs=\E)0, flash=\E[30h\E\,\E[30l$<250>, fsl=^A, 
        home=\E[H, hpa=\E[%i%p1%dG, ht=^I, hts=\EH, 
        ich=\E[%p1%d@$<1*>, il=\E[%p1%dL$<2*>, il1=\E[L$<2>, 
        ind=\n$<2>, ip=$<1>, 
@@ -5001,7 +6107,7 @@ wy75|wyse75|wyse 75,
        sgr=%?%p5%t\E[0t%;%?%p3%p1%|%t\E[1t%;%?%p2%t\E[2t%;%?%p4%t\E[3t%;%?%p1%p2%p3%p4%p5%|%|%|%|%t\E[7m%e\E[m%;%?%p9%t\016%e\017%;, 
        sgr0=\E[m\017, smacs=^N, smam=\E[?7h, smir=\E[4h, 
        smkx=\E[?1l\E[?7h\E=, smso=\E[1t\E[7m, smul=\E[2t\E[4m, 
-       tbc=\E[3g, tsl=\E[>\\\,\001, 
+       tbc=\E[3g, tsl=\E[>\,\001, 
 #
 #      This terminal description uses the non-hidden attribute mode
 #      (with magic cookie).
@@ -5048,7 +6154,7 @@ wy85|wyse85|wyse 85,
        dch=\E[%p1%dP$<3*>, dch1=\E[P$<3>, dim=\E[2m, 
        dl=\E[%p1%dM$<3*>, dl1=\E[M$<3>, dsl=\E[40l, 
        ech=\E[%p1%dX, ed=\E[J$<110>, el=\E[K$<1>, el1=\E[1K, 
-       enacs=\E)0, flash=\E[30h\E\\\,\E[30l$<300>, 
+       enacs=\E)0, flash=\E[30h\E\,\E[30l$<300>, 
        fsl=\E[1;24r\E8, home=\E[H, ht=\011$<1>, hts=\EH, 
        ich=\E[%p1%d@$<4*>, il=\E[%p1%dL$<5*>, il1=\E[L$<5>, 
        ind=\n$<3>, invis=\E[8m, ip=$<3>, is1=\E[62;1"p\E[?5W, 
@@ -5073,7 +6179,7 @@ wy85|wyse85|wyse 85,
 #
 #      Wyse 85 with visual bell.
 wy85-vb|wyse85-vb|wyse 85 with visible bell, 
-       bel@, flash=\E[30h\E\\\,\E[30l$<300>, use=wy85, 
+       bel@, flash=\E[30h\E\,\E[30l$<300>, use=wy85, 
 #
 #      Wyse 85 in 132-column mode.
 wy85-w|wyse85-w|wyse 85 in 132-column mode, 
@@ -5108,7 +6214,7 @@ wy185|wyse185|wyse 185,
        dim=\E[2m, dl=\E[%p1%dM$<2*>, dl1=\E[M$<2>, 
        dsl=\E7\E[99;0H\E[K\E8, ech=\E[%p1%dX, ed=\E[J$<40>, 
        el=\E[K, el1=\E[1K, enacs=\E)0, 
-       flash=\E[30h\E\\\,\E[30l$<100>, fsl=\E[1;24r\E8, 
+       flash=\E[30h\E\,\E[30l$<100>, fsl=\E[1;24r\E8, 
        home=\E[H, hpa=\E[%i%p1%d`, ht=^I, hts=\EH, 
        ich=\E[%p1%d@$<2>, il=\E[%p1%dL$<3*>, il1=\E[L$<3>, 
        ind=\n$<2>, invis=\E[8m, ip=$<4>, is1=\E[?5W, 
@@ -5161,7 +6267,7 @@ wy185-wvb|wyse185-wvb|wyse 185+flash+132 cols,
 wy325|wyse325|Wyse epc, 
        am, bw, hs, mc5i, mir, 
        cols#80, lh#1, lines#24, lw#8, nlab#8, pb#9601, wsl#45, 
-       acsc=+/\\\,.0[Iha2fxgqh1jYk?lZm@nEqDtCu4vAwBx3yszr{c~~, 
+       acsc=+/\,.0[Iha2fxgqh1jYk?lZm@nEqDtCu4vAwBx3yszr{c~~, 
        bel=^G, blink=\EG2, cbt=\EI, civis=\E`0, clear=\E+$<50>, 
        cnorm=\E`1, cr=^M, cub1=^H, cud1=^J, cuf1=^L, 
        cup=\E=%p1%{32}%+%c%p2%{32}%+%c, cuu1=^K, dch1=\EW$<7>, 
@@ -5177,13 +6283,13 @@ wy325|wyse325|Wyse epc,
        kf7=^AF\r, kf8=^AG\r, kf9=^AH\r, khome=^^, kich1=\Eq, 
        kil1=\EE, knp=\EK, kpp=\EJ, kprt=\EP, krpl=\Er, ll=^^^K, 
        mc0=\EP, mc4=^T, mc5=\Ed#, 
-       pfloc=\EZ2%p1%'?'%+%c%p2%s\177, 
-       pfx=\EZ1%p1%'?'%+%c%p2%s\177, 
-       pln=\Ez%p1%'/'%+%c%p2%s\r, prot=\E), ri=\Ej$<2>, 
+       pfloc=\EZ2%p1%{63}%+%c%p2%s\177, 
+       pfx=\EZ1%p1%{63}%+%c%p2%s\177, 
+       pln=\Ez%p1%{47}%+%c%p2%s\r, prot=\E), ri=\Ej$<2>, 
        rmacs=\EcD, rmam=\Ed., rmcup=\Ew0, rmir=\Er, rmln=\EA11, 
        rs1=\E~!\E~4$<30>, rs2=\EeF\E`\:$<70>, 
        rs3=\EwG\Ee($<100>, 
-       sgr=%?%p8%t\E)%e\E(%;%?%p9%t\EcE%e\EcD%;\EG%'0'%?%p2%t%{8}%|%;%?%p1%p3%|%p6%|%t%{4}%|%;%?%p4%t%{2}%|%;%?%p1%p5%|%t%{64}%|%;%?%p7%t%{1}%|%;%c, 
+       sgr=%?%p8%t\E)%e\E(%;%?%p9%t\EcE%e\EcD%;\EG%{48}%?%p2%t%{8}%|%;%?%p1%p3%|%p6%|%t%{4}%|%;%?%p4%t%{2}%|%;%?%p1%p5%|%t%{64}%|%;%?%p7%t%{1}%|%;%c, 
        sgr0=\E(\EH\003\EG0\EcD, smacs=\EcE, smam=\Ed/, 
        smcup=\Ew1, smir=\Eq, smln=\EA10, smso=\EGt, tbc=\E0, 
        tsl=\EF, 
@@ -5289,16 +6395,16 @@ wy370-nk|wyse 370 without function keys,
        dclk=\E[31h, dim=\E[2m, dl=\E[%p1%dM$<2*>, dl1=\E[M$<2>, 
        dsl=\E[40l, ech=\E[%p1%dX$<.1*>, ed=\E[J$<40>, 
        el=\E[K$<10>, el1=\E[1K$<12>, enacs=\E)0, 
-       flash=\E[30h\E\\\,\E[30l$<300>, fsl=\E[1;24r\E8, 
+       flash=\E[30h\E\,\E[30l$<300>, fsl=\E[1;24r\E8, 
        home=\E[H, hpa=\E[%i%p1%d`, ht=\011$<1>, hts=\EH, 
        ich=\E[%p1%d@$<1*>, il=\E[%p1%dL$<2*>, il1=\E[L$<2>, 
        ind=\n$<2>, 
-       initc=\E[66;%p1%d;\n%?%p2%{250}%<%t%{0}\n%e%p2%{500}%<%t%{16}\n%e%p2%{750}%<%t%{32}%e%{48}%;\n%?%p3%{250}%<%t%{0}\n%e%p3%{500}%<%t%{4}\n%e%p3%{750}%<%t%{8}%e%{12}%;\n%?%p4%{250}%<%t%{0}\n%e%p4%{500}%<%t%{1}\n%e%p4%{750}%<%t%{2}%e%{3}%;%{1}%+%+%+%dw, 
+       initc=\E[66;%p1%d;%?%p2%{250}%<%t%{0}%e%p2%{500}%<%t%{16}%e%p2%{750}%<%t%{32}%e%{48}%;%?%p3%{250}%<%t%{0}%e%p3%{500}%<%t%{4}%e%p3%{750}%<%t%{8}%e%{12}%;%?%p4%{250}%<%t%{0}%e%p4%{500}%<%t%{1}%e%p4%{750}%<%t%{2}%e%{3}%;%{1}%+%+%+%dw, 
        invis=\E[8m, ip=$<1>, is1=\E[90;1"p\E[?5W$<6>, 
        is2=\E[2;4;20;30;40l\E[?1;10;16l\E[12h\E[?7;8;25h, 
        is3=\E>\017\E)0\E(B\E[63;0w\E[m, mc0=\E[0i, mc4=\E[4i, 
        mc5=\E[5i, 
-       oc=\E[60w\E[63;0w\n\E[66;1;4w\n\E[66;2;13w\n\E[66;3;16w\n\E[66;4;49w\n\E[66;5;51w\n\E[66;6;61w\n\E[66;7;64w, 
+       oc=\E[60w\E[63;0w\E[66;1;4w\E[66;2;13w\E[66;3;16w\E[66;4;49w\E[66;5;51w\E[66;6;61w\E[66;7;64w, 
        op=\E[m, rc=\E8, rev=\E[7m, ri=\EM$<2>, rmacs=^O, 
        rmam=\E[?7l, rmclk=\E[31l, rmcup=\E[ R, rmir=\E[4l, 
        rmkx=\E>, rmso=\E[27m, rmul=\E[24m, 
@@ -5359,7 +6465,7 @@ wy370-w|Wyse 370 in 132-column mode,
 #
 #      Wyse 370 in 132-column mode with visual bell.
 wy370-wvb|Wyse 370 with visible bell 132-columns, 
-       flash=\E[30h\E\\\,\E[30l$<300>, 
+       flash=\E[30h\E\,\E[30l$<300>, 
        use=wy370-w, 
 wy370-rv|Wyse 370 reverse video, 
        rs3=\E[32h\E[?5h, use=wy370, 
@@ -5370,7 +6476,7 @@ wy99gt-tek|Wyse 99gt Tektronix 4010/4014 emulator,
        am, os, 
        cols#74, lines#35, 
        bel=^G, clear=\E^L, cr=^M, cub1=^H, cud1=^J, cuf1=\s, 
-       cup=\035%{3040}%{89}%p1%*%-%Py\n%p2%{55}%*%Px\n%gy%{128}%/%{31}%&%{32}%+%c\n%gy%{3}%&%{4}%*%gx%{3}%&%+%{96}%+%c\n%gy%{004}%/%{31}%&%{96}%+%c\n%gx%{128}%/%{31}%&%{32}%+%c\n%gx%{004}%/%{31}%&%{64}%+%c\037, 
+       cup=\035%{3040}%{89}%p1%*%-%Py%p2%{55}%*%Px%gy%{128}%/%{31}%&%{32}%+%c%gy%{3}%&%{4}%*%gx%{3}%&%+%{96}%+%c%gy%{004}%/%{31}%&%{96}%+%c%gx%{128}%/%{31}%&%{32}%+%c%gx%{004}%/%{31}%&%{64}%+%c\037, 
        cuu1=^K, ff=^L, 
        hd=\036HHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHH\037, 
        home=^]7`x @\037, 
@@ -5380,7 +6486,7 @@ wy99gt-tek|Wyse 99gt Tektronix 4010/4014 emulator,
 #      Wyse 160 Tektronix 4010/4014 emulator,
 #
 wy160-tek|Wyse 160 Tektronix 4010/4014 emulator, 
-       cup=\035%{3103}%{91}%p1%*%-%Py\n%p2%{55}%*%Px\n%gy%{128}%/%{31}%&%{32}%+%c\n%gy%{3}%&%{4}%*%gx%{3}%&%+%{96}%+%c\n%gy%{004}%/%{31}%&%{96}%+%c\n%gx%{128}%/%{31}%&%{32}%+%c\n%gx%{004}%/%{31}%&%{64}%+%c\037, 
+       cup=\035%{3103}%{91}%p1%*%-%Py%p2%{55}%*%Px%gy%{128}%/%{31}%&%{32}%+%c%gy%{3}%&%{4}%*%gx%{3}%&%+%{96}%+%c%gy%{004}%/%{31}%&%{96}%+%c%gx%{128}%/%{31}%&%{32}%+%c%gx%{004}%/%{31}%&%{64}%+%c\037, 
        home=^]8`g @\037, 
        use=wy99gt-tek, 
 #
@@ -5390,7 +6496,7 @@ wy370-tek|Wyse 370 Tektronix 4010/4014 emulator,
        am, os, 
        cols#80, lines#36, 
        bel=^G, clear=\E^L, cr=^M, cub1=^H, cud1=^J, cuf1=\s, 
-       cup=\035%{775}%{108}%p1%*%{5}%/%-%Py\n%p2%{64}%*%{4}%+%{5}%/%Px\n%gy%{32}%/%{31}%&%{32}%+%c\n%gy%{31}%&%{96}%+%c\n%gx%{32}%/%{31}%&%{32}%+%c\n%gx%{31}%&%{64}%+%c\037, 
+       cup=\035%{775}%{108}%p1%*%{5}%/%-%Py%p2%{64}%*%{4}%+%{5}%/%Px%gy%{32}%/%{31}%&%{32}%+%c%gy%{31}%&%{96}%+%c%gx%{32}%/%{31}%&%{32}%+%c%gx%{31}%&%{64}%+%c\037, 
        cuu1=^K, ff=^L, 
        hd=\036HHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHH\037, 
        home=^]8g @\037, 
@@ -5471,7 +6577,7 @@ wy520-24|wyse520-24|wyse 520 with 24 data lines,
 #
 #       Wyse 520 with visual bell.
 wy520-vb|wyse520-vb|wyse 520 with visible bell, 
-       flash=\E[30h\E\\\,\E[30l$<100>, use=wy520, 
+       flash=\E[30h\E\,\E[30l$<100>, use=wy520, 
 #
 #       Wyse 520 in 132-column mode.
 wy520-w|wyse520-w|wyse 520 in 132-column mode, 
@@ -5482,7 +6588,7 @@ wy520-w|wyse520-w|wyse 520 in 132-column mode,
 #
 #       Wyse 520 in 132-column mode with visual bell.
 wy520-wvb|wyse520-wvb|wyse 520 with visible bell 132-columns, 
-       flash=\E[30h\E\\\,\E[30l$<100>, 
+       flash=\E[30h\E\,\E[30l$<100>, 
        use=wy520-w, 
 #
 #
@@ -5495,7 +6601,7 @@ wy520-wvb|wyse520-wvb|wyse 520 with visible bell 132-columns,
 #       - Delete : delete a character (have to change interrupt character
 #                  to CTRL-C: stty intr '^c') for it to work since the
 #                  Delete key sends 7FH.
-wy520-epc|wyse520-epc|wyse 520 with EPC kb
+wy520-epc|wyse520-epc|wyse 520 with EPC keyboard
        kdch1=\177, kel=\E[4~, kend=\E[4~, kf0=\E[21~, kf1=\E[11~, 
        kf2=\E[12~, kf3=\E[13~, kf4=\E[14~, kf5=\E[15~, khome=\E[H, 
        use=wy520, 
@@ -5508,11 +6614,11 @@ wy520-epc-24|wyse520-pc-24|wyse 520 with 24 data lines,
 #
 #       Wyse 520 with visual bell.
 wy520-epc-vb|wyse520-pc-vb|wyse 520 with visible bell, 
-       flash=\E[30h\E\\\,\E[30l$<100>, 
+       flash=\E[30h\E\,\E[30l$<100>, 
        use=wy520-epc, 
 #
 #       Wyse 520 in 132-column mode.
-wy520-epc-w|wyse520-epc-w|wyse 520 in 132-column mode, 
+wy520-epc-w|wyse520-epc-w|wyse 520 in 132-column mode with EPC keyboard
        cols#132, wsl#132, 
        dch=\E[%p1%dP$<7>, dch1=\E[P$<7>, ich=\E[%p1%d@$<7>, 
        ip=$<7>, rs2=\E[35h\E[?3h, 
@@ -5520,7 +6626,7 @@ wy520-epc-w|wyse520-epc-w|wyse 520 in 132-column mode,
 #
 #       Wyse 520 in 132-column mode with visual bell.
 wy520-epc-wvb|wyse520-p-wvb|wyse 520 with visible bell 132-columns, 
-       flash=\E[30h\E\\\,\E[30l$<100>, 
+       flash=\E[30h\E\,\E[30l$<100>, 
        use=wy520-epc-w, 
 #
 #       Wyse 520 in 80-column, 36 lines
@@ -5536,7 +6642,7 @@ wy520-48|wyse520-48|wyse 520 with 48 data lines,
        dsl@, fsl@, rs3=\E[?5l\E[48*|\E[48t\E[40l\E[1;48r, tsl@, use=wy520, 
 #
 #       Wyse 520 in 132-column, 36 lines
-wy520-36w|wyse520-36w|wyse 520 with 36 data lines, 
+wy520-36w|wyse520-36w|wyse 520 with 132 columns and 36 data lines, 
        cols#132, wsl#132, 
        rs2=\E[?3h, 
        rs3=\E[?5l\E[36*|\E[36t\E[40l\E[1;36r\E[132$|, use=wy520-36, 
@@ -5549,19 +6655,19 @@ wy520-48w|wyse520-48w|wyse 520 with 48 data lines,
 #
 #
 #       Wyse 520 in 80-column, 36 lines with EPC keyboard
-wy520-36pc|wyse520-36pc|wyse 520 with 36 data lines, 
+wy520-36pc|wyse520-36pc|wyse 520 with 36 data lines and EPC keyboard
        hs@, 
        lines#36, 
        dsl@, fsl@, rs3=\E[?5l\E[36*|\E[36t\E[40l\E[1;36r, tsl@, use=wy520-epc, 
 #
 #       Wyse 520 in 80-column, 48 lines with EPC keyboard
-wy520-48pc|wyse520-48pc|wyse 520 with 48 data lines, 
+wy520-48pc|wyse520-48pc|wyse 520 with 48 data lines and EPC keyboard
        hs@, 
        lines#48, 
        dsl@, fsl@, rs3=\E[?5l\E[48*|\E[48t\E[40l\E[1;48r, tsl@, use=wy520-epc, 
 #
 #       Wyse 520 in 132-column, 36 lines with EPC keyboard
-wy520-36wpc|wyse520-36wpc|wyse 520 with 36 data lines, 
+wy520-36wpc|wyse520-36wpc|wyse 520 with 36 data lines and EPC keyboard
        cols#132, wsl#132, 
        rs2=\E[?3h, 
        rs3=\E[?5l\E[36*|\E[36t\E[40l\E[1;36r\E[132$|, use=wy520-36pc, 
@@ -5575,7 +6681,7 @@ wy520-48wpc|wyse520-48wpc|wyse 520 with 48 data lines,
 # From: John Gilmore <hoptoad!gnu@lll-crg.arpa>
 # (wyse-vp: removed <if=/usr/share/tabset/wyse-adds>, there's no such
 # file and we don't know what <hts> is -- esr)
-wyse-vp|wyse|Wyse 50 in ADDS Viewpoint emulation mode with "enhance" on, 
+wyse-vp|Wyse 50 in ADDS Viewpoint emulation mode with "enhance" on, 
        am, 
        cols#80, it#8, lines#24, 
        bel=^G, clear=^L, cr=^M, cub1=^H, cud1=^J, cuf1=^F, 
@@ -5598,7 +6704,7 @@ wy100q|Wyse 100 for Quotron,
        cbt=\EI, clear=^Z, cub1=^H, cud1=^J, cuf1=^L, 
        cup=\E=%p1%{32}%+%c%p2%{32}%+%c, cuu1=^K, dch1=\EW, 
        dl1=\ER, ed=\EY, el=\ET, home=^^, il1=\EE, invis@, 
-       is2=\E`\:\200\EC\EDF\E0\E'\E(\EA21, kcub1=^H, kcud1=^J, 
+       is2=\E`\:\0\EC\EDF\E0\E'\E(\EA21, kcub1=^H, kcud1=^J, 
        kcuf1=^L, kcuu1=^K, ri=\Ej, rmir=\Er, smir=\Eq, 
        use=adm+sgr, 
 
@@ -5755,6 +6861,43 @@ vt320-k311|dec vt320 series as defined by kermit 3.11,
 # I wrote these entries while looking at the Avatar spec.  I don't have
 # the facilities to test them.  Let me know if they work, or don't.
 #
+# Avatar escapes not used by these entries (because maybe you're smarter
+# and more motivated than I am and can figure out how to wrap terminfo
+# around some of them, and because they are weird enough to be funny):
+#                              level 0:
+# ^L           -- clear window/reset current attribute to default
+# ^V^A%p1%c    -- set current color attribute, parameter decodes as follows:
+# 
+#      bit:         6   5   4   3   2   1   0
+#                   |       |   |   |       |
+#                   +---+---+   |   +---+---+
+#                       |       |       |
+#                       |       |  foreground color
+#                       |  foreground intensity
+#                  background color
+#                              level 0+:
+# ^V^J%p1%c%p2%c%p3%c%p4%c%p5%c        -- scroll (p2,p3) to (p4,p5) up by p1 lines
+# ^V^K%p1%c%p2%c%p3%c%p4%c%p5%c        -- scroll (p2,p3) to (p4,p5) down by p1 lines
+# ^V^L%p1%c%p2%c%p3%c          -- clear p2 lines and p3 cols w/attr %p1 
+# ^V^M%p1%c%p2%c%p3%c%p4%c     -- fill p3 lines & p4 cols w/char p2+attr %p1 
+# (^V^L and ^V^M set the current attribute as a side-effect.)
+# ^V ^Y <a> [...] <c>  -- repeat pattern. <a> specifies the number of bytes
+#                         in the pattern, <c> the number of times the pattern
+#                         should be repeated. If either value is 0, no-op.
+#                         The pattern can contain Avatar console codes,
+#                         including other ^V ^Y patterns.
+#                              level 1:
+# ^V^O         -- clockwise mode on; turn print direction right each time you
+#                 hit a window edge (yes, really).  Turned off by CR
+# ^V^P         -- no-op
+# ^V^Q%c       -- query the driver
+# ^V^R         -- driver reset
+# ^V^S         -- Sound tone (PC-specific)
+# ^V^T                 -- change highlight at current cursor poition to %c
+# ^V^U%p1%c%p2%c       -- highlight window <a> with attribute <b>
+# ^V^V%p1%c%p2%c%p3%c%p4%c%p5%c
+#                      -- define window 
+#
 # From: Eric S. Raymond <esr@snark.thyrsus.com> 1 Nov 1995
 # (The <blink>/<bold>/<rev>/<smacs>/<smul>/<smso> capabilities exist only to
 # tell ncurses that the corresponding highlights exist; it should use <sgr>,
@@ -5764,20 +6907,55 @@ avatar0|avatar terminal emulator level 0,
        cols#80, it#8, lines#25, 
        blink=^A^V\177, bold=^V^A^P, cr=^M, cub1=^V^E, cud1=^V^D, 
        cuf1=^V^F, cup=\026\010%p1%c%p2%c, cuu1=^V^C, el=^V^G, 
-       ind=^J, invis=^V^A\200, rep=\031%p1%c%p2%d, rev=^A^Vp, 
+       ind=^J, invis=^V^A\0, rep=\031%p1%c%p2%d, rev=^A^Vp, 
        rs2=^L, 
        sgr=\026\001%{0}%?%p1%t%{112}%|%;%?%p2%t%{1}%|%;%?%p3%t%{112}%|%;%?%p4%t{128}%|%;%?%p6%t%{16}%|%;, 
        sgr0=^V^A^G, smacs=, smso=^A^Vp, smul=^V^A, 
        use=klone+acs, 
 # From: Eric S. Raymond <esr@snark.thyrsus.com> 1 Nov 1995
 avatar0+|avatar terminal emulator level 0+, 
-       dch1=^V^N, rmir=\026\n\200\200\200\200, smir=^V^I, use=avatar0, 
+       dch1=^V^N, rmir=\026\n\0\0\0\0, smir=^V^I, use=avatar0, 
 # From: Eric S. Raymond <esr@snark.thyrsus.com> 1 Nov 1995
 avatar|avatar1|avatar terminal emulator level 1, 
        civis=^V'^B, cnorm=^V'^A, cvvis=^V^C, dl1=^V-, il1=^V+, 
        rmam=^V", rmir=^V^P, smam=^V$, 
        use=avatar0+, 
 
+#### RBcomm
+#
+# RBComm is a lean and mean terminal emulator written by the Interrupt List
+# maintainer, Ralf Brown. It was fairly popular in the late DOS years (early
+# '90s), especially in the BBS world, and still has some loyal users due to
+# its very small memory footprint and to a cute macro language.
+rbcomm|IBM PC with RBcomm and EMACS keybindings, 
+       am, bw, mir, msgr, xenl, 
+       cols#80, it#8, lines#25, 
+       bel=^G, blink=\E[5m, bold=\E[1m, cbt=\E[Z, civis=\E[?25l, 
+       clear=^L, cnorm=\E[?25h, cr=^M, csr=\E[%i%p1%d;%p2%dr, 
+       cub1=^H, cud1=^C, cuf1=^B, 
+       cup=\037%p2%{32}%+%c%p1%{32}%+%c, cuu1=^^, 
+       cvvis=\E[?25h, dch1=^W, dl=\E[%p1%dM, dl1=^Z, 
+       ech=\E[%p1%dX, ed=^F5, el=^P^P, ht=^I, il=\E[%p1%dL, il1=^K, 
+       ind=\ED, invis=\E[8m, 
+       is2=\017\035\E(B\E)0\E[?7h\E[?3l\E[>8g, kbs=^H, 
+       kcub1=^B, kcud1=^N, kcuf1=^F, kcuu1=^P, khome=^A, nel=^M\ED, 
+       rc=\E8, rep=\030%p1%c%p2%c, rev=^R, ri=\EM, rmcup=, rmdc=, 
+       rmir=^], rmkx=\E>, rmso=^U, rmul=^U, 
+       rs1=\017\E(B\E)0\025\E[?3l\E[>8g, sc=\E7, sgr0=\E[m, 
+       smcup=, smdc=, smir=^\, smkx=\E=, smso=^R, smul=^T, 
+rbcomm-nam|IBM PC with RBcomm without autowrap, 
+       am@, 
+       bel=^G, cr=^M, cud1=^J, ht=^I, ind=^J, 
+       is2=\017\035\E(B\E)0\E[?7l\E[?3l\E[>8g, kbs=^H, 
+       kcub1=^H, kcud1=^J, nel=^M^J, 
+       use=rbcomm, 
+rbcomm-w|IBM PC with RBcomm in 132 column mode, 
+       cols#132, 
+       bel=^G, cr=^M, cud1=^J, ht=^I, ind=^J, 
+       is2=\017\035\E(B\E)0\E[?7h\E[?3h\E[>8g, kbs=^H, 
+       kcub1=^H, kcud1=^J, nel=^M^J, 
+       use=rbcomm, 
+
 ######## OLDER TERMINAL TYPES
 #
 # This section is devoted to older commercial terminal brands that are now
@@ -5788,8 +6966,9 @@ avatar|avatar1|avatar terminal emulator level 1,
 #
 # This section also includes Teletype-branded VDTs.
 #
-# The AT&T/Teletype terminals group was sold to SunRiver Data Systems; for
-# details, see the header comment on the ADDS section.
+# The AT&T/Teletype terminals group was sold to SunRiver Data Systems (now
+# Boundless Technologies); for details, see the header comment on the ADDS
+# section.
 #
 # These are AT&T's official terminfo entries.  All-caps aliases have been
 # removed.
@@ -5829,7 +7008,7 @@ att2350|AT&T 2350 Video Information Terminal 80 column mode,
 att5410v1|att4410v1|tty5410v1|AT&T 4410/5410 80 columns - version 1, 
        am, hs, mir, msgr, xon, 
        cols#80, it#8, lh#2, lines#24, lw#8, nlab#8, wsl#80, 
-       acsc=``aaffhhggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~00++--\,\,..
+       acsc=++\,\,--..00``aaffgghhjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~
        bel=^G, blink=\E[5m, bold=\E[2;7m, clear=\E[H\E[J, cr=^M, 
        csr=\E[%i%p1%d;%p2%dr, cub1=^H, cud1=\E[B, cuf1=\E[C, 
        cup=\E[%i%p1%d;%p2%dH, cuu1=\E[A, dch1=\E[P, dim=\E[2m, 
@@ -6196,7 +7375,7 @@ att4426|tty4426|teletype 4426S,
 att510a|bct510a|AT&T 510A Personal Terminal, 
        am, mir, msgr, xenl, xon, 
        cols#80, lh#2, lines#24, lw#7, nlab#8, 
-       acsc=hrisjjkkllmmnnqqttuuvvwwxx{{||}}~~-f\,h.e+g`b
+       acsc=+g\,h-f.e`bhrisjjkkllmmnnqqttuuvvwwxx{{||}}~~
        bel=^G, blink=\E[5m, bold=\E[2;7m, cbt=\E[Z, 
        civis=\E[11;0|, clear=\E[H\E[J, cnorm=\E[11;3|, cr=^M, 
        cub=\E[%p1%dD, cub1=^H, cud=\E[%p1%dB, cud1=\E[1B, 
@@ -6229,7 +7408,7 @@ att510a|bct510a|AT&T 510A Personal Terminal,
 att510d|bct510d|AT&T 510D Personal Terminal, 
        am, da, db, mir, msgr, xenl, xon, 
        cols#80, lh#2, lines#24, lm#48, lw#7, nlab#8, 
-       acsc=hrisjjkkllmmnnqqttuuvvwwxx{{||}}~~-f\,h.e+g`b
+       acsc=+g\,h-f.e`bhrisjjkkllmmnnqqttuuvvwwxx{{||}}~~
        bel=^G, blink=\E[5m, bold=\E[2;7m, cbt=\E[Z, 
        clear=\E[H\E[J, cnorm=\E[11;3|, cr=^M, cub=\E[%p1%dD, 
        cub1=^H, cud=\E[%p1%dB, cud1=\E[1B, cuf=\E[%p1%dC, 
@@ -6260,7 +7439,7 @@ att510d|bct510d|AT&T 510D Personal Terminal,
 att500|att513|AT&T 513 using page mode, 
        am, chts, mir, msgr, xenl, xon, 
        cols#80, lh#2, lines#24, lw#8, nlab#8, 
-       acsc=hrisjjkkllmmnnqqttuuvvwwxx{{||}}~~-f\,h.e+g`b
+       acsc=+g\,h-f.e`bhrisjjkkllmmnnqqttuuvvwwxx{{||}}~~
        bel=^G, blink=\E[5m, bold=\E[2;7m, cbt=\E[Z, 
        clear=\E[H\E[J, cnorm=\E[11;0|, cr=^M, 
        csr=%i\E[%p1%d;%p2%dr, cub=\E[%p1%dD, cub1=^H, 
@@ -6422,7 +7601,7 @@ att605|AT&T 605 80 column 102key keyboard,
        smir=\E[4h, smln=\E[p, smso=\E[7m, smul=\E[4m, 
        tsl=\E7\E[25;%i%p1%dx, 
 att605-pc|ATT 605 in pc term mode, 
-       acsc=k\277l\332m\300j\331n\305w\302q\304u\264t\303v\301x\263, 
+       acsc=j\331k\277l\332m\300n\305q\304t\303u\264v\301w\302x\263, 
        cbt=\E[Z, cub1=\E[D, cud1=\E[B, cuf1=\E[C, cuu1=\E[A, 
        dch1=\E[P, dl1=\E[M, ich1=\E[@, il=\E[L, il1=\E[L, kcbt=\E[Z, 
        kcub1=\E[D, kcud1=\E[B, kcuf1=\E[C, kcuu1=\E[A, kdch1=\E[P, 
@@ -6613,6 +7792,122 @@ att630|AT&T 630 windowing terminal,
 att630-24|5630-24|5630DMD-24|630MTG-24|AT&T 630 windowing terminal 24 lines, 
        lines#24, use=att630, 
 
+# This is the att700 entry for 700 native emulation of the AT&T 700
+# terminal.  Comments are relative to changes from the 605V2 entry and
+# att730 on which the entry is based.  Comments show the terminfo
+# capability name, termcap name, and description.
+#
+# Here is what's going onm in the init string:
+#      ESC [ 50;4|     set 700 native mode (really is 605)
+# x    ESC [ 56;ps|    set lines to 24: ps=0; 40: ps=1 (plus status line)
+#      ESC [ 53;0|     set GenFlow to Xon/Xoff
+#      ESC [ 8 ;0|     set CR on NL 
+# x    ESC [ ? 3 l/h   set workspace: 80 col(l); 132 col(h)
+#      ESC [ ? 4 l     jump scroll 
+#      ESC [ ? 5 l/h   video: normal (l); reverse (h)
+#      ESC [ ?13 l     Labels on
+#      ESC [ ?15 l     parity check = no
+#      ESC [ 13 l      monitor mode off
+#      ESC [ 20 l      LF on NL (not CRLF on NL)
+#      ESC [ ? 7 h     autowrap on
+#      ESC [ 12 h      local echo off
+#      ESC ( B         GO = ASCII
+#      ESC ) 0         G1 = Special Char & Line Drawing
+#      ESC [ ? 31 l    Set 7 bit controls
+#
+# Note: Most terminals, especially the 600 family use Reverse Video for
+# standout mode.  DEC also uses reverse video.  The VT100 uses bold in addition
+# Assume we should stay with reverse video for 70..  However, the 605V2 exits
+# standout mode with \E[m (all normal attributes).  The 730 entry simply
+# exits reverse video which would leave other current attributes intact.  It
+# was assumed the 730 entry to be more correct so rmso has changed.  The
+# 605V2 has no sequences to turn individual attributes off, thus its setting
+# and the rmso/smso settings from the 730.
+#
+# Note: For the same reason as above in rmso I changed exit under-score mode
+# to specifically turn off underscore, rather than return to all normal 
+# attributes
+#
+# Note: The following pkey_xmit is taken from the 605V2 which contained the
+# capability as pfxl.  It was changed here to pfx since pfxl
+# will only compile successfully with Unix 4.0 tic.  Also note that pfx only
+# allows strings to be parameters and label values must be programmed as
+# constant strings.  Supposedly the pfxl of Version 4.0 allows both labels
+# and strings to be parameters.  The 605V2 pfx entry should be examined later
+# in this regard. For reference the 730 pfxl entry is shown here for comparison
+# 730 pfx entry:
+#     pfxl=\E[%?%p1%{25}%<%t%p1%e%p1%{24}%-%;%d;%p2%l%02d%?%p1%{25}%<%tq\s\s\s
+# SYS\s\s\s\s\sF%p1%:-2d\s\s%e;0;3q%;%p2%s,
+#
+# (for 4.0 tic)
+#     pfxl=\E[%p1%d;%p2%l%02dq%?%p1%{9}%<%t   F%p1%1d           %;%p2%s,
+#
+# (for <4.0 tic)
+#     pfx=\E[%p1%d;%p2%l%02dq%?%p1%{9}%<%t   F%p1%1d           %;%p2%s,
+#
+# From the AT&T 705 Multi-tasking terminal user's guide Page 8-8,8-9
+#
+# Port1 Interface
+#
+# modular 10 pin Connector
+# Left side       Right side
+# Pin 1 2 3 4 5 6 7 8 9 10
+#
+#        Key (notch) at bottom
+#
+# Pin    1 DSR
+#        3 DCD
+#        4 DTR
+#        5 Sig Ground
+#        6 RD
+#        7 SD
+#        8 CTS
+#        9 RTS
+#        10 Frame Ground
+#
+# The manual is 189 pages and is loaded with details about the escape codes,
+# etc..... Available from AT&T CIC 800-432-6600...
+# ask for Document number 999-300-660..
+#
+att700|AT&T 700 24x80 column display w/102key keyboard, 
+       am, eslok, hs, mir, msgr, xenl, xon, 
+       cols#80, it#8, lh#2, lines#24, lw#8, nlab#8, wsl#80, 
+       acsc=``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~, 
+       bel=^G, blink=\E[5m, bold=\E[1m, cbt=\E[Z, civis=\E[?25l, 
+       clear=\E[H\E[J, cnorm=\E[?25h\E[?12l, cr=^M, 
+       csr=\E[%i%p1%d;%p2%dr, cub=\E[%p1%dD, cub1=^H, 
+       cud=\E[%p1%dB, cud1=\E[B, cuf=\E[%p1%dC, cuf1=\E[C, 
+       cup=\E[%i%p1%d;%p2%dH, cuu=\E[%p1%dA, cuu1=\E[A, 
+       cvvis=\E[?12;25h, dch=\E[%p1%dP, dch1=\E[P, dim=\E[2m, 
+       dl=\E[%p1%dM, dl1=\E[M, ed=\E[J, el=\E[K, el1=\E[1K, 
+       enacs=\E(B\E)0, flash=\E[?5h$<200>\E[?5l, fln=4\,4, 
+       fsl=\E8, home=\E[H, ht=^I, hts=\EH, ich=\E[%p1%d@, 
+       il=\E[%p1%dL, il1=\E[L, ind=\ED, invis=\E[8m, 
+       is2=\E[50;4|\E[53;0|\E[8;0|\E[?4;13;15l\E[13;20l\E[?7h\E[12h\E(B\E)0\E[?31l\E[0m\017, 
+       is3=\E(B\E)0, kLFT=\E[ A, kRIT=\E[ @, kbs=^H, kcbt=\E[Z, 
+       kclr=\E[2J, kcub1=\E[D, kcud1=\E[B, kcuf1=\E[C, kcuu1=\E[A, 
+       kdch1=\E[P, kdl1=\E[M, kend=\E[24;1H, kf1=\EOc, kf10=\ENp, 
+       kf11=\ENq, kf12=\ENr, kf13=\ENs, kf14=\ENt, kf15=\EOC, 
+       kf16=\EOD, kf17=\EOE, kf18=\EOF, kf19=\EOG, kf2=\EOd, 
+       kf20=\EOH, kf21=\EOI, kf22=\EOJ, kf23=\ENO, kf24=\ENP, 
+       kf25=\ENQ, kf26=\ENR, kf27=\ENS, kf28=\ENT, kf29=\EOq, 
+       kf3=\EOe, kf30=\EOr, kf31=\EOs, kf32=\EOt, kf33=\EOu, 
+       kf34=\EOv, kf35=\EOw, kf36=\EOx, kf37=\EOy, kf38=\EOu, 
+       kf39=\EOv, kf4=\EOf, kf40=\EOl, kf41=\EOq, kf42=\EOr, 
+       kf43=\EOs, kf44=\EOp, kf45=\EOn, kf46=\EOM, kf5=\EOg, 
+       kf6=\EOh, kf7=\EOi, kf8=\EOj, kf9=\ENo, khome=\E[H, 
+       kich1=\E[@, kil1=\E[L, knp=\E[U, kpp=\E[V, ll=\E[24H, 
+       mc0=\E[i, mc4=\E[?4i, mc5=\E[?5i, nel=\EE, 
+       pfx=\E[%p1%d;%p2%l%02dq%?%p1%{9}%<%t   F%p1%1d           %;%p2%s, 
+       pln=\E[%p1%d;0;0;0q%p2%:-16.16s, rc=\E8, 
+       rep=%p1%c\E[%p2%{1}%-%db, rev=\E[7m, ri=\EM, rmacs=^O, 
+       rmir=\E[4l, rmln=\E[2p, rmso=\E[27m, rmul=\E[24m, 
+       rmxon=\E[53;3|, rs1=\Ec\E[?3;5l\E[56;0|, sc=\E7, 
+       sgr=\E[0%?%p6%t;1%;%?%p5%t;2%;%?%p2%t;4%;%?%p4%t;5%;%?%p3%p1%|%t;7%;%?%p7%t;8%;m%?%p9%t\016%e\017%;, 
+       sgr0=\E[m\017, smacs=^N, smir=\E[4h, smln=\E[p, smso=\E[7m, 
+       smul=\E[4m, smxon=\E[53;0|, tbc=\E[3g, 
+       tsl=\E7\E[99;%i%p1%dx, 
+
 # This entry was modified 3/13/90 by JWE.
 # fixes include additions of <enacs>, correcting <rep>, and modification
 # of <kHOM>.  (See comments below)
@@ -6869,7 +8164,7 @@ att505-24|pt505-24|gs5430-24|AT&T PT505 or 5430 GETSET version 1 24 lines,
 tt505-22|pt505-22|gs5430-22|AT&T PT505 or 5430 GETSET version 1 22 lines, 
        lines#22, use=att505, 
 #
-# -------------------- TERMINFO FILE CAN BE SPLIT HERE -----------------------
+#### ------------------ TERMINFO FILE CAN BE SPLIT HERE ---------------------
 # This cut mark helps make life less painful for people running ncurses tic
 # on machines with relatively little RAM.  The file can be broken in half here
 # cleanly and compiled in sections -- no `use' references cross this cut
@@ -7099,7 +8394,7 @@ annarbor4080|aa4080|ann arbor 4080,
        am, 
        cols#80, lines#40, 
        bel=^G, clear=\014$<2>, cr=^M, cub1=^H, cud1=^J, cuf1=^_, 
-       cup=\017%p2%{10}%/%{16}%*%p2%{10}%m%+%c%p1%?%p1%{19}%>%t%{12}%+%;%'@'%+%c, 
+       cup=\017%p2%{10}%/%{16}%*%p2%{10}%m%+%c%p1%?%p1%{19}%>%t%{12}%+%;%{64}%+%c, 
        cuu1=^N, home=^K, ht=^I, hts=^]^P1, ind=^J, kbs=^^, kcub1=^H, 
        kcud1=^J, kcuf1=^_, kcuu1=^N, khome=^K, tbc=^\^P^P, 
 
@@ -7108,7 +8403,7 @@ aas1901|Ann Arbor K4080 w/S1901 mod,
        am, 
        cols#80, lines#40, 
        bel=^G, clear=^L, cr=^M, cub1=^H, cud1=^J, cuf1=^_, cuu1=^N, 
-       home=^K, ht=^I, ind=^J, kbs=^H, kcub1=^H, kcud1=^J, ll=^O\200c, 
+       home=^K, ht=^I, ind=^J, kbs=^H, kcub1=^H, kcud1=^J, ll=^O\0c, 
        nel=^M^J, 
 
 # If you're using the GNU termcap library, add
@@ -7205,7 +8500,7 @@ aaa-30-s-rv|aaa-s-rv|ann arbor ambassador/30 lines+status+reverse video,
 aaa-s-ctxt|aaa-30-s-ctxt|ann arbor ambassador/30 lines+status+save context, 
        rmcup=\E[60;1;0;30p\E[59;1H\E[K, 
        smcup=\E[30;1H\E[K\E[30;1;0;30p, use=aaa-30-s, 
-aaa-s-rv-ctxt|aaa-30-s-rv-ct|ann arbor ambassador/30 lines+status+save context, 
+aaa-s-rv-ctxt|aaa-30-s-rv-ct|ann arbor ambassador/30 lines+status+save context+reverse video
        rmcup=\E[60;1;0;30p\E[59;1H\E[K, 
        smcup=\E[30;1H\E[K\E[30;1;0;30p, use=aaa-30-s-rv, 
 aaa|aaa-30|ambas|ambassador|ann arbor ambassador/30 lines, 
@@ -7330,17 +8625,19 @@ aaa-rv-unk|ann arbor unknown type,
 # ADDS itself is long gone.  ADDS was bought by NCR, and the same group made
 # ADDS and NCR terminals.  When AT&T and NCR merged, the engineering for
 # terminals was merged again.  Then AT&T sold the terminal business to
-# SunRiver.  The engineers from Teletype, AT&T terminals, ADDS,
-# and NCR (who are still there as of early 1995) are at:
+# SunRiver, which later changed its  name to Boundless Technologies.  The
+# engineers from Teletype, AT&T terminals, ADDS, and NCR (who are still there
+# as of early 1995) are at:
 #
-#      SunRiver Data Systems
+#      Boundless Technologies
 #      100 Marcus Boulevard
 #      Hauppauge, NY 11788-3762
 #      Vox: (800)-231-5445
 #      Fax: (516)-342-7378
+#      Web: http://boundless.com
 #
 # Their voice mail used to describe the place as "SunRiver (formerly ADDS)". 
-# In 1995 SunRiver acquired DEC's terminals business.
+# In 1995 Boundless acquired DEC's terminals business.  
 #
 
 # Regent: lowest common denominator, works on all regents.
@@ -7406,7 +8703,7 @@ vp3a+|viewpoint3a+|adds viewpoint 3a+,
        cuf1=^L, cup=\E=%p1%{32}%+%c%p2%{32}%+%c, cuu1=^K, 
        ed=\EY$<80>, el=\ET, home=^^, ht=^I, ind=^J, kbs=^H, kcub1=^H, 
        kcud1=^J, kcuf1=^L, kcuu1=^K, khome=^^, nel=^M^J, rmso=\E(, 
-       sgr=\E0%'@'%?%p1%tQ%|%;%?%p2%t%'`'%|%;%?%p3%tP%|%;%?%p4%t%{2}%|%;%?%p5%t%{1}%|%;%?%p7%tD%|%;%c\E), 
+       sgr=\E0%{64}%?%p1%tQ%|%;%?%p2%t%{96}%|%;%?%p3%tP%|%;%?%p4%t%{2}%|%;%?%p5%t%{1}%|%;%?%p7%tD%|%;%c\E), 
        sgr0=\E(, smso=\E0Q\E), 
 vp60|viewpoint60|addsvp60|adds viewpoint60, 
        use=regent40, 
@@ -7440,7 +8737,7 @@ adds980|a980|adds consul 980,
        am, 
        cols#80, lines#24, 
        bel=^G, clear=\014$<1>\013@, cr=^M, cub1=^H, cud1=^J, 
-       cuf1=\E^E01, cup=\013%p1%'@'%+%c\E\005%p2%2d, 
+       cuf1=\E^E01, cup=\013%p1%{64}%+%c\E\005%p2%2d, 
        dl1=\E\017$<13>, il1=\E\016$<13>, ind=^J, kf0=\E0, kf1=\E1, 
        kf2=\E2, kf3=\E3, kf4=\E4, kf5=\E5, kf6=\E6, kf7=\E7, kf8=\E8, 
        kf9=\E9, rmso=^O, sgr0=^O, smso=^Y^^^N, 
@@ -7480,7 +8777,7 @@ cit101|citc|C.itoh fast vt100,
 # The following termcap entry was created from the Callan cd100 entry.  The
 # last two lines (with the capabilities in caps) are used by RM-cobol to allow
 # full selection of combinations of reverse video, underline, and blink.
-# (cit101e: emoved unknown :f0=\EOp:f1=\EOq:f2=\EOr:f3=\EOs:f4=\EOt:f5=\EOu:\
+# (cit101e: removed unknown :f0=\EOp:f1=\EOq:f2=\EOr:f3=\EOs:f4=\EOt:f5=\EOu:\
 # f6=\EOv:f7=\EOw:f8=\EOx:f9=\EOy:AB=\E[0;5m:AL=\E[m:AR=\E[0;7m:AS=\E[0;5;7m:\
 # :NB=\E[0;1;5m:NM=\E[0;1m:NR=\E[0;1;7m:NS=\E[0;1;5;7m: -- esr)
 cit101e|C. Itoh CIT-101e, 
@@ -7495,13 +8792,50 @@ cit101e|C. Itoh CIT-101e,
        kf7=\EOM, kf8=\EOn, rc=\E8, ri=\EM, rmacs=^O, rmir=\E[4l, 
        rmkx=\E>, rmso=\E[m, rmul=\E[m, sc=\E7, smacs=^N, smir=\E[4h, 
        smkx=\E=, smso=\E[7m, smul=\E[4m, 
+# From: David S. Lawyer, June 1997:
+# The CIT 101-e was made in Japan in 1983-4 and imported by CIE
+# Terminals in Irvine, CA.  It was part of CITOH Electronics.  In the
+# late 1980's CIT Terminals went out of business.
+# There is no need to use the initialization string is=... (by invoking
+# tset or setterm etc.) provided that the terminal has been manually set
+# up (and the setup saved with ^S) to be compatible with this termcap.  To be
+# compatible it should be in ANSI mode (not VT52).   A set-up that
+# works is to set all the manually setable stuff to factory defaults
+# by pressing ^D in set-up mode.  Then increse the brighness with the
+# up-arrow key since the factory default will likely be dim on an old
+# terminal.  Then change any options you want (provided that they are
+# compatible with the termcap).  For my terminal I set: Screen
+# Background: light; Keyclicks: silent; Auto wraparound: on; CRT saver:
+# on.  I also set up mine for parity (but you may not need it).  Then 
+# save the setup with ^S.
+# (cit101e-rv: added empty <rmcup> to suppress a tic warning. --esr)
+cit101e-rv|Citoh CIT-101e (sets reverse video), 
+       am, eo, mir, msgr, xenl, xon, 
+       cols#80, it#8, lines#24, 
+       bel=^G, blink=\E[5m, bold=\E[1m, cbt=\E[Z, civis=\E[1v, 
+       clear=\E[H\E[J, cnorm=\E[0;3;4v, cr=^M, 
+       csr=\E[%i%p1%d;%p2%dr, cub=\E[%p1%dD, cub1=^H, 
+       cud=\E[%p1%dB, cud1=\E[B, cuf=\E[%p1%dC, cuf1=\E[C, 
+       cup=\E[%i%p1%d;%p2%dH, cuu=\E[%p1%dA, cuu1=\E[A, 
+       cvvis=\E[3;5v, dch=\E[%p1%dP, dch1=\E[P, dl=\E[%p1%dM, 
+       dl1=\E[M, ed=\E[J, el=\E[K, flash=\E[?5l\E[?5h$<200/>, 
+       home=\E[H, hpa=\E[%i%p1%dG, ht=^I, hts=\EH, ich=\E[%p1%d@, 
+       ich1=\E[@, il=\E[%p1%dL, il1=\E[L, ind=^J, indn=\E[%p1%dS, 
+       is2=\E<\E>\E[?1l\E[?3l\E[?4l\E[?5h\E[?7h\E[?8h\E[3g\E[>5g\E(B\E[m\E[20l\E[1;24r\E[24;1H, 
+       kbs=\177, kcub1=\E[D, kcud1=\E[B, kcuf1=\E[C, kcuu1=\E[A, 
+       kf1=\EOP, kf2=\EOQ, kf3=\EOR, kf4=\EOS, nel=\EE, rc=\E8, 
+       rev=\E[7m, ri=\EM, rin=\E[%p1%dT, rmcup=, rmir=\E[4l, 
+       rmso=\E[m, rmul=\E[m, rs1=\Ec\E[?7h\E[>5g, sc=\E7, 
+       sgr0=\E[m, smcup=\E[>5g\E[?7h\E[?5h, smir=\E[4h, 
+       smso=\E[7m, smul=\E[4m, tbc=\E[3g, u6=\E[%i%p1%d;%p2%dR, 
+       u7=\E[6n, u8=\E[?6c, u9=\E[c, 
 cit101e-n|CIT-101e w/o am, 
        am@, 
        cvvis=\E[?1l\E[?4l\E[?7l, kbs=^H, kcub1=^H, kcud1=^J, use=cit101e, 
-cit101e-132|CIT-101e, 132 cols, 
+cit101e-132|CIT-101e with 132 cols, 
        cols#132, 
        kbs=^H, kcub1=^H, kcud1=^J, use=cit101e, 
-cit101e-n132|CIT-101e, 132 cols w/o am, 
+cit101e-n132|CIT-101e with 132 cols w/o am, 
        am@, 
        cols#132, 
        cvvis=\E[?1l\E[?4l\E[?7l, kbs=^H, kcub1=^H, kcud1=^J, use=cit101e, 
@@ -7633,7 +8967,7 @@ cdc721-esc|Control Data 721,
        cuf1=^X, cup=\002%p2%{32}%+%c%p1%{32}%+%c, cuu1=^W, 
        dch1=^^N, dim=^\, dl1=^^Q, ed=^^P, el=^K, home=^Y, hts=^^^RW, 
        ich1=^^O, il1=^^R, ind=\036W =\036U, invis=^^^R[, 
-       is2=\036\022B\003\036\035\017\022\025\035\036E\036\022H\036\022J\036\022L\036\022N\036\022P\036\022Q\036\022\\\036\022\^\036\022b\036\022i\036W =\036\022Z\036\011C1-` `!k/o, 
+       is2=\036\022B\003\036\035\017\022\025\035\036E\036\022H\036\022J\036\022L\036\022N\036\022P\036\022Q\036\022\036\022\^\036\022b\036\022i\036W =\036\022Z\036\011C1-` `!k/o, 
        kbs=^H, kcub1=^H, kcud1=^Z, kcuf1=^X, kcuu1=^W, kf0=^^q, 
        kf1=^^r, kf2=^^s, kf3=^^t, kf4=^^u, kf5=^^v, kf6=^^w, kf7=^^x, 
        kf8=^^y, kf9=^^z, khome=^Y, ll=^B =, rev=^^D, 
@@ -7666,7 +9000,7 @@ cdc721-esc|Control Data 721,
 visa50|geveke visa 50 terminal in ansi 80 character mode, 
        bw, mir, msgr, 
        cols#80, lines#25, 
-       acsc=0_aaffggjjkkllmmnnqqttuuvvwwxxh ooss, bel=^G, 
+       acsc=0_aaffggh jjkkllmmnnooqqssttuuvvwwxx, bel=^G, 
        blink=\E[5m, bold=\E[1m, cbt=\E[Z, clear=\E[H\E[2J, cr=^M, 
        csr=\E[%i%p1%d;%p2%dr, cub=\E[%p1%dD, cub1=\E[D, 
        cud=\E[%p1%dB, cud1=\E[B, cuf=\E[%p1%dC, cuf1=\E[C, 
@@ -7744,7 +9078,7 @@ c108|concept108|c108-8p|concept108-8p|concept 108 w/8 pages,
 c108-4p|concept108-4p|concept 108 w/4 pages, 
        eslok, hs, xon, 
        pb@, 
-       acsc=l\\qLkTxUmMjE, cnorm=\Ew, cr=^M, 
+       acsc=jEkTl\\mMqLxU, cnorm=\Ew, cr=^M, 
        cup=\Ea%p1%?%p1%{95}%>%t\001%{96}%-%;%{32}%+%c%p2%?%p2%{95}%>%t\001%{96}%-%;%{32}%+%c, 
        cvvis=\EW, dch1=\E 1$<16*>, dsl=\E ;\177, fsl=\Ee\E z\s, 
        ind=^J, is1=\EK\E!\E F, 
@@ -7811,13 +9145,13 @@ c100|concept100|concept|c104|c100-4p|hds concept 100,
        ed=\E\005$<16*>, el=\E\025$<16>, flash=\Ek$<200>\EK, 
        ht=\011$<8>, il1=\E\022$<3*>, ind=^J, invis=\EH, ip=$<16*>, 
        is1=\EK, 
-       is2=\EU\Ef\E7\E5\E8\El\ENH\E\200\Eo&\200\Eo'\E\Eo!\200\E\007!\E\010A@ \E4#\:"\E\:a\E4#;"\E\:b\E4#<"\E\:c, 
+       is2=\EU\Ef\E7\E5\E8\El\ENH\E\0\Eo&\0\Eo'\E\Eo!\0\E\007!\E\010A@ \E4#\:"\E\:a\E4#;"\E\:b\E4#<"\E\:c, 
        is3=\Ev    $<6>\Ep\n, kbs=^H, kcbt=\E', kctab=\E_, 
        kcub1=\E>, kcud1=\E<, kcuf1=\E=, kcuu1=\E;, kdch1=\E^Q, 
        kdl1=\E^B, ked=\E^C, kel=\E^S, kf1=\E5, kf2=\E6, kf3=\E7, 
        kf4=\E8, kf5=\E9, kf6=\E\:a, kf7=\E\:b, kf8=\E\:c, khome=\E?, 
        khts=\E], kich1=\E^P, kil1=\E^R, kind=\E[, knp=\E-, kpp=\E., 
-       kri=\E\\, krmir=\E\200, mc4=\036o \E\EQ!\EYP\027, 
+       kri=\E\\, krmir=\E\0, mc4=\036o \E\EQ!\EYP\027, 
        mc5=\EQ"\EY(\027\EYD\Eo \036, prot=\EI, 
        rep=\Er%p1%c%p2%{32}%+%c$<.2*>, rev=\ED, 
        rmcup=\Ev    $<6>\Ep\r\n, rmir=\E\s\s, rmkx=\Ex, 
@@ -7832,6 +9166,283 @@ oc100|oconcept|c100-1p|old 1 page concept 100,
        in, 
        is3@, use=c100, 
 
+# From: Walter Skorski <walt@genetics1.JMP.TJU.EDU>, 16-oct-1996.
+# Lots of notes, originally inline, but ncurses doesn't grok that.
+#
+# am:  not available in power on mode, but turned on with \E[=107;207h in
+#      is2=.  Also, \E=124l in is2= could have been used to prevent needing
+#      to specify xenl:, but that would have rendered the last space on the
+#      last line useless.
+# bw:  Not available in power on mode, but turned on with \E[=107;207h in
+#      is2=.
+# clear: Could be done with \E[2J alone, except that vi (and probably most
+#      other programs) assume that this also homes the cursor.
+# dsl: Go to window 2, go to the beginning of the line, use a line feed to
+#      scroll the window, and go back to window 1.
+# is2: the string may cause a warning to be issued by tic that it
+#      found a very long line and that it suspects that a comma is missing
+#      somewhere.  This warning can be ignored (unless it comes up more than
+#      once).  The initialization string contains the following commands:
+#
+#       [Setup mode items changed from factory defaults:]
+#              \E)0                    set alternate character set to
+#                                              graphics
+#              ^O                      set character set to default
+#       [In case it wasn't]
+#              \E[m                    turn off all attributes
+#       [In case they weren't off]
+#              \E[=107;                cursor wrap and
+#                      207h                    character wrap on
+#              \E[90;3u                set Fkey definitions to "transmit"
+#                                              defaults
+#              \E[92;3u                set cursor key definitions to
+#                                              "transmit" defaults
+#              \E[43;1u                set shift F13 to transmit...
+#              \177\E$P\177
+#              \E[44;1u                set shift F14 to transmit...
+#                      \177\E$Q\177
+#              \E[45;1u                set shift F15 to transmit...
+#                      \177\E$R\177
+#              \E[46;1u                set shift F16 to transmit...
+#                      \177\E$S\177
+#              \E[200;1u               set shift up to transmit...
+#                      \177\E$A\177
+#              \E[201;1u               set shift down to transmit...
+#                      \177\E$B\177
+#              \E[202;1u               set shift right to transmit...
+#                      \177\E$C\177
+#              \E[203;1u               set shift left to transmit...
+#                      \177\E$D\177
+#              \E[204;1u               set shift home to transmit...
+#                      \177\E$H\177
+#              \E[212;1u               set backtab to transmit...
+#                      \177\E$I\177
+#              \E[213;1u               set shift backspace to transmit...
+#                      \177\E$^H\177
+#              \E[214;1u               set shift del to transmit...
+#                      "\E$\177"
+#       [Necessary items not mentioned in setup mode:]
+#              \E[2!w                  move to window 2
+#              \E[25;25w               define window as line 25 of memory
+#              \E[!w                   move to window 1
+#              \E[2*w                  show current line of window 2 as
+#                                              status line
+#              \E[2+x                  set meta key to use high bit
+#              \E[;3+}                 move underline to bottom of character
+#
+#      All Fkeys are set to their default transmit definitions with \E[90;3u
+#      in is2=.  IMPORTANT:  to use this terminal definition, the "quit" stty
+#      setting MUST be redefined or deactivated, because the default is
+#      contained in almost all of this terminal's Fkey strings!  If for some
+#      reason "quit" cannot be altered, the Fkeys can, but it would be
+#      necessary to change ^| to ^] in all of these definitions, and add
+#      \E[2;029!t to is2.
+# lines: is set to 24 because this terminal refuses to treat the 25th
+#      line normally.
+# ll:  Not available in power on mode, but turned on with \E[=107;207h in
+#      is2=.
+# lm:  Pointless, given that this definition locks a single screen of
+#      memory into view, but what the hey...
+# rmso: Could use \E[1;7!{ to turn off only bold and reverse (leaving any
+#      other attributes alone), but some programs expect this to turn off
+#      everything.
+# rmul: Could use \E[4!{ to turn off only underline (leaving any other
+#      attributes alone), but some programs expect this to turn off
+#      everything.
+# sgr: Attributes are set on this terminal with the string \E[ followed by
+#      a list of attribute code numbers (in decimal, separated by
+#      semicolons), followed by the character m.  The attribute code
+#      numbers are:
+#                1 for bold;
+#                2 for dim (which is ignored in power on mode);
+#                4 for underline;
+#                5 for blinking;
+#                7 for inverse;
+#                8 for not displayable; and
+#              =99 for protected (except that there are strange side
+#              effects to protected characters which make them inadvisable).
+#       The mapping of terminfo parameters to attributes is as follows:
+#              %p1 (standout) = bold and inverse together;
+#              %p2 (underline) = underline;
+#              %p3 (reverse) = inverse;
+#              %p4 (blink) = blinking;
+#              %p5 (dim) is ignored;
+#              %p6 (bold) = bold;
+#              %p7 (invisible) = not displayable;
+#              %p8 (protected) is ignored; and
+#              %p9 (alt char set) = alt char set.
+#       The code to do this is:
+#              \E[0            OUTPUT  \E[0
+#              %?%p1%p6%O      IF      (standout; bold) OR
+#              %t;1            THEN    OUTPUT  ;1
+#              %;              ENDIF
+#              %?%p2           IF      underline
+#              %t;4            THEN    OUTPUT  ;4
+#              %;              ENDIF
+#              %?%p4           IF      blink
+#              %t;5            THEN    OUTPUT  ;5
+#              %;              ENDIF
+#              %?%p1%p3%O      IF      (standout; reverse) OR
+#              %t;7            THEN    OUTPUT  ;7
+#              %;              ENDIF
+#              %?%p7           IF      invisible
+#              %t;8            THEN    OUTPUT  ;8
+#              %;              ENDIF
+#              m               OUTPUT  m
+#              %?%p9           IF      altcharset
+#              %t^N            THEN    OUTPUT  ^N
+#              %e^O            ELSE    OUTPUT  ^O
+#              %;              ENDIF
+# sgr0: Everything is turned off (including alternate character set), since
+#      there is no way of knowing what it is that the program wants turned
+#      off.
+# smul: The "underline" attribute is reconfigurable to an overline or
+#      strikethru, or (as done with \E[;3+} in is2=), to a line at the true
+#      bottom of the character cell.  This was done to allow for more readable
+#      underlined characters, and to be able to distinguish between an
+#      underlined space, an underscore, and an underlined underscore.
+# xenl: Terminal can be configured to not need this, but this "glitch"
+#      behavior is actually preferable with autowrap terminals.
+#
+# Parameters kf31= thru kf53= actually contain the strings sent by the shifted
+# Fkeys.  There are no parameters for shifted Fkeys in terminfo.  The is2
+# string modifies the 'O' in kf43 to kf46 to a '$'.
+#
+# kcbt was originally ^I but redefined in is2=.
+# kHOM was \E[H originally but redefined in is2=, as were a number of
+# other keys.
+# kDC was originally \177 but redefined in is2=.
+#
+# kbs: Shift was also ^H originally but redefined as \E$^H in is2=.
+# tsl: Go to window 2, then do an hpa=.
+#
+#------- flash=\E[8;3!}^G\E[3;3!}
+#------- flash=\E[?5h$<100>\E[?5l
+# There are two ways to flash the screen, both of which have their drawbacks. 
+# The first is to set the bell mode to video, transmit a bell character, and
+# set the bell mode back - but to what?  There is no way of knowing what the
+# user's old bell setting was before we messed with it.  Worse, the command to
+# set the bell mode also sets the key click volume, and there is no way to say
+# "leave that alone", or to know what it's set to, either.
+# The second way to do a flash is to set the screen to inverse video, pad for a
+# tenth of a second, and set it back - but like before, there's no way to know
+# that the screen wasn't ALREADY in inverse video, or that the user may prefer
+# it that way.  The point is moot anyway, since vi (and probably other
+# programs) assume that by defining flash=, you want the computer to use it
+# INSTEAD of bel=, rather than as a secondary type of signal.
+#
+#------- cvvis=\E[+{
+# The is the power on setting, which is also as visible as the cursor
+# gets.
+#-------  wind=\E[%i%p1%d;%p2%d;%p3%{1}%+%d;%p4%{1}%+%dw
+# Windowing is possible, but not defined here because it is also used to
+# emulate status line functions.  Allowing a program to set a window could
+# clobber the status line or render it unusable.  There is additional memory,
+# but screen scroll functions are destructive and do not make use of it.
+#
+#-------   dim=                        Not available in power on mode.
+# You have a choice of defining low intensity characters as "half bright" and
+# high intensity as "normal", or defining low as "normal" and high as "bold". 
+# No matter which you choose, only one of either "half bright" or "bold" is
+# available at any time, so taking the time to override the default is
+# pointless.
+#
+#-------  prot=\E[=0;99m
+# Not defined, because it appears to have some strange side effects.
+#------- pfkey=%?%p1%{24}%<%p1%{30}%>%p1%{54}%<%A%O%t\E[%p1%du\177%p2%s\177%;
+#------- pfloc=%?%p1%{24}%<%p1%{30}%>%p1%{54}%<%A%O%t\E[%p1%du\177%p2%s\177%;
+#-------   pfx=%?%p1%{24}%<%p1%{30}%>%p1%{54}%<%A%O%t\E[%p1%d;1u\177%p2%s\177%;
+#       Available, but making them available to programs is inadvisable.
+#       The code to do this is:
+#              %?%p1%{24}%<    IF      ((key; 24) <;
+#              %p1%{30}%>               ((key; 30) >;
+#              %p1%{54}%<                (key; 54) <
+#              %A                       ) AND
+#              %O                      ) OR
+#       [that is, "IF key < 24 OR (key > 30 AND key < 54)",]
+#              %t\E[           THEN    OUTPUT  \E[
+#              %p1%d                   OUTPUT  (key) as decimal
+#       [next line applies to pfx only]
+#              ;1                      OUTPUT  ;1
+#              u                       OUTPUT  u
+#              \177                    OUTPUT  \177
+#              %p2%s                   OUTPUT  (string) as string
+#              \177                    OUTPUT  \177
+#       [DEL chosen as delimiter, but could be any character]
+#       [implied:              ELSE    do nothing]
+#              %;              ENDIF
+#      
+#-------   rs2=
+# Not defined since anything it might do could be done faster and easier with
+# either Meta-Shift-Reset or the main power switch.
+#
+#-------  smkx=\E[1!z
+#-------  rmkx=\E[!z
+# These sequences apply to the cursor and setup keys only, not to the
+# numeric keypad.  But it doesn't matter anyway, since making these
+# available to programs is inadvisable.
+# For the key definitions below, all sequences beginning with \E$ are
+# custom and programmed into the terminal via is2.  \E$ also has no
+# meaning to any other terminal.
+#
+#------- cmdch=\E[;%p1%d!t
+# Available, but making it available to programs is inadvisable.
+#------- smxon=\E[1*q
+# Available, but making it available to programs is inadvisable.
+# Terminal will send XON/XOFF on buffer overflow.
+#------- rmxon=\E[*q
+# Available, but making it available to programs is inadvisable.
+# Terminal will not notify on buffer overflow.
+#-------   smm=\E[2+x
+#-------   rmm=\E[+x
+# Available, but making them available to programs is inadvisable.
+#
+# Printing:
+#       It's not made clear in the manuals, but based on other ansi/vt type
+#       terminals, it's a good guess that this terminal is capable of both
+#       "transparent print" (which doesn't copy data to the screen, and
+#       therefore needs mc5i: specified to say so) and "auxilliary print"
+#       (which does duplicate printed data on the screen, in which case mc4=
+#       and mc5= should use the \E[?4i and \E[?5i strings instead).
+
+hds200|Human Designed Systems HDS200, 
+       am, bw, eslok, hs, km, mc5i, mir, msgr, xenl, xon, 
+       cols#80, it#8, lines#24, lm#0, 
+       acsc=``aaffggjjkkllmmnnooqqssttuuvvwwxx~~, bel=^G, 
+       blink=\E[0;5m, bold=\E[0;1m, cbt=\E[Z, civis=\E[6+{, 
+       clear=\E[H\E[J, cnorm=\E[+{, cr=^M, 
+       csr=\E[%i%p1%d;%p2%dr, cub=\E[%p1%dD, cub1=\E[D, 
+       cud=\E[%p1%dB, cud1=\E[B, cuf=\E[%p1%dC, cuf1=\E[C, 
+       cup=\E[%i%p1%d;%p2%dH, cuu=\E[%p1%dA, cuu1=\E[A, 
+       dch=\E[%p1%dP, dch1=\E[P, dl=\E[%p1%dM, dl1=\E[M, 
+       dsl=\E[2!w\r\n\E[!w, ed=\E[J, el=\E[K, el1=\E[1K, 
+       fsl=\E[!w, home=\E[H, hpa=\E[%i%p1%dG, ht=^I, hts=\EH, 
+       ich=\E[%p1%d@, il=\E[%p1%dL, il1=\E[L, ind=\ED, 
+       invis=\E[0;8m, 
+       is2=\E)0\017\E[m\E[=107;207h\E[90;3u\E[92;3u\E[43;1u\177\E$P\177\E[44;1u\177\E$Q\177\E[45;1u\177\E$R\177\E[46;1u\177\E$S\177\E[200;1u\177\E$A\177\E[201;1u\177\E$B\177\E[202;1u\177\E$C\177\E[203;1u\177\E$D\177\E[204;1u\177\E$H\177\E[212;1u\177\E$I\177\E[213;1u\177\E$\010\177\E[214;1u"\E$\177"\E[2!w\E[25;25w\E[!w\E[2*w\E[2+x\E[;3+}, 
+       kDC=\E$\177, kHOM=\E$H, kLFT=\E$D, kRIT=\E$C, kbs=^H, 
+       kcbt=\E$I, kcub1=\E[D, kcud1=\E[B, kcuf1=\E[C, kcuu1=\E[A, 
+       kdch1=\177, kent=^M, kf1=^\001\r, kf10=^\010\r, 
+       kf11=^\011\r, kf12=^\012\r, kf13=\EOP, kf14=\EOQ, 
+       kf15=\EOR, kf16=\EOS, kf17=^\017\r, kf18=^\018\r, 
+       kf19=^\019\r, kf2=^\002\r, kf20=^\020\r, kf21=^\021\r, 
+       kf22=^\022\r, kf23=^\023\r, kf3=^\003\r, kf31=^\031\r, 
+       kf32=^\032\r, kf33=^\033\r, kf34=^\034\r, kf35=^\035\r, 
+       kf36=^\036\r, kf37=^\037\r, kf38=^\038\r, kf39=^\039\r, 
+       kf4=^\004\r, kf40=^\040\r, kf41=^\041\r, kf42=^\042\r, 
+       kf43=\E$P, kf44=\E$Q, kf45=\E$R, kf46=\E$S, kf47=^\047\r, 
+       kf48=^\048\r, kf49=^\049\r, kf5=^\005\r, kf50=^\050\r, 
+       kf51=^\051\r, kf52=^\052\r, kf53=^\053\r, kf6=^\006\r, 
+       kf7=^\007\r, kf8=^\008\r, kf9=^\009\r, khome=\E[H, 
+       kind=\E[T, knp=\E[U, kpp=\E[V, kri=\E[S, ll=\E[H\E[A, 
+       mc0=\E[i, mc4=\E[4i, mc5=\E[5i, nel=\E[E, rc=\E8, 
+       rev=\E[0;7m, ri=\EM, rmacs=^O, rmir=\E[4l, rmso=\E[m\017, 
+       rmul=\E[m\017, sc=\E7, 
+       sgr=\E[0%?%p1%p6%O%t;1%;%?%p2%t;4%;%?%p4%t;5%;%?%p1%p3%O%t;7%;%?%p7%t;8%;m%?%p9%t\016%e\017%;, 
+       sgr0=\E[m\017, smacs=^N, smir=\E[4h, smso=\E[0;1;7m, 
+       smul=\E[0;4m, tbc=\E[3g, tsl=\E[2!w\E[%i%p1%dG, 
+       vpa=\E[%i%p1%dd, 
+
 # <ht> through <el> included to specify padding needed in raw mode.
 # (avt-ns: added empty <acsc> to suppress a tic warning --esr)
 avt-ns|concept avt no status line, 
@@ -7913,10 +9524,10 @@ contel300|contel320|c300|Contel Business Systems C-300 or C-320,
        hts=\E1, ich1=\EN, il1=\EL$<5.5*>, ind=^J, ip=$<5.5*>, 
        kbs=^H, kf0=\ERJ, kf1=\ERA, kf2=\ERB, kf3=\ERC, kf4=\ERD, 
        kf5=\ERE, kf6=\ERF, kf7=\ERG, kf8=\ERH, kf9=\ERI, ll=\EH\EA, 
-       rmso=\E!\200, sgr0=\E!\200, smso=\E!\r, tbc=\E3, 
+       rmso=\E!\0, sgr0=\E!\0, smso=\E!\r, tbc=\E3, 
 # Contel c301 and c321 terminals.
 contel301|contel321|c301|c321|Contel Business Systems C-301 or C-321, 
-       flash@, ich1@, ip@, rmso=\E!\200$<20>, smso=\E!\r$<20>, 
+       flash@, ich1@, ip@, rmso=\E!\0$<20>, smso=\E!\r$<20>, 
        use=contel300, 
 
 #### Data General (dg)
@@ -7925,11 +9536,184 @@ contel301|contel321|c301|c321|Contel Business Systems C-301 or C-321,
 # the terminals group at Data General was shut down in 1991; all these
 # terminals have thus been discontinued.
 #
+# DG terminals have function keys that respond to the SHIFT and CTRL keys,
+# e.g., SHIFT-F1 generates a different code from F1.  To number the keys
+# sequentially, first the unmodified key codes are listed as F1 through F15. 
+# Then their SHIFT versions are listed as F16 through F30, their CTRL versions
+# are listed as F31 through F45, and their CTRL-SHIFT versions are listed as
+# F46 through F60.  This is done in the private "includes" below whose names
+# start with "dgkeys+".
+#
+# DG terminals generally support 8 bit characters.  For each of these terminals
+# two descriptions are supplied:
+#      1) A default description for 8 bits/character communications, which
+#         uses the default DG international character set and keyboard codes.
+#      2) A description with suffix "-7b" for 7 bits/character communications.
+#         This description must use the NON-DEFAULT native keyboard language.
+
+# Unmodified fkeys (kf1-kf11), Shift fkeys (kf12-kf22), Ctrl fkeys (kf23-kf33),
+# Ctrl/Shift fdkeys (kf34-kf44).
+
+dgkeys+8b|Private entry describing DG terminal 8-bit ANSI mode special keys, 
+       ka1=\233020z, ka3=\233021z, kc1=\233022z, kc3=\233023z, 
+       kclr=\2332J, kcub1=\233D, kcud1=\233B, kcuf1=\233C, 
+       kcuu1=\233A, kel=\233K, kf1=\233001z, kf10=\233010z, 
+       kf11=\233011z, kf12=\233012z, kf13=\233013z, 
+       kf14=\233014z, kf15=\233000z, kf16=\233101z, 
+       kf17=\233102z, kf18=\233103z, kf19=\233104z, 
+       kf2=\233002z, kf20=\233105z, kf21=\233106z, 
+       kf22=\233107z, kf23=\233108z, kf24=\233109z, 
+       kf25=\233110z, kf26=\233111z, kf27=\233112z, 
+       kf28=\233113z, kf29=\233114z, kf3=\233003z, 
+       kf30=\233100z, kf31=\233201z, kf32=\233202z, 
+       kf33=\233203z, kf34=\233204z, kf35=\233205z, 
+       kf36=\233206z, kf37=\233207z, kf38=\233208z, 
+       kf39=\233209z, kf4=\233004z, kf40=\233210z, 
+       kf41=\233211z, kf42=\233212z, kf43=\233213z, 
+       kf44=\233214z, kf45=\233200z, kf46=\233301z, 
+       kf47=\233302z, kf48=\233303z, kf49=\233304z, 
+       kf5=\233005z, kf50=\233305z, kf51=\233306z, 
+       kf52=\233307z, kf53=\233308z, kf54=\233309z, 
+       kf55=\233310z, kf56=\233311z, kf57=\233312z, 
+       kf58=\233313z, kf59=\233314z, kf6=\233006z, 
+       kf60=\233300z, kf7=\233007z, kf8=\233008z, kf9=\233009z, 
+       khome=\233H, kprt=\233i, 
+
+dgkeys+7b|Private entry describing DG terminal 7-bit ANSI mode special keys, 
+       ka1=\E[020z, ka3=\E[021z, kc1=\E[022z, kc3=\E[023z, 
+       kclr=\E[2J, kcub1=\E[D, kcud1=\E[B, kcuf1=\E[C, kcuu1=\E[A, 
+       kel=\E[K, kf1=\E[001z, kf10=\E[010z, kf11=\E[011z, 
+       kf12=\E[012z, kf13=\E[013z, kf14=\E[014z, kf15=\E[000z, 
+       kf16=\E[101z, kf17=\E[102z, kf18=\E[103z, kf19=\E[104z, 
+       kf2=\E[002z, kf20=\E[105z, kf21=\E[106z, kf22=\E[107z, 
+       kf23=\E[108z, kf24=\E[109z, kf25=\E[110z, kf26=\E[111z, 
+       kf27=\E[112z, kf28=\E[113z, kf29=\E[114z, kf3=\E[003z, 
+       kf30=\E[100z, kf31=\E[201z, kf32=\E[202z, kf33=\E[203z, 
+       kf34=\E[204z, kf35=\E[205z, kf36=\E[206z, kf37=\E[207z, 
+       kf38=\E[208z, kf39=\E[209z, kf4=\E[004z, kf40=\E[210z, 
+       kf41=\E[211z, kf42=\E[212z, kf43=\E[213z, kf44=\E[214z, 
+       kf45=\E[200z, kf46=\E[301z, kf47=\E[302z, kf48=\E[303z, 
+       kf49=\E[304z, kf5=\E[005z, kf50=\E[305z, kf51=\E[306z, 
+       kf52=\E[307z, kf53=\E[308z, kf54=\E[309z, kf55=\E[310z, 
+       kf56=\E[311z, kf57=\E[312z, kf58=\E[313z, kf59=\E[314z, 
+       kf6=\E[006z, kf60=\E[300z, kf7=\E[007z, kf8=\E[008z, 
+       kf9=\E[009z, khome=\E[H, kprt=\E[i, 
+
+dgkeys+11|Private entry describing 11 minimal-subset DG mode special keys, 
+       kclr=^L, kcub1=^Y, kcud1=^Z, kcuf1=^X, kcuu1=^W, kel=^K, 
+       kf1=^^q, kf10=^^z, kf11=^^{, kf12=^^a, kf13=^^b, kf14=^^c, 
+       kf15=^^d, kf16=^^e, kf17=^^f, kf18=^^g, kf19=^^h, kf2=^^r, 
+       kf20=^^i, kf21=^^j, kf22=^^k, kf23=^^1, kf24=^^2, kf25=^^3, 
+       kf26=^^4, kf27=^^5, kf28=^^6, kf29=^^7, kf3=^^s, kf30=^^8, 
+       kf31=^^9, kf32=^^\:, kf33=^^;, kf34=^^!, kf35=^^", kf36=^^#, 
+       kf37=^^$, kf38=^^%, kf39=^^&, kf4=^^t, kf40=^^', kf41=^^(, 
+       kf42=^^), kf43=^^*, kf44=^^+, kf5=^^u, kf6=^^v, kf7=^^w, 
+       kf8=^^x, kf9=^^y, khome=^H, 
+
+dgkeys+15|Private entry describing 15 DG mode special keys, 
+       kHOM=^^^H, kLFT=^^^Y, kRIT=^^^X, ka1=^^\\, ka3=^^], kc1=^^\^, 
+       kc3=^^_, kf1=^^q, kf10=^^z, kf11=^^{, kf12=^^|, kf13=^^}, 
+       kf14=^^~, kf15=^^p, kf16=^^a, kf17=^^b, kf18=^^c, kf19=^^d, 
+       kf2=^^r, kf20=^^e, kf21=^^f, kf22=^^g, kf23=^^h, kf24=^^i, 
+       kf25=^^j, kf26=^^k, kf27=^^l, kf28=^^m, kf29=^^n, kf3=^^s, 
+       kf30=^^`, kf31=^^1, kf32=^^2, kf33=^^3, kf34=^^4, kf35=^^5, 
+       kf36=^^6, kf37=^^7, kf38=^^8, kf39=^^9, kf4=^^t, kf40=^^\:, 
+       kf41=^^;, kf42=^^<, kf43=^^=, kf44=^^>, kf45=^^0, kf46=^^!, 
+       kf47=^^", kf48=^^#, kf49=^^$, kf5=^^u, kf50=^^%, kf51=^^&, 
+       kf52=^^', kf53=^^(, kf54=^^), kf55=^^*, kf56=^^+, kf57=^^\,, 
+       kf58=^^-, kf59=^^., kf6=^^v, kf60=^^\s, kf7=^^w, kf8=^^x, 
+       kf9=^^y, 
+
+# Data General color terminals use the "Tektronix" color model.  The total
+# number of colors varies with the terminal model, as does support for
+# attributes used in conjunction with color.
+
+# Removed u7, u8 definitions since they conflict with tack:
+#              Preserve user-defined colors in at least some cases.
+#      u7=^^Fh,
+#              Default is ACM mode.
+#      u8=^^F}20^^Fi^^F}21,
+#
+dgunix+fixed|Fixed color info for DG D430C terminals in DG-UNIX mode, 
+       bce, 
+       colors#16, ncv#53, pairs#256, 
+       op=\036Ad\036Bd, 
+       setab=\036B%p1%?%p1%{8}%<%t%{2}%&%?%p1%{1}%&%t%{4}%|%;%?%p1%{4}%&%t%{1}%|%;%;%{48}%+%c, 
+       setaf=\036A%p1%?%p1%{8}%<%t%{2}%&%?%p1%{1}%&%t%{4}%|%;%?%p1%{4}%&%t%{1}%|%;%;%{48}%+%c, 
+       setb=\036B%p1%{48}%+%c, setf=\036A%p1%{48}%+%c, 
+
+dg+fixed|Fixed color info for DG D430C terminals in DG mode, 
+       use=dgunix+fixed, 
+
+# Video attributes are coordinated using static variables set by "sgr", then
+# checked by "op", "seta[bf]", and "set[bf]" to refresh the attribute settings. 
+# (D=dim, U=underline, B=blink, R=reverse.)
+dg+color8|Color info for Data General D220 and D230C terminals in ANSI mode, 
+       bce, 
+       colors#8, ncv#16, pairs#64, 
+       op=\E[%?%gD%t2;%;%?%gU%t4;%;%?%gB%t5;%;%?%gR%t7;%;m, 
+       setab=\E[4%p1%d%?%gD%t;2%;%?%gU%t;4%;%?%gB%t;5%;%?%gR%t;7%;m, 
+       setaf=\E[3%p1%d%?%gD%t;2%;%?%gU%t;4%;%?%gB%t;5%;%?%gR%t;7%;m, 
+       setb=\E[4%p1%{2}%&%?%p1%{1}%&%t%{4}%|%;%?%p1%{4}%&%t%{1}%|%;%d%?%gD%t;2%;%?%gU%t;4%;%?%gB%t;5%;%?%gR%t;7%;m, 
+       setf=\E[3%p1%{2}%&%?%p1%{1}%&%t%{4}%|%;%?%p1%{4}%&%t%{1}%|%;%d%?%gD%t;2%;%?%gU%t;4%;%?%gB%t;5%;%?%gR%t;7%;m, 
+
+dg+color|Color info for Data General D470C terminals in ANSI mode, 
+       colors#16, ncv#53, pairs#256, 
+       setab=\E[%?%p1%{8}%<%t4%p1%e=%p1%{2}%&%?%p1%{1}%&%t%{4}%|%;%?%p1%{4}%&%t%{1}%|%;%;%d%?%gD%t;2%;%?%gU%t;4%;%?%gB%t;5%;%?%gR%t;7%;m, 
+       setaf=\E[%?%p1%{8}%<%t3%p1%e<%p1%{2}%&%?%p1%{1}%&%t%{4}%|%;%?%p1%{4}%&%t%{1}%|%;%;%d%?%gD%t;2%;%?%gU%t;4%;%?%gB%t;5%;%?%gR%t;7%;m, 
+       setb=\E[%?%p1%{8}%<%t4%e=%;%p1%{2}%&%?%p1%{1}%&%t%{4}%|%;%?%p1%{4}%&%t%{1}%|%;%d%?%gD%t;2%;%?%gU%t;4%;%?%gB%t;5%;%?%gR%t;7%;m, 
+       setf=\E[%?%p1%{8}%<%t3%e<%;%p1%{2}%&%?%p1%{1}%&%t%{4}%|%;%?%p1%{4}%&%t%{1}%|%;%d%?%gD%t;2%;%?%gU%t;4%;%?%gB%t;5%;%?%gR%t;7%;m, 
+       use=dg+color8, 
+
+dgmode+color8|Color info for Data General D220/D230C terminals in DG mode, 
+       bce, 
+       colors#8, ncv#16, pairs#64, 
+       op=\036Ad\036Bd, 
+       setab=\036B%p1%{2}%&%?%p1%{1}%&%t%{4}%|%;%?%p1%{4}%&%t%{1}%|%;%{48}%+%c, 
+       setaf=\036A%p1%{2}%&%?%p1%{1}%&%t%{4}%|%;%?%p1%{4}%&%t%{1}%|%;%{48}%+%c, 
+       setb=\036B%p1%{48}%+%c, setf=\036A%p1%{48}%+%c, 
+
+dgmode+color|Color info for Data General D470C terminals in DG mode, 
+       colors#16, pairs#256, 
+       setab=\036B%p1%?%p1%{8}%<%t%{2}%&%?%p1%{1}%&%t%{4}%|%;%?%p1%{4}%&%t%{1}%|%;%;%{48}%+%c, 
+       setaf=\036A%p1%?%p1%{8}%<%t%{2}%&%?%p1%{1}%&%t%{4}%|%;%?%p1%{4}%&%t%{1}%|%;%;%{48}%+%c, 
+       use=dgmode+color8, 
+
+dgunix+ccc|Configurable color info for DG D430C terminals in DG-UNIX mode, 
+       bce, ccc, 
+       colors#52, ncv#53, pairs#26, 
+       initp=\036RG0%p1%02X%p2%{256}%*%{1001}%/%02X%p3%{256}%*%{1001}%/%02X%p4%{256}%*%{1001}%/%02X%p5%{256}%*%{1001}%/%02X%p6%{256}%*%{1001}%/%02X%p7%{256}%*%{1001}%/%02X, 
+       oc=\036RG01A00FF00000000\036RG01B00000000FF00\036RG01C007F00000000\036RG01D000000007F00, 
+       op=\036RF4831A\036RF2E31B\036RF1D31C\036RF3F31D, 
+       scp=\036RG2%p1%02X, 
+
+# Colors are in the order:  normal, reverse, dim, dim + reverse.
+dg+ccc|Configurable color info for DG D430C terminals in DG mode, 
+       bce, ccc, 
+       colors#52, ncv#53, pairs#26, 
+       initp=\036RG0%p1%{16}%/%{48}%+%c%p1%{16}%m%{48}%+%c%p2%{256}%*%{1001}%/%Pa%ga%{16}%/%{48}%+%c%ga%{16}%m%{48}%+%c%p3%{256}%*%{1001}%/%Pa%ga%{16}%/%{48}%+%c%ga%{16}%m%{48}%+%c%p4%{256}%*%{1001}%/%Pa%ga%{16}%/%{48}%+%c%ga%{16}%m%{48}%+%c%p5%{256}%*%{1001}%/%Pa%ga%{16}%/%{48}%+%c%ga%{16}%m%{48}%+%c%p6%{256}%*%{1001}%/%Pa%ga%{16}%/%{48}%+%c%ga%{16}%m%{48}%+%c%p7%{256}%*%{1001}%/%Pa%ga%{16}%/%{48}%+%c%ga%{16}%m%{48}%+%c, 
+       oc=\036RG01\:00??00000000\036RG01;00000000??00\036RG01<007?00000000\036RG01=000000007?00, 
+       op=\036RF4831\:\036RF2>31;\036RF1=31<\036RF3?31=, 
+       scp=\036RG2%p1%{16}%/%{48}%+%c%p1%{16}%m%{48}%+%c, 
+
+# The generic DG terminal type (an 8-bit-clean subset of the 6053)
+# Initialization string 1 sets:
+#      ^R              - vertical scrolling enabled
+#      ^C              - blinking enabled
+dg-generic|Generic Data General terminal in DG mode, 
+       am, bw, msgr, xon, 
+       cols#80, lines#24, 
+       bel=^G, blink=^N, clear=^L, cr=^M, cub1=^Y, cud1=^Z, cuf1=^X, 
+       cup=\020%p2%c%p1%c, cuu1=^W, dim=^\, el=^K, ind=^J, is1=^R^C, 
+       mc0=^Q, nel=^J, rmso=^], rmul=^U, sgr0=^O^U^], smso=^\, 
+       smul=^T, 
+       use=dgkeys+11, 
 
 # According to the 4.4BSD termcap file, the dg200 <cup> should be the
 # termcap equivalent of \020%p2%{128}%+%c%p1%{128}%+%c (in termcap
 # notation that's "^P%r%+\200%+\200").  Those \200s are suspicious,
 # maybe they were originally nuls (which would fit).
+
 dg200|data general dasher 200, 
        am, bw, 
        cols#80, lines#24, 
@@ -7939,6 +9723,7 @@ dg200|data general dasher 200,
        kf2=^^r, kf3=^^s, kf4=^^t, kf5=^^u, kf6=^^v, kf7=^^w, kf8=^^x, 
        kf9=^^y, khome=^H, lf0=f10, nel=^J, rmso=^^E, rmul=^U, 
        smso=^^D, smul=^T, 
+
 # Data General 210/211 (and 410?)      from Lee Pearson (umich!lp) via BRL
 dg210|dg-ansi|Data General 210/211, 
        am, 
@@ -7954,7 +9739,7 @@ dg210|dg-ansi|Data General 210/211,
 dg211|Data General d211, 
        cnorm=^L, cvvis=^L^R, ht=^I, ind@, kbs=^Y, kf0@, kf1@, kf2@, kf3@, 
        kf4@, kf5@, kf6@, kf7@, kf8@, kf9@, lf0@, nel=^M^Z, rmcup=^L, 
-       rmso=\036E$<\200/>, smcup=^L^R, smso=\036D$<5/>, 
+       rmso=\036E$<\0/>, smcup=^L^R, smso=\036D$<5/>, 
        use=dg200, 
 # dg450 from cornell
 dg450|dg6134|data general 6134, 
@@ -7988,16 +9773,487 @@ dg460-ansi|Data General Dasher 460 in ANSI-mode,
 # This also matches a posted description of something called a `Dasher 100'
 # so there's a dg100 alias here. 
 # (dg6053: the 4.4BSD file had <cub1=^H>, <cud1=^J>, <cuf1=^S>. -- esr) 
-dg6053|dg100|data general 6053, 
+dg6053-old|dg100|data general 6053, 
        am, bw, ul, 
        cols#80, lines#24, 
        bel=^G, clear=^L, cnorm=^L, cr=^M, cub1=^Y, cud1=^Z, cuf1=^X, 
        cup=\020%p2%c%p1%c, cuu1=^W, cvvis=^L^R, el=^K, home=^H, 
        ht=^I, is2=^R, kbs=^Y, kcub1=^Y, kcud1=^Z, kcuf1=^X, kcuu1=^W, 
        kf0=^^q, kf1=^^r, kf2=^^s, kf3=^^t, kf4=^^u, kf5=^^v, kf6=^^w, 
-       kf7=^^x, kf8=^^y, kf9=^^z, khome=^H, rmcup=^L, rmso=\200^^E, 
-       rmul=^U, smcup=^L^R, smso=\200\200\200\200\200\036D, 
-       smul=^T, 
+       kf7=^^x, kf8=^^y, kf9=^^z, khome=^H, rmcup=^L, rmso=\0^^E, 
+       rmul=^U, smcup=^L^R, smso=\0\0\0\0\0\036D, smul=^T, 
+
+# (Some performance can be gained over the generic DG terminal type)
+dg6053|6053|6053-dg|dg605x|605x|605x-dg|d2|d2-dg|Data General DASHER 6053, 
+       xon@, 
+       home=^P\0\0, ll=^P\0^W, use=dg-generic, 
+
+# Like 6053, but adds reverse video and more keypad and function keys.
+d200|d200-dg|Data General DASHER D200, 
+       bold=^^D^T, home@, ll@, rev=^^D, rmso=^^E^], 
+       sgr=\036%?%p1%p3%|%p6%|%tD%eE%;%?%p2%p6%|%t\024%e\025%;%?%p4%t\016%e\017%;%?%p1%p5%|%t\034%e\035%;, 
+       sgr0=\017\025\035\036E, smso=^^D^\, 
+       use=dgkeys+15, use=dg6053, 
+
+# DASHER D210 series terminals in ANSI mode.
+#      Reverse video, no insert/delete character/line, 7 bits/character only.
+#
+# Initialization string 1 sets:
+#      <0              - scrolling enabled
+#      <1              - blink enabled
+#      <4              - print characters regardless of attributes
+d210|d214|Data General DASHER D210 series, 
+       am, bw, msgr, xon, 
+       cols#80, lines#24, 
+       bel=^G, blink=\E[5m, bold=\E[4;7m, clear=\E[2J, cr=^M, 
+       cub=\E[%p1%dD, cub1=^H, cud=\E[%p1%dB, cud1=\E[B, 
+       cuf=\E[%p1%dC, cuf1=\E[C, cup=\E[%i%p1%d;%p2%dH, 
+       cuu=\E[%p1%dA, cuu1=\E[A, dim=\E[2m, ed=\E[J, el=\E[K, 
+       el1=\E[1K, home=\E[H, ind=^J, is1=\E[<0;<1;<4l, 
+       ll=\E[H\E[A, nel=^J, rev=\E[7m, rmso=\E[m, rmul=\E[m, 
+       sgr=\E[%?%p1%p3%|%p6%|%t7;%;%?%p4%t5;%;%?%p2%p6%|%t4;%;%?%p1%p5%|%t2;%;m, 
+       sgr0=\E[m, smso=\E[2;7m, smul=\E[4m, 
+       use=dgkeys+7b, 
+
+# DASHER D210 series terminals in DG mode.
+# Like D200, but adds clear to end-of-screen and needs XON/XOFF.
+d210-dg|d214-dg|Data General DASHER D210 series in DG mode, 
+       xon, 
+       ed=^^FF, use=d200-dg, 
+
+# DASHER D211 series terminals in ANSI mode.
+# Like the D210, but with 8-bit characters and local printer support.
+#
+# Initialization string 2 sets:
+#      \E[2;1;1;1v
+#              2;1     - 8 bit operations
+#              1;1     - 8 bit (international) keyboard language
+#      \E(B            - default primary character set (U.S. ASCII)
+#      \E)4            - default secondary character set (international)
+#      ^O              - primary character set
+#
+d211|d215|Data General DASHER D211 series, 
+       km, 
+       is2=\E[2;1;1;1v\E(B\E)4\017, mc0=\E[i, use=dgkeys+8b, use=d210, 
+
+# Initialization string 2 sets:
+#      \E[2;0;1;0v
+#              2;0     - 7 bit operations
+#              1;0     - 7 bit (native) keyboard language
+#      \E(0            - default character set (the keyboard native language)
+#      ^O              - primary character set
+d211-7b|d215-7b|Data General DASHER D211 series in 7 bit mode, 
+       km@, 
+       is2=\E[2;0;1;0v\E(0\017, use=dgkeys+7b, use=d211, 
+
+# Like the D210 series, but adds support for 8-bit characters.
+#
+# Reset string 2 sets:
+#      ^^N     - secondary character set
+#      ^^FS0>  - 8 bit international character set
+#      ^^O     - primary character set
+#      ^^FS00  - default character set (matching the native keyboard language)
+#
+d211-dg|d215-dg|Data General DASHER D211 series in DG mode, 
+       km, 
+       rs2=\036N\036FS0>\036O\036FS00, use=d210-dg, 
+
+d216-dg|d216e-dg|d216+dg|d216e+dg|d217-dg|Data General DASHER D216 series in DG mode, 
+       use=d211-dg, 
+
+# Enhanced DG mode with changes to be more UNIX compatible.
+d216-unix|d216e-unix|d216+|d216e+|Data General DASHER D216+ in DG-UNIX mode, 
+       mc5i, 
+       it#8, 
+       acsc=a\177j$k"l!m#n)q+t'u&v(w%x*, blink=^^PI, 
+       clear=^^PH, cub1=^^PD, cud1=^^PB, cuf1=^^PC, cuu1=^^PA, 
+       el=^^PE, home=^^PF, hpa=\020%p1%c\177, ht=^I, ind=^J, 
+       is1=\022\003\036P@1, is3=\036Fz0, kHOM=^^Pf, kLFT=^^Pd, 
+       kPRT=^^P1, kRIT=^^Pc, kclr=^^PH, kcub1=^^PD, kcud1=^^PB, 
+       kcuf1=^^PC, kcuu1=^^PA, kel=^^PE, khome=^^PF, kprt=^^P0, 
+       mc0=\036F?9, mc4=^^Fa, mc5=^^F`, rmacs=\036FS00, 
+       rs2=\036N\036FS0E\036O\036FS00, 
+       sgr=\036%?%p1%p3%|%p6%|%tD%eE%;%?%p2%p6%|%t\024%e\025%;\036P%?%p4%tI%eJ%;%?%p1%p5%|%t\034%e\035%;\036FS%?%p9%t11%e00%;, 
+       sgr0=\036PJ\025\035\036E\036FS00, smacs=\036FS11, 
+       vpa=\020\177%p1%c, 
+       use=dgkeys+15, use=d216-dg, 
+d216-unix-25|d216+25|Data General DASHER D216+ in DG-UNIX mode with 25 lines, 
+       lines#25, 
+       is3=\036Fz2, use=d216+, 
+
+d217-unix|Data General DASHER D217 in DG-UNIX mode, 
+       use=d216-unix, 
+d217-unix-25|Data General DASHER D217 in DG-UNIX mode with 25 lines, 
+       use=d216-unix-25, 
+
+# DASHER D220 color terminal in ANSI mode.
+# Like the D470C but with fewer colors and screen editing features.
+#
+# Initialization string 1 sets:
+#      \E[<0;<1;<4l
+#              <0      - scrolling enabled
+#              <1      - blink enabled
+#              <4      - print characters regardless of attributes
+#      \E[m            - all attributes off
+# Reset string 1 sets:
+#      \Ec             - initial mode defaults (RIS)
+#
+d220|Data General DASHER D220, 
+       mc5i@, 
+       dl@, dl1@, il@, il1@, is1=\E[<0;<1;<4l\E[m, mc4@, mc5@, rs1=\Ec, use=dg+color8, use=d470c, 
+
+d220-7b|Data General DASHER D220 in 7 bit mode, 
+       mc5i@, 
+       dl@, dl1@, il@, il1@, is1=\E[<0;<1;<4l\E[m, mc4@, mc5@, rs1=\Ec, use=dg+color8, use=d470c-7b, 
+
+# Initialization string 3 sets:
+#      - default cursor (solid rectangle)
+# Reset string 2 sets:
+#      ^^N     - secondary character set
+#      ^^FS0>  - 8 bit international character set
+#      ^^O     - primary character set
+#       ^^FS00  - default character set (matching the native keyboard language)
+#
+d220-dg|Data General DASHER D220 color terminal in DG mode, 
+       mc5i@, 
+       dl1@, home@, il1@, is2@, is3=\036FQ2, ll@, mc4@, mc5@, rs1@, 
+       rs2=\036N\036FS0>\036O\036FS00, 
+       use=dgmode+color8, use=d470c-dg, 
+
+# DASHER D230C color terminal in ANSI mode.
+# Like the D220 but with minor ANSI compatibility improvements.
+#
+d230c|d230|Data General DASHER D230C, 
+       blink=\E[5;50m, bold=\E[4;7;50m, dim=\E[2;50m, nel=^M^J, 
+       rev=\E[7;50m, rmkx=\E[2;1v, rmso=\E[50m, rmul=\E[50m, 
+       sgr=\E[50%?%p1%p3%|%p6%|%t;7%{1}%e%{0}%;%PR%?%p4%t;5%{1}%e%{0}%;%PB%?%p2%p6%|%t;4%{1}%e%{0}%;%PU%?%p1%p5%|%t;2%{1}%e%{0}%;%PDm\E)%?%p9%t6\016%e4\017%;, 
+       sgr0=\E[50m\E)4\017, smkx=\E[2;0v, smso=\E[2;7;50m, 
+       smul=\E[4;50m, 
+       use=dgkeys+7b, use=d220, 
+
+d230c-dg|d230-dg|Data General DASHER D230C in DG mode, 
+       use=d220-dg, 
+
+# DASHER D400/D450 series terminals.
+# These add intelligent features like insert/delete to the D200 series.
+#
+# Initialization string 2 sets:
+#      ^^FQ2           - default cursor (solid rectangle)
+#      ^^FW            - character protection disabled
+#      ^^FJ            - normal (80 column) mode
+#      ^^F\^           - horizontal scrolling enabled (for alignment)
+#      ^^FX004?        - margins at columns 0 and 79
+#      ^^F]            - horizontal scrolling disabled
+#      ^^O             - primary character set
+#      ^^FS00          - default character set (the keyboard native language)
+#      - (should reset scrolling regions, but that glitches the screen)
+# Reset string 1 sets:
+#      ^^FA            - all terminal defaults except scroll rate
+# Reset string 2 sets:
+#      ^^F]            - horizontal scrolling disabled
+#      ^^FT0           - jump scrolling
+#
+d400|d400-dg|d450|d450-dg|Data General DASHER D400/D450 series, 
+       mc5i, 
+       acsc=j$k"l!m#n)q+t'u&v(w%x*, civis=\036FQ0, 
+       cnorm=\036FQ2, dch1=^^K, dl1=^^FI, 
+       enacs=\036N\036FS11\036O, home=^^FG, hpa=\020%p1%c\177, 
+       ich1=^^J, il1=^^FH, 
+       is2=\036FQ2\036FW\036FJ\036F\^\036FX004?\036F]\036O\036FS00, 
+       ll=\036FG\027, mc4=^^Fa, mc5=^^F`, ri=^^I, rmacs=^^O, 
+       rs1=^^FA, rs2=\036F]\036FT0, 
+       sgr=\036%?%p1%p3%|%p6%|%tD%eE%;%?%p2%p6%|%t\024%e\025%;%?%p4%t\016%e\017%;%?%p1%p5%|%t\034%e\035%;\036%?%p9%tN%eO%;, 
+       sgr0=\017\025\035\036E\036O, smacs=^^N, 
+       vpa=\020\177%p1%c, use=d210-dg, 
+
+# DASHER D410/D460 series terminals in ANSI mode.
+# These add a large number of intelligent terminal features.
+#
+# Initialization string 1 sets:
+#      \E[<0;<1;<2;<4l
+#              <0      - scrolling enabled
+#              <1      - blink enabled
+#              <2      - horizontal scrolling enabled (for alignment)
+#              <4      - print characters regardless of attributes
+#      \E[5;0v         - normal (80 column) mode
+#      \E[1;1;80w      - margins at columns 1 and 80
+#      \E[1;6;<2h
+#              1       - print all characters even if protected
+#              6       - character protection disabled
+#              <2      - horizontal scrolling disabled
+#      - (should reset scrolling regions, but that glitches the screen)
+#
+# Initialization string 2 sets:
+#      \E[3;2;2;1;1;1v
+#              3;2     - default cursor (solid rectangle)
+#              2;1     - 8 bit operations
+#              1;1     - international keyboard language
+#      \E(B            - default primary character set (U.S. ASCII)
+#      \E)4            - default secondary character set (international)
+#      ^O              - primary character set
+#
+#      Reset string 1 sets:
+#      \Ec             - initial mode defaults (RIS)
+#      \E[<2h          - horizontal scrolling disabled
+#
+# Reset string 2 sets:
+#      \E[4;0;2;1;1;1v
+#              4;0     - jump scrolling
+#              2;1     - 8 bit operations
+#              1;1     - 8 bit (international) keyboard language
+#      \E(B            - default primary character set (U.S. ASCII)
+#      \E)4            - default secondary character set (international)
+#
+d410|d411|d460|d461|Data General DASHER D410/D460 series, 
+       mc5i, 
+       acsc=j$k"l!m#n)q+t'u&v(w%x*, civis=\E[3;0v, 
+       cnorm=\E[3;2v, dch=\E[%p1%dP, dch1=\E[P, dl=\E[%p1%dM, 
+       dl1=\E[M, ich=\E[%p1%d@, ich1=\E[@, il=\E[%p1%dL, il1=\E[L, 
+       is1=\E[<0;<1;<2;<4l\E[5;0v\E[1;1;80w\E[1;6;<2h, 
+       is2=\E[3;2;2;1;1;1v\E(B\E)4\017, mc4=\E[4i, mc5=\E[5i, 
+       ri=\EM, rmacs=\E)4\017, rs1=\Ec\E[<2h, 
+       rs2=\E[4;0;2;1;1;1v\E(B\E)4, 
+       sgr=\E[%?%p1%p3%|%p6%|%t7;%;%?%p4%t5;%;%?%p2%p6%|%t4;%;%?%p1%p5%|%t2;%;m\E)%?%p9%t6\016%e4\017%;, 
+       sgr0=\E[m\E)4\017, smacs=\E)6\016, 
+       use=d211, 
+
+# Initialization string 2 sets:
+#      \E[3;2;2;0;1;0v
+#              3;2     - default cursor (solid rectangle)
+#              2;0     - 7 bit operations
+#              1;0     - 7 bit (native) keyboard language
+#      \E(0            - default character set (the keyboard native language)
+#      ^O              - primary character set
+#
+# Reset string 2 sets:
+#      \E[4;0;2;0;1;0v
+#              4;0     - jump scrolling
+#              2;0     - 7 bit operations
+#              1;0     - 7 bit (native) keyboard language
+#      \E(0            - default character set (the keyboard native language)
+#
+d410-7b|d411-7b|d460-7b|d461-7b|Data General DASHER D410/D460 series in 7 bit mode, 
+       km@, 
+       enacs=\E)6, is2=\E[3;2;2;0;1;0v\E(0\017, rmacs=^O, 
+       rs2=\E[4;0;2;0;1;0v\E(0, 
+       sgr=\E[%?%p1%p3%|%p6%|%t7;%;%?%p4%t5;%;%?%p2%p6%|%t4;%;%?%p1%p5%|%t2;%;m%?%p9%t\016%e\017%;, 
+       sgr0=\E[m\017, smacs=^N, 
+       use=dgkeys+7b, use=d410, 
+
+d410-dg|d460-dg|d411-dg|d461-dg|Data General DASHER D410/D460 series in DG mode, 
+       km, 
+       enacs@, rmacs=\036FS00, 
+       sgr=\036%?%p1%p3%|%p6%|%tD%eE%;%?%p2%p6%|%t\024%e\025%;%?%p4%t\016%e\017%;%?%p1%p5%|%t\034%e\035%;\036FS%?%p9%t11%e00%;, 
+       sgr0=\017\025\035\036E\036FS00, smacs=\036FS11, 
+       use=d400-dg, 
+
+# DASHER D410/D460 series terminals in wide (126 columns) ANSI mode.
+#
+# Initialization string 1 sets:
+#      \E[<0;<1;<2;<4l
+#              <0      - scrolling enabled
+#              <1      - blink enabled
+#              <2      - horizontal scrolling enabled (for alignment)
+#              <4      - print characters regardless of attributes
+#      \E[5;1v         - compressed (135 column) mode
+#      \E[1;1;126      - margins at columns 1 and 126
+#      \E[1;6;<2h
+#              1       - print all characters even if protected
+#              6       - character protection disabled
+#              <2      - horizontal scrolling disabled
+#      - (should reset scrolling regions, but that glitches the screen)
+#
+# Reset string 1 sets:
+#      \Ec             - initial mode defaults (RIS)
+#      \E[5;1v         - compressed (135 column) mode
+#      \E[1;1;126w     - margins at columns 1 and 126
+#      \E[<2h          - horizontal scrolling disabled
+#
+d410-w|d411-w|d460-w|d461-w|Data General DASHER D410/D460 series in wide mode, 
+       cols#126, 
+       is1=\E[<0;<1;<2;<4l\E[5;1v\E[1;1;126w\E[1;6;<2h, 
+       rs1=\Ec\E[5;1v\E[1;1;126w\E[<2h, 
+       use=d410, 
+
+d410-7b-w|d411-7b-w|d460-7b-w|d461-7b-w|Data General DASHER D410/D460 series in wide 7 bit mode, 
+       cols#126, 
+       is1=\E[<0;<1;<2;<4l\E[5;1v\E[1;1;126w\E[1;6;<2h, 
+       rs1=\Ec\E[5;1v\E[1;1;126w\E[<2h, 
+       use=d410-7b, 
+
+d412-dg|d462-dg|d462e-dg|d412+dg|d462+dg|d413-dg|d463-dg|Data General DASHER D412/D462 series in DG mode, 
+       use=d410-dg, 
+
+# These add intelligent features like scrolling regions.
+d412-unix|d462-unix|d412+|d462+|Data General DASHER D412+/D462+ series in Unix mode, 
+       civis=\036FQ0, clear=^^FE, cnorm=\036FQ5, 
+       cup=\036FP%p2%2.2X%p1%2.2X, dch1=^^K, dl1=^^FI, 
+       home=^^FG, hpa=\036FP%p1%2.2XFF, ich1=^^J, il1=^^FH, 
+       is2=\036FQ5\036FW\036FJ\036F\^\036FX004F\036O\036FS00, 
+       ll=\036FG\036PA, mc0=^A, rc=\036F}11, ri=^^I, 
+       rs1=\036FA\036FT0, rs2=\036P@1, sc=\036F}10, 
+       vpa=\036FPFF%p1%2.2X, 
+       wind=\036FB%?%p1%t%p1%2.2X0%;%p2%p1%-%{1}%+%2.2X0%?%{23}%p2%>%t000%;\036FX%p3%2.2X%p4%2.2X, use=d216+, 
+d412-unix-w|d462-unix-w|d412+w|d462+w|Data General DASHER D412+/D462+ series in wide Unix mode, 
+       cols#132, 
+       is2=\036FQ5\036FW\036FK\036F\^\036FX0083\036O\036FS00, 
+       rs2=\036P@1\036FK\036FX0083, 
+       wind=\036FB%?%p1%t%p1%2.2X1%;%p2%p1%-%{1}%+%2.2X1%?%{23}%p2%>%t001%;\036FX%p3%2.2X%p4%2.2X, use=d412-unix, 
+d412-unix-25|d462-unix-25|d412+25|d462+25|Data General DASHER D412+/D462+ series in Unix mode with 25 lines, 
+       lines#25, 
+       is3=\036Fz2, 
+       wind=\036FB%?%p1%t%p1%2.2X0%;%p2%p1%-%{1}%+%2.2X0%?%{24}%p2%>%t000%;\036FX%p3%2.2X%p4%2.2X, use=d462+, 
+d412-unix-s|d462-unix-s|d412+s|d462+s|Data General DASHER D412+/D462+ in Unix mode with status line, 
+       eslok, hs, 
+       clear=\036FG\036PH, fsl=\036F}01\022, 
+       is3=\036Fz2\036F}00\036FB180000\036F}01, ll@, 
+       tsl=\036F}00\036FP%p1%2.2X18\036PG, 
+       wind=\036FB%?%p1%t%p1%2.2X0%;%p2%p1%-%{1}%+%2.2X0%?%{23}%p2%>%t%{23}%p2%-%2.2X0%;000\036FX%p3%2.2X%p4%2.2X, use=d462+, 
+
+#      Relative cursor motions are confined to the current window,
+#      which is not what the scrolling region specification expects.
+#      Thus, relative vertical cursor positioning must be deleted.
+d412-unix-sr|d462-unix-sr|d412+sr|d462+sr|Data General DASHER D412+/D462+ in Unix mode with scrolling region, 
+       csr=\036FB%?%p1%t%p1%2.2X0%;%p2%p1%-%{1}%+%2.2X0%?%{23}%p2%>%t000%;, 
+       cud1@, cuu1@, ll@, 
+       use=d462+, 
+
+d413-unix|d463-unix|Data General DASHER D413/D463 series in DG-UNIX mode, 
+       use=d412-unix, 
+d413-unix-w|d463-unix-w|Data General DASHER D413/D463 series in wide DG-UNIX mode, 
+       use=d412-unix-w, 
+d413-unix-25|d463-unix-25|Data General DASHER D413/D463 series in DG-UNIX mode with 25 lines, 
+       use=d412-unix-25, 
+d413-unix-s|d463-unix-s|Data General DASHER D413/D463 in DG-UNIX mode with status line, 
+       use=d412-unix-s, 
+d413-unix-sr|d463-unix-sr|Data General DASHER D413/D463 in DG-UNIX mode with scrolling region, 
+       use=d412-unix-sr, 
+
+d414-unix|d464-unix|Data General D414/D464 in DG-UNIX mode, 
+       use=d413-unix, 
+d414-unix-w|d464-unix-w|Data General D414/D464 in wide DG-UNIX mode, 
+       use=d413-unix-w, 
+d414-unix-25|d464-unix-25|Data General D414/D464 in DG-UNIX mode with 25 lines, 
+       use=d413-unix-25, 
+d414-unix-s|d464-unix-s|Data General D414/D464 in DG-UNIX mode with status line, 
+       use=d413-unix-s, 
+d414-unix-sr|d464-unix-sr|Data General D414/D464 in DG-UNIX mode with scrolling region, 
+       use=d413-unix-sr, 
+
+d430c-dg|d430-dg|Data General D430C in DG mode, 
+       use=d413-dg, use=dg+fixed, 
+d430c-dg-ccc|d430-dg-ccc|Data General D430C in DG mode with configurable colors, 
+       use=d413-dg, use=dg+ccc, 
+
+d430c-unix|d430-unix|Data General D430C in DG-UNIX mode, 
+       use=d413-unix, use=dgunix+fixed, 
+d430c-unix-w|d430-unix-w|Data General D430C in wide DG-UNIX mode, 
+       use=d413-unix-w, use=dgunix+fixed, 
+d430c-unix-25|d430-unix-25|Data General D430C in DG-UNIX mode with 25 lines, 
+       use=d413-unix-25, use=dgunix+fixed, 
+d430c-unix-s|d430-unix-s|Data General D430C in DG-UNIX mode with status line, 
+       use=d413-unix-s, use=dgunix+fixed, 
+d430c-unix-sr|d430-unix-sr|Data General D430C in DG-UNIX mode with scrolling region, 
+       use=d413-unix-sr, use=dgunix+fixed, 
+d430c-unix-ccc|d430-unix-ccc|Data General D430C in DG-UNIX mode with configurable colors, 
+       use=d413-unix, use=dgunix+ccc, 
+d430c-unix-w-ccc|d430-unix-w-ccc|Data General D430C in wide DG-UNIX mode with configurable colors, 
+       use=d413-unix-w, use=dgunix+ccc, 
+d430c-unix-25-ccc|d430-unix-25-ccc|Data General D430C in DG-UNIX mode with 25 lines and configurable colors, 
+       use=d413-unix-25, use=dgunix+ccc, 
+d430c-unix-s-ccc|d430-unix-s-ccc|Data General D430C in DG-UNIX mode with status line and configurable colors, 
+       use=d413-unix-s, use=dgunix+ccc, 
+d430c-unix-sr-ccc|d430-unix-sr-ccc|Data General D430C in DG-UNIX mode with scrolling region and configurable colors, 
+       use=d413-unix-sr, use=dgunix+ccc, 
+
+# DASHER D470C color terminal in ANSI mode.
+# Like the D460 but with 16 colors and without a compressed mode.
+#
+# Initialization string 1 sets:
+#      \E[<0;<1;<2;<4l
+#              <0      - scrolling enabled
+#              <1      - blink enabled
+#              <2      - horizontal scrolling enabled (for alignment)
+#              <4      - print characters regardless of attributes
+#      \E[1;1;80w      - margins at columns 1 and 80
+#      \E[1;6;<2h
+#              1       - print all characters even if protected
+#              6       - character protection disabled
+#              <2      - horizontal scrolling disabled
+#      - (should reset scrolling regions, but that glitches the screen)
+#
+d470c|d470|Data General DASHER D470C, 
+       is1=\E[<0;<1;<2;<4l\E[1;1;80w\E[1;6;<2h, 
+       sgr=\E[%?%p1%p3%|%p6%|%t7;%{1}%e%{0}%;%PR%?%p4%t5;%{1}%e%{0}%;%PB%?%p2%p6%|%t4;%{1}%e%{0}%;%PU%?%p1%p5%|%t2;%{1}%e%{0}%;%PDm\E)%?%p9%t6\016%e4\017%;, 
+       use=dg+color, use=d460, 
+
+d470c-7b|d470-7b|Data General DASHER D470C in 7 bit mode, 
+       is1=\E[<0;<1;<2;<4l\E[1;1;80w\E[1;6;<2h, 
+       sgr=\E[%?%p1%p3%|%p6%|%t7;%{1}%e%{0}%;%PR%?%p4%t5;%{1}%e%{0}%;%PB%?%p2%p6%|%t4;%{1}%e%{0}%;%PU%?%p1%p5%|%t2;%{1}%e%{0}%;%PDm%?%p9%t\016%e\017%;, 
+       use=dg+color, use=d460-7b, 
+
+# Initialization string 2 sets:
+#      ^^FQ2           - default cursor (solid rectangle)
+#      ^^FW            - character protection disabled
+#      ^^F\^           - horizontal scrolling enabled (for alignment)
+#      ^^FX004?        - margins at columns 0 and 79
+#      ^^F]            - horizontal scrolling disabled
+#      ^^O             - primary character set
+#      ^^FS00          - default character set (the keyboard native language)
+#      - (should reset scrolling regions, but that glitches the screen)
+#
+d470c-dg|d470-dg|Data General DASHER D470C in DG mode, 
+       is2=\036FQ2\036FW\036F\^\036FX004?\036F]\036O\036FS00, 
+       use=dgmode+color, use=d460-dg, 
+
+# DASHER D555 terminal in ANSI mode.
+# Like a D411, but has an integrated phone.
+d555|Data General DASHER D555, 
+       use=d411, 
+d555-7b|Data General DASHER D555 in 7-bit mode, 
+       use=d411-7b, 
+d555-w|Data General DASHER D555 in wide mode, 
+       use=d411-w, 
+d555-7b-w|Data General DASHER D555 in wide 7-bit mode, 
+       use=d411-7b-w, 
+d555-dg|Data General DASHER D555 series in DG mode, 
+       use=d411-dg, 
+
+# DASHER D577 terminal in ANSI mode.
+# Like a D411, but acts as a keyboard for serial printers ("KSR" modes).
+d577|Data General DASHER D577, 
+       use=d411, 
+d577-7b|Data General DASHER D577 in 7-bit mode, 
+       use=d411-7b, 
+d577-w|Data General DASHER D577 in wide mode, 
+       use=d411-w, 
+d577-7b-w|Data General DASHER D577 in wide 7-bit mode, 
+       use=d411-7b-w, 
+
+d577-dg|d578-dg|Data General DASHER D577/D578 series in DG mode, 
+       use=d411-dg, 
+
+# DASHER D578 terminal.
+# Like a D577, but without compressed mode; like a D470C in this respect.
+#
+# Initialization string 1 sets:
+#      \E[<0;<1;<2;<4l
+#              <0      - scrolling enabled
+#              <1      - blink enabled
+#              <2      - horizontal scrolling enabled (for alignment)
+#              <4      - print characters regardless of attributes
+#      \E[1;1;80w      - margins at columns 1 and 80
+#      \E[1;6;<2h
+#              1       - print all characters even if protected
+#              6       - character protection disabled
+#              <2      - horizontal scrolling disabled
+#      - (should reset scrolling regions, but that glitches the screen)
+#
+d578|Data General DASHER D578, 
+       is1=\E[<0;<1;<2;<4l\E[1;1;80w\E[1;6;<2h, use=d577, 
+d578-7b|Data General DASHER D578 in 7-bit mode, 
+       is1=\E[<0;<1;<2;<4l\E[1;1;80w\E[1;6;<2h, 
+       use=d577-7b, 
 
 #### Datamedia (dm)
 #
@@ -8016,7 +10272,7 @@ dg6053|dg100|data general 6053,
 # only company and no longer make terminals.  However, the operator there
 # told me that she had once spoken to a customer looking for Datamedia
 # terminals who'd mentioned a Datamedia in New Jersey.  This is backed up
-# by comp.terminals poosting describing the ID plate on the back of a
+# by comp.terminals posting describing the ID plate on the back of a
 # "Datamedia 3000" terminal.  Was this an earlier incarnation of Axent?
 # Inquiring minds want to know...
 #
@@ -8041,6 +10297,8 @@ dm1520|dm1521|datamedia 1520,
        cup=\036%p2%{32}%+%c%p1%{32}%+%c, cuu1=^_, ed=^K, el=^], 
        home=^Y, ht=^I, ind=^J, kcub1=^H, kcud1=^J, kcuf1=^\, kcuu1=^_, 
        khome=^Y, 
+# dm2500: this terminal has both <ich> and <smir>. Applications using 
+# termcap/terminfo directly (rather than through ncurses) might be confused.
 dm2500|datamedia2500|datamedia 2500, 
        cols#80, lines#24, 
        bel=^G, clear=^^^^\177, cub1=^H, cud1=^J, cuf1=^\, 
@@ -8128,9 +10386,9 @@ dt80-sas|Datamedia DT803/DTX for SAS usage,
        cols#80, lines#24, 
        acsc=``a1fxgqh0jYk?lZm@nEooppqDrrsstCu4vAwBx3yyzz{{||}}~~, 
        bel=^G, clear=^L, cr=^M, 
-       csr=\E=%p1%' '%+%c%' '%c\E#1\E=%p2%' '%+%c%' '%c\E#2, 
+       csr=\E=%p1%{32}%+%c%{32}%c\E#1\E=%p2%{32}%+%c%{32}%c\E#2, 
        cub1=^H, cud1=\EB, cuf1=^\, 
-       cup=\E=%p2%' '%+%c%p1%' '%+%c, cuu1=^_, dl1=\EM, ed=^K, 
+       cup=\E=%p2%{32}%+%c%p1%{32}%+%c, cuu1=^_, dl1=\EM, ed=^K, 
        el=^], ff=^L, home=^Y, ht=^I, hts=\E'1, il1=\EL, ind=\EB, 
        is2=\E)0\E<\EP\E'0\E$2, kclr=^L, kcub1=^H, kcud1=^J, 
        kcuf1=^\, kcuu1=^_, ked=^K, kel=^], khome=^Y, mc4=^O, mc5=^N, 
@@ -8493,10 +10751,10 @@ superbee-xsb|beehive super bee,
        cuf1=\EC, cup=\EF%p2%3d%p1%3d, cuu1=\EA$<3>, 
        dch1=\EP$<3>, dl1=\EM$<100>, ed=\EJ$<3>, el=\EK$<3>, 
        home=\EH, ht=^I, hts=\E1, 
-       ind=\n\200\200\200\n\200\200\200\EA\EK\200\200\200\ET\ET
-       is2=\EH\EJ, kcub1=\ED, kcud1=\EB, kcuf1=\EC, kcuu1=\EA
-       kf1=\Ep, kf2=\Eq, kf3=\Er, kf4=\Es, kf5=\Et, kf6=\Eu, kf7=\Ev
-       kf8=\Ew, khome=\EH, rmso=\E_3, sgr0=\E_3, smso=\E_1, tbc=\E3, 
+       ind=\n\0\0\0\n\0\0\0\EA\EK\0\0\0\ET\ET, is2=\EH\EJ
+       kcub1=\ED, kcud1=\EB, kcuf1=\EC, kcuu1=\EA, kf1=\Ep, kf2=\Eq
+       kf3=\Er, kf4=\Es, kf5=\Et, kf6=\Eu, kf7=\Ev, kf8=\Ew
+       khome=\EH, rmso=\E_3, sgr0=\E_3, smso=\E_1, tbc=\E3, 
 # This loses on lines > 80 chars long, use at your own risk
 superbeeic|super bee with insert char, 
        ich1=, rmir=\ER, smir=\EQ, use=superbee-xsb, 
@@ -8563,9 +10821,10 @@ ha8686|harris 8686,
 
 #### Hazeltine
 #
-# Hazeltine appears to be out of the business now (1995).  These guys were 
-# co-owners of the Terminal Brain Damage Hall Of Fame along with Harris.
-# They have a hazeltine.com domain and can be reached at:
+# Hazeltine appears to be out of the terminal business as of 1995.  These
+# guys were co-owners of the Terminal Brain Damage Hall Of Fame along with
+# Harris. They have a hazeltine.com domain (but no web page there ) and can
+# be reached at:
 #
 #      Hazeltine
 #      450 East Pulaski Road
@@ -8579,6 +10838,10 @@ ha8686|harris 8686,
 #      P.O. Box 2076
 #      Fairfield, NJ 07007-2078
 #
+# They're now (1998) a subsidiary of General Electric, operating under the
+# marque "GEC-Marconi Hazeltine" and doing military avionics.  Web page
+# at <http://www.gec.com/cpd/1ncpd.htm#1.55>.
+#
 
 # Since <cuf1> is blank, when you want to erase something you
 # are out of luck.  You will have to do ^L's a lot to
@@ -8604,7 +10867,7 @@ hz1500|hazeltine 1500,
        am, hz, 
        cols#80, lines#24, 
        bel=^G, clear=~^\, cr=^M, cub1=^H, cud1=~^K, cuf1=^P, 
-       cup=~\021%p2%p2%?%{30}%>%t%{32}%+%;%'`'%+%c%p1%'`'%+%c, 
+       cup=~\021%p2%p2%?%{30}%>%t%{32}%+%;%{96}%+%c%p1%{96}%+%c, 
        cuu1=~^L, dl1=~\023$<40>, ed=~\030$<10>, el=~^O, home=~^R, 
        il1=~\032$<40>, ind=^J, kcub1=^H, kcud1=^J, kcuf1=^P, 
        kcuu1=~^L, khome=~^R, rmso=~^Y, smso=~^_, 
@@ -8717,60 +10980,86 @@ ibm327x|line mode IBM 3270 style,
        gn, 
        clear=^M^J, el=^M, home=^M, 
 
-# Beware! The 3101 entry IBM shipped with AIX 3 is *wrong*.  Losers...
-# From: J.B. Nicholson-Owens <jeffo@uiuc.edu> 8 Mar 94
-# (ibm3101: <if=/usr/share/tabset/ibm3101> removed, no such file -- esr)
 ibm3101|i3101|IBM 3101-10, 
        am, xon, 
        cols#80, lines#24, 
        bel=^G, clear=\EK, cr=^M, cub1=^H, cud1=^J, cuf1=\EC, 
        cup=\EY%p1%{32}%+%c%p2%{32}%+%c, cuu1=\EA, ed=\EJ, 
-       el=\EI, home=\EH, ht=^I, hts=\E0, ind=^J, kbs=^H, kcub1=\ED, 
-       kcud1=\EB, kcuf1=\EC, kcuu1=\EA, nel=^M^J, tbc=\E1, 
-#   Received from the IBM terminals division (given to DRB)
-#   June 1988 for PS/2 OS 2.2.3 cut
-ibm3151|i3151|IBM 3151, 
-       rmso=\E4@, rmul=\E4@, 
-       sgr=\E4%{64}%?%p1%{0}%>%p1%{4}%<%&%t%{8}%|%;%?%p1%{7}%=%t%{16}%|%;%?%p2%t%{1}%|%;%?%p3%t%{4}%|%;%?%p4%t%{2}%|%;%c, 
-       sgr0=\E4@, smso=\E4A, smul=\E4B, 
-       use=ibm3163, 
+       el=\EI, home=\EH, hts=\E0, ind=^J, kcub1=\ED, kcud1=\EB, 
+       kcuf1=\EC, kcuu1=\EA, nel=^M^J, tbc=\EH, 
+ibm3151|IBM 3151 display, 
+       is2=\E S, rmacs=\E>B, rmcup=\E>B, rs2=\E S, s0ds=\E>B, 
+       sgr=\E4%{64}%?%p1%t%{65}%|%;%?%p2%t%{66}%|%;%?%p3%t%{65}%|%;%?%p4%t%{68}%|%;%?%p5%t%{64}%|%;%?%p6%t%{72}%|%;%?%p7%t%{80}%|%;%c%?%p9%t\E>A%e\E>B%;, 
+       sgr0=\E4@\E>B, smacs=\E>A, smcup=\E>B, 
+       use=ibm3162, 
 # From: Mark Easter <marke@fsi-ssd.csg.ssd.fsi.com> 29 Oct 1992 
 # I've commented out or translated some IBM extensions.
 ibm3161|ibm3163|wy60-316X|wyse60-316X|IBM 3161/3163 display, 
        am, mir, msgr, 
        cols#80, it#8, lines#24, 
-       acsc=l\354q\361k\353x\370j\352m\355w\367u\365v\366t\364n\356
+       acsc=j\352k\353l\354m\355n\356q\361t\364u\365v\366w\367x\370
        bel=^G, blink=\E4D, bold=\E4H, clear=\EH\EJ, cr=^M, cub1=\ED, 
        cud1=\EB, cuf1=\EC, cup=\EY%p1%{32}%+%c%p2%{32}%+%c, 
        cuu1=\EA, dch1=\EQ, dl1=\EO, ed=\EJ, el=\EI, home=\EH, ind=^J, 
        invis=\E4P, kbs=^H, kcbt=\E2, kclr=\EL\r, kctab=\E1, 
        kcub1=\ED, kcud1=\EB, kcuf1=\EC, kcuu1=\EA, kdch1=\EQ, 
-       kdl1=\EO, ked=\EJ, kel=\EI, kf1=\Ea\r, kf10=\Ej\r, 
+       kdl1=\EO, ked=\EJ, kel=\EI, kend=\E2, kf1=\Ea\r, kf10=\Ej\r, 
        kf11=\Ek\r, kf12=\El\r, kf13=\E!a\r, kf14=\E!b\r, 
        kf15=\E!c\r, kf16=\E!d\r, kf17=\E!e\r, kf18=\E!f\r, 
        kf19=\E!g\r, kf2=\Eb\r, kf20=\E!h\r, kf21=\E!i\r, 
        kf22=\E!j\r, kf23=\E!k\r, kf24=\E!l\r, kf3=\Ec\r, 
        kf4=\Ed\r, kf5=\Ee\r, kf6=\Ef\r, kf7=\Eg\r, kf8=\Eh\r, 
        kf9=\Ei\r, khome=\EH, khts=\E0, kich1=\EP \010, kil1=\EN, 
-       ktbc=\E 1, rev=\E4A, rmcup=\E>A, rmso=\E4@, rmul=\E4@, 
-       sgr=\E4%'@'%?%p1%t%'A'%|%;\n%?%p2%t%'B'%|%;\n%?%p3%t%'A'%|%;\n%?%p4%t%'D'%|%;\n%?%p5%t%'@'%|%;\n%?%p6%t%'H'%|%;\n%?%p7%t%'P'%|%;%c\n%?%p9%t\E>A%e\E<@%;, 
+       knp=\EI, kpp=\EL, ktbc=\E 1, mc4=^P^T, mc5=^P^R, rev=\E4A, 
+       rmcup=\E>A, rmso=\E4@, rmul=\E4@, 
+       sgr=\E4%{64}%?%p1%t%{65}%|%;%?%p2%t%{66}%|%;%?%p3%t%{65}%|%;%?%p4%t%{68}%|%;%?%p5%t%{64}%|%;%?%p6%t%{72}%|%;%?%p7%t%{80}%|%;%c%?%p9%t\E>A%e\E<@%;, 
        sgr0=\E4@\E<@, smcup=\E>A, smso=\E4A, smul=\E4B, 
 
-# How the 3164 sgr string works:
-#      %{32}           # push space for no special video characteristics
-#      %?%p2%t%{1}%|%; # if p2 set, then OR the 1 bit for reverse
-#      %?%p3%t%{4}%|%; # if p3 set, then OR the 4 bit for blink
-#      %?%p4%t%{2}%|%; # if p4 set, then OR the 2 bit for underline
-#      %c              # pop Pa1
-#      %{39}%p1%-      # calculate 32 + (7 - p1) for foreground
-#      %c              # pop Pa2 
-#      %{64}           # use only black background for now
-#      %c              # pop Pa3
+ibm3161-C|IBM 3161-C NLS terminal using cartridge, 
+       rmcup=\E>B, s0ds=\E>B, s1ds=\E>A, smcup=\E>B, 
+       use=ibm3161, 
+ibm3162|IBM 3162 display, 
+       blink=\E4$a, bold=\E4(a, il1=\EN, invis=\E40a, rev=\E4!a, 
+       rmso=\E4>b, rmul=\E4=b, sgr0=\E4@, smso=\E4!a, smul=\E4"a, 
+       use=ibm3161-C, 
+
 ibm3164|i3164|IBM 3164, 
-       blink=\E4D, bold=\E4H, 
-       sgr=\E4%{32}%?%p2%t%{1}%|%;%?%p3%t%{4}%|%;%?%p4%t%{2}%|%;%c%{39}%p1%-%c%{64}%c, 
-       sgr0=\E4@, 
-       use=ibm3163, 
+       msgr, 
+       colors#8, pairs#64, 
+       rmcup=\E!9(N\E>B, s0ds=\E>B, s1ds=\E>A, 
+       setb=\E4  %p1%{64}%+%c, 
+       setf=\E4%?%p1%t %p1%{32}%+%c%e!'%;@, 
+       smcup=\E!9/N\E>B, use=ibm3161, 
+
+ibm5151|wy60-AT|wyse60-AT|IBM 5151 Monochrome display, 
+       am, bw, msgr, xon, 
+       cols#80, it#8, lines#25, 
+       acsc=j\331k\277l\332m\300n\305q\304t\303u\264v\301w\302x\263, 
+       bel=^G, blink=\E[5m, bold=\E[1m, clear=\E[H\E[2J, cr=^M, 
+       cub=\E[%p1%dD, cub1=^H, cud=\E[%p1%dB, cud1=^J, 
+       cuf=\E[%p1%dC, cuf1=\E[C, cup=\E[%i%p1%d;%p2%dH, 
+       cuu=\E[%p1%dA, cuu1=\E[A, dch1=\E[P, dl=\E[%p1%dM, 
+       dl1=\E[M, ech=\E[%p1%dX, ed=\E[J, el=\E[K, home=\E[H, 
+       hpa=\E[%i%p1%dG, il=\E[%p1%dL, il1=\E[L, ind=\E[S, 
+       indn=\E[%p1%dS, invis=\E[8m, is2=\Ec, kbs=^H, kcbt=\E[Z, 
+       kclr=\E[144q, kcub1=\E[D, kcud1=\E[B, kcuf1=\E[C, 
+       kcuu1=\E[A, kdch1=\E[P, ked=\E[148q, kel=\E[142q, 
+       kend=\E[146q, kf0=\E[010q, kf1=\E[001q, kf10=\E[010q, 
+       kf11=\E[011q, kf12=\E[012q, kf13=\E[013q, kf14=\E[014q, 
+       kf15=\E[015q, kf16=\E[016q, kf17=\E[017q, kf18=\E[018q, 
+       kf19=\E[019q, kf2=\E[002q, kf20=\E[020q, kf21=\E[021q, 
+       kf22=\E[022q, kf23=\E[023q, kf24=\E[024q, kf25=\E[025q, 
+       kf26=\E[026q, kf27=\E[027q, kf28=\E[028q, kf29=\E[029q, 
+       kf3=\E[003q, kf30=\E[030q, kf31=\E[031q, kf32=\E[032q, 
+       kf33=\E[033q, kf34=\E[034q, kf35=\E[035q, kf36=\E[036q, 
+       kf4=\E[004q, kf5=\E[005q, kf6=\E[006q, kf7=\E[007q, 
+       kf8=\E[008q, kf9=\E[009q, khome=\E[H, kich1=\E[139q, 
+       kil1=\E[140q, kind=\E[151q, knp=\E[154q, kpp=\E[150q, 
+       kri=\E[155q, krmir=\E[4l, rc=\E[u, rev=\E[7m, ri=\E[T, 
+       rin=\E[%p1%dT, rmir=\E[4l, rmso=\E[m, rmul=\E[m, rs2=\Ec, 
+       sc=\E[s, 
+       sgr=\E[%?%p1%t;7%;%?%p2%t;4%;%?%p3%t;7%;%?%p4%t;5%;%?%p6%t;1%;%?%p7%t;8%;m, 
+       sgr0=\E[0m, smir=\E[4h, smso=\E[7m, smul=\E[4m, 
 
 ibmaed|IBM Experimental display, 
        am, eo, msgr, 
@@ -8784,20 +11073,24 @@ ibm-apl|apl|IBM apl terminal simulator,
        lines#25, use=dm1520, 
 # (ibmmono: this had an unknown `sb' boolean, I changed it to `bs'.  
 # Also it had ":I0=f10:" which pretty obviously should be "l0=f10" -- esr)
-ibmmono|ibm5151|IBM workstation monochrome, 
+ibmmono|IBM workstation monochrome, 
        eslok, hs, 
        bold=\EZ, dl1=\EM, dsl=\Ej\EY8 \EI\Ek, fsl=\Ek, il1=\EL, 
        invis=\EF\Ef0;\Eb0;, kbs=^H, kf0=\E<, kf1=\ES, kf2=\ET, 
        kf3=\EU, kf4=\EV, kf5=\EW, kf6=\EP, kf7=\EQ, kf8=\ER, kf9=\EY, 
-       khome=\EH, kich1=\200, kind=\EE, knp=\EE, kpp=\Eg, kri=\EG, 
+       khome=\EH, kich1=\0, kind=\EE, knp=\EE, kpp=\Eg, kri=\EG, 
        lf0=f10, rev=\Ep, ri=\EA, rmso=\Ez, rmul=\Ew, 
        sgr0=\Ew\Eq\Ez\EB, smso=\EZ, smul=\EW, tsl=\Ej\EY8%+ \Eo, use=ibm3101, 
-ibmega|ibm5154|IBM Enhanced Color Display, 
+ibmega|IBM Enhanced Color Display, 
        cr=^M, cud1=^J, ht=^I, ind=^J, kbs=^H, kcub1=^H, kcud1=^J, 
        nel=^M^J, 
        use=ibmmono, 
-ibmega-c|ibm5154-c|IBM Enhanced Color Display, 
-       rmso=\EB, rmul=\EB, smso=\EF\Ef3;, smul=\EF\Ef2;, use=ibmmono, 
+ibm5154|IBM 5154 Color display, 
+       colors#8, pairs#64, 
+       bold@, setab=\E[4%p1%dm, setaf=\E[3%p1%dm, use=ibm5151, 
+ibmega-c|ibm5154-c|IBM Enhanced Color Display with standout and underline, 
+       rmso=\EB, rmul=\EB, smso=\EF\Ef3;, smul=\EF\Ef2;, 
+       use=ibmmono, 
 ibmvga-c|IBM VGA display color termcap, 
        cr=^M, cud1=^J, ht=^I, ind=^J, kbs=^H, kcub1=^H, kcud1=^J, 
        nel=^M^J, 
@@ -8807,76 +11100,78 @@ ibmvga|IBM VGA display,
        nel=^M^J, 
        use=ibmega, 
 # ibmapa* and ibmmono entries come from ACIS 4.3 distribution
-rtpc|ibmapa16|ibm6155|IBM 6155 Extended Monochrome Graphics Display, 
+rtpc|ibmapa16|IBM 6155 Extended Monochrome Graphics Display, 
        lines#32, 
        dsl=\Ej\EY@ \EI\Ek, tsl=\Ej\EY@%+ \Eo, use=ibmmono, 
+ibm6155|IBM 6155 Black & White display, 
+       blink@, bold@, use=ibm5151, 
 # Advanced Monochrome (6153) and Color (6154) Graphics Display:
-ibmapa8c|ibmapa8|ibm6154|ibm6153|IBM 6153/4 Advanced Graphics Display, 
+ibmapa8c|ibmapa8|IBM 6154 Advanced Graphics Display, 
        lines#31, 
        dsl=\Ej\EY? \EI\Ek, tsl=\Ej\EY?%+ \Eo, use=ibmmono, 
 ibmapa8c-c|ibm6154-c|IBM 6154 Advanced Color Graphics Display, 
        lines#31, 
        dim=\EF\Ef7;, dsl=\Ej\EY? \EI\Ek, tsl=\Ej\EY?%+ \Eo, use=ibmega-c, 
-# From: Marc Pawliger <marc@ibminet.awdpa.ibm.com>
-# also in /usr/lpp/bos/bsdsysadmin.
-# (hft-c: this entry had :kb=\E[D:kf=\E[C: on the line with ku/kd/kh; this was
-# pretty obviously mislabeled for :le: and :nd:; also ":ul=\E[4m:" was clearly
-# a typo for ":us=\E[4m:"; also ":el=\E[K:" was a typo for ":ce=\E[K:".
-# I also added <rmam>/<smam> based on the terminal reset string.
-# There was an unknown boolean ":ht:" which I assume was meant to set hardware
-# tabs, so I have inserted it#8. Finally, :ac=^N: paired with the :ae: looked
-# like a typo for :as=^N:; finally, added empty <acsc> to quiet tic -- esr)
-ibm8512|ibm8513|hft-c|IBM High Function Terminal, 
+ibm6154|IBM 6154 Color displays, 
+       blink@, bold=\E[12m, s0ds=\E[10m, s1ds=\E[11m, s2ds=\E[12m, 
+       sgr=\E[%?%p1%t;7%;%?%p2%t;4%;%?%p3%t;7%;%?%p4%t;5%;%?%p6%t;12%;m, 
+       sgr0=\E[0;10m, 
+       use=ibm5154, 
+ibm6153|IBM 6153 Black & White display, 
+       blink@, bold=\E[12m, s0ds=\E[10m, s1ds=\E[11m, s2ds=\E[12m, 
+       sgr=\E[%?%p1%t;7%;%?%p2%t;4%;%?%p3%t;7%;%?%p4%t;5%;%?%p6%t;12%;m, 
+       sgr0=\E[0;10m, 
+       use=ibm5151, 
+ibm6153-90|IBM 6153 Black & White display, 
+       cols#90, lines#36, 
+       blink@, bold@, use=ibm5151, 
+ibm6153-40|IBM 6153 Black & White display, 
+       cols#40, lines#12, use=ibm6153-90, 
+ibm8512|ibm8513|IBM color VGA Terminal, 
        am, mir, msgr, 
        cols#80, it#8, lines#25, 
-       acsc=, blink=\E[5m, bold=\E[1m, clear=\E[H\E[J, cub1=\E[D, 
-       cud1=^J, cuf1=\E[C, cup=\E[%i%p1%d;%p2%dH, cuu1=\E[A, 
-       dl=\E[%p1%dM, dl1=\E[M, ech=\E[%p1%dX, ed=\E[J, el=\E[K, 
-       home=\E[H, il=\E[%p1%dL, il1=\E[L, is2=\Eb\E[m\017\E[?7h, 
-       kcud1=\E[B, kcuu1=\E[A, kf0=\E[010q, kf1=\E[001q, 
-       kf2=\E[002q, kf3=\E[003q, kf4=\E[004q, kf5=\E[005q, 
-       kf6=\E[006q, kf7=\E[007q, kf8=\E[008q, kf9=\E[009q, 
-       khome=\E[H, rc=\E[u, rev=\E[7m, rmacs=^O, rmam=\E[?7l, 
-       rmcup=\E[20h, rmdc=\E[4l, rmir=\E[4l, rmso=\E[m, rmul=\E[m, 
+       acsc=jjkkllmmnnqqttuuvvwwxx, blink=\E[5m, bold=\E[1m, 
+       clear=\E[H\E[2J, cub1=\E[D, cud1=^J, cuf1=\E[C, 
+       cup=\E[%i%p1%d;%p2%dH, cuu1=\E[A, dl=\E[%p1%dM, dl1=\E[M, 
+       ech=\E[%p1%dX, ed=\E[J, el=\E[K, home=\E[H, il=\E[%p1%dL, 
+       il1=\E[L, is2=\Eb\E[m\017\E[?7h, kcud1=\E[B, kcuu1=\E[A, 
+       kf0=\E[010q, kf1=\E[001q, kf2=\E[002q, kf3=\E[003q, 
+       kf4=\E[004q, kf5=\E[005q, kf6=\E[006q, kf7=\E[007q, 
+       kf8=\E[008q, kf9=\E[009q, khome=\E[H, rc=\E[u, rev=\E[7m, 
+       rmacs=^O, rmam=\E[?7l, rmcup=\E[20h, rmdc=\E[4l, 
+       rmir=\E[4l, rmso=\E[m, rmul=\E[m, 
        rs1=\Eb\E[m\017\E[?7h\E[H\E[J, sc=\E[s, sgr0=\E[m, 
        smacs=^N, smam=\E[?7h, smcup=\E[20;4l\E[?7h\Eb, 
        smdc=\E[4h, smir=\E[4h, smso=\E[7m, smul=\E[4m, 
-hft|AIWS High Function Terminal, 
-       am, xon, 
-       cols#80, lines#25, 
-       bel=^G, blink=\E[5m, bold=\E[1m, clear=\E[H\E[2J, cr=^M, 
-       cub1=^H, cud1=^J, cuf1=\E[C, cup=\E[%i%p1%d;%p2%dH, 
-       cuu1=\E[A, dch1=\E[P, dl1=\E[M, ed=\E[J, el=\E[K, home=\E[H, 
-       ht=^I, ich1=\E[@, il1=\E[L, ind=^J, invis=\E[8m, kbs=^H, 
-       kcub1=\E[D, kcud1=\E[B, kcuf1=\E[C, kcuu1=\E[A, 
-       kf1=\E[001q, kf2=\E[002q, kf3=\E[003q, kf4=\E[004q, 
-       kf5=\E[005q, kf6=\E[006q, kf7=\E[007q, kf8=\E[008q, 
-       kf9=\E[009q, khome=\E[H, knp=\E[153q, kpp=\E[159q, 
-       ktbc=\E[010q, rev=\E[7m, rmir=\E6, rmso=\E[m, rmul=\E[m, 
-       sgr0=\E[m, smir=\E6, smso=\E[7m, smul=\E[4m, 
+       use=ibm8503, 
+hft-c|HFT with Color, 
+       colors#8, pairs#64, 
+       acsc=jjkkllmmnnqqttuuvvwwxx, s0ds=\E(B, s1ds=\E(0, 
+       setab=\E[4%p1%dm, setaf=\E[3%p1%dm, sgr0=\E[0m\E(B, 
+       use=ibm5151, 
+hft-c-old|HFT with Color PC850, 
+       colors#8, pairs#64, 
+       setab=\E[4%p1%dm, setaf=\E[3%p1%dm, use=ibm5151, 
 ibm-system1|system1|ibm system/1 computer, 
        am, xt, 
        cols#80, lines#24, 
        bel=^G, clear=^Z, cub1=^H, cuf1=^\, 
        cup=\005%p1%{32}%+%c%p2%{32}%+%c, cuu1=^^, home=^K, 
        ind=^J, 
-
-# From: <pryor@math.berkeley.edu>
-ibm5081|ibmmpel|IBM 5081 1024x1024 256/4096 color display, 
-       eslok, hs, 
-       lines#33, 
-       dsl=\Ej\EYA \EI\Ek, fsl=\Ek, tsl=\Ej\EYA%+ \Eo, use=ibmmono, 
-ibm5081-c|ibmmpel-c|IBM 5081 1024x1024 256/4096 enhanced color display, 
+ibm5081|hft|IBM Megapel Color display, 
+       acsc=jjkkllmmnnqqttuuvvwwxx, blink@, bold@, s0ds=\E(B, 
+       s1ds=\E(0, sgr0=\E[0m\E(B, 
+       use=ibm5154, 
+ibm5081-c|ibmmpel-c|IBM 5081 1024x1024 256/4096 Megapel enhanced color display, 
        eslok, hs, 
        lines#33, 
        dsl=\Ej\EYA \EI\Ek, fsl=\Ek, tsl=\Ej\EYA%+ \Eo, use=ibmega-c, 
-ibm8514|IBM 8514 color display, 
+ibm8503|ibm8507|ibm8604|IBM 8503 B & W VGA display, 
+       use=hft-c, 
+ibm8514|IBM 8514/a color VGA display, 
        eslok, hs, 
-       lines#41, 
-       cr=^M, cud1=^J, dsl=\Ej\EYI \EI\Ek, fsl=\Ek, ht=^I, ind=^J, 
-       kbs=^H, kcub1=^H, kcud1=^J, nel=^M^J, tsl=\Ej\EYI%+ \Eo, 
-       use=ibmega, 
-ibm8514-c|IBM 8514 color display, 
+       dsl=\Ej\EYI \EI\Ek, fsl=\Ek, tsl=\Ej\EYI%+ \Eo, use=hft, 
+ibm8514-c|IBM 8514 color display with standout and underline, 
        eslok, hs, 
        lines#41, 
        cr=^M, cud1=^J, dsl=\Ej\EYI \EI\Ek, fsl=\Ek, ht=^I, ind=^J, 
@@ -8884,23 +11179,32 @@ ibm8514-c|IBM 8514 color display,
        use=ibmega-c, 
 
 #
-# AIX entries.  IBM ships these with AIX 3. 
+# AIX entries.  IBM ships these with AIX 3.2.5. 
 # AIX extension caps are commented out,
 # except for box1 which has been translated to an <acsc> string.
 #
+aixterm|IBM Aixterm Terminal Eemulator, 
+       eslok, hs, 
+       acsc=jjkkllmmnnqqttuuvvwwxx, bold=\E[1m, dsl=\E[?E, 
+       fsl=\E[?F, ri@, s0ds=\E(B, s1ds=\E(0, 
+       sgr=\E[%?%p1%t;7%;%?%p2%t;4%;%?%p3%t;7%;%?%p4%t;5%;%?%p6%t;1%;%?%p7%t;8%;m, 
+       sgr0=\E[0;10m\E(B, tsl=\E[?%p1%dT, 
+       use=ibm6154, 
 aixterm-m|IBM AIXterm Monochrome Terminal Emulator, 
        eslok, hs, 
-       acsc=llqqkkxxjjmmwwuuvvttnn, bold=\E[1m, dsl=\E[?E, 
+       acsc=jjkkllmmnnqqttuuvvwwxx, bold=\E[1m, dsl=\E[?E, 
        fsl=\E[?F, ri@, s0ds=\E(B, s1ds=\E(0, 
        sgr=\E[%?%p1%t;7%;%?%p2%t;4%;%?%p3%t;7%;%?%p4%t;5%;%?%p6%t;1%;m, 
        sgr0=\E[0;10m\E(B, tsl=\E[?%p1%dT, 
        use=ibm6153, 
-aixterm-m-old|IBM AIXterm Monochrome Terminal Emulator, 
+aixterm-m-old|old IBM AIXterm Monochrome Terminal Emulator, 
        eslok, hs, 
        bold=\E[1m, dsl=\E[?E, fsl=\E[?F, ri@, 
        sgr=\E[%?%p1%t;7%;%?%p2%t;4%;%?%p3%t;7%;%?%p4%t;5%;%?%p6%t;1%;m, 
        tsl=\E[?%p1%dT, 
        use=ibm6153, 
+jaixterm|IBM Kanji Aixterm Terminal Eemulator, 
+       acsc@, use=aixterm, 
 jaixterm-m|IBM Kanji AIXterm Monochrome Terminal Emulator, 
        acsc@, 
        use=aixterm-m, 
@@ -8937,6 +11241,285 @@ infoton,
        bel=^G, clear=^L, cr=^M, cub1=^Z, cud1=^J, cuf1=^Y, cuu1=^\, 
        ed=^K, ind=^J, ll=^H^\, 
 
+# The ICL6402 was actually the Kokusai Display System 6402.
+# The 6404 was the KDS7372 (color version of the 6402).
+# 
+# ICL6404 control codes follow:
+#
+#code            function
+#~~~~~~~~~~~     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+#ctrl-A          set SOM position at cursor position
+#ctrl-G          Bell
+#ctrl-H          Backspace
+#ctrl-I          Horiz tab
+#ctrl-J          Linefeed
+#ctrl-K          Cursor up
+#ctrl-L          Cursor right
+#ctrl-M          Carriage return
+#ctrl-N          Disable xon/xoff to host
+#ctrl-O          Enable xon/xoff to host
+#ctrl-R          Enable bidirectional mode
+#ctrl-T          Disable bidirectional mode
+#ctrl-V          Cursor down
+#ctrl-Z          Clear unprotected data to insert char
+#ctrl-^          Cursor home
+#ctrl-_          Newline
+#
+#ESC             lead-in char for multiple character command
+#
+#ESC space R     execute power on sequence
+#ESC ! p1 p2     define scroll region:
+#                p1 = scroll top    line:  20h - 37h
+#                p1 = scroll bottom line:  20h - 37h
+#ESC "           unlock keyboard
+#ESC #           lock keyboard
+#ESC $           Semi-graphics mode on
+#ESC %           Semi-graphics mode off
+#ESC &           protect mode on
+#ESC '           protect mode off
+#ESC (           write protect mode off (full intensity)
+#ESC )           write protect mode on (half intensity)
+#
+#ESC *           clear screen
+#ESC +           clear unprotected data to insert char
+#ESC ,           clear unprotected data to half intensity spaces
+#ESC - p1 p2 p3 p4     address cursor to page, row, column:
+#                      p1 = page number  0 - 3
+#                      p2 = row          20h - 7fh
+#                      p3 = column (lo)  20h - 7fh
+#                      p4 = column (hi)  20h - 21h (only 132 col)
+#ESC . p1        set cursor style:
+#                p1 = 0  invisible cursor
+#                p1 = 1  block blinking cursor
+#                p1 = 2  block steady cursor
+#                p1 = 3  underline blinking cursor
+#                p1 = 4  underline steady cursor
+#ESC /           transmit cursor location (page, row, column)
+#ESC 0 p1 p2 p3 p4     program edit key:
+#                      p1 = edit key code: '@'-'S', '`'-'s'
+#                      p2 p3 p4 = program data (3 bytes)
+#
+#ESC 1           set tab
+#ESC 2           clear tab at cursor
+#ESC 3           clear all tabs
+#ESC 4           send unprotect line to cursor
+#ESC 5           send unprotect page to cursor
+#ESC 6           send line to cursor
+#ESC 7           send page to cursor
+#ESC 8 n         set scroll mode:
+#                n = 0   set jump scroll
+#                n = 1   set smooth scroll
+#ESC 9 n         control display:
+#                n = 0   display off
+#                n = 1   display on
+#ESC :           clear unprotected data to null
+#ESC ;           clear unprotected data to insert char
+#
+#ESC <           keyclick on
+#ESC = p1 p2     address cursor to row, column
+#                p1 = row          20h - 7fh
+#                p2 = column (lo)  20h - 7fh
+#                p3 = column (hi)  20h - 21h (only 132 col)
+#ESC >           keyclick off
+#ESC ?           transmit cursor location (row, column)
+#
+#ESC @           copy print mode on
+#ESC A           copy print mode off
+#ESC B           block mode on
+#ESC C           block mode off (conversation mode)
+#ESC D F         set full duplex
+#ESC D H         set half duplex
+#ESC E           line insert
+#ESC F p1 p2     set page colour (p1 = f/grnd, p2 = b/grnd)
+#                0 = black, 1 = red,     2 = green, 3 = yellow
+#                4 = blue,  5 = magenta, 6 = cyan,  7 = white
+#ESC G n         set serial field attribute (n = 30h - 3Fh)
+#ESC H n         full graphics mode:
+#                n = 0  exit full graphics mode
+#                n = 1  enter full graphics mode
+#ESC I           back tab
+#ESC J           back page
+#ESC K           forward page
+#
+#ESC L           unformatted page print
+#ESC M L         move window left  (132 col mode only)
+#ESC M R         move window right (132 col mode only)
+#ESC N           set page edit (clear line edit)
+#ESC O           set line edit (clear page edit)
+#ESC P           formatted page print
+#ESC Q           character insert
+#ESC R           line delete
+#ESC S           send message unprotected only
+#ESC T           erase line to insert char
+#ESC U           set monitor mode   (see ESC X, ESC u)
+#
+#ESC V n         select video attribute mode:
+#                n = 0   serial field attribute mode
+#                n = 1   parallel character attribute mode
+#ESC V 2 n       define line attribute:
+#                n = 0   single width single height
+#                n = 1   single width double height
+#                n = 2   double width single height
+#                n = 3   double width double height
+#ESC V 3 n       select character font:
+#                n = 0   system font
+#                n = 1   user defined font
+#ESC V 4 n       select screen mode:
+#                n = 0   page screen mode
+#                n = 1   virtual screen mode
+#ESC V 5 n       control mouse mode:
+#                n = 0   disable mouse
+#                n = 1   enable sample mode
+#                n = 2   send mouse information
+#                n = 3   enable request mode
+#ESC W           character delete
+#ESC X           clear monitor mode (see ESC U, ESC u)
+#ESC Y           erase page to insert char
+#
+#ESC Z n         send user/status line:
+#                n = 0   send user line
+#                n = 1   send status line
+#                n = 2   send terminal ID
+#ESC [ p1 p2 p3  set character attribute (parallel char mode):
+#                p1: 0 = normal
+#                    1 = blank
+#                    2 = blink
+#                    3 = blink blank (= blank)
+#                    4 = reverse
+#                    5 = reverse blank
+#                    6 = reverse blink
+#                    7 = reverse blink blank (= reverse blank)
+#                    8 = underline
+#                    9 = underline blank
+#                    : = underline blink
+#                    ; = underline blink blank
+#                    < = reverse underline
+#                    = = reverse underline blank
+#                    > = reverse underline blink
+#                    ? = reverse underline blink blank
+#                p2, p3: f/grnd, b/grnd colour
+#                (see ESC F for colours)
+#                use ZZ for mono, eg.
+#                    ESC [ 0 Z Z for normal
+#                    ESC [ 4 Z Z for inverse etc.
+#
+#ESC \ n         set page size:
+#                n = 1   24 lines/page
+#                n = 2   48 lines/page
+#                n = 3   72 lines/page
+#                n = 4   96 lines/page
+#ESC ] n         set Wordstar mode:
+#                n = 0   normal (KDS7372) mode
+#                n = 1   Wordstar mode
+#
+#ESC b           set foreground colour screen
+#
+#ESC c n         enter self-test mode:
+#                n = 0   exit self test mode
+#                n = 1   ROM test
+#                n = 2   RAM test
+#                n = 3   NVRAM test
+#                n = 4   screen display test
+#                n = 5   main/printer port test
+#                n = 6   mouse port test
+#                n = 7   graphics board test
+#                n = 8   graphics memory test
+#                n = 9   display all 'E'
+#                n = :   display all 'H'
+#ESC d           set background colour screen
+#
+#ESC e n         program insert char (n = insert char)
+#ESC f text CR   load user status line with 'text'
+#
+#ESC g           display user status line on 25th line
+#ESC h           display system status line on 25th line
+#ESC i           tab
+#ESC j           reverse linefeed
+#ESC k n         duplex/local edit mode:
+#                n = 0   duplex edit mode
+#                n = 1   local edit mode
+#ESC l n         select virtual screen:
+#                n = 0   screen 1
+#                n = 1   screen 2
+#ESC m           save current config to NVRAM
+#ESC n p1        select display screen:
+#                p1 = 0  screen 1
+#                p1 = 1  screen 2
+#                p1 = 2  screen 3
+#                p1 = 3  screen 4
+#ESC o p1 p2     set characters/line and attribute:
+#                p1 = 0  80 chars/line
+#
+#ESC o p1 p2     set characters/line and attribute:
+#                p1 = 0  80 chars/line
+#                p1 = 1  132 chars/line
+#                p2 = 0  single width single height
+#                p2 = 1  single width double height
+#                p2 = 2  double width single height
+#                p2 = 3  double width double height
+#
+#ESC q           insert mode on
+#ESC r           edit mode on
+#ESC s           send message all
+#ESC t           erase line to null
+#ESC u           clear monitor mode (see ESC U, ESC X)
+#ESC v           autopage mode on
+#ESC w           autopage mode off
+#ESC x p1 p2 p3  define delimiter code...
+#ESC y           erase page to null
+#
+#ESC z 2 p1 p2 p3 p4   draw quadrangle:
+#                      p1 = starting row
+#                      p2 = starting column
+#                      p3 = end row
+#                      p4 = end column
+#
+#ESC { p1 p2 p3 p4     configure main port
+#                      (baud, stop bits, parity, word length)
+#
+#ESC | p1 p2 text Ctrl-Y    program function key with 'text':
+#                        p1 = function key code:
+#                             '1' - ';'  normal f1- f11
+#                             '<' - 'F'  shifted f1 - f11
+#                        p2 = program mode:
+#                             1 = FDX
+#                             2 = LOC
+#                             3 = HDX
+#                        Ctrl-Y = terminator
+#                        (use Ctrl-P to escape ^P, ^Y )
+#
+#ESC } p1 p2 p3 p4     configure printer port
+#                      (baud, stop bits, parity, word length)
+#ESC ~           send system status
+#
+# Codes and info from Peter Disdale <pete@pdlmail.demon.co.uk> 12 May 1997
+#
+# Entry is by esr going solely on above information and is UNTESTED.
+# This actually looks a lot like a Televideo 9xx.
+# This entry uses page 0 and is monochrome; I'm not brave enough to try
+# to make color work without a test terminal.  The <am> capability is a guess.
+# The initialization string sets conversation mode, blinking underline cursor,
+# full duplex, parallel attribute mode, display user status line, white
+# foreground, black background, normal highlight.
+#
+icl6404|kds7372|icl6402|kds6402|ICL 6404 aka Kokusai Display Systems 7372, 
+       am, hs, 
+       cols#80, lines#24, 
+       bel=^G, blink=\E[2ZZ, cbt=\EI, civis=\E.0, clear=\E*, 
+       cnorm=\E.3, cr=^M, 
+       csr=\E!%+%p1%{32}%+%p2%{32} cud1=\026, cuf1=^L, 
+       cup=\E=%p1%{32}%+%c%p2%{80}%m%{32}%+%c%p2%{80}%>%{32}%+%c, 
+       cuu1=^K, cvvis=\E.1, dch=\EW, dl1=\ER, home=^^, ht=^I, hts=\E1, 
+       il1=\EE, invis=\E[1ZZ, is1=\EC\E.3\EDF\EV1\Eg\E[0ZZ, 
+       nel=^_, rev=\E[4ZZ, rmir=\Er, 
+       rmso=\E[%gh%{4}%^%Ph%gh%dZZ, 
+       rmul=\E[%gh%{8}%^%Ph%gh%dZZ, rs2=\Eo1, 
+       sgr=\E[%{0}%?%p1%t%{4}%|%;%?%p2%t%{8}%|%;%?%p3%t%{4}%|%;%?%p4%t%{2}%|%;%?%p7%t%{1}%|%;ZZ, 
+       sgr0=\E[0ZZ, smir=\Eq, smso=\E[8ZZ, smul=\E[8ZZ, tbc=\E3, 
+icl6404-w|kds7372-w|ICL 6404 aka Kokusai Display Systems 7372 132 cols, 
+       rs2=\Eo1, 
+       use=icl6404, 
+
 #### Interactive Systems Corp
 #
 # ISC used to sell OEMed and customized hardware to support ISC UNIX.
@@ -8977,6 +11560,19 @@ intext2|intextii|INTERACTIVE modified owl 1251,
 
 #### Kimtron (abm, kt)
 #
+# Kimtron seems to be history, but as March 1998 these people are still 
+# offering repair services for Kimtron equipment:
+#
+#    Com/Pair Monitor Service
+#    1105 N. Cliff Ave.
+#    Sioux Falls, South Dakota 57103
+#     
+#    WATS voice:  1-800/398-4946
+#    POTS   fax: +1 605/338-8709
+#    POTS voice: +1 605/338-9650
+#         Email: <compair@sd.cybernex.net>
+#  Internet/Web: <http://www.com-pair.com>
+#
 # Kimtron entries include (undocumented) codes for: enter dim mode,
 # enter bold mode, enter reverse mode, turn off all attributes.
 #
@@ -9057,7 +11653,7 @@ kt7|kimtron model kt-7,
 kt7ix|kimtron model kt-7 or 70 in IX mode, 
        am, bw, 
        cols#80, it#8, lines#25, 
-       acsc=lZm@k?jYt4uCvAwBqDx3nE, bel=^G, blink=\EG2, cbt=\EI, 
+       acsc=jYk?lZm@nEqDt4uCvAwBx3, bel=^G, blink=\EG2, cbt=\EI, 
        civis=\E.0, clear=\E*, cnorm=\E.3, cr=^M, cub1=^H, cud1=^V, 
        cuf1=^L, cup=\E=%p1%{32}%+%c%p2%{32}%+%c, cuu1=^K, 
        dch1=\EW, dim=\EG@, dl1=\ER, dsl=\Ef\r, ed=\EY, el=\ET, fsl=^M, 
@@ -9144,10 +11740,10 @@ prism2|MDC Prism-2,
        am, bw, msgr, 
        cols#80, lines#24, 
        bel=^G, clear=\014$<20>, cr=^M, cub1=^H, cud1=^J, cuf1=^F, 
-       cup=\013%p1%' '%+%c\020%p2%{10}%/%{16}%*%p2%{10}%m%+%Pc%?%{17}%gc%=%{19}%gc%=%|%gc%!%|%t%{1}%gc%+%c%{8}%e%gc%;%c, 
+       cup=\013%p1%{32}%+%c\020%p2%{10}%/%{16}%*%p2%{10}%m%+%Pc%?%{17}%gc%=%{19}%gc%=%|%gc%!%|%t%{1}%gc%+%c%{8}%e%gc%;%c, 
        cuu1=^Z, ed=\EJ, el=\EK, home=^A, 
        hpa=\020%p1%{10}%/%{16}%*%p1%{10}%m%+%Pc%?%{17}%gc%=%{19}%gc%=%|%gc%!%|%t%{1}%gc%+%c%{8}%e%gc%;%c, 
-       ind=^J, kbs=^H, khome=^A, vpa=\013%p1%' '%+%c, 
+       ind=^J, kbs=^H, khome=^A, vpa=\013%p1%{32}%+%c, 
 
 # p4: Prism-4
 # -----------
@@ -9164,15 +11760,15 @@ prism4|p4|P4|MDC Prism-4,
        cols#80, lines#24, wsl#72, xmc#1, 
        bel=^G, blink=^CB, civis=^]\344, clear=\014$<20>, 
        cnorm=^]\342, cr=^M, cub1=^H, cud1=^J, cuf1=^F, 
-       cup=\013%p1%' '%+%c\020%p2%{10}%/%{16}%*%p2%{10}%m%+%Pc%?%{17}%gc%=%{19}%gc%=%|%gc%!%|%t%{1}%gc%+%c%{8}%e%gc%;%c, 
+       cup=\013%p1%{32}%+%c\020%p2%{10}%/%{16}%*%p2%{10}%m%+%Pc%?%{17}%gc%=%{19}%gc%=%|%gc%!%|%t%{1}%gc%+%c%{8}%e%gc%;%c, 
        cuu1=^Z, dim=^CA, dsl=\035\343\035\345, ed=\EJ, el=\EK, 
-       fsl=^]\345, home=^A^J
+       fsl=^]\345, home=^A, 
        hpa=\020%p1%{10}%/%{16}%*%p1%{10}%m%+%Pc%?%{17}%gc%=%{19}%gc%=%|%gc%!%|%t%{1}%gc%+%c%{8}%e%gc%;%c, 
        ind=^J, invis=^CH, kbs=^H, khome=^A, mc0=\EU, mc4=\ET, mc5=\ER, 
        rev=^CD, rmso=^C\s, rmul=^C\s, 
-       sgr=\003%'@'%?%p1%p3%|%t%{4}%+%;%?%p2%t%{16}%+%;%?%p4%t%{2}%+%;%?%p5%t%{1}%+%;%?%p7%t%{8}%+%;%c%?%p9%t\016%e\017%;, 
+       sgr=\003%{64}%?%p1%p3%|%t%{4}%+%;%?%p2%t%{16}%+%;%?%p4%t%{2}%+%;%?%p5%t%{1}%+%;%?%p7%t%{8}%+%;%c%?%p9%t\016%e\017%;, 
        sgr0=^C\s, smso=^CD, smul=^CP, tsl=^]\343, 
-       vpa=\013%p1%' '%+%c, 
+       vpa=\013%p1%{32}%+%c, 
 
 # p5: Prism-5
 # -----------
@@ -9379,7 +11975,7 @@ p8gl|prism8gl|McDonnell-Douglas Prism-8 alternate definition,
        kf3=^AB\r, kf4=^AC\r, kf5=^AD\r, kf6=^AE\r, kf7=^AF\r, 
        kf8=^AG\r, kf9=^AH\r, khome=^A, lf1=F1, lf10=F10, lf2=F2, 
        lf3=F3, lf4=F4, lf5=F5, lf6=F6, lf7=F7, lf8=F8, lf9=F9, nel=^J^M, 
-       pad=\200, rev=^CD, rmso=^C\s, rmul=^C\s, sgr0=^C\s, smso=^CE, 
+       pad=\0, rev=^CD, rmso=^C\s, rmul=^C\s, sgr0=^C\s, smso=^CE, 
        smul=^C0, 
 
 #### Microterm (act, mime)
@@ -9397,7 +11993,7 @@ act4|microterm|microterm act iv,
        am, 
        cols#80, lines#24, 
        bel=^G, clear=\014$<12/>, cr=^M, cub1=^H, cud1=^K, cuf1=^X, 
-       cup=\024%p1%{24}%+%c%p2%p2%?%'/'%>%t%'0'%+%;%'P'%+%c, 
+       cup=\024%p1%{24}%+%c%p2%p2%?%{47}%>%t%{48}%+%;%{80}%+%c, 
        cuu1=^Z, dch1=\004$<.1*/>, dl1=\027$<2.3*/>, 
        ed=\037$<2.2*/>, el=\036$<.1*/>, home=^], 
        il1=\001<2.3*/>, ind=^J, kcub1=^H, kcud1=^K, kcuf1=^X, 
@@ -9420,7 +12016,7 @@ mime|mime1|mime2|mimei|mimeii|microterm mime1,
        am, 
        cols#80, it#8, lines#24, vt#9, 
        bel=^G, clear=^]^C, cr=^M, cub1=^H, cud1=^J, cuf1=^X, 
-       cup=\024%p1%{24}%+%c%p2%p2%?%{32}%>%t%'0'%+%;%'P'%+%c, 
+       cup=\024%p1%{24}%+%c%p2%p2%?%{32}%>%t%{48}%+%;%{80}%+%c, 
        cuu1=^Z, dl1=\027$<80>, ed=^_, el=^^, home=^], ht=\011$<2>, 
        il1=\001$<80>, ind=^J, is2=^S\E^Q, kcub1=^H, kcud1=^K, 
        kcuf1=^X, kcuu1=^Z, ri=\022$<3>, uc=^U, 
@@ -9528,6 +12124,494 @@ ergo4000|microterm ergo 4000,
 # There is an NCR4103 terminal that's just a re-badged Wyse-50.
 #
 
+# The following vendor-supplied termcaps were captured from the Boundless
+# Technologies site, 8 March 1998.  I removed all-upper-case names that were
+# identical, except for case, to lower-case ones.  I also uncommented the acsc
+# capabilities.X
+#
+# The Intecolor emulation of the NCR 2900/260C color terminal is basicly a
+# DEC vt200/300 with color capabilities added.
+ncr260intan|NCR Intecolor emulation of the 2900_260C with an ANSI keyboard, 
+       colors#8, pairs#64, 
+       op=\E[0m, setab=\E[4%p1%dm, setaf=\E[3%p1%dm, use=ncr260vt300an, 
+# The Intecolor emulation of the NCR 2900/260C color terminal is basicly a
+# DEC vt200/300 with color capabilities added.
+ncr260intwan|NCR Intecolor emulation of the 2900_260C with an ANSI keyboard, 
+       colors#8, pairs#64, 
+       op=\E[0m, setab=\E[4%p1%dm, setaf=\E[3%p1%dm, use=ncr260vt300wan, 
+# The Intecolor emulation of the NCR 2900/260C color terminal is basicly a DEC 
+# vt200/300 with color capabilities added.
+ncr260intpp|NCR Intecolor emulation of the 2900_260C with a PC+ keyboard, 
+       colors#8, pairs#64, 
+       op=\E[0m, setab=\E[4%p1%dm, setaf=\E[3%p1%dm, use=ncr260vt300pp, 
+# The Intecolor emulation of the NCR 2900/260C color terminal is basicly a
+# DEC vt200/300 with color capabilities added.
+ncr260intwpp|NCR Intecolor emulation of the 2900_260C with a PC+ keyboard in 132 column mode, 
+       colors#8, pairs#64, 
+       op=\E[0m, setab=\E[4%p1%dm, setaf=\E[3%p1%dm, use=ncr260vt300wpp, 
+# This definition for ViewPoint supports several attributes.  This means
+# that it has magic cookies (extra spaces where the attributes begin).
+# Some applications do not function well with magic cookies.  The System
+# Administrator's Shell in NCR Unix SVR4 1.03 is one such application. 
+# If supporting various attributes is not vital, 'xmc#1' and the extra
+# attributes can be removed. 
+# Mapping to ASCII character set ('acsc' capability) can also be 
+# restored if needed.
+ncr260vppp|NCR 2900_260 viewpoint, 
+       am, bw, hs, km, mc5i, mir, msgr, xon, 
+       cols#80, lines#24, nlab#32, xmc#1, 
+       acsc=07a?h;j5k3l2m1n8q\:t4u9v=w0x6, bel=^G, blink=\EG2, 
+       cbt=\EI, civis=\E`0, clear=\014$<40>, cnorm=\E`5, 
+       cr=\r$<2>, cub1=\010$<2>, cud1=\n$<2>, cuf1=\006$<2>, 
+       cup=\EY%p1%{32}%+%c%p2%{32}%+%c$<5>, cuu1=\032$<2>, 
+       cvvis=\E`5, dch1=\EW$<2>, dim=\EGp, dl1=\El$<2>, dsl=\E`c, 
+       ed=\Ek$<2>, el=\EK$<2>, fsl=^M, home=\036$<2>, ht=^I, 
+       hts=\E1, il1=\EM$<2>, ind=\n$<2>, invis=\EG1, 
+       is2=\Ee6\E~%$<100>\E+\E`\:\Ed/\E`1\EO\Ee4\Ec@0@\Ec@1A\EcB0\EcC1\Ee7$<100>, 
+       kDC=\El, kEND=\Ek, kHOM=^A, kPRT=\E7, kRIT=^F, ka1=^A, ka3=\EJ, 
+       kbs=^H, kc1=\ET, kc3=\EJ, kcub1=^U, kcud1=^J, kcuf1=^F, 
+       kcuu1=^Z, kdch1=\EW, kend=\EK, kf1=^B1\r, kf10=^B\:\r, 
+       kf11=^B;\r, kf12=^B<\r, kf13=^B=\r, kf14=^B>\r, kf15=^B?\r, 
+       kf16=^B@\r, kf17=^B!\r, kf18=^B"\r, kf19=^B#\r, kf2=^B2\r, 
+       kf20=^B$\r, kf21=\002%^M, kf22=^B&\r, kf23=^B'\r, 
+       kf24=^B(\r, kf25=^B)\r, kf26=^B*\r, kf27=^B+\r, 
+       kf28=^B\,\r, kf29=^B-\r, kf3=^B3\r, kf30=^B.\r, kf31=^B/\r, 
+       kf32=^B0\r, kf4=^B4\r, kf5=^B5\r, kf6=^B6\r, kf7=^B7\r, 
+       kf8=^B8\r, kf9=^B9\r, khome=^A, kich1=\Eq, knp=\EJ, kpp=\EJ, 
+       kprt=\EP, ll=\001$<5>, mc0=\EP$<100>, mc4=^T, mc5=^R, 
+       mrcup=\Ew@%p1%{48}%+%c%p2%{32}%+%c%p3%{32}%+%c$<5>, 
+       nel=\037$<2>, rev=\EG4, ri=\Ej$<2>, rmacs=\EcB0\EH\003, 
+       rmir=\Er, rmso=\EG0, rmul=\EG0, rmxon=\Ec20, 
+       rs2=\Ee6\E~%$<100>\E+\E`\:\Ed/\E`1\EO\Ee4\Ec@0@\Ec@1A\EcB0\EcC1\Ee7$<100>, 
+       sgr0=\EG0\EH\003, smacs=\EcB1\EH\002, smir=\Eq, 
+       smso=\EG4, smul=\EG8, smxon=\Ec21, tsl=\EF, 
+ncr260vpwpp|NCR 2900_260 viewpoint wide mode, 
+       cols#132, 
+       cup=\Ea%i%p1%dR%p2%dC$<30>, 
+       is2=\Ee6\E~%$<100>\E+\E`;\Ed/\E`1\EO\Ee4\Ec@0@\Ec@1A\EcB0\EcC1\Ee7$<100>, 
+       rs2=\Ee6\E~%$<100>\E+\E`;\Ed/\E`1\EO\Ee4\Ec@0@\Ec@1A\EcB0\EcC1\Ee7$<100>, 
+       use=ncr260vppp, 
+ncr260vt100an|NCR 2900_260 vt100 with ansi kybd, 
+       am, hs, mir, msgr, xenl, xon, 
+       cols#80, lines#24, nlab#32, 
+       acsc=``aaffggjjkkllmmnnooqqssttuuvvwwxx~~, bel=^G, 
+       blink=\E[5m, bold=\E[1m, civis=\E[?25l, 
+       clear=\E[2J\E[1;1H$<20>, cnorm=\E[?25h, cr=\r$<1>, 
+       csr=\E[%i%p1%d;%p2%dr, cub=\E[%p1%dD$<5>, 
+       cub1=\E[D$<5>, cud=\E[%p1%dB$<5>, cud1=\E[B$<5>, 
+       cuf=\E[%p1%dC$<5>, cuf1=\E[C$<5>, 
+       cup=\E[%i%p1%d;%p2%dH$<10>, cuu=\E[%p1%dA$<5>, 
+       cuu1=\E[A$<5>, dch=\E[%p1%dP$<5>, dch1=\E[1P$<5>, 
+       dl=\E[%p1%dM$<5>, dl1=\E[M$<5>, dsl=\E[0$~\E[1$~, 
+       ech=\E[%p1%dX, ed=\E[0J$<5>, el=\E[0K$<3>, el1=\E[1K$<3>, 
+       fsl=\E[0$}, home=\E[H$<1>, hpa=\E[%p1%dG$<40>, ht=^I, 
+       hts=\EH, ich=\E[%p1%d@$<5>, il=\E[%p1%dL$<5>, 
+       il1=\E[L$<5>, ind=\ED$<5>, indn=\E[%p1%dE$<5>, 
+       invis=\E[8m, 
+       is2=\E[!p\E[?7;19;67h\E[?1;3;4l\E(B\E)0\017\E[2J\E[1;1H\E>$<200>, 
+       ka1=\EOw, ka3=\EOu, kb2=\EOy, kbs=^H, kc1=\EOq, kc3=\EOs, 
+       kcub1=\EOD, kcud1=\EOB, kcuf1=\EOC, kcuu1=\EOA, 
+       kdch1=\E[3~, kent=\EOM, kf1=\EOP, kf2=\EOQ, kf3=\EOR, 
+       kf4=\EOS, kfnd=\E[1~, khlp=\E[28~, kich1=\E[2~, knp=\E[6~, 
+       kpp=\E[5~, krdo=\E[29~, kslt=\E[4~, nel=\EE$<5>, rc=\E8, 
+       rev=\E[7m, ri=\EM$<5>, rmacs=^O, rmir=\E[4l, 
+       rmkx=\E[?1l\E>, rmso=\E[0m, rmul=\E[0m, 
+       rs2=\E[!p\E[?7;19;67h\E[?1;3;4l\E(B\E)0\017\E[2J\E[1;1H\E>$<200>, 
+       sc=\E7, 
+       sgr=\E[0%?%p1%p6%|%t;1%;%?%p2%t;4%;%?%p1%p3%|%t;7%;%?%p4%t;5%;m%?%p9%t\016%e\017%;$<20>, 
+       sgr0=\E[0m\017$<20>, smacs=^N, smir=\E[4h, 
+       smkx=\E[?1h\E=, smso=\E[1;7m, smul=\E[4m, tbc=\E[3g, 
+       tsl=\E[2$~\E[1$}, vpa=\E[%p1%dd$<40>, 
+ncr260vt100wan|NCR 2900_260 vt100 wide mode ansi kybd, 
+       cols#132, 
+       cup=\E[%i%p1%d;%p2%dH$<30>, 
+       is2=\E[!p\E[?3;7;19;67h\E[?1;4l\E(B\E)0\017\E[2J\E[1;1H\E>$<200>, 
+       rs2=\E[!p\E[?3;7;19;67h\E[?1;4l\E(B\E)0\017\E[2J\E[1;1H\E>$<200>, 
+       use=ncr260vt100an, 
+ncr260vt100pp|NCR 2900_260 vt100 with PC+ kybd, 
+       is2=\E[!p\E[?7;19;67h\E[?1;3;4l\E(B\E)0\017\E[2J\E[1;1H\E>$<200>, 
+       ka1=\E[H, ka3=\EOu, kb2=\E[V, kc3=\E[U, kcub1=\E[D, 
+       kcud1=\E[B, kcuf1=\E[C, kcuu1=\E[A, kdch1=\E[4~, 
+       kend=\E[5~, khome=\E[2~, kich1=\E[1~, knp=\E[6~, kpp=\E[3~, 
+       lf1=pf1, lf2=pf2, lf3=pf3, lf4=pf4, rmkx=\E>, 
+       rs2=\E[!p\E[?7;19;67h\E[?1;3;4l\E(B\E)0\017\E[2J\E[1;1H\E>$<200>, 
+       smkx=\E=, 
+       use=ncr260vt100an, 
+ncr260vt100wpp|NCR 2900_260 vt100 wide mode pc+  kybd, 
+       cols#132, 
+       cup=\E[%i%p1%d;%p2%dH$<30>, 
+       is2=\E[!p\E[?3;7;19;67h\E[?1;4l\E(B\E)0\017\E[2J\E[1;1H\E>$<200>, 
+       rs2=\E[!p\E[?3;7;19;67h\E[?1;4l\E(B\E)0\017\E[2J\E[1;1H\E>$<200>, 
+       use=ncr260vt100pp, 
+ncr260vt200an|NCR 2900_260 vt200 with ansi kybd, 
+       am, hs, mir, msgr, xenl, xon, 
+       cols#80, lines#24, nlab#32, 
+       acsc=``aaffggjjkkllmmnnooqqssttuuvvwwxx~~, bel=^G, 
+       blink=\E[5m, bold=\E[1m, civis=\E[?25l, 
+       clear=\E[2J\E[1;1H$<20>, cnorm=\E[?25h, cr=\r$<1>, 
+       csr=\E[%i%p1%d;%p2%dr$<5>, cub=\E[%p1%dD$<5>, 
+       cub1=\E[D$<5>, cud=\E[%p1%dB$<5>, cud1=\E[B$<5>, 
+       cuf=\E[%p1%dC$<5>, cuf1=\E[C$<5>, 
+       cup=\E[%i%p1%d;%p2%dH$<10>, cuu=\E[%p1%dA$<5>, 
+       cuu1=\E[A$<5>, dch=\E[%p1%dP$<5>, dch1=\E[1P$<5>, 
+       dl=\E[%p1%dM$<5>, dl1=\E[M$<5>, dsl=\E[0$~\E[1$~, 
+       ech=\E[%p1%dX$<5>, ed=\E[0J, el=\E[0K$<5>, el1=\E[1K$<5>, 
+       fsl=\E[0$}, home=\E[H, hpa=\E[%p1%dG$<40>, ht=^I, hts=\EH, 
+       ich=\E[%p1%d@$<5>, il=\E[%p1%dL$<5>, il1=\E[L$<5>, 
+       ind=\ED$<5>, indn=\E[%p1%dE$<5>, invis=\E[8m, 
+       is2=\E[!p\E[?7;19;67h\E[?1;3;4l\E(B\E)0\017\E[2J\E[1;1H\E>$<200>, 
+       ka1=\EOw, ka3=\EOu, kb2=\EOy, kbs=^H, kc1=\EOq, kc3=\EOs, 
+       kcub1=\EOD, kcud1=\EOB, kcuf1=\EOC, kcuu1=\EOA, 
+       kdch1=\E[3~, kent=\EOM, kf0=\EOy, kf1=\EOP, kf10=\E[21~, 
+       kf11=\E[23~, kf12=\E[24~, kf13=\E[25~, kf14=\E[26~, 
+       kf15=\E[28~, kf16=\E[29~, kf17=\E[31~, kf18=\E[32~, 
+       kf19=\E[33~, kf2=\EOQ, kf20=\E[34~, kf21=\E[31~, 
+       kf22=\E[32~, kf23=\E[33~, kf24=\E[34~, kf25=\E[35~, 
+       kf26=\E[1~, kf27=\E[2~, kf28=\E[3~, kf29=\E[4~, kf3=\EOR, 
+       kf30=\E[5~, kf31=\E[6~, kf32=\E[7~, kf33=\E[8~, kf34=\E[9~, 
+       kf35=\E[10~, kf4=\EOS, kf5=\E[M, kf6=\E[17~, kf7=\E[18~, 
+       kf8=\E[19~, kf9=\E[20~, kfnd=\E[1~, khlp=\E[28~, 
+       kich1=\E[2~, knp=\E[6~, kpp=\E[5~, krdo=\E[29~, kslt=\E[4~, 
+       mc0=\E[i, mc4=\E[4i, mc5=\E[5i, nel=\EE, rc=\E8, rev=\E[7m, 
+       ri=\EM$<5>, rmacs=\017$<20>, rmam=\E[?7l, rmir=\E[4l, 
+       rmkx=\E[?1l\E>, rmso=\E[27m, rmul=\E[24m, 
+       rs2=\E[!p\E[?7;19;67h\E[?1;3;4l\E(B\E)0\017\E[2J\E[1;1H\E>$<200>, 
+       sc=\E7, 
+       sgr=\E[0%?%p1%p6%|%t;1%;%?%p2%t;4%;%?%p1%p3%|%t;7%;%?%p4%t;5%;m%?%p9%t\016%e\017%;$<20>, 
+       sgr0=\E[0m\017$<20>, smacs=\016$<20>, smam=\E[?7h, 
+       smir=\E[4h, smkx=\E[?1h\E=, smso=\E[7m, smul=\E[4m, 
+       tbc=\E[3g, tsl=\E[2$~\E[1$}, vpa=\E[%p1%dd$<40>, 
+ncr260vt200wan|NCR 2900_260 vt200 wide mode ansi kybd, 
+       cols#132, 
+       cup=\E[%i%p1%d;%p2%dH$<30>, 
+       is2=\E[!p\E[?3;7;19;67h\E[?4l\E(B\E)0\017\E[2J\E[1;1H$<200>, 
+       rs2=\E[!p\E[?3;7;19;67h\E[?4l\E(B\E)0\017\E[2J\E[1;1H$<200>, 
+       use=ncr260vt200an, 
+ncr260vt200pp|NCR 2900_260 vt200 with pc+ kybd, 
+       ka1=\E[H, ka3=\EOu, kb2=\E[V, kc3=\E[U, kcub1=\E[D, 
+       kcud1=\E[B, kcuf1=\E[C, kcuu1=\E[A, kdch1=\E[4~, 
+       kend=\E[1~, khome=\E[H, kich1=\E[2~, knp=\E[6~, kpp=\E[5~, 
+       lf1=pf1, lf2=pf2, lf3=pf3, lf4=pf4, rmkx=\E>, smkx=\E=, 
+       use=ncr260vt200an, 
+ncr260vt200wpp|NCR 2900_260 vt200 wide mode pc+  kybd, 
+       cols#132, 
+       cup=\E[%i%p1%d;%p2%dH$<30>, 
+       is2=\E[!p\E[?3;7;19;67h\E[?1;4l\E(B\E)0\017\E[2J\E[1;1H\E>$<200>, 
+       rs2=\E[!p\E[?3;7;19;67h\E[?1;4l\E(B\E)0\017\E[2J\E[1;1H\E>$<200>, 
+       use=ncr260vt200pp, 
+ncr260vt300an|NCR 2900_260 vt300 with ansi kybd, 
+       am, hs, mir, msgr, xenl, xon, 
+       cols#80, lines#24, nlab#32, 
+       acsc=``aaffggjjkkllmmnnooqqssttuuvvwwxx~~, bel=^G, 
+       blink=\E[5m, bold=\E[1m, civis=\E[?25l, 
+       clear=\E[2J\E[1;1H$<20>, cnorm=\E[?25h, cr=\r$<1>, 
+       csr=\E[%i%p1%d;%p2%dr$<5>, cub=\E[%p1%dD$<5>, 
+       cub1=\E[D$<5>, cud=\E[%p1%dB$<5>, cud1=\E[B$<5>, 
+       cuf=\E[%p1%dC$<5>, cuf1=\E[C$<5>, 
+       cup=\E[%i%p1%d;%p2%dH$<10>, cuu=\E[%p1%dA$<5>, 
+       cuu1=\E[A$<5>, dch=\E[%p1%dP$<5>, dch1=\E[1P$<5>, 
+       dl=\E[%p1%dM$<5>, dl1=\E[M$<5>, dsl=\E[0$~\E[1$~, 
+       ech=\E[%p1%dX$<5>, ed=\E[0J, el=\E[0K$<5>, el1=\E[1K$<5>, 
+       fsl=\E[0$}, home=\E[H, hpa=\E[%p1%dG$<40>, ht=^I, hts=\EH, 
+       ich=\E[%p1%d@$<5>, il=\E[%p1%dL$<5>, il1=\E[L$<5>, 
+       ind=\ED$<5>, indn=\E[%p1%dE$<5>, invis=\E[8m, 
+       is2=\E[!p\E[?7;19;67h\E[?1;3;4l\E[1;0%w\E(B\E)0\017\E[2J\E[1;1H\E>$<200>, 
+       ka1=\EOw, ka3=\EOu, kb2=\EOy, kbs=^H, kc1=\EOq, kc3=\EOs, 
+       kcub1=\EOD, kcud1=\EOB, kcuf1=\EOC, kcuu1=\EOA, 
+       kdch1=\E[3~, kent=\EOM, kf0=\EOy, kf1=\EOP, kf10=\E[21~, 
+       kf11=\E[23~, kf12=\E[24~, kf13=\E[25~, kf14=\E[26~, 
+       kf15=\E[28~, kf16=\E[29~, kf17=\E[31~, kf18=\E[32~, 
+       kf19=\E[33~, kf2=\EOQ, kf20=\E[34~, kf21=\E[31~, 
+       kf22=\E[32~, kf23=\E[33~, kf24=\E[34~, kf25=\E[35~, 
+       kf26=\E[1~, kf27=\E[2~, kf28=\E[3~, kf29=\E[4~, kf3=\EOR, 
+       kf30=\E[5~, kf31=\E[6~, kf32=\E[7~, kf33=\E[8~, kf34=\E[9~, 
+       kf35=\E[10~, kf4=\EOS, kf5=\E[M, kf6=\E[17~, kf7=\E[18~, 
+       kf8=\E[19~, kf9=\E[20~, kfnd=\E[1~, khlp=\E[28~, 
+       kich1=\E[2~, knp=\E[6~, kpp=\E[5~, krdo=\E[29~, kslt=\E[4~, 
+       mc0=\E[i, mc4=\E[4i, mc5=\E[5i, nel=\EE, rc=\E8, rev=\E[7m, 
+       ri=\EM$<5>, rmacs=\017$<20>, rmam=\E[?7l, rmir=\E[4l, 
+       rmkx=\E[?1l\E>, rmso=\E[27m, rmul=\E[24m, 
+       rs2=\E[!p\E[?7;19;67h\E[?1;3;4l\E[1;0%w\E(B\E)0\017\E[2J\E[1;1H\E>$<200>, 
+       sc=\E7, 
+       sgr=\E[0%?%p1%p6%|%t;1%;%?%p2%t;4%;%?%p1%p3%|%t;7%;%?%p4%t;5%;m%?%p9%t\016%e\017%;$<20>, 
+       sgr0=\E[0m\017$<20>, smacs=\016$<20>, smam=\E[?7h, 
+       smir=\E[4h, smkx=\E[?1h\E=, smso=\E[7m, smul=\E[4m, 
+       tbc=\E[3g, tsl=\E[2$~\E[1$}, vpa=\E[%p1%dd$<40>, 
+ncr260vt300wan|NCR 2900_260 vt300 wide mode ansi kybd, 
+       cols#132, 
+       cup=\E[%i%p1%d;%p2%dH$<30>, 
+       is2=\E[!p\E[?3;7;19;67h\E[?4l\E[1;0%w\E(B\E)0\017\E[2J\E[1;1H$<200>, 
+       rs2=\E[!p\E[?3;7;19;67h\E[?4l\E[1;0%w\E(B\E)0\017\E[2J\E[1;1H$<200>, 
+       use=ncr260vt300an, 
+ncr260vt300pp|NCR 2900_260 vt300 with pc+ kybd, 
+       ka1=\E[H, ka3=\EOu, kb2=\E[V, kc3=\E[U, kcub1=\E[D, 
+       kcud1=\E[B, kcuf1=\E[C, kcuu1=\E[A, kdch1=\E[4~, 
+       kend=\E[1~, khome=\E[H, kich1=\E[2~, knp=\E[6~, kpp=\E[5~, 
+       lf1=pf1, lf2=pf2, lf3=pf3, lf4=pf4, rmkx=\E>, smkx=\E=, 
+       use=ncr260vt300an, 
+NCR260VT300WPP|ncr260vt300wpp|NCR 2900_260 vt300 wide mode pc+  kybd, 
+       cols#132, 
+       cup=\E[%i%p1%d;%p2%dH$<30>, 
+       is2=\E[!p\E[?3;7;19;67h\E[?1;4l\E[1;0%w\E(B\E)0\017\E[2J\E[1;1H\E>$<200>, 
+       rs2=\E[!p\E[?3;7;19;67h\E[?1;4l\E[1;0%w\E(B\E)0\017\E[2J\E[1;1H\E>$<200>, 
+       use=ncr260vt300pp, 
+# This terminfo file contains color capabilities for the Wyse325 emulation of 
+# the NCR 2900/260C color terminal.  Because of the structure of the command
+# (escape sequence) used to set color attributes, one of the fore/background
+# colors must be preset to a given value. I have set the background color to
+# black.  The user can change this setup by altering the last section of the
+# 'setf' definition.  The escape sequence to set color attributes is 
+#              ESC d y <foreground_color> <background_color> 1  
+# In addition, the background color can be changed through the desk accessories.
+# The capablitiy 'op' sets colors to green on black (default combination).  
+#
+# NOTE:  The NCR Unix System Administrator's Shell will not function properly
+#          if the 'pairs' capability is defined. Un-Comment the 'pairs'
+#          capability and recompile if you wish to have it included. 
+#
+ncr260wy325pp|NCR 2900_260 wyse 325, 
+       am, bw, hs, km, mc5i, mir, msgr, xon, 
+       colors#16, cols#80, lines#24, ncv#33, nlab#32, 
+       acsc=07a?h;j5k3l2m1n8q\:t4u9v=w0x6, bel=^G, blink=\EG2, 
+       cbt=\EI, civis=\E`0, clear=\E*$<10>, cnorm=\E`1, cr=^M, 
+       cub1=\010$<5>, cud1=\n$<5>, cuf1=\014$<5>, 
+       cup=\E=%p1%{32}%+%c%p2%{32}%+%c$<10>, cuu1=\013$<5>, 
+       cvvis=\E`5, dch1=\EW$<50>, dl1=\ER$<5>, dsl=\E`c, 
+       ed=\Ey$<5>, el=\Et$<5>, fsl=^M, home=\036$<5>, ht=^I, 
+       hts=\E1, il1=\EE$<5>, ind=\n$<5>, invis=\EG1, 
+       is2=\Ee6\Ed/\Ee1\Ed*\Er\EO\E`1\E`\:\E`@\E~!\E"\Ee4\Ex@\E`9\Ee7$<100>, 
+       kDC=\ER, kEND=\EY, kHOM=\E{, kNXT=\EK, kPRT=\E7, kPRV=\EJ, 
+       kRIT=^L, ka1=^^, kb2=\EJ, kbs=^H, kc1=\ET, kc3=\EK, kcbt=\EI, 
+       kcub1=^H, kcud1=^J, kcuf1=^L, kcuu1=^K, kdch1=\EW, kend=\ET, 
+       kf1=^A@\r, kf10=^AI\r, kf11=^AJ\r, kf12=^AK\r, kf13=^AL\r, 
+       kf14=^AM\r, kf15=^AN\r, kf16=^AO\r, kf17=^A`\r, kf18=^Aa\r, 
+       kf19=^Ab\r, kf2=^AA\r, kf20=^Ac\r, kf21=^Ad\r, kf22=^Ae\r, 
+       kf23=^Af\r, kf24=^Ag\r, kf25=^Ah\r, kf26=^Ai\r, kf27=^Aj\r, 
+       kf28=^Ak\r, kf29=^Al\r, kf3=^AB\r, kf30=^Am\r, kf31=^An\r, 
+       kf32=^Ao\r, kf4=^AC\r, kf5=^AD\r, kf6=^AE\r, kf7=^AF\r, 
+       kf8=^AG\r, kf9=^AH\r, khome=^^, kich1=\Eq, knp=\EK, kpp=\EJ, 
+       kprt=\EP, mc0=\EP, mc4=^T, mc5=^R, 
+       mrcup=\Ew@%p1%{48}%+%c%p2%{32}%+%c%p3%{32}%+%c$<10>, 
+       nel=\037$<5>, rev=\EG4, ri=\Ej$<5>, rmacs=\EH\003\EcB0, 
+       rmam=\Ed., rmir=\Er, rmso=\EG0, rmul=\EG0, rmxon=\Ec20, 
+       rs2=\Ee6\Ed/\Ee1\Ed*\Er\EO\E`1\E`\:\E`@\E~!\E"\Ee4\Ex@\E`9\Ee7$<100>, 
+       setb=\s, 
+       setf=%?%p1%{0}%=%t%{49}%e%p1%{1}%=%t%{50}%e%p1%{2}%=%t%{51}%e%p1%{3}%=%t%{52}%e%p1%{4}%=%t%{53}%e%p1%{5}%=%t%{54}%e%p1%{6}%=%t%{55}%e%p1%{7}%=%t%{64}%e%p1%{8}%=%t%{57}%e%p1%{9}%=%t%{58}%e%p1%{10}%=%t%{59}%e%p1%{11}%=%t%{60}%e%p1%{12}%=%t%{61}%e%p1%{13}%=%t%{62}%e%p1%{14}%=%t%{63}%e%p1%{15}%=%t%{56}%;\Edy%c11$<100>, 
+       sgr0=\EG0\EcB0\EcD$<15>, smacs=\EH\002\EcB1, smam=\Ed/, 
+       smir=\Eq, smso=\EGt, smul=\EG8, smxon=\Ec21, tbc=\E0, 
+       tsl=\EF, 
+ncr260wy325wpp|NCR 2900_260 wyse 325 wide mode, 
+       cols#132, 
+       cup=\Ea%i%p1%dR%p2%dC$<30>, 
+       is2=\Ee6\Ed/\Ee1\Ed*\Er\EO\E`1\E`;\E`@\E~!\E"\Ee4\Ex@\E`9\Ee7$<100>, 
+       rs2=\Ee6\Ed/\Ee1\Ed*\Er\EO\E`1\E`;\E`@\E~!\E"\Ee4\Ex@\E`9\Ee7$<100>, 
+       use=ncr260wy325pp, 
+# This definition for Wyse 350 supports several attributes.  This means
+# that it has magic cookies (extra spaces where the attributes begin).
+# Some applications do not function well with magic cookies.  The System
+# Administrator's Shell in NCR Unix SVR4 1.03 is one such application. 
+# If supporting various attributes is not vital, 'xmc#1' and the extra
+# attributes can be removed. 
+# Mapping to ASCII character set ('acsc' capability) can also be 
+# restored if needed.
+# In addition, color capabilities have been added to this file.  The drawback,
+# however, is that the background color has to be black.  The foreground colors
+# are numbered 0 through 15.  
+#
+# NOTE:  The NCR Unix System Administrator's Shell does not function properly
+#          with the 'pairs' capability defined as below.  If you wish to
+#          have it included, Un-comment it and recompile (using 'tic'). 
+#
+ncr260wy350pp|NCR 2900_260 wyse 350, 
+       am, bw, hs, km, mc5i, mir, msgr, xon, 
+       colors#16, cols#80, lines#24, ncv#33, nlab#32, xmc#1, 
+       acsc=07a?h;j5k3l2m1n8q\:t4u9v=w0x6, bel=^G, blink=\EG2, 
+       cbt=\EI, civis=\E`0, clear=\E+$<20>, cnorm=\E`1, cr=^M, 
+       cub1=\010$<5>, cud1=\n$<5>, cuf1=\014$<5>, 
+       cup=\E=%p1%{32}%+%c%p2%{32}%+%c$<40>, cuu1=\013$<5>, 
+       cvvis=\E`5, dch1=\EW$<50>, dim=\EGp, dl1=\ER$<5>, dsl=\E`c, 
+       ed=\Ey$<5>, el=\Et$<5>, fsl=^M, home=\036$<10>, ht=^I, 
+       hts=\E1, il1=\EE$<5>, ind=\n$<5>, invis=\EG1, 
+       is2=\Ee6\Ed/\Ee1\Ed*\Er\EO\E`1\E`\:\E`@\E~!\E"\Ee4\Ex@\E`9\Ee7$<100>, 
+       kDC=\ER, kEND=\EY, kHOM=\E{, kPRT=\E7, kRIT=^L, ka1=^^, kbs=^H, 
+       kc1=\ET, kc3=\EK, kcbt=\EI, kcub1=^H, kcud1=^J, kcuf1=^L, 
+       kcuu1=^K, kdch1=\EW, kend=\ET, kf1=^A@\r, kf10=^AI\r, 
+       kf11=^AJ\r, kf12=^AK\r, kf13=^AL\r, kf14=^AM\r, kf15=^AN\r, 
+       kf16=^AO\r, kf17=^A`\r, kf18=^Aa\r, kf19=^Ab\r, kf2=^AA\r, 
+       kf20=^Ac\r, kf21=^Ad\r, kf22=^Ae\r, kf23=^Af\r, kf24=^Ag\r, 
+       kf25=^Ah\r, kf26=^Ai\r, kf27=^Aj\r, kf28=^Ak\r, kf29=^Al\r, 
+       kf3=^AB\r, kf30=^Am\r, kf31=^An\r, kf32=^Ao\r, kf4=^AC\r, 
+       kf5=^AD\r, kf6=^AE\r, kf7=^AF\r, kf8=^AG\r, kf9=^AH\r, 
+       khome=^^, kich1=\Eq, knp=\EK, kpp=\EJ, kprt=\EP, 
+       mc0=\EP$<10>, mc4=^T, mc5=^R, 
+       mrcup=\Ew@%p1%{48}%+%c%p2%{32}%+%c%p3%{32}%+%c$<20>, 
+       nel=\037$<5>, rev=\EG4, ri=\Ej$<5>, rmacs=\EH\003\EcB0, 
+       rmam=\Ed., rmir=\Er, rmso=\EG0, rmul=\EG0, rmxon=\Ec20, 
+       rs2=\Ee6\Ed/\Ee1\Ed*\Er\EO\E`1\E`\:\E`@\E~!\E"\Ee4\Ex@\E`9\Ee7$<100>, 
+       setb=\s, 
+       setf=%?%p1%{0}%=%t%{49}%e%p1%{1}%=%t%{50}%e%p1%{2}%=%t%{51}%e%p1%{3}%=%t%{52}%e%p1%{4}%=%t%{53}%e%p1%{5}%=%t%{54}%e%p1%{6}%=%t%{55}%e%p1%{7}%=%t%{102}%e%p1%{8}%=%t%{97}%e%p1%{9}%=%t%{98}%e%p1%{10}%=%t%{99}%e%p1%{11}%=%t%{101}%e%p1%{12}%=%t%{106}%e%p1%{13}%=%t%{110}%e%p1%{14}%=%t%{111}%e%p1%{15}%=%t%{56}%;\Em0%c$<100>, 
+       sgr0=\EG0\EH\003\EcD, smacs=\EH\002\EcB1, smam=\Ed/, 
+       smir=\Eq, smso=\EGt, smul=\EG8, smxon=\Ec21, tbc=\E0, 
+       tsl=\EF, 
+ncr260wy350wpp|NCR 2900_260 wyse 350 wide mode, 
+       cols#132, 
+       cup=\Ea%i%p1%dR%p2%dC$<30>, 
+       is2=\Ee6\Ed/\Ee1\Ed*\Er\EO\E`1\E`;\E`@\E~!\E"\Ee4\Ex@\E`9\Ee7$<200>, 
+       rs2=\Ee6\Ed/\Ee1\Ed*\Er\EO\E`1\E`;\E`@\E~!\E"\Ee4\Ex@\E`9\Ee7$<200>, 
+       use=ncr260wy350pp, 
+# This definition for Wyse 50+ supports several attributes.  This means
+# that it has magic cookies (extra spaces where the attributes begin).
+# Some applications do not function well with magic cookies.  The System
+# Administrator's Shell in NCR Unix SVR4 1.03 is one such application. 
+# If supporting various attributes is not vital, 'xmc#1' and the extra
+# attributes can be removed. 
+# Mapping to ASCII character set ('acsc' capability) can also be 
+# restored if needed.
+# (ncr260wy50+pp: originally contained commented-out 
+# <acsc=j5k3l2m1n8q:t4u9v=w0x6>, as well as the commented-out one there -- esr)
+ncr260wy50+pp|NCR 2900_260 wyse 50+, 
+       am, bw, hs, km, mc5i, mir, msgr, xon, 
+       cols#80, lines#24, nlab#32, xmc#1, 
+       acsc=0wa_h[jukslrmqnxqzttuyv]wpxv, bel=^G, blink=\EG2, 
+       cbt=\EI$<5>, civis=\E`0, clear=\E+$<20>, cnorm=\E`1, cr=^M, 
+       cub1=\010$<5>, cud1=\n$<5>, cuf1=\014$<5>, 
+       cup=\E=%p1%{32}%+%c%p2%{32}%+%c$<30>, cuu1=\013$<5>, 
+       cvvis=\E`5, dch1=\EW$<50>, dim=\EGp, dl1=\ER$<5>, dsl=\E`c, 
+       ed=\EY$<5>, el=\ET$<5>, fsl=^M, home=\036$<10>, 
+       ht=\011$<5>, hts=\E1$<5>, il1=\EE$<5>, ind=\n$<5>, 
+       invis=\EG1, 
+       is2=\Ee6\E~"$<100>\E+\Ed/\Ee1\Ed*\Er\EO\E`1\E`\:\E`@\E~!\E"\Ee4\Ex@\E`9\Ee7$<100>, 
+       kDC=\ER, kEND=\EY, kHOM=\E{, kPRT=\E7, kRIT=^L, ka1=^^, kbs=^H, 
+       kc1=\ET, kc3=\EK, kcbt=\EI, kcub1=^H, kcud1=^J, kcuf1=^L, 
+       kcuu1=^K, kdch1=\EW, kend=\ET, kf1=^A@\r, kf10=^AI\r, 
+       kf11=^AJ\r, kf12=^AK\r, kf13=^AL\r, kf14=^AM\r, kf15=^AN\r, 
+       kf16=^AO\r, kf17=^A`\r, kf18=^Aa\r, kf19=^Ab\r, kf2=^AA\r, 
+       kf20=^Ac\r, kf21=^Ad\r, kf22=^Ae\r, kf23=^Af\r, kf24=^Ag\r, 
+       kf25=^Ah\r, kf26=^Ai\r, kf27=^Aj\r, kf28=^Ak\r, kf29=^Al\r, 
+       kf3=^AB\r, kf30=^Am\r, kf31=^An\r, kf32=^Ao\r, kf4=^AC\r, 
+       kf5=^AD\r, kf6=^AE\r, kf7=^AF\r, kf8=^AG\r, kf9=^AH\r, 
+       khome=^^, kich1=\Eq, knp=\EK, kpp=\EJ, kprt=\EP, 
+       mc0=\EP$<10>, mc4=^T, mc5=^R, 
+       mrcup=\Ew@%p1%{48}%+%c%p2%{32}%+%c%p3%{32}%+%c$<10>, 
+       nel=\037$<5>, rev=\EG4, ri=\Ej$<5>, rmacs=\EH^C, rmam=\Ed., 
+       rmir=\Er, rmso=\EG0, rmul=\EG0, rmxon=\Ec20, 
+       rs2=\Ee6\E~"$<100>\E+\Ed/\Ee1\Ed*\Er\EO\E`1\E`\:\E`@\E~!\E"\Ee4\Ex@\E`9\Ee7$<100>, 
+       sgr0=\EG0\EH\003$<15>, smacs=\EH^B, smam=\Ed/, smir=\Eq, 
+       smso=\EGt, smul=\EG8, smxon=\Ec21, tbc=\E0$<5>, tsl=\EF, 
+ncr260wy50+wpp|NCR 2900_260 wyse 50+ wide mode, 
+       cols#132, 
+       cup=\Ea%i%p1%dR%p2%dC$<30>, 
+       is2=\Ee6\E~"$<100>\E+\Ed/\Ee1\Ed*\Er\EO\E`1\E`;\E`@\E~!\E"\Ee4\Ex@\E`9\Ee7$<200>, 
+       rs2=\Ee6\E~"$<100>\E+\Ed/\Ee1\Ed*\Er\EO\E`1\E`;\E`@\E~!\E"\Ee4\Ex@\E`9\Ee7$<200>, 
+       use=ncr260wy50+pp, 
+ncr260wy60pp|NCR 2900_260 wyse 60, 
+       am, bw, hs, km, mc5i, mir, msgr, xon, 
+       cols#80, lines#24, nlab#32, 
+       acsc=07a?h;j5k3l2m1n8q\:t4u9v=w0x6, bel=^G, blink=\EG2, 
+       cbt=\EI$<15>, civis=\E`0, clear=\E*$<100>, cnorm=\E`1, 
+       cr=^M, cub1=\010$<5>, cud1=\n$<5>, cuf1=\014$<5>, 
+       cup=\E=%p1%{32}%+%c%p2%{32}%+%c$<10>, cuu1=\013$<5>, 
+       cvvis=\E`5, dch1=\EW$<50>, dl1=\ER$<5>, dsl=\E`c, 
+       ed=\Ey$<5>, el=\Et$<5>, fsl=^M, home=\036$<25>, 
+       ht=\011$<15>, hts=\E1$<15>, il1=\EE$<5>, ind=\n$<5>, 
+       invis=\EG1, 
+       is2=\Ee6\E~4$<100>\E+\Ed/\Ee1\Ed*\Er\EO\E`1\E`\:\E`@\E~!\E"\Ee4\Ex@\E`9\Ee7$<100>, 
+       kDC=\ER, kEND=\EY, kHOM=\E{, kNXT=\EK, kPRT=\E7, kPRV=\EJ, 
+       kRIT=^L, ka1=^^, kb2=\EJ, kbs=^H, kc1=\ET, kc3=\EK, 
+       kcbt=\EI$<15>, kcub1=^H, kcud1=^J, kcuf1=^L, kcuu1=^K, 
+       kdch1=\EW, kend=\ET, kf1=^A@\r, kf10=^AI\r, kf11=^AJ\r, 
+       kf12=^AK\r, kf13=^AL\r, kf14=^AM\r, kf15=^AN\r, kf16=^AO\r, 
+       kf17=^A`\r, kf18=^Aa\r, kf19=^Ab\r, kf2=^AA\r, kf20=^Ac\r, 
+       kf21=^Ad\r, kf22=^Ae\r, kf23=^Af\r, kf24=^Ag\r, kf25=^Ah\r, 
+       kf26=^Ai\r, kf27=^Aj\r, kf28=^Ak\r, kf29=^Al\r, kf3=^AB\r, 
+       kf30=^Am\r, kf31=^An\r, kf32=^Ao\r, kf4=^AC\r, kf5=^AD\r, 
+       kf6=^AE\r, kf7=^AF\r, kf8=^AG\r, kf9=^AH\r, khome=^^, 
+       kich1=\Eq, knp=\EK, kpp=\EJ, kprt=\EP, mc0=\EP, mc4=^T, mc5=^R, 
+       mrcup=\Ew@%p1%{48}%+%c%p2%{32}%+%c%p3%{32}%+%c$<30>, 
+       nel=\037$<5>, rev=\EG4, ri=\Ej$<5>, rmacs=\EH^C, rmam=\Ed., 
+       rmir=\Er, rmso=\EG0, rmul=\EG0, rmxon=\Ec20, 
+       rs2=\Ee6\E~4$<100>\E+\Ed/\Ee1\Ed*\Er\EO\E`1\E`\:\E`@\E~!\E"\Ee4\Ex@\E`9\Ee7$<100>, 
+       sgr0=\EG0\EcB0\EcD$<15>, smacs=\EH^B, smam=\Ed/, 
+       smir=\Eq, smso=\EGt, smul=\EG8, smxon=\Ec21, tbc=\E0$<15>, 
+       tsl=\EF, 
+ncr260wy60wpp|NCR 2900_260 wyse 60 wide mode, 
+       cols#132, 
+       cup=\Ea%i%p1%dR%p2%dC$<30>, 
+       is2=\Ee6\E~4$<100>\E+\Ed/\Ee1\Ed*\Er\EO\E`1\E`;\E`@\E~!\E"\Ee4\Ex@\E`9\Ee7$<100>, 
+       rs2=\Ee6\E~4$<100>\E+\Ed/\Ee1\Ed*\Er\EO\E`1\E`;\E`@\E~!\E"\Ee4\Ex@\E`9\Ee7$<100>, 
+       use=ncr260wy60pp, 
+ncr160vppp|NCR 2900_160 viewpoint, 
+       use=ncr260vppp, 
+ncr160vpwpp|NCR 2900_160 viewpoint wide mode, 
+       use=ncr260vpwpp, 
+ncr160vt100an|NCR 2900_160 vt100 with ansi kybd, 
+       use=ncr260vt100an, 
+ncr160vt100pp|NCR 2900_160 vt100 with PC+ kybd, 
+       use=ncr260vt100pp, 
+ncr160vt100wan|NCR 2900_160 vt100 wide mode ansi kybd, 
+       use=ncr260vt100wan, 
+ncr160vt100wpp|NCR 2900_160 vt100 wide mode pc+  kybd, 
+       use=ncr260vt100wpp, 
+ncr160vt200an|NCR 2900_160 vt200 with ansi kybd, 
+       use=ncr260vt200an, 
+ncr160vt200pp|NCR 2900_160 vt200 with pc+ kybd, 
+       use=ncr260vt200pp, 
+ncr160vt200wan|NCR 2900_160 vt200 wide mode ansi kybd, 
+       use=ncr260vt200wan, 
+ncr160vt200wpp|NCR 2900_160 vt200 wide mode pc+  kybd, 
+       use=ncr260vt200wpp, 
+ncr160vt300an|NCR 2900_160 vt300 with ansi kybd, 
+       use=ncr260vt300an, 
+ncr160vt300pp|NCR 2900_160 vt300 with pc+ kybd, 
+       use=ncr260vt300pp, 
+ncr160vt300wan|NCR 2900_160 vt300 wide mode ansi kybd, 
+       use=ncr260vt300wan, 
+ncr160vt300wpp|NCR 2900_160 vt300 wide mode pc+  kybd, 
+       use=ncr260vt300wpp, 
+ncr160wy50+pp|NCR 2900_160 wyse 50+, 
+       use=ncr260wy50+pp, 
+ncr160wy50+wpp|NCR 2900_160 wyse 50+ wide mode, 
+       use=ncr260wy50+wpp, 
+ncr160wy60pp|NCR 2900_160 wyse 60, 
+       use=ncr260wy60pp, 
+ncr160wy60wpp|NCR 2900_160 wyse 60 wide mode, 
+       use=ncr260wy60wpp, 
+ncrvt100an|ncrvt100pp|NCR vt100 for the 2900 terminal, 
+       am, hs, mc5i, mir, msgr, xon, 
+       cols#80, it#8, lines#24, nlab#32, 
+       acsc=``aaffgghhiijjkkllmmnnqqttuuvvwwxxyyzz~~, 
+       bel=^G, blink=\E[5m$<30>, bold=\E[1m$<30>, 
+       clear=\E[2J\E[1;1H$<300>, cr=^M, 
+       csr=\E[%i%p1%d;%p2%dr$<100>, cub=\E[%p1%dD$<30>, 
+       cub1=\E[D$<2>, cud=\E[%p1%dB$<30>, cud1=\E[B$<2>, 
+       cuf=\E[%p1%dC$<30>, cuf1=\E[C$<2>, 
+       cup=\E[%i%p1%d;%p2%dH$<100>, cuu=\E[%p1%dA$<30>, 
+       cuu1=\E[A$<2>, dch=\E[%p1%dP$<40>, dch1=\E[1P$<10>, 
+       dl=\E[%p1%dM$<70>, dl1=\E[M$<40>, dsl=\E[31l$<25>, 
+       ed=\E[0J$<300>, el=\E[0K$<30>, el1=\E[1K$<30>, 
+       enacs=\E(B\E)0$<40>, fsl=1$<10>, home=\E[H$<2>$<80>, 
+       ht=^I, hts=\EH, il=\E[%p1%dL$<80>, il1=\E[B\E[L$<80>, 
+       ind=\ED, 
+       is2=\E[12h\E[?10l\E%/0n\E[P\031\E[?3l\E(B\E)0$<200>, 
+       kLFT=\E[D, kRIT=\E[C, ka1=\E[H, kbs=^H, kcub1=\E[D, 
+       kcud1=\E[B, kcuf1=\E[C, kcuu1=\E[A, kent=^M, kf1=\EOP, 
+       kf2=\EOQ, kf3=\EOR, kf4=\EOS, mc0=\E[i$<100>, nel=\EE, 
+       rc=\E8, rev=\E[7m$<30>, ri=\EM$<50>, rmacs=\017$<90>, 
+       rmir=\E[4l$<80>, rmso=\E[0m$<30>, rmul=\E[0m$<30>, 
+       rs2=\Ec\E[12;31h\E[?3;4;5;10l\E[?6;7;19;25h\E[33;34l\E[0m\E(B\E)0\E%/0n\E[P\031$<200>, 
+       sc=\E7, 
+       sgr=\E[0%?%p1%p6%|%t;1%;%?%p2%t;4%;%?%p1%p3%|%t;7%;%?%p4%t;5%;m%?%p9%t\016%e\017%;$<100>, 
+       sgr0=\017\E[0m$<120>, smacs=\016$<90>, smir=\E[4h$<80>, 
+       smso=\E[7m$<30>, smul=\E[4m$<30>, tbc=\E[3g$<40>, 
+       tsl=\E[>+1$<70>, 
+ncrvt100wan|NCRVT100WPP|ncrvt100wpp|NCR VT100 emulation of the 2900 terminal, 
+       cols#132, 
+       is2=\E[12h\E[?10l\E%/0n\E[P\031\E[?3h\E(B\E)0$<200>, 
+       rs2=\Ec\E[12;31h\E[?4;5;10l\E?3;6;7;19;25h\E[33;34l\E[0m\E(B\E)0\E%/0n\E[P\031$<200>, 
+       use=ncrvt100an, 
+#
+# Vendor-supplied NCR termcaps end here
+
 # NCR7900 DIP switches:
 #
 # Switch A:
@@ -9574,13 +12658,13 @@ ncr7900i|ncr7900|ncr 7900 model 1,
        is2=\E0@\010\E3\E4\E7, kcub1=^U, kcud1=^J, kcuf1=^F, 
        kcuu1=^Z, khome=^A, ll=^A, mc4=^T, mc5=^R, rev=\E0P, rmso=\E0@, 
        rmul=\E0@, 
-       sgr=\E0%p5%'@'%+%p4%{2}%*%+%p3%{16}%*%+%p2%{32}%*%+%p1%{17}%*%+%c, 
+       sgr=\E0%p5%{64}%+%p4%{2}%*%+%p3%{16}%*%+%p2%{32}%*%+%p1%{17}%*%+%c, 
        sgr0=\E0@, smso=\E0Q, smul=\E0`, 
 ncr7900iv|ncr 7900 model 4, 
        am, bw, eslok, hs, 
        cols#80, lines#24, 
        bel=^G, clear=^L, cr=^M, cub1=^H, cud1=^J, 
-       cup=\013%p1%'@'%+%c\E\005%p2%02d, dl1=\E^O, dsl=\Ey1, 
+       cup=\013%p1%{64}%+%c\E\005%p2%02d, dl1=\E^O, dsl=\Ey1, 
        fsl=\Ek\Ey5, home=\013@\E^E00, il1=\E^N, ind=^J, kbs=^H, 
        kcub1=\ED, kcud1=\EB, kcuf1=\EC, kcuu1=\EA, kf1=\ES, kf2=\ET, 
        kf3=\EU, kf4=\EV, kf5=\EW, kf6=\EP, kf7=\EQ, kf8=\ER, 
@@ -9596,9 +12680,9 @@ ncr7901|ncr 7901 model,
        hpa=\020%p1%{10}%/%{16}%*%p1%{10}%m%+%c, ind=^J, 
        is2=\E4^O, kclr=^L, kcub1=^U, kcud1=^J, kcuf1=^F, kcuu1=^Z, 
        khome=^H, ll=^A, mc4=^T, mc5=^R, rev=\E0P, rmso=^O, rmul=^O, 
-       sgr=\E0%p5%'@'%+%p4%{2}%*%+%p3%{16}%*%+%p2%{32}%*%+%p1%{17}%*%+%c\016, 
+       sgr=\E0%p5%{64}%+%p4%{2}%*%+%p3%{16}%*%+%p2%{32}%*%+%p1%{17}%*%+%c\016, 
        sgr0=^O, smso=\E0Q\016, smul=\E0`\016, 
-       vpa=\013%p1%'@'%+%c, 
+       vpa=\013%p1%{64}%+%c, 
 
 #### Perkin-Elmer (Owl)
 #
@@ -9627,7 +12711,7 @@ owl|pe1200|perkin elmer 1200,
        hts=\E1, ich1=\EN, il1=\EL$<5.5*>, ind=^J, ip=$<5.5*>, 
        kbs=^H, kf0=\ERJ, kf1=\ERA, kf2=\ERB, kf3=\ERC, kf4=\ERD, 
        kf5=\ERE, kf6=\ERF, kf7=\ERG, kf8=\ERH, kf9=\ERI, ll=\EH\EA, 
-       rmso=\E!\200, sgr0=\E!\200, smso=\E!^H, tbc=\E3, 
+       rmso=\E!\0, sgr0=\E!\0, smso=\E!^H, tbc=\E3, 
 pe1251|pe6300|pe6312|perkin elmer 1251, 
        am, 
        cols#80, it#8, lines#24, pb#300, vt#8, xmc#1, 
@@ -9645,14 +12729,14 @@ pe7000m|perkin elmer 7000 series monochrome monitor,
        bel=^G, cbt=\E!Y, clear=\EK, cr=^M, cub1=\ED, cud1=\EB, 
        cuf1=\EC, cup=\ES%p1%{32}%+%c%p2%{32}%+%c, cuu1=\EA, 
        ed=\EJ, el=\EI, home=\EH, ind=^J, 
-       is1=\E!\200\EW  7o\Egf\ES7\s, kbs=^H, kcub1=\E!V, 
-       kcud1=\E!U, kcuf1=\E!W, kcuu1=\E!T, kf0=\E!\200, kf1=\E!^A, 
+       is1=\E!\0\EW  7o\Egf\ES7\s, kbs=^H, kcub1=\E!V, 
+       kcud1=\E!U, kcuf1=\E!W, kcuu1=\E!T, kf0=\E!\0, kf1=\E!^A, 
        kf10=\E!^J, kf2=\E!^B, kf3=\E!^C, kf4=\E!^D, kf5=\E!^E, 
        kf6=\E!^F, kf7=\E!^G, kf8=\E!^H, kf9=\E!^I, khome=\E!S, 
        ll=\ES7\s, ri=\ER, 
 pe7000c|perkin elmer 7000 series colour monitor, 
-       is1=\E!\200\EW  7o\Egf\Eb0\Ec7\ES7\s, rmso=\Eb0, 
-       rmul=\E!\200, smso=\Eb2, smul=\E!\s, 
+       is1=\E!\0\EW  7o\Egf\Eb0\Ec7\ES7\s, rmso=\Eb0, 
+       rmul=\E!\0, smso=\Eb2, smul=\E!\s, 
        use=pe7000m, 
 
 #### Sperry Univac
@@ -9727,7 +12811,7 @@ dmterm|deskmate terminal,
 dt100|dt-100|Tandy DT-100 terminal, 
        xon, 
        cols#80, lines#24, xmc#1, 
-       acsc=kkllmmjjnnwwvvttuuqqxx, bel=^G, civis=\E[?25l, 
+       acsc=jjkkllmmnnqqttuuvvwwxx, bel=^G, civis=\E[?25l, 
        clear=\E[H\E[2J, cnorm=\E[?25h, cr=^M, 
        csr=\E[%p1%2d;%p2%2dr, cub1=^H, cud1=\E[B, cuf1=\E[C, 
        cup=\010\E[%i%p1%d;%p2%dH, cuu1=\E[A, dch1=\E[P, 
@@ -9744,7 +12828,7 @@ dt100w|dt-100w|Tandy DT-100 terminal (wide mode),
 dt110|Tandy DT-110 emulating ansi, 
        xon, 
        cols#80, lines#24, 
-       acsc=kkllmmjjnnwwvvuuttqqxx, bel=^G, civis=\E[?25l, 
+       acsc=jjkkllmmnnqqttuuvvwwxx, bel=^G, civis=\E[?25l, 
        clear=\E[H\E[2J, cnorm=\E[?25h, cr=^M, 
        csr=\E[%i%p1%d;%p2%dr, cub1=^H, cud1=\E[0B, cuf1=\E[C, 
        cup=\010\E[%i%p1%d;%p2%dH, cuu1=\E[0A, dch1=\E[0P, 
@@ -9998,7 +13082,7 @@ tek4105a|Tektronix 4105,
 # and factory color maps.  After setting these modes, save them with NVSAVE.  No
 # delays are specified; use "stty ixon -ixany" to enable DC3/DC1 flow control!
 # "IC" cannot be used in combination with "im" & "ei".
-tek4106brl|tek4107brl|tek4109brl|Tektronix 4106, 4107, or 4109, 
+tek4106brl|tek4107brl|tek4109brl|Tektronix 4106 4107 or 4109, 
        msgr, xon, 
        cols#80, it#8, lines#32, vt#3, 
        acsc=, bel=^G, blink=\E[5m, bold=\E[1m, cbt=\E[Z, 
@@ -10220,16 +13304,16 @@ tek4205|tektronix 4205,
        dch1=\E[1P, dim=\E[=1;<6m, dl1=\E[1M, ech=\E%p1%dX, 
        ed=\E[J, el=\E[K, el1=\E[1K, enacs=\E)0, home=\E[H, ht=^I, 
        ich=\E[%p1%d@, il=\E[%p1%dL, il1=\E[1L, ind=\ED, 
-       initc=\E%%!0\n\ETF4\n%?%p1%{0}%=%t0\n%e%p1%{1}%=%t4\n%e%p1%{2}%=%t3\n%e%p1%{3}%=%t5\n%e%p1%{4}%=%t2\n%e%p1%{5}%=%t6\n%e%p1%{6}%=%t7\n%e1%;\n%?%p2%{125}%<%t0\n%e%p2%{250}%<%tA2\n%e%p2%{375}%<%tA?\n%e%p2%{500}%<%tC8\n%e%p2%{625}%<%tD4\n%e%p2%{750}%<%tE1\n%e%p2%{875}%<%tE\:\n%eF4%;\n%?%p3%{125}%<%t0\n%e%p3%{250}%<%tA2\n%e%p3%{375}%<%tA?\n%e%p3%{500}%<%tC8\n%e%p3%{625}%<%tD4\n%e%p3%{750}%<%tE1\n%e%p3%{875}%<%tE\:\n%eF4%;\n%?%p4%{125}%<%t0\n%e%p4%{250}%<%tA2\n%e%p4%{375}%<%tA?\n%e%p4%{500}%<%tC8\n%e%p4%{625}%<%tD4\n%e%p4%{750}%<%tE1\n%e%p4%{875}%<%tE\:\n%eF4%;\n\E%%!1, 
+       initc=\E%%!0\ETF4%?%p1%{0}%=%t0%e%p1%{1}%=%t4%e%p1%{2}%=%t3%e%p1%{3}%=%t5%e%p1%{4}%=%t2%e%p1%{5}%=%t6%e%p1%{6}%=%t7%e1%;%?%p2%{125}%<%t0%e%p2%{250}%<%tA2%e%p2%{375}%<%tA?%e%p2%{500}%<%tC8%e%p2%{625}%<%tD4%e%p2%{750}%<%tE1%e%p2%{875}%<%tE\:%eF4%;%?%p3%{125}%<%t0%e%p3%{250}%<%tA2%e%p3%{375}%<%tA?%e%p3%{500}%<%tC8%e%p3%{625}%<%tD4%e%p3%{750}%<%tE1%e%p3%{875}%<%tE\:%eF4%;%?%p4%{125}%<%t0%e%p4%{250}%<%tA2%e%p4%{375}%<%tA?%e%p4%{500}%<%tC8%e%p4%{625}%<%tD4%e%p4%{750}%<%tE1%e%p4%{875}%<%tE\:%eF4%;\E%%!1, 
        invis=\E[=6;<5, is1=\E%!0\ETM1\E%!1\E[m, kbs=^H, 
        kcub1=\E[D, kcud1=\E[B, kcuf1=\E[C, kcuu1=\E[A, kf0=\EOA, 
        kf1=\EOB, kf2=\EOC, kf3=\EOD, kf4=\EP, kf5=\EQ, kf6=\ER, 
        kf7=\ES, 
-       oc=\E%!0\n\ETFB0\n0000\n1F4F4F4\n2F400\n30F40\n4A4C<F4\n50F4F4\n6F40F4\n7F4F40\n\E%!1, 
+       oc=\E%!0\ETFB000001F4F4F42F40030F404A4C<F450F4F46F40F47F4F40\E%!1, 
        op=\E[39;40m, rev=\E[7m, ri=\EM, rmacs=^O, rmcup=, 
        rmir=\E[4l, rmso=\E[=0;<1m, rmul=\E[24m, 
-       setb=\E[=%?%p1%{0}%=%t0m\n%e%p1%{1}%=%t4m\n%e%p1%{2}%=%t3m\n%e%p1%{3}%=%t5m\n%e%p1%{4}%=%t2m\n%e%p1%{5}%=%t6m\n%e%p1%{6}%=%t7m\n%e1m%;, 
-       setf=\E[<%?%p1%{0}%=%t0m\n%e%p1%{1}%=%t4m\n%e%p1%{2}%=%t3m\n%e%p1%{3}%=%t5m\n%e%p1%{4}%=%t2m\n%e%p1%{5}%=%t6m\n%e%p1%{6}%=%t7m\n%e1m%;, 
+       setb=\E[=%?%p1%{0}%=%t0m%e%p1%{1}%=%t4m%e%p1%{2}%=%t3m%e%p1%{3}%=%t5m%e%p1%{4}%=%t2m%e%p1%{5}%=%t6m%e%p1%{6}%=%t7m%e1m%;, 
+       setf=\E[<%?%p1%{0}%=%t0m%e%p1%{1}%=%t4m%e%p1%{2}%=%t3m%e%p1%{3}%=%t5m%e%p1%{4}%=%t2m%e%p1%{5}%=%t6m%e%p1%{6}%=%t7m%e1m%;, 
        sgr0=\E[=0;<1m\E[24;25;27m\017, smacs=^N, 
        smcup=\E%%!1\E[?6l\E[2J, smir=\E[4h, smso=\E[=2;<3m, 
        smul=\E[4m, tbc=\E[1g, 
@@ -10287,7 +13371,7 @@ tty43|model 43 teletype,
 scanset|sc410|sc415|Tymshare Scan Set, 
        am, bw, msgr, 
        cols#80, lines#24, 
-       acsc=l<m-k4j%q\,x5, bel=^G, clear=\EH\EJ, cr=^M, cub1=^H, 
+       acsc=j%k4l<m-q\,x5, bel=^G, clear=\EH\EJ, cr=^M, cub1=^H, 
        cud1=^J, cuf1=^I, cup=\EY%p1%{32}%+%c%p2%{32}%+%c, 
        cuu1=^K, ed=\EJ, el=\EK, home=\EH, ind=^J, kcub1=\ED, 
        kcud1=\EB, kcuf1=\EC, kcuu1=\EA, mc0=\E;3, mc4=\E;0, 
@@ -10297,8 +13381,8 @@ scanset|sc410|sc415|Tymshare Scan Set,
 #
 # If you saw a Byte Magazine cover with a terminal on it during the early
 # 1980s, it was probably one of these.  Carl Helmers liked them because
-# they could crank 19.2 and were cheap (that is, until he tried to program
-# one...)
+# they could crank 19.2 and were cheap (that is, he liked them until he tried
+# to program one...)
 #
 
 # Missing in vc303a and vc303 descriptions:  they scroll 2 lines at a time
@@ -10367,13 +13451,32 @@ kaypro|kaypro2|kaypro II,
        el=^X, home=^^, il1=\EE, ind=^J, kcud1=^J, kcuf1=^L, kcuu1=^K, 
 
 # From IBM, Thu May  5 19:35:27 1983
-# (ibmpc: commented out <smir>=\200R because we don't know <rmir> -- esr)
-ibmpc|ibm-pc|ibm5051|5051|IBM Personal Computer (no ANSI.SYS), 
+# (commented out <smir>=\200R because we don't know <rmir> -- esr)
+ibm-pc|ibm5051|5051|IBM Personal Computer (no ANSI.SYS), 
        am, 
        cols#80, lines#24, 
        bel=^G, clear=^L^K, cr=^M^^, cub1=^], cud1=^J, cuf1=^\, 
        cuu1=^^, home=^K, ind=\n$<10>, kcud1=^_, 
 
+ibmpc|wy60-PC|wyse60-PC|IBM PC/XT running PC/IX, 
+       am, bw, eo, hs, km, msgr, ul, 
+       cols#80, it#8, lines#24, 
+       acsc=j\331k\277l\332m\300n\305q\304t\303u\264v\301w\302x\263, 
+       bel=^G, blink=\E[5m, bold=\E[1m, clear=\Ec, cr=^M, 
+       cub=\E[%p1%dD, cub1=\E[D, cud=\E[%p1%dB, cud1=\E[B, 
+       cuf=\E[%p1%dC, cuf1=\E[C, cup=\E[%i%p1%d;%p2%dH, 
+       cuu=\E[%p1%dA, cuu1=\E[A, ech=\E[%p1%dX, ed=\E[J, el=\E[K, 
+       home=\E[H, hpa=\E[%i%p1%dG, ind=\E[S\E[B, 
+       indn=\E[%p1%dS\E[%p1%dB, invis=\E[30;40m, kbs=^H, 
+       kcbt=^], kcub1=\E[D, kcud1=\E[B, kcuf1=\E[C, kcuu1=\E[A, 
+       kdch1=\177, kend=\E[Y, kf1=\240, kf10=\251, kf2=\241, 
+       kf3=\242, kf4=\243, kf5=\244, kf6=\245, kf7=\246, kf8=\247, 
+       kf9=\250, khome=\E[H, kich1=\E[^H, knp=\E[U, ll=\E[24;1H, 
+       nel=^M, rev=\E[7m, ri=\E[T\E[A, rin=\E[%p1%dT\E[%p1%dA, 
+       rmso=\E[m, rmul=\E[m, 
+       sgr=\E[%?%p1%t;7%;%?%p2%t;4%;%?%p3%t;7%;%?%p4%t;5%;%?%p6%t;1%;m, 
+       sgr0=\E[m, smso=\E[7m, smul=\E[4m, 
+
 #### Apple II
 #
 # Apple II firmware console first, then various 80-column cards and 
@@ -10544,7 +13647,7 @@ apple-vm80|ap-vm80|apple with viewmax-80,
 lisa|apple lisa console display (black on white), 
        am, eo, msgr, 
        cols#88, it#8, lines#32, 
-       acsc=lfmekcjdttuvvuwsqax`nb, civis=\E[5h, clear=^L, 
+       acsc=jdkclfmenbqattuvvuwsx`, civis=\E[5h, clear=^L, 
        cnorm=\E[5l, cub1=^H, cud1=\E[B, cuf1=\E[C, 
        cup=\E[%i%p1%d;%p2%dH, cuu1=\E[A, dch1=\E[P, dl1=\E[M, 
        ed=\E[J, el=\E[K, home=\E[H, ht=^I, ich1=\E[@, il1=\E[L, 
@@ -10611,7 +13714,7 @@ coco3|os9LII|Tandy CoCo3 24*80 OS9 Level II,
        cup=\002%p2%{32}%+%c%p1%{32}%+%c$<2/>, cuu1=^I, 
        dl1=^_1, ed=^K, el=^D, home=^A, il1=^_0, kcub1=^H, kcud1=^J, 
        kcuf1=^I, kcuu1=^L, rev=^_\s, rmso=^_!, rmul=^_#, 
-       sgr0=\037!\E\:\200, smso=^_\s, smul=^_", 
+       sgr0=\037!\E\:\0, smso=^_\s, smul=^_", 
 # (trs2: removed obsolete ":nl=^_:" -- esr)
 trs2|trsII|trs80II|Radio Shack Model II using P&T CP/M, 
        am, msgr, 
@@ -10628,7 +13731,7 @@ trs2|trsII|trs80II|Radio Shack Model II using P&T CP/M,
 trs16|trs-80 model 16 console, 
        am, 
        cols#80, it#8, lines#24, 
-       acsc=l_mbk`javewcquxs, bel=^G, civis=\ERc, clear=^L, 
+       acsc=jak`l_mbquvewcxs, bel=^G, civis=\ERc, clear=^L, 
        cnorm=\ERC, cr=^M, cub1=^H, cud1=\EB, cuf1=\EC, 
        cup=\EY%p1%{32}%+%c%p2%{32}%+%c, cuu1=\EA, dch1=\EQ, 
        dl1=\EM, ed=\EJ, el=\EK, home=\EH, ht=^I, ich1=\EP, il1=\EL, 
@@ -10699,7 +13802,7 @@ st52|Atari ST with VT52 emulation,
 # :k0=\E9~:    map F10 to k0 - could have F0-9 -> k0-9, but ... F10 was 'k;'
 # (amiga: removed obsolete :kn#10:,
 # also added empty <acsc> to suppress a warning --esr)
-amiga-old|Amiga ANSI, 
+amiga|Amiga ANSI, 
        am, bw, xenl, 
        cols#80, lines#24, 
        acsc=, bel=^G, blink=\E[7;2m, bold=\E[1m, cbt=\E[Z, 
@@ -10717,8 +13820,10 @@ amiga-old|Amiga ANSI,
        smso=\E[7m, smul=\E[4m, 
 
 # From: Hans Verkuil <hans@wyst.hobby.nl>, 4 Dec 1995
-# (amiga: added empty <acsc> to suppress a warning --esr)
-amiga|Amiga ANSI, 
+# (amiga: added empty <acsc> to suppress a warning.
+# I'm told this entry screws up badly with AS225, the Amiga
+# TCP/IP package once from Commodore, and now sold by InterWorks.--esr)
+amiga-h|Hans Verkuil's Amiga ANSI, 
        bw, msgr, 
        cols#80, lines#24, 
        acsc=, bel=^G, blink=\2337;2m, bold=\2331m, cbt=\233Z, 
@@ -10737,6 +13842,12 @@ amiga|Amiga ANSI,
        rmul=\2330m, rs1=\Ec, sgr0=\2330m, smacs=^N, smcup=\233?7l, 
        smso=\2337m, smul=\2334m, 
 
+# From: Henning 'Faroul' Peters <Faroul@beyond.kn-bremen.de>, 25 Sep 1999
+amiga-8bit|Amiga ANSI using 8-bit controls, 
+       acsc=, dl=\233%p1%dM, dl1=\233M, il=\233%p1%dL, il1=\233L, 
+       ind=\204, indn@, ri=\215, rin@, 
+       use=amiga-h, 
+
 # Commodore B-128 microcomputer from Doug Tyrol <det@HEL-ACE.ARPA>
 #      I'm trying to write a termcap for a commodore b-128, and I'm
 # having a little trouble. I've had to map most of my control characters
@@ -10795,7 +13906,7 @@ osborne|osborne1|osborne I in 80-column mode,
        cols#80, lines#24, 
        clear=^Z, cub1=\010$<4>, cud1=^J, cuf1=^L, 
        cup=\E=%p1%{32}%+%c%p2%{32}%+%c, cuu1=^K, 
-       dch1=\\EW$<4/>, dl1=\ER, el=\ET, il1=\EE, is2=^Z, kbs=^H, 
+       dch1=\EW$<4/>, dl1=\ER, el=\ET, il1=\EE, is2=^Z, kbs=^H, 
        kcub1=^H, kcud1=^J, kcuf1=^L, kcuu1=^K, rmir=, rmso=\E), 
        rmul=\Em, smir=\EQ, smso=\E(, smul=\El, 
 #
@@ -10843,9 +13954,11 @@ minix|minix console (v1.7),
        kf5=\E[G, khome=\E[H, lf0=End, lf1=PgUp, lf2=PgDn, lf3=Num +, 
        lf4=Num -, lf5=Num 5, nel=^M^J, rev=\E[7m, ri=\EM, 
        rmso=\E[0m, rmul=\E[0m, sgr0=\E[0m, smso=\E[7m, smul=\E[4m, 
+# Corrected Jan 14, 1997 by Vincent Broman <broman@nosc.mil>
 minix-old|minix console (v1.5), 
+       xon, 
        cols#80, it#8, lines#25, 
-       blink=\E[5m, bold=\E[1m, clear=\E[H\E[0J, cr=^M, 
+       bel=^G, blink=\E[5m, bold=\E[1m, clear=\E[H\E[0J, cr=^M, 
        cub=\E[%p1%dD, cub1=^H, cud=\E[%p1%dB, cud1=\E[B, 
        cuf=\E[%p1%dC, cuf1=\E[C, cup=\E[%i%p1%d;%p2%dH, 
        cuu=\E[%p1%dA, cuu1=\E[A, dch=\E[%p1%dP, dch1=\E[P, 
@@ -10855,6 +13968,10 @@ minix-old|minix console (v1.5),
        kf0=\E[Y, kf1=\E[V, kf2=\E[U, kf3=\E[T, kf4=\E[S, kf5=\E[G, 
        khome=\E[H, nel=^M^J, rev=\E[7m, ri=\EM, rmso=\E[0m, 
        rmul=\E[0m, sgr0=\E[0m, smso=\E[7m, smul=\E[4m, 
+# The linewrap option can be specified by editing /usr/include/minix/config.h
+# before recompiling the minix 1.5 kernel.
+minix-old-am|minix console with linewrap, 
+       am, use=minix-old, 
 
 pc-minix|minix console on an Intel box, 
        use=klone+acs, use=minix, 
@@ -10890,6 +14007,28 @@ pc-venix|venix|IBM PC console running Venix,
 # If you know anything more about any of these, please tell me.
 #
 
+# The MAI Basic Four computer was obsolete at the end of the 1980s.
+# It may be used as a terminal by putting it in "line" mode as seen on 
+# one of the status lines.
+# Initialization is similar to CIT80. <is2> will set ANSI mode for you.  
+# Hardware tabs set by <if> at 8-spacing.  Auto line wrap causes glitches so
+# wrap mode is reset by <cvvis>.  Using <ind>=\E[S caused errors so I 
+# used \ED instead.
+# From: bf347@lafn.org (David Lawyer), 28 Jun 1997
+mai|basic4|MAI Basic Four in ansi mode, 
+       am, da, db, mir, msgr, 
+       cols#82, it#8, lines#25, 
+       bel=^G, blink=\E[5m, bold=\E[1m, clear=^]^_, cnorm=\E[?7h, 
+       cr=^M, csr=\E[%i%p1%d;%p2%dr, cub1=^H, cud1=^J, cuf1=^X, 
+       cup=\E[%i%p1%d;%p2%dH, cuu1=^Z, cvvis=\E[?7l, dch1=\E[1P, 
+       dl1=\E[M, ed=^_, el=^^, home=^], ht=^I, 
+       if=/usr/lib/tabset/vt100, il1=\E[L, ind=\ED, 
+       is2=\E>\E[?1h\E[?7h\E[?5l\017\E(B\E[m\E[20l\E[1;24r\E[24;1H, 
+       kbs=^H, kcub1=\EOD, kcud1=\EOB, kcuf1=\EOC, kcuu1=\EOA, 
+       kf1=\EOP, kf2=\EOQ, kf3=\EOR, kf4=\EOS, kf5=\EOT, kf6=\EOU, 
+       kf7=\EOV, kf8=\EOW, nel=^M\ED, rc=\E8, rev=\E[7m, ri=\E[T, 
+       rmir=\E[4l, rmso=\E[m, rmul=\E[m, sc=\E7, sgr0=\E[m, 
+       smir=\E[4h, smso=\E[7m, smul=\E[4m, 
 # basis from Peter Harrison, Computer Graphics Lab, San Francisco
 #   ucbvax!ucsfmis!harrison ...uucp / ucbvax!ucsfmis!harrison@BERKELEY ...ARPA
 # (basis: removed obsolete ":ma=^K^P^R^L^L :nl=5000*^J:" -- esr)
@@ -10916,20 +14055,76 @@ xerox820|x820|Xerox 820,
 #### Videotex and teletext
 #
 
-# standard-issue France Telecom minitel terminal (made by Philips)
-# (m2-nam: had unknown :zd=\E[1m:zb=\E[5m:zc=lkmjqxtuwvn:; also deleted
-# unnecessary :ug#0:sg#0: and added <acsc> to quiet tic. -- esr)
-m2-nam|minitel|minitel-2|minitel-2-nam|France Telecom Minitel, 
-       xenl, 
-       cols#80, it#8, lines#24, 
-       acsc=, clear=\E[H\E[J, cub1=^H, cuf1=\E[C, 
-       cup=\E[%i%p1%d;%p2%dH, cuu1=\E[A, dch1=\E[P, dl1=\E[M, 
-       ed=\E[J, el=\E[K, home=\E[H, ht=^I, il1=\E[L, ind=^J, ip=$<7/>, 
-       is2=\E[1;24r\E[24;1H, kcub1=\E[D, kcud1=\E[B, kcuf1=\E[C, 
-       kcuu1=\E[A, kf1=\EOP, kf2=\EOQ, kf3=\EOR, kf4=\EOS, 
-       khome=\E[H, ri=\EM, rmacs=\E(B, rmir=\E[4l, rmso=\E[m, 
-       rmul=\E[m, sgr0=\E[m, smacs=\E(0, smir=\E[4h, smso=\E[7m, 
-       smul=\E[4m, 
+# \E\:1}       switch to te'le'informatique mode (ascii terminal/ISO 6429)
+# \E[?3l       80 columns
+# \E[?4l       scrolling on
+# \E[12h       local echo off
+# \Ec          reset: G0 U.S. charset (to get #,@,{,},...), 80 cols, clear screen
+# \E)0         G1 DEC set (line graphics)
+#
+# From: Igor Tamitegama <igor@ppp1493-ft.teaser.fr>, 18 Jan 1997
+m2-nam|minitel|minitel-2|minitel-2-nam|France Telecom Minitel 2 mode te'le'informatique, 
+       eslok, hs, xenl, 
+       cols#80, it#8, lines#24, wsl#72, xmc#0, 
+       acsc=aaffggjjkkllmmnnooqqssttuuvvwwxx, bel=^G, 
+       blink=\E[5m, bold=\E[1m, civis=\E[<1h, clear=\E[H\E[J, 
+       cnorm=\E[<1l, cr=^M, csr=\E[%i%p1%d;%p2%dr, 
+       cub=\E[%p1%dD, cub1=\E[D, cud=\E[%p1%dB, cud1=\E[B, 
+       cuf=\E[%p1%dC, cuf1=\E[C, cup=\E[%i%p1%d;%p2%dH, 
+       cuu=\E[%p1%dA, cuu1=\E[A, dch=\E[%p1%dP, dch1=\E[P, 
+       dl=\E[%p1%dM, dl1=\E[M, ed=\E[J, el=\E[K, flash=^G, fsl=^J, 
+       home=\E[H, ht=^I, il=\E[%p1%dL, il1=\E[L, ind=^J, indn=^J, 
+       ip=$<7/>, is1=\E\:1}\Ec\E[?4l\E[12h, is2=\Ec\E[12h\E)0, 
+       is3=\E[?3l kbs=\010, kclr=\E[2J, kcub1=\E[D, kcud1=\E[B, 
+       kcuf1=\E[C, kcuu1=\E[A, kdch1=\E[P, kdl1=\E[M, kf0=\EOp, 
+       kf1=\EOq, kf10=\EOp, kf2=\EOr, kf3=\EOs, kf4=\EOt, kf5=\EOu, 
+       kf6=\EOv, kf7=\EOw, kf8=\EOx, kf9=\EOy, khome=\E[H, 
+       kich1=\E[4h, kil1=\E[4l, knp=\EOn, kpp=\EOR, ll=\E[24;80H, 
+       mc0=\E[i, nel=^M^J, rc=\E8, rev=\E[7m, ri=\EM, rin=\EM, 
+       rmacs=^O, rmir=\E[4l, rmso=\E[27m, rmul=\E[24m, 
+       rs1=\Ec\E[?4l\E[12h, rs2=\Ec\E)0, sc=\E7, sgr0=\E[m, 
+       smacs=^N, smir=\E[4h, smso=\E[7m, smul=\E[4m, tsl=^_@A, 
+       u6=\E[%i%d;%dR, u7=\E[6n, 
+
+# From: Alexandre Montaron <canal@mygale.org>, 18 Jun 1998
+#
+minitel1|minitel 1, 
+       am, bw, eslok, hs, hz, msgr, 
+       colors#8, cols#40, lines#24, pairs#8, 
+       acsc=+.\,\,./f0g1, bel=^G, blink=\EH, civis=^T, clear=^L, 
+       cnorm=^Q, cr=^M, cub1=^H, cud1=^J, cuf1=^I, 
+       cup=\037%p1%{65}%+%c%p2%{65}%+%c, cuu1=^K, el=^X, 
+       enacs=^Y, fsl=^J, home=^^, ind=^J, 
+       is2=\E;`ZQ\E\:iC\E\:iE\021, nel=^M^J, op=\EG, 
+       rep=%p1%c\022%p2%{63}%+%c, rev=\E], ri=^K, rmso=\E\\, 
+       setf=\E%?%p1%{1}%=%tD%e%p1%{3}%=%tF%e%p1%{4}%=%tA%e%p1%{6}%=%tC%e%p1%{64}%+%c%;, 
+       sgr=%?%p1%t\E]%;%?%p3%t\E]%;%?%p4%t\EH%;, 
+       sgr0=\EI\E\\, smso=\E], tsl=\037@%p1%{65}%+%c, 
+# is2=Fnct TE, Fnct MR, Fnct CM et pour finir: curseur ON.
+minitel1b|minitel 1-bistandard (in 40cols mode), 
+       mir, 
+       cub=\E[%p1%dD, cud=\E[%p1%dB, cuf=\E[%p1%dC, 
+       cuu=\E[%p1%dA, dch=\E[%p1%dP, dch1=\E[P, dl=\E[%p1%dM, 
+       dl1=\E[M, ed=\E[J, el1=\E[1K, il=\E[%p1%dL, il1=\E[L, 
+       is1=\E;iYA\E;jYC, kclr=\E[2J, kctab=^I, kcub1=\E[D, 
+       kcud1=\E[B, kcuf1=\E[C, kcuu1=\E[A, kdch1=\E[P, kdl1=\E[M, 
+       kel=^X, khome=\E[H, kich1=\E[4h, kil1=\E[L, rmir=\E[4l, 
+       smir=\E[4h, smkx=\E;iYA\E;jYC, 
+       use=minitel1, 
+# <rmkx> posait des problemes (logout en sortant de vi).
+minitel1b-80|minitel 1-bistandard (standard teleinformatique), 
+       am@, bw@, hz@, 
+       colors@, cols#80, it#8, pairs@, 
+       blink=\E[5m, bold=\E[1m, civis=\037@A\024\n, 
+       clear=\E[H\E[2J, cnorm=\037@A\021\n, cuf1=\E[C, 
+       cup=\E[%i%p1%d;%p2%dH, cuu1=\E[A, el=\E[K, home=\E[H, 
+       ht=^I, ind=\ED, is1@, is2@, kent=\EOM, kf0=\EOp, kf1=\EOq, 
+       kf2=\EOr, kf3=\EOs, kf4=\EOt, kf5=\EOu, kf6=\EOv, kf7=\EOw, 
+       kf8=\EOx, kf9=\EOy, nel=\EE, op@, rc=\E8, rep@, rev=\E[7m, 
+       ri=\EM, rmkx@, rmso=\E[27m, rmul=\E[24m, sc=\E7, setf@, 
+       sgr=\E[%?%p1%t7;%;%?%p2%t4;%;%?%p3%t7;%;%?%p4%t5;%;%?%p6%t1;%;m, 
+       sgr0=\E[m, smkx@, smso=\E[7m, smul=\E[4m, 
+       use=minitel1b, 
 
 ######## OBSOLETE VDT TYPES
 #
@@ -11005,6 +14200,18 @@ oblit|ojerq|first version of blit rom,
 # The parent company, best known as the architects of the Internet, is
 # still around.
 #
+# Jeff DelPapa <dp@world.std.com> writes:
+# The bitgraph was a large white box that contained a monochrome bitmap
+# display, and a 68000 to run it.  You could download code and run it on
+# the cpu, it had 128kb (I think) of memory.  I used one in the late
+# 70's, sure beat a vt100.  It had one strange feature tho -- it used
+# the cpu to bitblt pixels to scroll, it took longer than the refresh
+# rate, and looked like a rubber sheet stretching, then snapping
+# upwards.  It had everything the early mac had, except a floppy drive a
+# small screen (it had a 17" crisp beauty) and a real OS. They (Bolt
+# Beranek and Neuman) sold at most a few hundred of them to the real
+# world.  DOD may have bought more...
+# 
 
 # Entries for the BitGraph terminals.  The problem 
 # with scrolling in vi can only be fixed by getting BBN to put 
@@ -11070,7 +14277,7 @@ cg7900|chromatics|chromatics 7900,
        rmcup=\001W0\,40\,85\,48\,\014\001W0\,0\,85\,48\,\001M0\,40\,, 
        rmso=\001C1\,\001c2\,, 
        smcup=\001P0\001O1\001R1\001C4\,\001c0\,\014\001M0\,42\,WARNING DOUBLE ENTER ESCAPE and \025\001C1\,\001c2\,\001W0\,0\,79\,39\,, 
-       smso=\001C4\,\001c7\,, uc=\001\001_\001\200, 
+       smso=\001C4\,\001c7\,, uc=\001\001_\001\0, 
 
 #### Computer Automation
 #
@@ -11118,6 +14325,49 @@ dp3360|datapoint|datapoint 3360,
        bel=^G, clear=^]^_, cr=^M, cub1=^H, cud1=^J, cuf1=^X, cuu1=^Z, 
        ed=^_, el=^^, home=^], ind=^J, 
 
+# From: Jan Willem Stumpel <jw.stumpel@inter.nl.net>, 11 May 1997
+# The Datapoint 8242 Workstation was sold at least between 1985 
+# and 1989. To make the terminal work with this entry, press 
+# CONTROL-INT-INT to take the terminal off-line, and type (opt). 
+# Set the options AUTO ROLL, ROLL DN, and ESC KBD on, and AUTO 
+# CR/LF off. Use control-shift-[] as escape key, control-I as tab, 
+# shift-F1 to shift-F5 as F6 to F10 (unshifted F1 to F5 are in
+# fact unusable because the strings sent by the terminal conflict
+# with other keys).
+# The terminal is capable of displaying "box draw" characters.
+# For each graphic character you must send 2 ESC's (\E\E) followed 
+# by a control character as follows: 
+#         character        meaning
+#         =========        =======
+#         ctrl-E           top tee
+#         ctrl-F           right tee
+#         ctrl-G           bottom tee
+#         ctrl-H           left tee
+#         ctrl-I           cross
+#         ctrl-J           top left corner
+#         ctrl-K           top right corner
+#         ctrl-L           bottom left corner
+#         ctrl-M           bottom right corner
+#         ctrl-N           horizontal line
+#         ctrl-O           vertical line
+# Unfortunately this cannot be fitted into the termcap/terminfo 
+# description scheme. 
+dp8242|datapoint 8242, 
+       msgr, 
+       cols#80, lines#25, 
+       bel=^G, civis=^Y, clear=\025\E\004\027\030, cnorm=^X, 
+       cr=^M, cub1=^H, cud1=^J, 
+       cup=\011%p2%'\0'%+%c%p1%'\0'%+%c, dl1=\E^Z, ed=^W, el=^V, 
+       home=^U, ht=^I, il1=\E^T, ind=^C, 
+       is1=\E\014\E\016\0\230\0\317\025\027\030\E\004, 
+       kbs=^H, kcub1=^D, kcud1=^B, kcuf1=^F, kcuu1=^E, kf1=^G\Ee, 
+       kf10=\EK\Ea, kf2=^I\Ed, kf3=^J\Ec, kf4=^J\Eb, kf5=^S\Ea, 
+       kf6=\EO\Ee, kf7=\EN\Ed, kf8=\EM\Ec, kf9=\EL\Eb, nel=^M^J, 
+       rep=\E\023%p1%c%p2%c, ri=^K, rmso=\E^D, rmul=\E^D, 
+       rs1=\E\014\E\016\0\230\0\317\025\027\030\E\004, 
+       smso=\E^E, smul=\E^F, 
+       wind=\E\014\E\016%p1%'\0'%+%c%p2%'\0'%+%c%p3%'\0'%+%c%p4%'\0'%+%c\025, 
+
 #### DEC terminals (Obsolete types: DECwriter and vt40/42/50)
 #
 # These entries are DEC's official terminfos for its older terminals.
@@ -11191,7 +14441,6 @@ dw2|decwriter|dw|decwriter II,
        hc, os, 
        cols#132, 
        bel=^G, cr=^M, cub1=^H, cud1=^J, ind=^J, kbs=^H, 
-
 # \E(B         Use U.S. character set (otherwise # => british pound !)
 # \E[20l       Disable "linefeed newline" mode (else puts \r after \n,\f,\v)
 # \E[w         10 char/in pitch
@@ -11245,7 +14494,7 @@ delta|dd5000|delta data 5000,
        am, 
        cols#80, lines#27, 
        bel=^G, clear=^NR, cub1=^H, cud1=^J, cuf1=^Y, 
-       cup=\017%p1%p1%{16}%m%{2}%*%-%'9'%+%c%p2%p2%{16}%m%{2}%*%-%'9'%+%c, 
+       cup=\017%p1%p1%{16}%m%{2}%*%-%{57}%+%c%p2%p2%{16}%m%{2}%*%-%{57}%+%c, 
        cuu1=^Z, dch1=^NV, el=^NU, home=^NQ, ind=^J, 
 
 #### Digital Data Research (ddr)
@@ -11348,28 +14597,38 @@ h19-a|h19a|heath-ansi|heathkit-a|heathkit h19 ansi mode,
        smacs=\E[10m, smam=\E[?7h, smir=\E[4h, smso=\E[7m, 
 h19-bs|heathkit w/keypad shifted, 
        rmkx=\Eu, smkx=\Et, use=h19-b, 
-h19-smul|heathkit w/keypad shifted/underscore cursor, 
+h19-us|h19us|h19-smul|heathkit w/keypad shifted/underscore cursor, 
        rmkx=\Eu, smkx=\Et, 
        use=h19-u, 
 # (h19: merged in <ip> from BSDI hp19-e entry>;
 # also added empty <acsc> to suppress a tic warning --esr)
+# From: Tim Pierce <twp@skepsis.com>, 23 Feb 1998 
+# Tim tells us that:
+# I have an old Zenith-19 terminal at home that still gets a lot of use.
+# This terminal suffers from the same famous insert-mode padding lossage
+# that has been acknowledged for the Z29 terminal.  Emacs is nearly
+# unusable on this box, since even a half-scroll up or down the window
+# causes flaming terminal death.
+#   
+# On the Z19, the only way I have found around this problem is to remove
+# the :al: and :dl: entries entirely.  No amount of extra padding will
+# help (I have tried up to 20000).  Removing <il1=\EL$> and <dl1=\EM$>
+# makes Emacs a little slower, but it remains in the land of the living.
+# Big win.
 h19|heath|h19-b|heathkit|heath-19|z19|zenith|heathkit h19, 
        am, eslok, hs, mir, msgr, 
        cols#80, it#8, lines#24, 
        acsc=, bel=^G, clear=\EE, cnorm=\Ey4, cr=^M, cub1=^H, cud1=\EB, 
        cuf1=\EC, cup=\EY%p1%{32}%+%c%p2%{32}%+%c, cuu1=\EA, 
-       cvvis=\Ex4, dch1=\EN, dl1=\EM$<1*>, ed=\EJ, el=\EK
-       fsl=\Ek\Ey5, home=\EH, ht=^I, il1=\EL$<1*>, ind=^J
-       ip=<1.5/>, kbs=^H, kcub1=\ED, kcud1=\EB, kcuf1=\EC
-       kcuu1=\EA, kf1=\ES, kf2=\ET, kf3=\EU, kf4=\EV, kf5=\EW
-       kf6=\EP, kf7=\EQ, kf8=\ER, khome=\EH, lf6=blue, lf7=red
-       lf8=white, ri=\EI, rmacs=\EG, rmir=\EO, rmso=\Eq, smacs=\EF
-       smir=\E@, smso=\Ep, tsl=\Ej\Ex5\EY8%p1%{32}%+%c\Eo\Eo, 
+       cvvis=\Ex4, dch1=\EN, ed=\EJ, el=\EK, fsl=\Ek\Ey5, home=\EH
+       ht=^I, ind=^J, ip=<1.5/>, kbs=^H, kcub1=\ED, kcud1=\EB
+       kcuf1=\EC, kcuu1=\EA, kf1=\ES, kf2=\ET, kf3=\EU, kf4=\EV
+       kf5=\EW, kf6=\EP, kf7=\EQ, kf8=\ER, khome=\EH, lf6=blue
+       lf7=red, lf8=white, ri=\EI, rmacs=\EG, rmir=\EO, rmso=\Eq
+       smacs=\EF, smir=\E@, smso=\Ep
+       tsl=\Ej\Ex5\EY8%p1%{32}%+%c\Eo\Eo, 
 h19-u|heathkit with underscore cursor, 
        cnorm@, cvvis@, use=h19-b, 
-h19-us|h19us|heathkit w/keypad shifted/underscore cursor, 
-       rmkx=\Eu, smkx=\Et, 
-       use=h19-u, 
 h19-g|h19g|heathkit w/block cursor, 
        cnorm=\Ex4, use=h19-b, 
 alto-h19|altoh19|altoheath|alto-heath|alto emulating heathkit h19, 
@@ -11470,7 +14729,7 @@ z29a-nkc-uc|h29a-nkc-uc|z29 ansi mode with underscore cursor and no keyclick,
 z39-a|z39a|zenith39-a|zenith39-ansi|Zenith 39 in ANSI mode, 
        am, eslok, hs, mc5i, mir, msgr, xon, 
        cols#80, lines#24, 
-       acsc=``aaffggjjkkllmmnnooqqssttuuvvwwxx~~0a, bel=^G, 
+       acsc=0a``aaffggjjkkllmmnnooqqssttuuvvwwxx~~, bel=^G, 
        blink=\E[5m, bold=\E[1m, cbt=\E[1Z, civis=\E[>5h, 
        clear=\E[2J\E[H, cnorm=\E[>5l, cr=^M, 
        csr=\E[%i%p1%d;%p2%dr, cub=\E[%p1%dD, cub1=^H, 
@@ -11486,9 +14745,9 @@ z39-a|z39a|zenith39-a|zenith39-ansi|Zenith 39 in ANSI mode,
        kf8=\EOR, kf9=\EOX, khlp=\E[~, khome=\E[H, ll=\E[24;1H, 
        mc0=\E[?19h\E[i, mc4=\E[4i, mc5=\E[5i, rc=\E[u, rev=\E[7m, 
        rmacs=\E(B, rmir=\E[4l, rmkx=\E[>7l, rmso=\E[0m, 
-       rmul=\E[0m, rs2=\E<\Ec\200, sc=\E[s, sgr0=\E[0m
-       smacs=\E(0, smir=\E[4h, smkx=\E[>7h, smso=\E[7m
-       smul=\E[4m, tbc=\E[3g, tsl=\E[s\E[>1h\E[25;%i%p1%dH, 
+       rmul=\E[0m, rs2=\E<\Ec\0, sc=\E[s, sgr0=\E[0m, smacs=\E(0
+       smir=\E[4h, smkx=\E[>7h, smso=\E[7m, smul=\E[4m, tbc=\E[3g
+       tsl=\E[s\E[>1h\E[25;%i%p1%dH, 
 
 # From: Brad Brahms <Brahms@USC-ECLC>
 z100|h100|z110|z-100|h-100|heath/zenith z-100 pc with color monitor, 
@@ -11635,7 +14894,17 @@ graphos-30|graphos III with 30 lines,
 #      Vox: (617)-890-5796.
 #
 # However, if you call that number today you'll get an insurance company.
-# I think Modgraph is long gone.
+# I have mail from "Michael Berman, V.P. Sales, Modgraph" dated 
+# 26 Feb 1997 that says:
+#
+# Modgraph GX-1000, replaced by GX-2000.  Both are out of production, have been
+# for ~7 years.  Modgraph still in business.  Products are rugged laptop and
+# portable PC's and specialized CRT and LCD monitors (rugged, rack-mount
+# panel-mount etc).  I can be emailed at sonfour@aol.com
+#
+# Peter D. Smith <pdsmith@nbbn.com> notes that his modgraph manual was
+# dated 1984.  According to the manual, it featured Tek 4010/4014
+# graphics and DEC VT100/VT52 + ADM-3A emulation with a VT220-style keyboard.
 #
 
 modgraph|mod24|modgraph terminal emulating vt100, 
@@ -11699,7 +14968,7 @@ modgraph48|mod|Modgraph w/48 lines,
 mt70|mt-70|Morrow MD-70; native Morrow mode, 
        am, mir, msgr, xon, 
        cols#80, it#8, lines#24, 
-       acsc=+z\,{.yOi-x`|jGkFlEmDnHtLuKvNwMxIqJ, bel=^G, 
+       acsc=+z\,{-x.yOi`|jGkFlEmDnHqJtLuKvNwMxI, bel=^G, 
        cbt=\EI, civis=\E"0, clear=^Z, cnorm=\E"2, cr=^M, cub1=^H, 
        cud1=^J, cuf1=^L, cup=\E=%p1%{32}%+%c%p2%{32}%+%c$<1>, 
        cuu1=^K, dch1=\EW, dim=\EG2, dl1=\ER, ed=\EY, el=\ET$<10>, 
@@ -11757,7 +15026,7 @@ omron|Omron 8025AG,
 # "reset", "tset", or "tabs" utilities (use rt6221-w, 160 columns, for this).
 # Note that the Control-E key is useless on this brain-damaged terminal.  No
 # delays are specified; use "stty ixon -ixany" to enable DC3/DC1 flow control!
-rt6221|Ramtek 6221, 80x24, 
+rt6221|Ramtek 6221 80x24, 
        msgr, xon, 
        cols#80, it#8, lines#24, vt#3, 
        acsc=, bel=^G, blink=\E[5m, bold=\E[1m, civis=\E[>5l, 
@@ -11775,7 +15044,7 @@ rt6221|Ramtek 6221, 80x24,
        sc=\E7, sgr0=\E[m, smacs=^N, smkx=\E=, smso=\E[7m, 
        smul=\E[4m, tbc=\E[3g, 
 # [TO DO: Check out: short forms of ho/cl and ll; reset (\Ec)].
-rt6221-w|Ramtek 6221, 160x48, 
+rt6221-w|Ramtek 6221 160x48, 
        cols#160, lines#48, 
        ll=\E[48;1H, use=rt6221, 
 
@@ -12024,7 +15293,7 @@ t10|teleray 10 special,
        clear=\Ej$<30/>, cub1=^H, cuf1=\EC, 
        cup=\EY%p1%{32}%+%c%p2%{32}%+%c, cuu1=\EA, dch1=\EQ, 
        dl1=\EM, ed=\EJ, el=\EK, home=\EH, ht=^I, ich1=\EP, il1=\EL, 
-       ind=\Eq, pad=\200, ri=\Ep, rmso=\ER@, rmul=\ER@, smso=\ERD, 
+       ind=\Eq, pad=\0, ri=\Ep, rmso=\ER@, rmul=\ER@, smso=\ERD, 
        smul=\ERH, 
 # teleray 16 - map the arrow keys for vi/rogue, shifted to up/down page, and
 # back/forth words. Put the function keys (f1-f10) where they can be
@@ -12092,7 +15361,7 @@ ti916-132|Texas Instruments 916 VDT vt220 132 column,
 #
 # Texas Instruments 916 VDT 8859/1 8 bit control 132 column mode
 #
-ti916-8-132|Texas Instruments 916 VDT vt220 132 column, 
+ti916-8-132|Texas Instruments 916 VDT 8-bit vt220 132 column, 
        cols#132, use=ti916-8, 
 ti924|Texas Instruments 924 VDT 8859/1 7 bit CTRL, 
        am, xon, 
@@ -12263,7 +15532,7 @@ apollo_color|apollo color display,
 
 # Convergent AWS workstation from Gould/SEL UTX/32 via BRL
 # (aws: removed unknown :dn=^K: -- esr)
-aws|Convergent Technologies AWS workstation under UTX,Xenix, 
+aws|Convergent Technologies AWS workstation under UTX and Xenix, 
        am, 
        cols#80, lines#28, xmc#0, 
        acsc=, clear=^L, cud1=^K, cuf1=^R, cup=\EC%p2%c%p1%c, 
@@ -12323,7 +15592,7 @@ qdss|qdcons|qdss glass tty,
 fos|fortune|Fortune system, 
        am, bw, 
        cols#80, lines#25, 
-       acsc=l m"k(j*v%w#q&x-, bel=^G, blink=\EN, civis=\E], 
+       acsc=j*k(l m"q&v%w#x-, bel=^G, blink=\EN, civis=\E], 
        clear=\014$<20>, cnorm=\E\\, cr=^M, cub1=^H, cud1=\n$<3>, 
        cup=\034C%p1%{32}%+%c%p2%{32}%+%c, cuu1=\013$<3>, 
        cvvis=\E\:, dch1=\034W$<5>, dl1=\034R$<15>, 
@@ -12406,11 +15675,11 @@ ctrm|C terminal emulator,
        kcud1=\Ew\r, kcuf1=\Ev\r, kcuu1=\Et\r, kf1=\Ep\r, 
        kf2=\Eq\r, kf3=\Er\r, kf4=\Es\r, kf5=\Et\r, kf6=\Eu\r, 
        kf7=\Ev\r, kf8=\Ew\r, khome=\Ep\r, 
-       op=\E&bn\E&bB\E&bG\E&bR\n%{0}%PX%{0}%PY%{0}%PZ\n%{1}%PW%{1}%PV%{1}%PU, 
+       op=\E&bn\E&bB\E&bG\E&bR%{0}%PX%{0}%PY%{0}%PZ%{1}%PW%{1}%PV%{1}%PU, 
        rev=%?%gB%{0}%=%t\E&dB%{1}%PB%;, rmir=\ER, rmkx=\E&jA, 
-       setb=\E&bn\n%?%gA%t\E&dA%;\n%?%gB%t\E&dB%;\n%?%gH%t\E&dH%;\n%?%gU%t\E&bR%;\n%?%gV%t\E&bG%;\n%?%gW%t\E&bB%;\n\n%?%p1%{1}%&%t\E&bb%{1}%e%{0}%;%PZ\n%?%p1%{2}%&%t\E&bg%{1}%e%{0}%;%PY\n%?%p1%{4}%&%t\E&br%{1}%e%{0}%;%PX, 
-       setf=\E&bn\n%?%gA%t\E&dA%;\n%?%gB%t\E&dB%;\n%?%gH%t\E&dH%;\n%?%gX%t\E&br%;\n%?%gY%t\E&bg%;\n%?%gZ%t\E&bb%;\n\n%?%p1%{1}%&%t\E&bB%{1}%e%{0}%;%PW\n%?%p1%{2}%&%t\E&bG%{1}%e%{0}%;%PV\n%?%p1%{4}%&%t\E&bR%{1}%e%{0}%;%PU, 
-       sgr=\E&d@%{0}%PA%{0}%PB%{0}%PD%{0}%PH\n%?%p1%p3%p5%|%|%t\E&dB%{1}%PB%;\n%?%p4%t\E&dA%{1}%PA%;\n%?%p6%t\E&dH%{1}%PH%;\n%?%p2%t\E&dD%;, 
+       setb=\E&bn%?%gA%t\E&dA%;%?%gB%t\E&dB%;%?%gH%t\E&dH%;%?%gU%t\E&bR%;%?%gV%t\E&bG%;%?%gW%t\E&bB%;%?%p1%{1}%&%t\E&bb%{1}%e%{0}%;%PZ%?%p1%{2}%&%t\E&bg%{1}%e%{0}%;%PY%?%p1%{4}%&%t\E&br%{1}%e%{0}%;%PX, 
+       setf=\E&bn%?%gA%t\E&dA%;%?%gB%t\E&dB%;%?%gH%t\E&dH%;%?%gX%t\E&br%;%?%gY%t\E&bg%;%?%gZ%t\E&bb%;%?%p1%{1}%&%t\E&bB%{1}%e%{0}%;%PW%?%p1%{2}%&%t\E&bG%{1}%e%{0}%;%PV%?%p1%{4}%&%t\E&bR%{1}%e%{0}%;%PU, 
+       sgr=\E&d@%{0}%PA%{0}%PB%{0}%PD%{0}%PH%?%p1%p3%p5%|%|%t\E&dB%{1}%PB%;%?%p4%t\E&dA%{1}%PA%;%?%p6%t\E&dH%{1}%PH%;%?%p2%t\E&dD%;, 
        sgr0=\E&d@%{0}%PA%{0}%PB%{0}%PH, smir=\EQ, smkx=\E&jB, 
        smso=\E&dD, smul=\E&dD, tbc=\E3, vpa=\E&a%p1%dY, 
 
@@ -12421,7 +15690,7 @@ ctrm|C terminal emulator,
 gs6300|emots|AT&T PC6300 with EMOTS terminal emulator, 
        am, bce, msgr, xon, 
        colors#8, cols#80, it#8, lines#24, pairs#63, 
-       acsc=\,\,..--++``aaffgghhiijjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~, 
+       acsc=++\,\,--..``aaffgghhiijjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~, 
        bel=^G, blink=\E[5m, bold=\E[1m, clear=\E[H\E[J, cr=^M, 
        cub=\E[%p1%dD, cub1=^H, cud=\E[%p1%dB, cud1=^J, 
        cuf=\E[%p1%dC, cuf1=\E[C, cup=\E[%i%p1%d;%p2%dH, 
@@ -12433,7 +15702,7 @@ gs6300|emots|AT&T PC6300 with EMOTS terminal emulator,
        kf4=\E[23s, kf5=\E[2s, kf6=\E[22s, kf7=\E[3s, kf8=\E[21s, 
        khome=\E[H, mc4=\E[4i, mc5=\E[5i, op=\E[?;m, rev=\E[7m, 
        ri=\E[L, rmacs=\E[10m, rs1=\Ec, setb=\E[?;%p1%dm, 
-       setf=\E[?%?%p1%{0}%=%t0\n%e%p1%{1}%=%t2\n%e%p1%{1}%-%d%;m, 
+       setf=\E[?%?%p1%{0}%=%t0%e%p1%{1}%=%t2%e%p1%{1}%-%d%;m, 
        sgr0=\E[m\E[10m, smacs=\E[11m, smso=\E[1m, smul=\E[4m, 
 
 # From: <earle@smeagol.UUCP> 29 Oct 85 05:40:18 GMT
@@ -12467,11 +15736,9 @@ versaterm|versaterm vt100 emulator for the macintosh,
 
 # From: Rick Thomas <ihnp4!btlunix!rbt>
 # (xtalk: I added <rmam>/<smam> based on the init string.
-# I also removed <xmc#1> and the trailing \s characters from the highlight
-# changers, I don't believe these on a VT100-emulating PC display -- esr)
 xtalk|IBM PC with xtalk communication program (versions up to 3.4), 
        am, mir, msgr, xon, 
-       cols#80, it#8, lines#24, vt#3, 
+       cols#80, it#8, lines#24, vt#3, xmc#1, 
        acsc=``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~, 
        bel=^G, clear=\E[H\E[J$<50>, cr=^M, cub=\E[%p1%dD, cub1=^H, 
        cud=\E[%p1%dB, cud1=^J, cuf=\E[%p1%dC, cuf1=\E[C$<2>, 
@@ -12483,9 +15750,9 @@ xtalk|IBM PC with xtalk communication program (versions up to 3.4),
        kcuu1=\EOA, kent=\EOM, kf0=\EOy, kf1=\EOP, kf10=\EOx, 
        kf2=\EOQ, kf3=\EOR, kf4=\EOS, kf5=\EOt, kf6=\EOu, kf7=\EOv, 
        kf8=\EOl, kf9=\EOw, ri=\EM$<5>, rmacs=^O, rmam=\E[?7l, 
-       rmkx=\E[?1l\E>, rmso=\E[m, 
+       rmkx=\E[?1l\E>, rmso=\E[m\s
        rs2=\E>\E[?3l\E[?4l\E[?5l\E[?7h\E[?8h, sgr0=\E[m, 
-       smacs=^N, smam=\E[?7h, smkx=\E[?1h\E=, smso=\E[7m, 
+       smacs=^N, smam=\E[?7h, smkx=\E[?1h\E=, smso=\E[7m\s
        tbc=\E[3g, 
 
 # The official PC terminal emulator program of the AT&T Product Centers.
@@ -12525,7 +15792,7 @@ diablo1640-lm|diablo-lm|xerox-lm|diablo 1640 with indented left margin,
 diablo1740-lm|630-lm|1730-lm|x1700-lm|diablo 1740 printer, 
        use=diablo1640-lm, 
 # DTC 382 with VDU.  Has no <ed> so we fake it with <el>.  Standout
-# <smso=^P\s\002^PF> works but won't go away without dynamite <rmso=^P\s\200>.
+# <smso=^P\s\002^PF> works but won't go away without dynamite <rmso=^P\s\0>.
 # The terminal has tabs, but I'm getting tired of fighting the braindamage. 
 # If no tab is set or the terminal's in a bad mood, it glitches the screen
 # around all of memory.  Note that return puts a blank ("a return character")
@@ -12544,7 +15811,7 @@ dtc382|DTC 382,
        cuf1=^PR, cup=\020\021%p2%c%p1%c, cuu1=^P^L, cvvis=^PB, 
        dch1=^X, dl1=^P^S, ed=\020\025\020\023\020\023, el=^P^U, 
        home=^P^R, il1=^P^Z, ind=^J, pad=\177, rmcup=, rmir=^Pi, 
-       rmul=^P \200, smcup=\020\035$<20>, smir=^PI, smul=^P ^P, 
+       rmul=^P \0, smcup=\020\035$<20>, smir=^PI, smul=^P ^P, 
 dtc300s|DTC 300s, 
        hc, os, 
        cols#132, 
@@ -12644,9 +15911,9 @@ digilog|digilog 333,
 dwk|dwk-vt|dwk terminal, 
        am, 
        cols#80, it#8, lines#24, 
-       acsc=lJmFkCjXtEuPv\\wKqUxWnNo~s_`+a\:f'g#~_\\\,Q+\^.M-Sh#I#0\177
+       acsc=+\^\,Q-S.M0\177`+a\:f'g#h#i#jXkClJmFnNo~qUs_tEuPv\\wKxW~_
        bel=^G, clear=\EH\EJ, cr=^M, cub1=^H, cud1=^J, cuf1=\EC, 
-       cup=\EY%p1%' '%+%c%p2%' '%+%c, cuu1=\EA, dch1=\EP, 
+       cup=\EY%p1%{32}%+%c%p2%{32}%+%c, cuu1=\EA, dch1=\EP, 
        ed=\EJ, el=\EK, home=\EH, ht=^I, ich1=\EQ, ind=^J, kbs=\177, 
        kcub1=\ED, kcud1=\EB, kcuf1=\EC, kcuu1=\EA, kdch1=\Ee, 
        kf1=\Ef1, kf10=\Ef0, kf2=\Ef2, kf3=\Ef3, kf4=\Ef4, kf5=\Ef5, 
@@ -12705,13 +15972,13 @@ opus3n1+|Esprit Opus3n1+ in wy60 mode with ANSI arrow keys,
        kf6=^AE\r, kf7=^AF\r, kf8=^AG\r, kf9=^AH\r, khome=^^, 
        kich1=\EQ, kil1=\EE, knp=\EK, kpp=\EJ, kprt=\EP, krpl=\Er, 
        mc0=\EP, mc4=^T, mc5=^R, nel=\r\n$<3>, 
-       pfloc=\EZ2%p1%'?'%+%c%p2%s\177, 
-       pfx=\EZ1%p1%'?'%+%c%p2%s\177, 
-       pln=\Ez%p1%'/'%+%c%p2%s\r, prot=\E), ri=\Ej$<7>, 
+       pfloc=\EZ2%p1%{63}%+%c%p2%s\177, 
+       pfx=\EZ1%p1%{63}%+%c%p2%s\177, 
+       pln=\Ez%p1%{47}%+%c%p2%s\r, prot=\E), ri=\Ej$<7>, 
        rmacs=\EH^C, rmam=\Ed., rmcup=, rmir=\Er, rmln=\EA11, 
        rmxon=\Ec20, rs1=\E~!\E~4$<150>, rs2=\EeF$<150>, 
        rs3=\EwG\Ee($<150>, 
-       sgr=%?%p8%t\E)%e\E(%;%?%p9%t\EH\002%e\EH\003%;\EG%'0'%?%p2%p6%|%t%{8}%|%;%?%p1%p3%|%p6%|%t%{4}%|%;%?%p4%t%{2}%|%;%?%p1%p5%|%t%{64}%|%;%?%p7%t%{1}%|%;%c, 
+       sgr=%?%p8%t\E)%e\E(%;%?%p9%t\EH\002%e\EH\003%;\EG%{48}%?%p2%p6%|%t%{8}%|%;%?%p1%p3%|%p6%|%t%{4}%|%;%?%p4%t%{2}%|%;%?%p1%p5%|%t%{64}%|%;%?%p7%t%{1}%|%;%c, 
        sgr0=\E(\EH\003\EG0\EcD, smacs=\EH^B, smam=\Ed/, 
        smcup=\Ezz&\E[A\177\Ezz'\E[B\177\Ezz(\E[D\177\Ezz)\E[C\177\Ezz<\E[Q\177, 
        smir=\Eq, smln=\EA10, smxon=\Ec21, tbc=\E0, tsl=\Ez(, 
@@ -12723,11 +15990,10 @@ teletec|Teletec Datascreen,
        bel=^G, clear=^L, cr=^M, cub1=^H, cud1=^J, cuf1=^_, cuu1=^K, 
        home=^^, ind=^J, 
 # From: Mark Dornfeld <romwa@ucbvax.berkeley.edu>
-#              This termcap is for the LANPAR Technologies VISION 3220
-#      terminal.  The function key definitions k0-k5 represent the
-#      edit keypad: FIND, INSERT HERE, REMOVE, SELECT, PREV SCREEN,
-#      NEXT SCREEN. The key definitions k6-k9 represent the PF1 to
-#      PF4 keys.
+# This description is for the LANPAR Technologies VISION 3220
+# terminal from 1984/85.  The function key definitions k0-k5 represent the
+# edit keypad: FIND, INSERT HERE, REMOVE, SELECT, PREV SCREEN,
+# NEXT SCREEN. The key definitions k6-k9 represent the PF1 to PF4 keys.
 # (v3220: removed obsolete ":kn#10:",
 # I added <rmam>/<smam> based on the init string -- esr)
 v3220|LANPAR Vision II model 3220/3221/3222, 
@@ -12748,9 +16014,8 @@ v3220|LANPAR Vision II model 3220/3221/3222,
 # are present; the symptom is doubled characters in an update using insert.
 # These applications are technically correct; in both 4.3BSD termcap and
 # terminfo, you're not actually supposed to specify both ich/ich1 and rmir/smir
-# unless the terminal needs both.  This requirement is now rare; most ich
-# sequences do not require previous smir, and most smir insert modes do not
-# require ich1 before each character.
+# unless the terminal needs both.  To my knowledge, no terminal still in this
+# file requires both other than the very obsolete dm2500.
 #
 # For ncurses-based applications this is not a problem, as ncurses uses
 # one or the other as appropriate but never mixes the two.  Therefore we
@@ -13673,7 +16938,7 @@ v3220|LANPAR Vision II model 3220/3221/3222,
 #        that it was messing up someone's 3270 emulator.
 #      * Added some longname fields in order to avoid warning messages from
 #        older tic implementations.
-#      * According to ctrlseqs.ms, xterm has a full vt100 graphics set.  Use
+#      * According to ctlseqs.ms, xterm has a full vt100 graphics set.  Use
 #        it! (This gives us pi, greater than, less than, and a few more.)
 #      * Freeze for ncurses-1.9.6 release.
 # 9.10.1 (Sat Oct 21 22:18:09 EDT 1995):
@@ -13894,18 +17159,197 @@ v3220|LANPAR Vision II model 3220/3221/3222,
 #      * Back off the xterm entry to use r6 as a base.
 # 9.13.22 (Sat Nov 30 11:51:31 EST 1996):
 #      * Added dec-vt220 at Adrian Garside's request.
-#
-# 10.1.0 (Sun Dec 29 02:36:31 EST 1996):
+# 9.13.23 (Fri Feb 21 16:36:06 EST 1997):
+#      * Replaced minitel-2 entry.
+#      * Added MGR, ansi-nt.
 #      * Minor corrections to xterm entries.
 #      * Replaced EWAN telnet entry.
 #      * Dropped the reorder script generator.  It was a fossil.
-# 10.1.1 (Sat May  3 21:41:27 EDT 1997):
-#      * Use setaf/setab consistently with SVr4.
-#      * Remove ech, el1 from cons25w, they do not work in FreeBSD 2.1.5
+# 9.13.24 (Sun Feb 23 20:55:23 EST 1997):
+#      * Thorsten Lockert added termcap `bs' to a lot of types, working from
+#        the 4.4BSD Lite2 file.
+# 9.13.25 (Fri Jun 20 12:33:36 EDT 1997):
+#      * Added Datapoint 8242, pilot, ansi_psx, rbcomm, vt220js.
+#      * Updated iris-ansi; corrected vt102-w.
+#      * Switch base xterm entry to 3.3 level.
+# 9.13.26 (Mon Jun 30 22:45:45 EDT 1997)
+#      * Added basic4.
+#      * Removed rmir/smir from tv92B.
+#
+# 10.2.0 (Sat Feb 28 12:47:36 EST 1998):
+#      * add hds200 description (Walter Skorski)
+#      * add beterm entry (Fred Fish)
+#      * add Thomas Dickey's xterm-xf86-v40, xterm-8bit, xterm-16color,
+#        iris-color entries.
+#      * add emx entries.
+#      * Replaced unixpc entry with Benjamin Sittler's corrected version.
+#      * Replaced xterm/rxvt/emu/syscons entries with Thomas Dickey's
+#        versions.
+#      * remove sgr string from qnx based on report by Xiaodan Tang
+#      * Added u8/u9, removed rmul/smul from sun-il.
+#      * 4.2 tic displays \0 rather than \200.
+#      * add linux-koi8r to replace linux-koi8 (which uses a corrupt acsc,
+#        apparently based on cp-866).
+#      * Merged in Pavel Roskin's acsc for linux-koi8
+#      * Corrected some erroneous \\'s to \.
+#      * 4.2 ncurses has been changed to use setaf/setab, consistent w/SysV.
+#      * II -> ii in pcvtXX, screen, xterm.
+#      * Removed \n chars following ANSI escapes in sgr & friends.
+#      * Updated Wyse entries.
+#      * h19 corrections from Tim Pierce.
+#      * Noted that the dm2500 has both ich and smir.
+#      * added pccons for the Alpha under OSF/1.
+#      * Added Sony NEWS workstation entries and cit101e-rv.
+#      * Reverted `amiga'; to Kent Polk's version, as I'm told
+#        the Verkuil entry messes up with Amiga Telnet.
+# 10.2.1 (Sun Mar  8 18:32:04 EST 1998):
+#      * Corrected attributions in 10.2.0 release notes.
+#      * Scanned the Shuford archive for new terminfos and information.
+#      * Removed sgr from qnx entry (Thomas Dickey).
+#      * Added entries for ICL and Kokusai Data Systems terminals.
+#      * Incorporated NCR terminfos from the Boundless Technology FTP site.
+#      * Incorporated att700 from the Boundless Technology FTP site.
+#      * Miscellaneous contact-address and Web-page updates.
+#
+# 1998/5/9
+#      * add nxterm and xterm-color terminfo description (request by Cristian
+#        Gafton <gafton@redhat.com>).
+#      * modify rxvt terminfo description to clear alternate screen before
+#        switching back to normal screen, for compatibility with applications
+#        which use xterm (reported by Manoj Kasichainula <manojk@io.com>).
+#      * modify linux terminfo description to reset color palette (reported
+#        by Telford Tendys <telford@eng.uts.edu.au>).
+#
+# 1998/7/4
+#      * merge changes from current XFree86 xterm terminfo descriptions.
+#
+# 1998/7/25
+#      * Added minitel1 entries from Alexander Montaron.
+#      * Added qnxt2 from Federico Bianchi.
+#      * Added arm100 terminfo entries from Dave Millen.
+#
+# 1998/8/6
+#      * Added ncsa telnet entries from Francesco Potorti
+#
+# 1998/8/15
+#      * modify ncsa telnet entry to reflect color, other capabilities based on
+#        examination of the source code - T.Dickey.
+#
+# 1998/8/22
+#      * Corrected some erroneous \\'s to \ (eterm, osborne) - TD.
+#
+# 1998/8/29
+#      * Added Francesco Potorti's tuned Wyse 99 entries.
+#      * dtterm enacs correction from Alexander V. Lukyanov.
+#      * Add ncsa-ns, ncsa-m-ns and ncsa-m entries from esr version.
+#      * correct a typo in icl6404 entry.
+#      * add xtermm and xtermc
+#
+# 1998/9/26
+#      * format most %'char' sequences to %{number}
+#      * adapt IBM AIX 3.2.5 terminfo - T.Dickey
+#      * merge Data General terminfo from Hasufin <hasufin@vidnet.net> - TD
+#
+# 1998/10/10
+#      * update xterm-xfree86 to current (patch 84), for is2/rs2 changes - TD
+#      * correct initialization string in xterm-r5, add misc other features
+#        to correspond with xterm patch 84 - TD
+#
+# 1998/12/19
+#      * update xterm-xfree86 to current (patch 90), smcur/rmcur changes - TD
+#      * add Mathew Vernon's mach console entries
+#      * corrections for ncsa function-keys (report by Larry Virden)
+#
+# 1998/12/19
+#      * change linux to use ncv#2, since underline does not work with color - TD
+#
+# 1999/1/9
+#      * add kbt to iris-ansi, document other shift/control functionkeys - TD
+#      * correct iris-ansi and iris-ansi-ap with respect to normal vs keypad
+#        application modes, change kent to use the correct keypad code - TD
+#
+# 1999/1/10
+#      * add entry for Tera Term - TD
+#
+# 1999/1/23
+#      * minor improvements for teraterm entry - TD
+#      * rename several entries used by BSDI: bsdos to bsdos-pc-nobold,
+#        and bsdos-bold to bsdos-pc (Jeffrey C Honig)
+#
+# 1999/2/20
+#      * resolve ambiguity of kend/kll/kslt and khome/kfnd/kich1 strings in
+#        xterm and ncsa entries by removing the unneeded ones.  Note that
+#        some entries will return kend & khome versus kslt and kfnd, for
+#        PC-style keyboards versus strict vt220 compatiblity - TD
+#
+# 1999/3/13
+#      * adjust xterm-xfree86 khome/kend to match default PC-style keyboard
+#        tables - TD
+#      * add 'crt' entry - TD
+#      * correct typos in 'linux-c' entry - TD
+#
+# 1999/3/14
+#      * update entries for BSD/OS console to use klone+sgr and klone+color
+#        (Jeffrey C Honig)
+#
+# 1999/3/27
+#      * adjust xterm-xfree86 miscellaneous keypad keys, as per patch #94 - TD.
+#
+# 1999/4/10
+#      * add linux-lat, from RedHat patches to ncurses 4.2
+#
+# 1999/4/17
+#      * add complete set of default function-key definitions for scoansi - TD.
+#
+# 1999/7/3
+#      * add cnorm, cvvis for Linux 2.2 kernels
+#
+# 1999/7/24
+#      * add kmous to xterm-r5 -TD
+#      * correct entries xterm+sl and xterm+sl-twm, which were missing the
+#        parent "use" clause -TD
+#
+# 1999/7/31
+#      * corrected cnorm, added el1 in 'screen' description -TD
+#
+# 1999/8/14
+#      * add ms-vt100 -TD
+#
+# 1999/8/21
+#      * corrections to beterm entry -TD
+#
+# 1999/8/28
+#      * add cygwin entry -TD
+#
+# 1999/9/4
+#      * minor corrections for beterm entry -TD
+#
+# 1999/9/18
+#      * add acsc string to HP 70092 terminfo entry -Joerg Wunsch
+#
+# 1999/9/25
+#      * add amiga-8bit entry
+#      * add console entries from NetBSD: ofcons, wsvt25, wsvt25m, rcons,
+#        rcons-color, based on
+#        ftp://ftp.netbsd.org/pub/NetBSD/NetBSD-current/src/share/termcap/termcap.src
+#      * add alias for iris-ansi-net
+#
+# 1999/10/2
+#      * corrected scoansi entry's acsc, some function keys, add color -TD
+#
+# 1999/10/23
+#      * add cnorm, cvvis to cons25w, and modify ncv to add 'dim' -TD
+#      * reorder ncsa entries to make ncsa-vt220 use the alternate function
+#        key mapping, leaving Potorti's entries more like he named them -TD
+#      * remove enter/exit am-mode from cygwin -TD
 #
-# The following sets edit modes for GNU EMACS
+# The following sets edit modes for GNU EMACS.
 # Local Variables:
 # fill-prefix:"\t"
 # fill-column:75
+# comment-column:0
+# comment-start-skip:"^#+"
+# comment-start:"# "
+# compile-command:"tic -c terminfo.master"
 # End:
 ######## SHANTIH!  SHANTIH!  SHANTIH!