]> ncurses.scripts.mit.edu Git - ncurses.git/commitdiff
ncurses 6.4 - patch 20240127
authorThomas E. Dickey <dickey@invisible-island.net>
Sun, 28 Jan 2024 00:32:56 +0000 (00:32 +0000)
committerThomas E. Dickey <dickey@invisible-island.net>
Sun, 28 Jan 2024 00:32:56 +0000 (00:32 +0000)
+ amend change to z39-a (report by Sven Joachim).
+ use xterm+nopcfkeys, vt52-basic, dec+pp, dec+sl, vt52+arrows,
  hp+pfk+cr, klone+acs, klone+color, klone+sgr, ncr160wy50+pp
  to trim -TD
+ NetBSD-related fixes for x68k and wsvt52 (patch by Thomas Klausner)

NEWS
VERSION
dist.mk
misc/terminfo.src
package/debian-mingw/changelog
package/debian-mingw64/changelog
package/debian/changelog
package/mingw-ncurses.nsi
package/mingw-ncurses.spec
package/ncurses.spec
package/ncursest.spec

diff --git a/NEWS b/NEWS
index 819868ecff09cb2c8bf2d8a23e4658f5cf2dc988..05e5aeeaab65196c9b5eca5c4cb90ef060249ef3 100644 (file)
--- a/NEWS
+++ b/NEWS
@@ -26,7 +26,7 @@
 -- sale, use or other dealings in this Software without prior written        --
 -- authorization.                                                            --
 -------------------------------------------------------------------------------
--- $Id: NEWS,v 1.4069 2024/01/20 19:46:10 tom Exp $
+-- $Id: NEWS,v 1.4071 2024/01/27 22:04:17 tom Exp $
 -------------------------------------------------------------------------------
 
 This is a log of changes that ncurses has gone through since Zeyd started
@@ -46,6 +46,13 @@ See the AUTHORS file for the corresponding full names.
 Changes through 1.9.9e did not credit all contributions;
 it is not possible to add this information.
 
+20240127
+       + amend change to z39-a (report by Sven Joachim).
+       + use xterm+nopcfkeys, vt52-basic, dec+pp, dec+sl, vt52+arrows,
+         hp+pfk+cr, klone+acs, klone+color, klone+sgr, ncr160wy50+pp
+         to trim -TD
+       + NetBSD-related fixes for x68k and wsvt52 (patch by Thomas Klausner)
+
 20240120
        + improve formatting/style of manpages (patches by Branden Robinson).
        + amend discussion of aliases in tput.1
diff --git a/VERSION b/VERSION
index 1c4709a55bf4b63623e06492bf3fc6c704b29b28..25dee1cdcc91f70a52a4956fd2086bdae0b40e31 100644 (file)
--- a/VERSION
+++ b/VERSION
@@ -1 +1 @@
-5:0:10 6.4     20240120
+5:0:10 6.4     20240127
diff --git a/dist.mk b/dist.mk
index 000fb9bfcc7be351ea7352396d0743f12b2a91a4..8f193da0f7e484c57d08059246b22eb21062027c 100644 (file)
--- a/dist.mk
+++ b/dist.mk
@@ -26,7 +26,7 @@
 # use or other dealings in this Software without prior written               #
 # authorization.                                                             #
 ##############################################################################
-# $Id: dist.mk,v 1.1594 2024/01/20 11:52:33 tom Exp $
+# $Id: dist.mk,v 1.1595 2024/01/27 11:04:16 tom Exp $
 # Makefile for creating ncurses distributions.
 #
 # This only needs to be used directly as a makefile by developers, but
@@ -38,7 +38,7 @@ SHELL = /bin/sh
 # These define the major/minor/patch versions of ncurses.
 NCURSES_MAJOR = 6
 NCURSES_MINOR = 4
-NCURSES_PATCH = 20240120
+NCURSES_PATCH = 20240127
 
 # We don't append the patch to the version, since this only applies to releases
 VERSION = $(NCURSES_MAJOR).$(NCURSES_MINOR)
index 0892a3063487c1ff8b4d2a5a8205bc76acfb1f64..18f0bc2fdf677e57f1da046970aa942ff1dea373 100644 (file)
@@ -6,8 +6,8 @@
 # Report bugs and new terminal descriptions to
 #      bug-ncurses@gnu.org
 #
-#      $Revision: 1.1123 $
-#      $Date: 2024/01/14 18:08:23 $
+#      $Revision: 1.1137 $
+#      $Date: 2024/01/27 21:52:22 $
 #
 # The original header is preserved below for reference.  It is noted that there
 # is a "newer" version which differs in some cosmetic details (but actually
@@ -470,8 +470,7 @@ klone+color|color control for ansi.sys and ISO6429-compatible displays,
 # default color pair,  but many `ANSI' terminals don't grok the <op> cap.
 ecma+color|color control for ECMA-48-compatible terminals,
        AX,
-       colors#8, ncv#3, pairs#64,
-       op=\E[39;49m, setab=\E[4%p1%dm, setaf=\E[3%p1%dm,
+       op=\E[39;49m, use=klone+color,
 
 ecma+italics|ECMA-48 italics,
        ritm=\E[23m, sitm=\E[3m,
@@ -820,18 +819,14 @@ st52-color|at-color|atari-color|atari_st-color|Atari ST with color,
        use=st52,
 st52|st52-m|at|at-m|atari|atari-m|atari_st|atarist-m|Atari ST,
        am, eo, mir, npc,
-       cols#80, it#8, lines#24,
-       bel=^G, civis=\Ef, clear=\EE, cnorm=\Ee, cr=\r, cub1=\ED,
-       cud1=\EB, cuf1=\EC, cup=\EY%p1%{32}%+%c%p2%{32}%+%c,
-       cuu1=\EA, dl1=\EM, ed=\EJ, el=\EK, el1=\Eo, home=\EH, ht=^I,
-       il1=\EL, ind=\n, is2=\Ev\Eq\Ee, kLFT=\Ed, kRIT=\Ec, kbs=^H,
-       kcub1=\ED, kcud1=\EB, kcuf1=\EC, kcuu1=\EA, kdch1=^?,
-       kf1=\EP, kf10=\EY, kf11=\Ep, kf12=\Eq, kf13=\Er, kf14=\Es,
-       kf15=\Et, kf16=\Eu, kf17=\Ev, kf18=\Ew, kf19=\Ex, kf2=\EQ,
-       kf20=\Ey, kf3=\ER, kf4=\ES, kf5=\ET, kf6=\EU, kf7=\EV, kf8=\EW,
-       kf9=\EX, khlp=\EH, khome=\EE, kich1=\EI, knp=\Eb, kpp=\Ea,
-       kund=\EK, nel=\r\n, rc=\Ek, rev=\Ep, ri=\EI, rmso=\Eq,
-       rs2=\Ev\Eq\Ee, sc=\Ej, sgr0=\Eq, smso=\Ep,
+       civis=\Ef, clear=\EE, cnorm=\Ee, dl1=\EM, el1=\Eo, il1=\EL,
+       is2=\Ev\Eq\Ee, kLFT=\Ed, kRIT=\Ec, kdch1=^?, kf1=\EP,
+       kf10=\EY, kf11=\Ep, kf12=\Eq, kf13=\Er, kf14=\Es, kf15=\Et,
+       kf16=\Eu, kf17=\Ev, kf18=\Ew, kf19=\Ex, kf2=\EQ, kf20=\Ey,
+       kf3=\ER, kf4=\ES, kf5=\ET, kf6=\EU, kf7=\EV, kf8=\EW, kf9=\EX,
+       khlp=\EH, khome=\EE, kich1=\EI, knp=\Eb, kpp=\Ea, kund=\EK,
+       rc=\Ek, rev=\Ep, rmso=\Eq, rs2=\Ev\Eq\Ee, sc=\Ej, sgr0=\Eq,
+       smso=\Ep, use=vt52-basic,
 tw100|Toswin VT100 window manager,
        eo, mir, msgr, xon,
        colors#8, cols#80, it#8, lines#24, pairs#64, vt#3,
@@ -864,39 +859,33 @@ tw100|Toswin VT100 window manager,
 # The entries for stv52 and stv52pc probably need a revision.
 stv52|MiNT virtual console,
        am, msgr,
-       cols#80, it#8, lines#30,
-       bel=^G, blink=\Er, bold=\EyA, civis=\Ef, clear=\EE,
-       cnorm=\E. \Ee, cr=\r, cub1=^H, cud1=\EB, cuf1=\EC,
-       cup=\EY%p1%{32}%+%c%p2%{32}%+%c, cuu1=\EA, cvvis=\E.",
-       dim=\Em, dl1=\EM, ed=\EJ, el=\EK, home=\EH, ht=^I, il1=\EL,
-       ind=\n$<2*/>, kbs=^H, kcub1=\ED, kcud1=\EB, kcuf1=\EC,
-       kcuu1=\EA, kdch1=^?, kf1=\EP, kf10=\EY, kf11=\Ep, kf12=\Eq,
-       kf13=\Er, kf14=\Es, kf15=\Et, kf16=\Eu, kf17=\Ev, kf18=\Ew,
-       kf19=\Ex, kf2=\EQ, kf20=\Ey, kf3=\ER, kf4=\ES, kf5=\ET,
-       kf6=\EU, kf7=\EV, kf8=\EW, kf9=\EX, khlp=\EH, khome=\EE,
-       kich1=\EI, knp=\Eb, kpp=\Ea, kund=\EK, nel=\r\n$<2*/>,
-       op=\Eb@\EcO, rev=\Ep, ri=\EI$<2*/>, rmcup=\Ev\E. \Ee\Ez_,
-       rmso=\Eq, rmul=\EzH, rs1=\Ez_\Eb@\EcA, sgr0=\Ez_,
-       smcup=\Ev\Ee\Ez_, smso=\Ep, smul=\EyH,
+       lines#30,
+       blink=\Er, bold=\EyA, civis=\Ef, clear=\EE, cnorm=\E. \Ee,
+       cub1=^H, cvvis=\E.", dim=\Em, dl1=\EM, il1=\EL, ind=\n$<2*/>,
+       kdch1=^?, kf1=\EP, kf10=\EY, kf11=\Ep, kf12=\Eq, kf13=\Er,
+       kf14=\Es, kf15=\Et, kf16=\Eu, kf17=\Ev, kf18=\Ew, kf19=\Ex,
+       kf2=\EQ, kf20=\Ey, kf3=\ER, kf4=\ES, kf5=\ET, kf6=\EU, kf7=\EV,
+       kf8=\EW, kf9=\EX, khlp=\EH, khome=\EE, kich1=\EI, knp=\Eb,
+       kpp=\Ea, kund=\EK, nel=\r\n$<2*/>, op=\Eb@\EcO, rev=\Ep,
+       ri=\EI$<2*/>, rmcup=\Ev\E. \Ee\Ez_, rmso=\Eq, rmul=\EzH,
+       rs1=\Ez_\Eb@\EcA, sgr0=\Ez_, smcup=\Ev\Ee\Ez_, smso=\Ep,
+       smul=\EyH, use=vt52-basic,
 stv52pc|MiNT virtual console with PC charset,
        am, msgr,
-       cols#80, it#8, lines#30,
+       lines#30,
        acsc=+\257\,\256-\^.v0\333I\374`\177a\260f\370g\361h\261j
             \331k\277l\332m\300n\305o\377p-q\304r-s_t+u+v+w+x\263y
             \363z\362{\343|\366}\234~\371,
-       bel=^G, blink=\Er, bold=\EyA, civis=\Ef, clear=\EE,
-       cnorm=\E. \Ee, cr=\r, cub1=^H, cud1=\EB, cuf1=\EC,
-       cup=\EY%p1%{32}%+%c%p2%{32}%+%c, cuu1=\EA, cvvis=\E.",
-       dim=\Em, dl1=\EM, ed=\EJ, el=\EK, home=\EH, ht=^I, il1=\EL,
-       ind=\n$<2*/>, kbs=^H, kcub1=\ED, kcud1=\EB, kcuf1=\EC,
-       kcuu1=\EA, kdch1=^?, kf1=\EP, kf10=\EY, kf11=\Ep, kf12=\Eq,
-       kf13=\Er, kf14=\Es, kf15=\Et, kf16=\Eu, kf17=\Ev, kf18=\Ew,
-       kf19=\Ex, kf2=\EQ, kf20=\Ey, kf3=\ER, kf4=\ES, kf5=\ET,
-       kf6=\EU, kf7=\EV, kf8=\EW, kf9=\EX, khlp=\EH, khome=\EE,
-       kich1=\EI, knp=\Eb, kpp=\Ea, kund=\EK, nel=\r\n$<2*/>,
-       rev=\Ep, ri=\EI$<2*/>, rmcup=\Ev\E. \Ee\Ez_, rmso=\Eq,
-       rmul=\EzH, rs1=\Ez_\Eb@\EcA, sgr0=\Ez_, smcup=\Ev\Ee\Ez_,
-       smso=\Ep, smul=\EyH,
+       blink=\Er, bold=\EyA, civis=\Ef, clear=\EE, cnorm=\E. \Ee,
+       cub1=^H, cvvis=\E.", dim=\Em, dl1=\EM, il1=\EL, ind=\n$<2*/>,
+       kdch1=^?, kf1=\EP, kf10=\EY, kf11=\Ep, kf12=\Eq, kf13=\Er,
+       kf14=\Es, kf15=\Et, kf16=\Eu, kf17=\Ev, kf18=\Ew, kf19=\Ex,
+       kf2=\EQ, kf20=\Ey, kf3=\ER, kf4=\ES, kf5=\ET, kf6=\EU, kf7=\EV,
+       kf8=\EW, kf9=\EX, khlp=\EH, khome=\EE, kich1=\EI, knp=\Eb,
+       kpp=\Ea, kund=\EK, nel=\r\n$<2*/>, rev=\Ep, ri=\EI$<2*/>,
+       rmcup=\Ev\E. \Ee\Ez_, rmso=\Eq, rmul=\EzH,
+       rs1=\Ez_\Eb@\EcA, sgr0=\Ez_, smcup=\Ev\Ee\Ez_, smso=\Ep,
+       smul=\EyH, use=vt52-basic,
 
 # From: Simson L. Garfinkel <simsong@media-lab.mit.edu>
 atari-old|Atari st,
@@ -904,8 +893,8 @@ atari-old|Atari st,
        cols#80, it#8, lines#25,
        clear=\EH\EJ, cub1=\ED, cud1=\EB, cuf1=\EC,
        cup=\EY%p1%{32}%+%c%p2%{32}%+%c, cuu1=\EA, dl1=\EM,
-       ed=\EJ, el=\EK, ht=^I, il1=\EL, kcub1=\ED, kcud1=\EB,
-       kcuf1=\EC, kcuu1=\EA, ri=\EI, rmso=\Eq, sgr0=\Eq, smso=\Ep,
+       ed=\EJ, el=\EK, ht=^I, il1=\EL, ri=\EI, rmso=\Eq, sgr0=\Eq,
+       smso=\Ep, use=vt52+arrows,
 # UniTerm terminal program for the Atari ST:  49-line VT220 emulation mode
 # From: Paul M. Aoki <aoki@ucbvax.berkeley.edu>
 uniterm|uniterm49|UniTerm VT220 emulator with 49 lines,
@@ -935,7 +924,7 @@ st52-old|Atari ST with VT52 emulation,
 # 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,
+       cols#80, it#8, lines#25, ncv#5,
        bel=^G, bold=\E[1m, cr=\r, cub1=^H, cud1=\n,
        cup=\E[%i%p1%d;%p2%dH, ech=\E[%p1%dX, el1=\E[1K,
        home=\E[H, hpa=\E[%i%p1%dG, ht=^I, hts=\EH, ind=\n,
@@ -943,13 +932,12 @@ beterm|BeOS Terminal,
        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~, kspd=^Z,
        nel=\r\n, op=\E[m, rev=\E[7m, ri=\EM, rmkx=\E[?4l, rmso=\E[m,
-       rmul=\E[24m, rs1=\Ec, setab=\E[4%p1%dm, setaf=\E[3%p1%dm,
-       setb=\E[%p1%{40}%+%cm, setf=\E[%p1%{30}%+%cm,
-       sgr0=\E[0;10m, smkx=\E[?4h, smso=\E[7m, smul=\E[4m,
-       u6=\E[%i%p1%d;%p2%dR, u7=\E[6n, vpa=\E[%i%p1%dd,
-       use=ansi+arrows, use=ansi+csr, use=ansi+erase,
-       use=ansi+idc, use=ansi+idl, use=ansi+local,
-       use=vt220+pcedit,
+       rmul=\E[24m, rs1=\Ec, setb=\E[%p1%{40}%+%cm,
+       setf=\E[%p1%{30}%+%cm, sgr0=\E[0;10m, smkx=\E[?4h,
+       smso=\E[7m, smul=\E[4m, u6=\E[%i%p1%d;%p2%dR, u7=\E[6n,
+       vpa=\E[%i%p1%dd, use=ansi+arrows, use=ansi+csr,
+       use=ansi+erase, use=ansi+idc, use=ansi+idl,
+       use=ansi+local, use=klone+color, use=vt220+pcedit,
 
 #### Linux consoles
 #
@@ -1160,7 +1148,7 @@ linux-vt|Linux console using VT codes for graphics,
 # Note: The status-line support is buggy (dsl does not work).
 kon|kon2|Kanji ON Linux console,
        am, bce, ccc, eo, eslok, hs, mir, msgr, xenl, xon,
-       colors#8, it#8, ncv#18, pairs#64,
+       it#8, ncv#18,
        bel=^G, civis=\E[?25l, cnorm=\E[?25h, cr=\r, cub1=^H,
        cud1=\n, cup=\E[%i%p1%d;%p2%dH, dim=\E[2m,
        dsl=\E[?H\E[?E, el1=\E[1K, fsl=\E[?F, home=\E[H,
@@ -1172,14 +1160,14 @@ kon|kon2|Kanji ON Linux console,
        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~, kspd=^Z,
        nel=\r\n, op=\E[37;40m, ri=\EM, rmso=\E[27m, rmul=\E[24m,
-       rs1=\Ec, setab=\E[4%p1%dm, setaf=\E[3%p1%dm,
+       rs1=\Ec,
        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,
        sgr0=\E[0;10m, tbc=\E[3g, tsl=\E[?T, u8=\E[?6c,
        vpa=\E[%i%p1%dd, use=ansi+arrows, use=ansi+csr,
        use=ansi+enq, use=ansi+erase, use=ansi+idc, use=ansi+idl,
        use=ansi+local, use=ansi+sgrbold, use=ecma+sgr,
-       use=vt220+pcedit,
+       use=klone+color, use=vt220+pcedit,
 
 # release: 0.4.7 2005/05
 #
@@ -1335,7 +1323,7 @@ mach-gnu-color|GNU Mach console with ANSI color,
 # Reading the source, RIS resets cnorm, but not xmous.
 hurd|The GNU Hurd console server,
        am, bce, bw, eo, km, mir, msgr, xenl, xon, NQ,
-       colors#8, it#8, ncv#18, pairs#64,
+       it#8, ncv#18,
        acsc=++\,\,--..00``aaffgghhiijjkkllmmnnooppqqrrssttuuvvwwxxy
             yzz{{||}}~~,
        bel=^G, cbt=\E[Z, clear=\Ec, cr=\r, cub1=^H, cvvis=\E[34l,
@@ -1346,17 +1334,17 @@ hurd|The GNU Hurd console server,
        kf15=\E[28~, 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~,
-       khome=\E[1~, kich1=\E[2~, kmous=\E[M, kspd=^Z, nel=\r\n,
-       op=\E[39;49m, ri=\E[T, rmacs=\E[10m, rmir=\E[4l,
-       rmso=\E[27m, rmul=\E[24m, rs1=\EM\E[?1000l,
-       setab=\E[4%p1%dm, setaf=\E[3%p1%dm,
+       khome=\E[1~, kmous=\E[M, kspd=^Z, nel=\r\n, op=\E[39;49m,
+       ri=\E[T, rmir=\E[4l, rmso=\E[27m, rmul=\E[24m,
+       rs1=\EM\E[?1000l,
        sgr=\E[0%?%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,
-       smacs=\E[11m, smir=\E[4h, grbom=\E[>1l, gsbom=\E[>1h,
+       smir=\E[4h, grbom=\E[>1l, gsbom=\E[>1h,
        use=ansi+apparrows, use=ansi+csr, use=ansi+cup,
        use=ansi+erase, use=ansi+idl, use=ansi+local,
        use=ansi+rca2, use=ansi+sgrbold, use=vt220+pcedit,
-       use=ecma+index, use=ecma+italics, use=vt220+cvis,
+       use=ecma+index, use=ecma+italics, use=klone+acs,
+       use=klone+color, use=vt220+cvis,
 
 #### QNX
 #
@@ -1711,8 +1699,8 @@ pccon+sgr+acs|sgr and default ASCII pseudographics for OpenBSD PC console,
 # underline renders as color
 pccon+colors|ANSI colors for OpenBSD PC console,
        bce,
-       colors#8, ncv#2, pairs#64,
-       op=\E[49;39m, setab=\E[4%p1%dm, setaf=\E[3%p1%dm,
+       ncv#2,
+       op=\E[49;39m, use=klone+color,
 # OpenBSD uses wscons,
 # + which does not implement DECSCNM or anything comparable, so it does not
 #   support flash.
@@ -1857,7 +1845,7 @@ arm100-w|arm100-wam|Arm(RiscPC) ncurses compatible (for 1024x768),
 # From Minoura Makoto <minoura@netlaputa.or.jp>, 12 May 1996
 x68k|x68k-ite|NetBSD/x68k ITE,
        cols#96, lines#32,
-       kclr=\E[9~, khlp=\E[28~, use=vt220-base,
+       kbs=^?, kclr=\E[9~, khlp=\E[28~, use=vt220-base,
 
 # <tv@pobox.com>:
 # Entry for the DNARD OpenFirmware console, close to ANSI but not quite.
@@ -1883,8 +1871,9 @@ ofcons|DNARD OpenFirmware console,
        sgr0=\2330m, smso=\2337m, smul=\2334m,
 
 # NetBSD "wscons" emulator in VT220 mode.
-# This entry is based on the NetBSD termcap entry, correcting the ncv value.
-# The emulator renders underlined text in red.  Colors are otherwise usable.
+# This entry is based on the NetBSD termcap entry.  The emulator renders
+# underlined text in red.  Colors are otherwise usable.  NetBSD developers
+# prefer to not specify the corresponding ncv value.
 #
 # Testing the emulator and reading the source code (NetBSD 2.0), it appears
 # that "vt220" is inaccurate.  There are a few VT220-features, but most of the
@@ -1896,7 +1885,7 @@ ofcons|DNARD OpenFirmware console,
 # work.  Don't use it on a VMS system -TD
 wsvt25|NetBSD wscons in 25 line DEC VT220 mode,
        bce,
-       colors#8, lines#25, ncv#2, pairs#64,
+       colors#8, lines#25, pairs#64,
        is2=\E[r\E[25;1H, kdch1=\E[3~, kend=\E[8~, kf1=\E[11~,
        kf2=\E[12~, kf3=\E[13~, kf4=\E[14~, kf5=\E[15~,
        khome=\E[7~, op=\E[m, rs1=\Ec, setab=\E[4%p1%dm,
@@ -2006,7 +1995,7 @@ mgterm|MGL/MGL2 MobileGear Graphic Library,
 #      F37-F48 are shift+control F1-F12
 cons25w|ansiw|ansi80x25-raw|FreeBSD console (25-line raw mode),
        am, bce, bw, eo, msgr, npc,
-       colors#8, cols#80, it#8, lines#25, ncv#21, pairs#64,
+       cols#80, it#8, lines#25, ncv#21,
        bel=^G, blink=\E[5m, bold=\E[1m, cbt=\E[Z, cnorm=\E[=0C,
        cr=\r, cub1=^H, cup=\E[%i%p1%d;%p2%dH, cvvis=\E[=1C,
        dch=\E[%p1%dP, dch1=\E[P, dim=\E[30;1m, ech=\E[%p1%dX,
@@ -2023,13 +2012,12 @@ cons25w|ansiw|ansi80x25-raw|FreeBSD console (25-line raw mode),
        kf45=\E[\^, kf46=\E[_, kf47=\E[`, kf48=\E[{, kf5=\E[Q,
        kf6=\E[R, kf7=\E[S, kf8=\E[T, kf9=\E[U, kich1=\E[L, knp=\E[G,
        kpp=\E[I, nel=\E[E, op=\E[x, rc=\E8, rev=\E[7m, ri=\E[T,
-       rmso=\E[m, rs2=\E[x\E[m\Ec, sc=\E7, setab=\E[4%p1%dm,
-       setaf=\E[3%p1%dm,
+       rmso=\E[m, rs2=\E[x\E[m\Ec, sc=\E7,
        sgr=\E[0%?%p1%t;2;7%;%?%p3%t;7%;%?%p4%t;5%;%?%p5%t;30;1%;%?
            %p6%t;1%;m,
        sgr0=\E[m, smso=\E[7m, vpa=\E[%i%p1%dd, use=ansi+arrows,
        use=ansi+erase, use=ansi+idl, use=ansi+local,
-       use=ecma+index,
+       use=ecma+index, use=klone+color,
 
 cons25|ansis|ansi80x25|FreeBSD console (25-line ANSI mode),
        acsc=-\030.^Y0\333`\004a\260f\370g\361h\261i\025j\331k\277l
@@ -2200,17 +2188,16 @@ teken-2018|teken as of 2018,
 
 teken-2022|teken as of 2022,
        am, bce, eo, mir, msgr, npc, NQ,
-       colors#8, cols#80, it#8, lines#25, ncv#21, pairs#64, U8#1,
+       cols#80, it#8, lines#25, ncv#21, U8#1,
        bold=\E[1m, cr=\r, cub1=^H, dim=\E[30;1m, ech=\E[%p1%dX,
-       ind=\E[S, kbs=^H, kent=\r, nel=\E[E, op=\E[x, rev=\E[7m,
-       ri=\E[T, rmso=\E[27m, rs2=\E[x\E[m\Ec, setab=\E[4%p1%dm,
-       setaf=\E[3%p1%dm,
+       ind=\E[S, kent=\r, nel=\E[E, op=\E[x, rev=\E[7m, ri=\E[T,
+       rmso=\E[27m, rs2=\E[x\E[m\Ec,
        sgr=\E[0%?%p1%t;2;7%;%?%p3%t;7%;%?%p5%t;30;1%;%?%p6%t;1%;m,
        sgr0=\E[m, use=vt220+cvis, use=ecma+index,
        use=ansi+arrows, use=ansi+csr, use=ansi+cup,
        use=ansi+erase, use=ansi+idc, use=ansi+idl,
        use=ansi+local, use=ansi+rca2, use=ansi+sgrso,
-       use=ansi+tabs,
+       use=ansi+tabs, use=klone+color,
 
 teken-vt+fkeys|teken's xterm special keys,
        kend=\E[F, kf1=\EOP, kf10=\E[21~, kf11=\E[23~, kf12=\E[24~,
@@ -2322,11 +2309,9 @@ bsdos-ppc|PowerPC BSD/OS console,
 # that VT52 does not support line-drawing characters (the scan-X values refer
 # to a crude plotting feature) -TD
 vt52|DEC VT52,
-       OTbs,
-       it#8, lines#24,
-       acsc=+h.k0affggolpnqprrss, home=\EH, kbs=^H, nel=\r\n,
-       ri=\EI, rmacs=\EG, rmkx=\E>, smacs=\EF, smkx=\E=, u8=\E/[KL],
-       use=vt50h,
+       lines#24,
+       acsc=+h.k0affggolpnqprrss, rmacs=\EG, rmkx=\E>,
+       smacs=\EF, smkx=\E=, u8=\E/[KL], use=vt50h, use=vt52-basic,
 
 # This is more likely the "vt52" that you would see in emulation, i.e., no
 # keypad, no graphics.
@@ -2334,8 +2319,11 @@ vt52-basic|VT52 for emulators,
        cols#80, it#8, lines#24,
        bel=^G, clear=\EH\EJ, cr=\r, cub1=\ED, cud1=\EB, cuf1=\EC,
        cup=\EY%p1%' '%+%c%p2%' '%+%c, cuu1=\EA, ed=\EJ, el=\EK,
-       home=\EH, ht=^I, ind=\n, kbs=^H, kcub1=\ED, kcud1=\EB,
-       kcuf1=\EC, kcuu1=\EA, nel=\r\n, ri=\EI,
+       home=\EH, ht=^I, ind=\n, kbs=^H, nel=\r\n, ri=\EI,
+       use=vt52+arrows,
+
+vt52+arrows|cursor keys for VT52,
+       kcub1=\ED, kcud1=\EB, kcuf1=\EC, kcuu1=\EA,
 
 #### DEC VT100 and compatibles
 #
@@ -3387,8 +3375,8 @@ nsterm+c|AppKit Terminal.app v51+ full color support (including 16 colors),
        op=\E[0m, use=ibm+16color,
 
 nsterm+c41|AppKit Terminal.app v41 color support,
-       colors#8, ncv#37, pairs#64,
-       op=\E[0m, setab=\E[4%p1%dm, setaf=\E[3%p1%dm,
+       ncv#37,
+       op=\E[0m, use=klone+color,
 
 # These are different combinations of the building blocks
 
@@ -3829,8 +3817,7 @@ xnuppc+basic|Darwin PowerPC console basic capabilities,
        use=ansi+sgrso, use=ansi+sgrul, use=vt100+keypad,
 
 xnuppc+c|Darwin PowerPC console ANSI color support,
-       colors#8, ncv#32, pairs#64,
-       op=\E[37;40m, setab=\E[4%p1%dm, setaf=\E[3%p1%dm,
+       ncv#32, use=klone+color,
 
 xnuppc+b|Darwin PowerPC console color-bold support,
        ncv#32,
@@ -4162,11 +4149,10 @@ absolute|Absolute Telnet emulating xterm,
 #      http://stackoverflow.com/questions/24613237/terminal-retains-bg-color-after-closing-vim-using-color-scheme-and-putty-256co/37869114#37869114
 putty|PuTTY terminal emulator,
        am, bce, bw, ccc, mir, msgr, xenl, xon, XT,
-       colors#8, it#8, ncv#22, pairs#64, U8#1,
+       it#8, ncv#22, U8#1,
        acsc=``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~,
-       bel=^G, blink=\E[5m, bold=\E[1m, cr=\r, cub1=^H, cud1=\ED,
-       cup=\E[%i%p1%d;%p2%dH, cuu1=\EM, dch=\E[%p1%dP,
-       dch1=\E[P,
+       bel=^G, cr=\r, cub1=^H, cud1=\ED, cup=\E[%i%p1%d;%p2%dH,
+       cuu1=\EM, dch=\E[%p1%dP, dch1=\E[P,
        dispc=%?%p1%{8}%=%t\E%%G\342\227\230\E%%@%e%p1%{10}%=%t\E%%G
              \342\227\231\E%%@%e%p1%{12}%=%t\E%%G\342\231\0\E%%@%e
              %p1%{13}%=%t\E%%G\342\231\252\E%%@%e%p1%{14}%=%t\E%%G
@@ -4180,24 +4166,23 @@ putty|PuTTY terminal emulator,
              %02x%p4%{255}%*%{1000}%/%02x,
        is2=\E7\E[r\E[m\E[?7h\E[?1;4;6l\E[4l\E8\E>\E]R,
        kbs=^?, kcbt=\E[Z, khome=\E[1~, kind=\E[B, kri=\E[A, kspd=^Z,
-       nel=\r\n, oc=\E]R, op=\E[39;49m, rev=\E[7m, ri=\EM, rmacs=^O,
-       rmam=\E[?7l, rmir=\E[4l, rmkx=\E[?1l\E>, rmpch=\E[10m,
-       rmso=\E[27m, rmul=\E[24m,
+       nel=\r\n, oc=\E]R, op=\E[39;49m, ri=\EM, rmacs=^O,
+       rmam=\E[?7l, rmir=\E[4l, rmkx=\E[?1l\E>, rmso=\E[27m,
+       rmul=\E[24m,
        rs2=\E<\E["p\E[50;6"p\Ec\E[?3l\E]R\E[?1000l,
-       s0ds=\E[10m, s1ds=\E[11m, s2ds=\E[12m, setab=\E[4%p1%dm,
-       setaf=\E[3%p1%dm,
+       s0ds=\E[10m, s1ds=\E[11m, s2ds=\E[12m,
        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, smir=\E[4h,
-       smkx=\E[?1h\E=, smpch=\E[11m, smso=\E[7m, smul=\E[4m,
-       vpa=\E[%i%p1%dd, E3=\E[3J, use=ansi+apparrows,
-       use=ansi+csr, use=ansi+erase, use=ansi+idl,
-       use=ansi+local, use=ansi+tabs, use=ansi+rep,
-       use=ecma+index, use=vt220+pcedit, use=xterm+alt1049,
-       use=xterm+sm+1006, use=putty+fnkeys, use=vt102+enq,
+       smkx=\E[?1h\E=, vpa=\E[%i%p1%dd, E3=\E[3J,
+       use=ansi+apparrows, use=ansi+csr, use=ansi+erase,
+       use=ansi+idl, use=ansi+local, use=ansi+tabs,
+       use=ansi+rep, use=bracketed+paste, use=ecma+index,
+       use=ecma+strikeout, use=klone+color, use=klone+sgr,
+       use=putty+cursor, use=putty+fnkeys, use=vt220+pcedit,
+       use=xterm+alt1049, use=vt102+enq, use=xterm+sm+1006,
        use=xterm+sl, use=vt100+fnkeys, use=putty+keypad,
-       use=vt220+cvis, use=bracketed+paste, use=putty+cursor,
-       use=ecma+strikeout,
+       use=vt220+cvis,
 
 # older versions (e.g., before 0.71) of PuTTY used a shift-modifier to toggle
 # between normal- and application-mode for the cursor-keys.  That was dropped,
@@ -4571,32 +4556,31 @@ winconsole|Windows 10 new console,
        acsc=++\,\,--..00``aaffgghhiijjkkllmmnnooppqqrrssttuuvvwwxxy
             yzz~~,
        bel=^G, blink@, cr=\r, ech=\E[%p1%dX, el1=\E[0K, ich1@, ind=\n,
-       invis@, is1=\E[!p, kf1=\E[11~, kf10=\E[21~, kf11=\E[23~,
-       kf12=\E[24~, kf13=\E[11;2~, kf14=\E[12;2~, kf15=\E[13;2~,
-       kf16=\E[14;2~, kf17=\E[15;2~, kf18=\E[17;2~,
-       kf19=\E[18;2~, kf2=\E[12~, kf20=\E[19;2~, kf21=\E[20;2~,
-       kf22=\E[21;2~, kf23=\E[24;2~, kf24=\E[25;2~,
-       kf25=\E[11;3~, kf26=\E[12;3~, kf27=\E[13;3~,
-       kf28=\E[14;3~, kf29=\E[15;3~, kf3=\E[13~, kf30=\E[17;3~,
-       kf31=\E[18;3~, kf32=\E[19;3~, kf33=\E[20;3~,
-       kf34=\E[21;3~, kf35=\E[24;3~, kf36=\E[25;3~,
-       kf37=\E[11;4~, kf38=\E[12;4~, kf39=\E[13;4~, kf4=\E[14~,
-       kf40=\E[14;4~, kf41=\E[15;4~, kf42=\E[17;4~,
-       kf43=\E[18;4~, kf44=\E[19;4~, kf45=\E[20;4~,
-       kf46=\E[21;4~, kf47=\E[24;4~, kf48=\E[25;4~,
-       kf49=\E[11;7~, kf5=\E[15~, kf50=\E[12;7~, kf51=\E[13;7~,
-       kf52=\E[14;7~, kf53=\E[15;7~, kf54=\E[17;7~,
-       kf55=\E[18;7~, kf56=\E[19;7~, kf57=\E[20;7~,
-       kf58=\E[21;7~, kf59=\E[24;7~, kf6=\E[17~, kf60=\E[25;7~,
-       kf7=\E[18~, kf8=\E[19~, kf9=\E[20~, khome=\E[1~, nel=\r\n,
-       ri=\E[T, rmacs=\E(B, rmir@, rmpch@, rs1=\E[!p,
+       invis@, is1=\E[!p, kf13=\E[11;2~, kf14=\E[12;2~,
+       kf15=\E[13;2~, kf16=\E[14;2~, kf17=\E[15;2~,
+       kf18=\E[17;2~, kf19=\E[18;2~, kf20=\E[19;2~,
+       kf21=\E[20;2~, kf22=\E[21;2~, kf23=\E[24;2~,
+       kf24=\E[25;2~, kf25=\E[11;3~, kf26=\E[12;3~,
+       kf27=\E[13;3~, kf28=\E[14;3~, kf29=\E[15;3~,
+       kf30=\E[17;3~, kf31=\E[18;3~, kf32=\E[19;3~,
+       kf33=\E[20;3~, kf34=\E[21;3~, kf35=\E[24;3~,
+       kf36=\E[25;3~, kf37=\E[11;4~, kf38=\E[12;4~,
+       kf39=\E[13;4~, kf40=\E[14;4~, kf41=\E[15;4~,
+       kf42=\E[17;4~, kf43=\E[18;4~, kf44=\E[19;4~,
+       kf45=\E[20;4~, kf46=\E[21;4~, kf47=\E[24;4~,
+       kf48=\E[25;4~, kf49=\E[11;7~, kf50=\E[12;7~,
+       kf51=\E[13;7~, kf52=\E[14;7~, kf53=\E[15;7~,
+       kf54=\E[17;7~, kf55=\E[18;7~, kf56=\E[19;7~,
+       kf57=\E[20;7~, kf58=\E[21;7~, kf59=\E[24;7~,
+       kf60=\E[25;7~, khome=\E[1~, nel=\r\n, ri=\E[T, rmacs=\E(B,
+       rmir@, rmpch@, rs1=\E[!p,
        sgr=\E[0%?%p1%p6%|%t;1%;%?%p2%t;4%;%?%p1%p3%|%t;7%;m%?%p9%t
            \E(0%e\E(B%;,
        sgr0=\E[0m\E(B, smacs=\E(0, smir@, smpch@, use=ansi+arrows,
        use=ansi+csr, use=ansi+cup, use=ansi+erase, use=ansi+idc,
        use=ansi+idl, use=ecma+index, use=ansi+inittabs,
        use=ansi+local, use=ecma+sgr, use=ecma+color,
-       use=vt220+cvis, use=vt220+pcedit,
+       use=vt220+cvis, use=vt220+pcedit, use=xterm+nopcfkeys,
 
 # Windows Terminal (Preview)
 # https://github.com/microsoft/terminal
@@ -5112,8 +5096,7 @@ xterm+pcc0|fragment with modifyCursorKeys:0,
 # Here are corresponding fragments from xterm patch #216:
 #
 xterm+pcf0|fragment with modifyFunctionKeys:0,
-       kf1=\EOP, kf10=\E[21~, kf11=\E[23~, kf12=\E[24~,
-       kf13=\EO2P, kf14=\EO2Q, kf15=\EO2R, kf16=\EO2S,
+       kf1=\EOP, kf13=\EO2P, kf14=\EO2Q, kf15=\EO2R, kf16=\EO2S,
        kf17=\E[15;2~, kf18=\E[17;2~, kf19=\E[18;2~, kf2=\EOQ,
        kf20=\E[19;2~, kf21=\E[20;2~, kf22=\E[21;2~,
        kf23=\E[23;2~, kf24=\E[24;2~, kf25=\EO5P, kf26=\EO5Q,
@@ -5124,31 +5107,30 @@ xterm+pcf0|fragment with modifyFunctionKeys:0,
        kf4=\EOS, kf40=\EO6S, kf41=\E[15;6~, kf42=\E[17;6~,
        kf43=\E[18;6~, kf44=\E[19;6~, kf45=\E[20;6~,
        kf46=\E[21;6~, kf47=\E[23;6~, kf48=\E[24;6~, kf49=\EO3P,
-       kf5=\E[15~, kf50=\EO3Q, kf51=\EO3R, kf52=\EO3S,
-       kf53=\E[15;3~, kf54=\E[17;3~, kf55=\E[18;3~,
-       kf56=\E[19;3~, kf57=\E[20;3~, kf58=\E[21;3~,
-       kf59=\E[23;3~, kf6=\E[17~, kf60=\E[24;3~, kf61=\EO4P,
-       kf62=\EO4Q, kf63=\EO4R, kf7=\E[18~, kf8=\E[19~, kf9=\E[20~,
+       kf50=\EO3Q, kf51=\EO3R, kf52=\EO3S, kf53=\E[15;3~,
+       kf54=\E[17;3~, kf55=\E[18;3~, kf56=\E[19;3~,
+       kf57=\E[20;3~, kf58=\E[21;3~, kf59=\E[23;3~,
+       kf60=\E[24;3~, kf61=\EO4P, kf62=\EO4Q, kf63=\EO4R,
+       use=xterm+nopcfkeys,
 #
 xterm+pcf2|fragment with modifyFunctionKeys:2,
-       kf1=\EOP, kf10=\E[21~, kf11=\E[23~, kf12=\E[24~,
-       kf13=\E[1;2P, kf14=\E[1;2Q, kf15=\E[1;2R, kf16=\E[1;2S,
-       kf17=\E[15;2~, kf18=\E[17;2~, kf19=\E[18;2~, kf2=\EOQ,
-       kf20=\E[19;2~, kf21=\E[20;2~, kf22=\E[21;2~,
-       kf23=\E[23;2~, kf24=\E[24;2~, kf25=\E[1;5P, kf26=\E[1;5Q,
-       kf27=\E[1;5R, kf28=\E[1;5S, kf29=\E[15;5~, kf3=\EOR,
-       kf30=\E[17;5~, kf31=\E[18;5~, kf32=\E[19;5~,
-       kf33=\E[20;5~, kf34=\E[21;5~, kf35=\E[23;5~,
-       kf36=\E[24;5~, kf37=\E[1;6P, kf38=\E[1;6Q, kf39=\E[1;6R,
-       kf4=\EOS, kf40=\E[1;6S, kf41=\E[15;6~, kf42=\E[17;6~,
-       kf43=\E[18;6~, kf44=\E[19;6~, kf45=\E[20;6~,
-       kf46=\E[21;6~, kf47=\E[23;6~, kf48=\E[24;6~,
-       kf49=\E[1;3P, kf5=\E[15~, kf50=\E[1;3Q, kf51=\E[1;3R,
+       kf1=\EOP, kf13=\E[1;2P, kf14=\E[1;2Q, kf15=\E[1;2R,
+       kf16=\E[1;2S, kf17=\E[15;2~, kf18=\E[17;2~,
+       kf19=\E[18;2~, kf2=\EOQ, kf20=\E[19;2~, kf21=\E[20;2~,
+       kf22=\E[21;2~, kf23=\E[23;2~, kf24=\E[24;2~,
+       kf25=\E[1;5P, kf26=\E[1;5Q, kf27=\E[1;5R, kf28=\E[1;5S,
+       kf29=\E[15;5~, kf3=\EOR, kf30=\E[17;5~, kf31=\E[18;5~,
+       kf32=\E[19;5~, kf33=\E[20;5~, kf34=\E[21;5~,
+       kf35=\E[23;5~, kf36=\E[24;5~, kf37=\E[1;6P, kf38=\E[1;6Q,
+       kf39=\E[1;6R, kf4=\EOS, kf40=\E[1;6S, kf41=\E[15;6~,
+       kf42=\E[17;6~, kf43=\E[18;6~, kf44=\E[19;6~,
+       kf45=\E[20;6~, kf46=\E[21;6~, kf47=\E[23;6~,
+       kf48=\E[24;6~, kf49=\E[1;3P, kf50=\E[1;3Q, kf51=\E[1;3R,
        kf52=\E[1;3S, kf53=\E[15;3~, kf54=\E[17;3~,
        kf55=\E[18;3~, kf56=\E[19;3~, kf57=\E[20;3~,
-       kf58=\E[21;3~, kf59=\E[23;3~, kf6=\E[17~, kf60=\E[24;3~,
-       kf61=\E[1;4P, kf62=\E[1;4Q, kf63=\E[1;4R, kf7=\E[18~,
-       kf8=\E[19~, kf9=\E[20~,
+       kf58=\E[21;3~, kf59=\E[23;3~, kf60=\E[24;3~,
+       kf61=\E[1;4P, kf62=\E[1;4Q, kf63=\E[1;4R,
+       use=xterm+nopcfkeys,
 #
 # Chunks from xterm #230:
 xterm+pce2|fragment with modifyCursorKeys:2 editing-keys,
@@ -5584,9 +5566,9 @@ xterm-8bit|xterm terminal emulator 8-bit controls (X Window System),
 #              -e tack
 # e.g., "foo sun" if the script is named "foo" -TD
 xterm-hp|xterm with hpterm function keys,
-       kclr=\EJ, kcub1=\ED, kcud1=\EB, kcuf1=\EC, kcuu1=\EA,
-       kdch1=\EP, kend=\EF, khome=\Eh, kich1=\EQ, knp=\ES, kpp=\ET,
-       use=hp+pfk-cr, use=xterm+nofkeys, use=xterm+nopcfkeys,
+       kclr=\EJ, kdch1=\EP, kend=\EF, khome=\Eh, kich1=\EQ, knp=\ES,
+       kpp=\ET, use=hp+pfk-cr, use=vt52+arrows,
+       use=xterm+nofkeys, use=xterm+nopcfkeys,
 
 xterm-sco|xterm with SCO function keys,
        kbeg=\E[E, kbs=^?, kdch1=^?, kend=\E[F, kf1=\E[M, kf10=\E[V,
@@ -5624,13 +5606,9 @@ xterm-vt220|xterm emulating VT220,
        use=xterm+tmux, use=xterm+keypad, use=xterm-basic,
 
 xterm-vt52|xterm emulating DEC VT52,
-       cols#80, it#8, lines#24,
        acsc=``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~,
-       bel=^G, clear=\EH\EJ, cr=\r, cub1=\ED, cud1=\EB, cuf1=\EC,
-       cup=\EY%p1%' '%+%c%p2%' '%+%c, cuu1=\EA, ed=\EJ, el=\EK,
-       home=\EH, ht=^I, ind=\n, kcub1=\ED, kcud1=\EB, kcuf1=\EC,
-       kcuu1=\EA, nel=\r\n, ri=\EI, rmacs=\EG, smacs=\EF,
-       use=xterm+kbs, use=vt52+keypad,
+       clear=\EH\EJ, rmacs=\EG, smacs=\EF, use=xterm+kbs,
+       use=vt52+keypad, use=vt52-basic,
 
 xterm-noapp|xterm with cursor keys in normal mode,
        rmcup@, rmkx=\E>, smcup@, smkx=\E=, use=xterm+noapp,
@@ -5957,13 +5935,13 @@ xtermm|xterm terminal emulator (monochrome),
        use=vt100+fnkeys,
 
 xtermc|xterm terminal emulator (color),
-       colors#8, ncv#7, pairs#64,
-       op=\E[100m, setab=\E[4%p1%dm, setaf=\E[3%p1%dm,
+       ncv#7,
+       op=\E[100m,
        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,
+       use=xtermm, use=klone+color,
 
 # 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
@@ -7387,7 +7365,7 @@ st-0.6|simpleterm 0.6,
 # Fixes: add eo and xenl per tack, remove nonworking cbt, hts and tbc, invis
 simpleterm|old-st|simpleterm 0.1.1,
        am, eo, mir, msgr, ul, xenl,
-       colors#8, cols#80, it#8, lines#24, ncv#3, pairs#64,
+       cols#80, it#8, lines#24,
        bel=^G, bold=\E[1m, clear=\E[H\E[2J, cr=\r, cub1=^H,
        cud=\E[%p1%dB, cud1=\n, cuf=\E[%p1%dC, cuf1=\E[C,
        cup=\E[%i%p1%d;%p2%dH, cuu=\E[%p1%dA, cuu1=\E[A,
@@ -7396,13 +7374,13 @@ simpleterm|old-st|simpleterm 0.1.1,
        kend=\E[4~, 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~, knp=\E[6~, kpp=\E[5~, op=\E[37;40m, rev=\E[7m,
-       rmso=\E[m, rmul=\E[m, setab=\E[4%p1%dm, setaf=\E[3%p1%dm,
+       khome=\E[1~, knp=\E[6~, kpp=\E[5~, rev=\E[7m, rmso=\E[m,
+       rmul=\E[m,
        sgr=%?%p9%t\E(0%e\E(B%;\E[0%?%p6%t;1%;%?%p2%t;4%;%?%p1%p3%|
            %t;7%;m,
        sgr0=\E[0m, smso=\E[7m, smul=\E[4m, use=ansi+arrows,
        use=ansi+csr, use=ansi+idl, use=vt220+cvis,
-       use=ecma+index, use=xterm+acs,
+       use=ecma+index, use=klone+color, use=xterm+acs,
 
 st-16color|stterm-16color|simpleterm with 16-colors,
        use=ibm+16color, use=st,
@@ -8116,9 +8094,8 @@ cbunix|cb unix virtual terminal,
        cols#80, lines#24, lm#0,
        bel=^G, clear=\EL, cr=\r, cub1=^H, cud1=\n, cuf1=\EC,
        cup=\EG%p2%c%p1%c, cuu1=\EA, dch1=\EM, dl1=\EN, ed=\EL,
-       el=\EK, ich1=\EO, il1=\EP, ind=\n, kcub1=\ED, kcud1=\EB,
-       kcuf1=\EC, kcuu1=\EA, khome=\EE, rmso=\Eb^D, rmul=\Eb^A,
-       smso=\Ea^D, smul=\Ea^A,
+       el=\EK, ich1=\EO, il1=\EP, ind=\n, khome=\EE, rmso=\Eb^D,
+       rmul=\Eb^A, smso=\Ea^D, smul=\Ea^A, use=vt52+arrows,
 # (vremote: removed obsolete ":nl@:" -- esr)
 vremote|virtual remote terminal,
        am@,
@@ -8172,10 +8149,10 @@ eterm-color|Emacs term.el terminal emulator term-protocol-version 0.96,
 # italics but does not lose the color information -TD 2017/01/28.
 dumb-emacs-ansi|Emacs dumb terminal with ANSI color codes,
        am, hc,
-       colors#8, it#8, ncv#13, pairs#64,
+       it#8, ncv#13,
        bold=\E[1m, cud1=\n, ht=^I, ind=\n, op=\E[39;49m,
-       rmul=\E[24m, setab=\E[4%p1%dm, setaf=\E[3%p1%dm,
-       sgr0=\E[m, smul=\E[4m, use=ecma+italics,
+       rmul=\E[24m, sgr0=\E[m, smul=\E[4m, use=ecma+italics,
+       use=klone+color,
 
 #### Screen
 
@@ -8476,13 +8453,12 @@ screen-w|VT 100/ANSI X3.64 virtual terminal with 132 cols,
 screen2|VT 100/ANSI X3.64 virtual terminal (old 2.x),
        cols#80, lines#24,
        clear=\E[2J\E[H, cr=\r, cub1=^H, cup=\E[%i%p1%d;%p2%dH,
-       ed=\E[J, el=\E[K, ich1=, ind=\n, kbs=^H, kcub1=\ED, kcud1=\EB,
-       kcuf1=\EC, kcuu1=\EA, kf0=\E~, kf1=\ES, kf2=\ET, kf3=\EU,
-       kf4=\EV, kf5=\EW, kf6=\EP, kf7=\EQ, kf8=\ER, kf9=\E0I,
-       khome=\EH, nel=\r\n, rc=\E8, ri=\EM, rmso=\E[23m,
+       ed=\E[J, el=\E[K, ich1=, ind=\n, kbs=^H, kf0=\E~, kf1=\ES,
+       kf2=\ET, kf3=\EU, kf4=\EV, kf5=\EW, kf6=\EP, kf7=\EQ, kf8=\ER,
+       kf9=\E0I, khome=\EH, nel=\r\n, rc=\E8, ri=\EM, rmso=\E[23m,
        rmul=\E[24m, rs1=\Ec, sc=\E7, sgr0=\E[m, smso=\E[3m,
        smul=\E[4m, use=ansi+idc, use=ansi+idl,
-       use=ansi+inittabs, use=ansi+local,
+       use=ansi+inittabs, use=ansi+local, use=vt52+arrows,
 
 # (screen3: removed unknown ":xv:LP:G0:" -- esr)
 screen3|VT 100/ANSI X3.64 virtual terminal (old 3.x),
@@ -8922,15 +8898,13 @@ sun-type4|Sun Workstation console with type 4 keyboard,
 #      blink=\E[5m
 # It supports bold, but not underline -TD (2009-09-19)
 sun-color|Sun Microsystems Workstation console with color support (IA systems),
-       colors#8, ncv#3, pairs#64,
        bold=\E[1m, cub1=^H, cud1=\n, home=\E[H, op=\E[0m,
-       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,
-       sgr=\E[0%?%p6%t;1%;%?%p1%p3%|%t;7%;m, sgr0=\E[m,
-       use=ansi+local, use=sun,
+       sgr=\E[0%?%p6%t;1%;%?%p1%p3%|%t;7%;m, use=ansi+local,
+       use=sun, use=klone+color,
 
 #### Iris consoles
 #
@@ -8948,11 +8922,10 @@ wsiris|iris40|IRIS emulating a 40 line Visual 50 (approximately),
        cuf1=\EC, cup=\EY%p1%{32}%+%c%p2%{32}%+%c, cuu1=\EA,
        cvvis=\E;, dim=\E7F2, dl1=\EM, ed=\EJ, el=\EK,
        flash=\E7F4\E7B1\013\E7F7\E7B0, home=\EH, ht=^I, il1=\EL,
-       ind=\n, is2=\E7B0\E7F7\E7C2\E7R3, kcub1=\ED, kcud1=\EB,
-       kcuf1=\EC, kcuu1=\EA, kf0=\E0, kf1=\E1, kf2=\E2, kf3=\E3,
-       kf4=\E4, kf5=\E5, kf6=\E6, kf7=\E7, kf8=\E8, kf9=\E9, ri=\EI,
-       rmso=\E0@, rmul=\E7R3\E0@, sgr0=\E7F7, smso=\E9P,
-       smul=\E7R2\E9P,
+       ind=\n, is2=\E7B0\E7F7\E7C2\E7R3, kf0=\E0, kf1=\E1,
+       kf2=\E2, kf3=\E3, kf4=\E4, kf5=\E5, kf6=\E6, kf7=\E7, kf8=\E8,
+       kf9=\E9, ri=\EI, rmso=\E0@, rmul=\E7R3\E0@, sgr0=\E7F7,
+       smso=\E9P, smul=\E7R2\E9P, use=vt52+arrows,
 
 #### NeWS consoles
 #
@@ -9140,11 +9113,10 @@ nwp511|nwp-511|nwp-511 VT100,
        smso=\E[7m$<2/>, smul=\E[4m$<2/>, use=ansi+local1,
 # (news517: this had :TY=sjis:. --esr)
 nwp517|nwp-517|nwp-517 VT200 80 cols 30 rows,
-       eslok, hs,
        cols#80, lines#30,
-       OTi2=\E[2$~\n, dsl=\E[1$~, fsl=\E[0$},
+       OTi2=\E[2$~\n, dsl=\E[1$~,
        is2=\E7\E[r\E8\E>\E[?3l\E[?4l\E[?5l\E[?7h\E[?8h,
-       tsl=\E[1$}\E[;%df, use=vt220-base,
+       tsl=\E[1$}\E[;%df, use=dec+sl, use=vt220-base,
 # (news517-w: this had :TY=sjis:. --esr)
 nwp517-w|nwp-517-w|nwp-517 VT200 132 cols 50 rows,
        eslok, hs,
@@ -9300,9 +9272,6 @@ cygwinB19|ANSI emulation for cygwin32,
 cygwin|ANSI emulation for Cygwin,
        am, hs, mir, msgr, xon,
        colors#8, it#8, pairs#64,
-       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,
        bel=^G, bold=\E[1m, cr=\r, cub=\E[%p1%dD, cub1=^H,
        cup=\E[%i%p1%d;%p2%dH, el1=\E[1K, fsl=^G, home=\E[H, ht=^I,
        ind=\n, invis=\E[8m, kb2=\E[G, kf1=\E[[A, kf10=\E[21~,
@@ -9311,16 +9280,15 @@ cygwin|ANSI emulation for Cygwin,
        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~, kspd=^Z, nel=\r\n, op=\E[39;49m, rc=\E8,
-       rev=\E[7m, ri=\EM, rmacs=\E[10m, rmpch=\E[10m, rmso=\E[27m,
-       rmul=\E[24m, rs1=\Ec\E]R, sc=\E7, setab=\E[4%p1%dm,
-       setaf=\E[3%p1%dm,
+       rev=\E[7m, ri=\EM, rmpch=\E[10m, rmso=\E[27m, rmul=\E[24m,
+       rs1=\Ec\E]R, sc=\E7, setab=\E[4%p1%dm, setaf=\E[3%p1%dm,
        sgr=\E[0;10%?%p1%t;7%;%?%p2%t;4%;%?%p3%t;7%;%?%p6%t;1%;%?%p7
            %t;8%;%?%p9%t;11%;m,
-       sgr0=\E[0;10m, smacs=\E[11m, smpch=\E[11m, smso=\E[7m,
-       smul=\E[4m, tsl=\E];, use=ansi+arrows, use=ansi+erase,
-       use=ansi+idc, use=ansi+idl, use=ansi+local,
-       use=ansi+rca2, use=xterm+alt47, use=vt220+pcedit,
-       use=vt102+enq,
+       sgr0=\E[0;10m, smpch=\E[11m, smso=\E[7m, smul=\E[4m,
+       tsl=\E];, use=ansi+arrows, use=ansi+erase, use=ansi+idc,
+       use=ansi+idl, use=ansi+local, use=ansi+rca2,
+       use=vt220+pcedit, use=vt102+enq, use=klone+acs,
+       use=xterm+alt47,
 
 # I've supplied this so that you can help test new values and add other
 # features.  Cheers, earnie_boyd@yahoo.com.
@@ -9330,10 +9298,7 @@ cygwin|ANSI emulation for Cygwin,
 # this list, but DOES cause problems so it has been removed
 cygwinDBG|Debug Version for Cygwin,
        am, eo, mir, msgr, xon,
-       colors#8, cols#80, lines#24, ncv#3, pairs#64,
-       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,
+       cols#80, lines#24, ncv#3,
        bel=^G, cr=\r, cup=\E[%i%p1%d;%p2%dH, dim=\E[2m, el1=\E[1K,
        flash=\E[?5h$<200/>\E[?5l, home=\E[H, hpa=\E[%i%p1%dG,
        ind=\n, kNXT=\E[6$, kPRV=\E[5$, kb2=\E[G, kcbt=\E[Z,
@@ -9342,15 +9307,14 @@ cygwinDBG|Debug Version for Cygwin,
        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~, kspd=^Z,
-       nel=\r\n, op=\E[39;49m, rc=\E8, ri=\EM, rmacs=\E[10m,
-       rs1=\Ec\E]R, sc=\E7, setab=\E[4%p1%dm, setaf=\E[3%p1%dm,
+       nel=\r\n, op=\E[39;49m, rc=\E8, ri=\EM, 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;12%;m,
-       sgr0=\E[0;10m, smacs=\E[11m, vpa=\E[%i%p1%dd,
-       use=ansi+arrows, use=ansi+erase, use=ansi+idc,
-       use=ansi+idl, use=ansi+inittabs, use=ansi+local,
-       use=ansi+sgrbold, use=vt220+pcedit, use=vt220+cvis,
-       use=vt102+enq,
+       sgr0=\E[0;10m, vpa=\E[%i%p1%dd, use=ansi+arrows,
+       use=ansi+erase, use=ansi+idc, use=ansi+idl,
+       use=ansi+inittabs, use=ansi+local, use=ansi+sgrbold,
+       use=klone+acs, use=klone+color, use=vt220+pcedit,
+       use=vt220+cvis, use=vt102+enq,
 
 #### DJGPP
 
@@ -9523,7 +9487,7 @@ djgpp204|entry for DJGPP 2.04,
 # set (the emulator spits out error messages).  Compare with att6386 -TD
 uwin|U/Win 3.2 console,
        am, eo, in, msgr, xenl, xon,
-       colors#8, it#8, ncv#58, pairs#64,
+       it#8, ncv#58,
        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,
@@ -9535,10 +9499,10 @@ uwin|U/Win 3.2 console,
        kf7=\EOV, kf8=\EOW, kf9=\EOX, kich1=\E[@, nel=\r\n,
        op=\E[39;49m, rc=\E8, rev=\E[7m, rmacs=\E[10m,
        rmpch=\E[10m, rmso=\E[27m, rmul=\E[m, rs1=\Ec\E]R, sc=\E7,
-       setab=\E[4%p1%dm, setaf=\E[3%p1%dm, sgr0=\E[0;10m,
-       smacs=\E[11m, smpch=\E[11m, smso=\E[7m, smul=\E[4m,
-       tbc=\E[3g, use=ansi+arrows, use=ansi+cpr, use=ansi+erase,
-       use=ansi+idc, use=vt220+cvis,
+       sgr0=\E[0;10m, smacs=\E[11m, smpch=\E[11m, smso=\E[7m,
+       smul=\E[4m, tbc=\E[3g, use=ansi+arrows, use=ansi+cpr,
+       use=ansi+erase, use=ansi+idc, use=klone+color,
+       use=vt220+cvis,
 
 #### Microsoft (miscellaneous)
 
@@ -9831,21 +9795,21 @@ hp+pfk+arrows|HP alternate arrow definitions,
        kll=\Eq\r, kri=\Es\r,
 
 hp+arrows|HP arrow definitions,
-       kcub1=\ED, kcud1=\EB, kcuf1=\EC, kcuu1=\EA, khome=\Eh,
-       kind=\ES, kll=\EF, kri=\ET,
+       khome=\Eh, kind=\ES, kll=\EF, kri=\ET, use=vt52+arrows,
 
 # Generic stuff from the HP 262x series
 #
 hp262x|HP 262x terminals,
        xhp,
        blink=\E&dA, dch1=\EP$<2>, ed=\EJ, ht=\011$<2>, ind=\ES,
-       invis=\E&dS, ip=$<2>, kcub1=\ED, kcud1=\EB, kcuf1=\EC,
-       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@,
+       invis=\E&dS, ip=$<2>, 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%{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,
+       use=vt52+arrows,
 
 # Note: no <home> on HPs since that homes to top of memory, not screen.
 # Due to severe 2621 braindamage, the only way to get the arrow keys to
@@ -9887,8 +9851,8 @@ hp2621p-a|HP 2621p with fn as arrows,
 
 # hp2621 with k45 keyboard
 hp2621-k45|hp2621k45|k45|HP 2621 with 45 keyboard,
-       kbs=^H, kcub1=\ED, kcud1=\EB, kcuf1=\EC, kcuu1=\EA,
-       khome=\Eh, rmkx=\E&s0A, smkx=\E&s1A, use=hp2621,
+       kbs=^H, khome=\Eh, rmkx=\E&s0A, smkx=\E&s1A, use=hp2621,
+       use=vt52+arrows,
 
 # 2621 using all 48 lines of memory, only 24 visible at any time.
 hp2621-48|HP 48 line 2621,
@@ -10044,14 +10008,13 @@ hp2641a|hp2645a|hp2647a|HP 264?A series BRL entry,
 # software to support it.
 hp2645|hp45|HP 2645 series,
        pb#9600,
-       blink=\E&dA, cr=\r$<20>, dim=\E&dH, kctab=\E2, kcub1=\ED,
-       kcud1=\EB, kcuf1=\EC, kcuu1=\EA, kdch1=\EP, kdl1=\EM,
-       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,
+       blink=\E&dA, cr=\r$<20>, dim=\E&dH, kctab=\E2, kdch1=\EP,
+       kdl1=\EM, 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%{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, use=hpgeneric,
+       sgr0=\E&d@, smkx=\E&s1A, use=hpgeneric, use=vt52+arrows,
 # You should use this terminal at 4800 baud or less.
 hp2648|hp2648a|HP 2648a graphics terminal,
        clear=\EH\EJ$<50>, cup=\E&a%p2%dc%p1%dY$<20>,
@@ -10085,11 +10048,10 @@ hp2621-a|hp2621a-a|hp2621 with fn as arrows,
 # newer hewlett packard terminals
 
 newhpkeyboard|generic entry for HP extended keyboard,
-       kbs=^H, kcbt=\Ei, kclr=\EJ, kcub1=\ED, kcud1=\EB, kcuf1=\EC,
-       kcuu1=\EA, kdch1=\EP, kdl1=\EM, ked=\EJ, kel=\EK, khome=\Eh,
-       kich1=\EQ, kil1=\EL, kind=\ET, kll=\EF, knp=\EU, kpp=\EV,
-       kri=\ES, krmir=\ER, rmkx=\E&s0A, smkx=\E&s1A,
-       use=hp+pfk-cr,
+       kbs=^H, kcbt=\Ei, kclr=\EJ, kdch1=\EP, kdl1=\EM, ked=\EJ,
+       kel=\EK, khome=\Eh, kich1=\EQ, kil1=\EL, kind=\ET, kll=\EF,
+       knp=\EU, kpp=\EV, kri=\ES, krmir=\ER, rmkx=\E&s0A,
+       smkx=\E&s1A, use=hp+pfk-cr, use=vt52+arrows,
 
 newhp|generic entry for new Hewlett Packard terminals,
        am, bw, mir, xhp, xon,
@@ -10143,11 +10105,10 @@ hp+printer|"standard" printer info for HP ttys,
 # length label, the following character is eaten!
 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,
+       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%{111}%p1%+%c\r,
-       smln=\E&jB, use=hp2621,
+       smln=\E&jB, use=hp2621, use=vt52+arrows,
 
 hp2621b-p|HP 2621b with printer,
        use=hp+printer, use=hp2621b,
@@ -10242,11 +10203,9 @@ hpansi|hp700|Hewlett Packard 700/44 in HP-PCterm mode,
 # (hp2392: copied <rmir> here from hpex -- esr)
 hp2392|239x series,
        cols#80,
-       cbt=\Ei, cup=\E&a%p1%dy%p2%dC, 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=\Eh, kind=\EU, knp=\Eu, kpp=\Ev, kri=\EV,
-       rmir=\ER, rmul=\E&d@, smir=\EQ, smul=\E&dD, vpa=\E&a%p1%dY,
-       use=hpsub,
+       cbt=\Ei, cup=\E&a%p1%dy%p2%dC, khome=\Eh, kind=\EU,
+       knp=\Eu, kpp=\Ev, kri=\EV, rmir=\ER, rmul=\E&d@, smir=\EQ,
+       smul=\E&dD, vpa=\E&a%p1%dY, use=hpsub, use=hp+pfk+cr,
 
 hpsub|HP terminals -- capability subset,
        am, da, db, mir, xhp, xon,
@@ -10254,9 +10213,9 @@ hpsub|HP terminals -- capability subset,
        bel=^G, clear=\EH\EJ, cr=\r, cub1=^H, cud1=\EB, cuf1=\EC,
        cuu1=\EA, dch1=\EP, dl1=\EM, ed=\EJ, el=\EK, hpa=\E&a%p1%dC,
        ht=^I, if=/usr/share/tabset/stdcrt, il1=\EL, ind=\n,
-       is2=\E&s1A\E<\E&k0\\, kbs=^H, kcub1=\ED, kcud1=\EB,
-       kcuf1=\EC, kcuu1=\EA, khome=\Eh, rmkx=\E&s0A, rmso=\E&d@,
-       sgr0=\E&d@, smkx=\E&s1A, smso=\E&dB,
+       is2=\E&s1A\E<\E&k0\\, kbs=^H, khome=\Eh, rmkx=\E&s0A,
+       rmso=\E&d@, sgr0=\E&d@, smkx=\E&s1A, smso=\E&dB,
+       use=vt52+arrows,
 
 # hpex:
 #      May be used for most 24 x 80 hp terminals,
@@ -10313,10 +10272,9 @@ hp300h|HP Catseye console,
        cuf1=\EC, cup=\E&a%p1%dy%p2%dC, cuu1=\EA, dch1=\EP,
        dl1=\EM, ed=\EJ, el=\EK, hpa=\E&a%p1%dC, ht=^I,
        if=/usr/share/tabset/stdcrt, il1=\EL, ind=\n, kbs=^H,
-       kcub1=\ED, kcud1=\EB, kcuf1=\EC, kcuu1=\EA, khome=\Eh,
-       rmir=\ER, rmkx=\E&s0A, rmso=\E&d@, rmul=\E&d@, sgr0=\E&d@,
-       smir=\EQ, smkx=\E&s1A, smso=\E&dB, smul=\E&dD, tbc=\E3,
-       vpa=\E&a%p1%dY,
+       khome=\Eh, rmir=\ER, rmkx=\E&s0A, rmso=\E&d@, rmul=\E&d@,
+       sgr0=\E&d@, smir=\EQ, smkx=\E&s1A, smso=\E&dB, smul=\E&dD,
+       tbc=\E3, vpa=\E&a%p1%dY, use=vt52+arrows,
 # From: Greg Couch <gregc@ernie.berkeley.edu>
 hp9837|hp98720|hp98721|HP 9000/300 workstations,
        OTbs, am, da, db, mir, xhp,
@@ -10324,12 +10282,11 @@ hp9837|hp98720|hp98721|HP 9000/300 workstations,
        bel=^G, cbt=\Ei, clear=\E&a0y0C\EJ, cub1=^H, cud1=\EB,
        cuf1=\EC, cup=\E&a%p1%dy%p2%dC, cuu1=\EA, dch1=\EP,
        dl1=\EM, ed=\EJ, el=\EK, hpa=\E&a%p1%dC, ht=^I, hts=\E1,
-       il1=\EL, ind=\n, is2=\E&v0m1b0i&j@, kbs=^H, kcub1=\ED,
-       kcud1=\EB, kcuf1=\EC, kcuu1=\EA, kdch1=\EP, kdl1=\EM,
-       ked=\EJ, kel=\EK, khome=\Eh, kich1=\EQ, kil1=\EL, knp=\EU,
-       kpp=\EV, rmir=\ER, rmkx=\E&s0A, rmso=\E&v0S, rmul=\E&d@,
-       sgr0=\E&d@, smir=\EQ, smkx=\E&s1A, smso=\E&v5S, smul=\E&dD,
-       tbc=\E3, vpa=\E&a%p1%dY,
+       il1=\EL, ind=\n, is2=\E&v0m1b0i&j@, kbs=^H, kdch1=\EP,
+       kdl1=\EM, ked=\EJ, kel=\EK, khome=\Eh, kich1=\EQ, kil1=\EL,
+       knp=\EU, kpp=\EV, rmir=\ER, rmkx=\E&s0A, rmso=\E&v0S,
+       rmul=\E&d@, sgr0=\E&d@, smir=\EQ, smkx=\E&s1A, smso=\E&v5S,
+       smul=\E&dD, tbc=\E3, vpa=\E&a%p1%dY, use=vt52+arrows,
 # HP 9845 desktop computer from BRL
 # (hp9845: removed unknown capability :gu: -- esr)
 hp9845|HP 9845,
@@ -10430,10 +10387,10 @@ bobcat|sbobcat|HP 9000 model 300 console,
        cbt=\Ei, clear=\EH\EJ, cr=\r, cub1=^H, cud1=\EB, cuf1=\EC,
        cup=\E&a%p1%dy%p2%dC$<6/>, cuu1=\EA, dch1=\EP,
        dl1=\EM$<10*/>, ed=\EJ, el=\EK, hpa=\E&a%p1%dC$<6/>, ht=^I,
-       il1=\EL$<10*/>, ind=\n, kbs=^H, kcub1=\ED, kcud1=\EB,
-       kcuf1=\EC, kcuu1=\EA, khome=\Eh, nel=\r\n, rmir=\ER,
-       rmkx=\E&s0A, rmso=\E&d@, rmul=\E&d@, sgr0=\E&d@, smir=\EQ,
-       smkx=\E&s1A, smso=\E&dB, smul=\E&dD, vpa=\E&a%p1%dY$<6/>,
+       il1=\EL$<10*/>, ind=\n, kbs=^H, khome=\Eh, nel=\r\n,
+       rmir=\ER, rmkx=\E&s0A, rmso=\E&d@, rmul=\E&d@, sgr0=\E&d@,
+       smir=\EQ, smkx=\E&s1A, smso=\E&dB, smul=\E&dD,
+       vpa=\E&a%p1%dY$<6/>, use=vt52+arrows,
 gator-t|HP 9000 model 237 emulating extra-tall AAA,
        lines#94, use=gator,
 gator|HP 9000 model 237 emulating AAA,
@@ -12096,14 +12053,10 @@ tvi9065|TeleVideo 9065,
 # disguise; <kf7>-<kf9> are really l1-l3.
 vi50|Visual 50,
        OTbs, OTpt, am, da, db, msgr,
-       cols#80, it#8, lines#24,
-       OTnl=\n, bel=^G, cbt=\Ez$<4/>, clear=\EH\EJ, cr=\r, cub1=^H,
-       cud1=\EB, cuf1=\EC, cup=\EY%p1%{32}%+%c%p2%{32}%+%c,
-       cuu1=\EA, dl1=\EM$<3*/>, ed=\EJ, el=\EK$<16/>, home=\EH,
-       ht=^I, il1=\EL, ind=\n, kbs=^H, kcub1=\ED, kcud1=\EB,
-       kcuf1=\EC, kcuu1=\EA, kf1=\EP, kf2=\EQ, kf3=\ER, kf4=\EV,
+       OTnl=\n, cbt=\Ez$<4/>, cub1=^H, dl1=\EM$<3*/>,
+       el=\EK$<16/>, il1=\EL, kf1=\EP, kf2=\EQ, kf3=\ER, kf4=\EV,
        kf5=\EE, kf6=\E], kf7=\EL, kf8=\Ev, kf9=\EM, khome=\EH,
-       nel=\r\n, ri=\EI, rmso=\ET, rmul=\EW, smso=\EU, smul=\ES,
+       rmso=\ET, rmul=\EW, smso=\EU, smul=\ES, use=vt52-basic,
 # this one was BSD & SCO's vi50
 vi50adm|Visual 50 in adm3a mode,
        am, msgr,
@@ -12111,8 +12064,7 @@ vi50adm|Visual 50 in adm3a mode,
        bel=^G, clear=^Z, cr=\r, cub1=^H, cud1=\n, cuf1=^L,
        cup=\E=%p1%{32}%+%c%p2%{32}%+%c, cuu1=^K, dl1=\EM,
        ed=\Ek, el=\EK, home=\EH, ht=^I, il1=\EL, ind=\n, kbs=^H,
-       kcub1=\ED, kcud1=\EB, kcuf1=\EC, kcuu1=\EA, khome=\EH,
-       rmso=\ET, smso=\EU,
+       khome=\EH, rmso=\ET, smso=\EU, use=vt52+arrows,
 # From: Jeff Siegal <jbs@quiotix.com>
 vi55|Visual 55,
        OTbs, am, mir, msgr,
@@ -12120,9 +12072,8 @@ vi55|Visual 55,
        clear=\Ev, csr=\E_%p1%{65}%+%c%p2%{65}%+%c, cub1=^H,
        cud1=\n, 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,
-       kcud1=\EB, kcuf1=\EC, kcuu1=\EA, ri=\EI, rmir=\Eb, rmso=\ET,
-       smir=\Ea, smso=\EU,
+       il1=\EL, is2=\Ev\E_AX\Eb\EW\E9P\ET, kbs=^H, ri=\EI,
+       rmir=\Eb, rmso=\ET, smir=\Ea, smso=\EU, use=vt52+arrows,
 
 # Visual 200 from BRL
 # The following switch settings are assumed for normal operation:
@@ -12142,13 +12093,13 @@ vi200|Visual 200,
        cup=\EY%p1%{32}%+%c%p2%{32}%+%c, cuu1=\EA, cvvis=\Ed,
        dch1=\EO, dim=\E4, dl1=\EM, ed=\Ey, el=\Ex, home=\EH, ht=^I,
        hts=\E1, il1=\EL, ind=\n, invis=\Ea, kbs=^H, kclr=\Ev,
-       kctab=\E2, kcub1=\ED, kcud1=\EB, kcuf1=\EC, kcuu1=\EA,
-       kdch1=\EO, kdl1=\EM, ked=\EJ, kel=\Et, kf0=\E?p, kf1=\E?q,
-       kf2=\E?r, kf3=\E?s, kf4=\E?t, kf5=\E?u, kf6=\E?v, 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,
+       kctab=\E2, kdch1=\EO, kdl1=\EM, ked=\EJ, kel=\Et, kf0=\E?p,
+       kf1=\E?q, kf2=\E?r, kf3=\E?s, kf4=\E?t, kf5=\E?u, kf6=\E?v,
+       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, use=vt52+arrows,
 # 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
@@ -12201,9 +12152,9 @@ vi500|Visual 500,
        el=\Ex$<16/>, home=\EH, ht=\011$<8/>, il1=\EL\Ex$<3*/>,
        ind=\n,
        is2=\E3\E\001\E\007\E\003\Ek\EG\Ed\EX\El\E>\Eb\E\\,
-       kbs=^H, kcub1=\ED, kcud1=\EB, kcuf1=\EC, kcuu1=\EA,
-       khome=\EH, nel=\r\n, rmacs=^O, rmir=\Ej, rmso=\E^G,
+       kbs=^H, khome=\EH, nel=\r\n, rmacs=^O, rmir=\Ej, rmso=\E^G,
        rmul=\E^C, smacs=^N, smir=\Ei, smso=\E^H, smul=\E^D,
+       use=vt52+arrows,
 
 # The visual 550 is a visual 300 with Tektronix graphics,
 # and with 33 lines. clear screen is modified here to
@@ -13604,29 +13555,29 @@ msk22714|mskermit22714|UCB MS-DOS Kermit 2.27 UCB 227.14 IBM PC,
 # Please send changes with explanations to bug-gnu-emacs@prep.ai.mit.edu.
 # (vt320-k3: I added <rmam>/<smam> based on the init string -- esr)
 vt320-k3|MS-Kermit 3.00's VT320 emulation,
-       am, eslok, hs, km, mir, msgr, xenl,
+       am, km, mir, msgr, xenl,
        cols#80, it#8, lines#49, pb#9600, vt#3,
        acsc=``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~,
        bel=^G, blink=\E[5m, bold=\E[1m, cmdch=\E, cr=\r, cub1=^H,
        cud1=\n, cup=\E[%i%p1%d;%p2%dH, dch=\E[%p1%dP, dch1=\E[P,
-       dsl=\E[0$~, ech=\E[%p1%dX,
+       ech=\E[%p1%dX,
        flash=\E[?5h$<100/>\E[?5l\E[?5h$<100/>\E[?5l\E[?5h$<100/>\E[
              ?5l,
-       fsl=\E[0$}, home=\E[H, hpa=\E[%i%p1%dG, ht=^I, hts=\EH,
-       ich=\E[%p1%d@, ind=\n,
-       is2=\E>\E F\E[?1h\E[?7h\E[r\E[2$~, kbs=^H, kcub1=\EOD,
-       kcud1=\EOB, kcuf1=\EOC, kcuu1=\EOA, kdl1=\E[3~, kf0=\E[21~,
-       kf1=\EOP, kf2=\EOQ, kf3=\EOR, kf4=\EOS, kf6=\E[17~,
-       kf7=\E[18~, kf8=\E[19~, kf9=\E[20~, kich1=\E[2~, knp=\E[6~,
-       kpp=\E[5~, mc0=\E[0i, mc4=\E[4i, mc5=\E[5i, nel=\r\n,
-       rev=\E[7m, ri=\EM, rin=\E[%p1%dL, rmacs=\E(B, rmam=\E[?7l,
-       rmir=\E[4l, rmkx=\E[?1l\E>, rmso=\E[27m, rmul=\E[24m,
+       home=\E[H, hpa=\E[%i%p1%dG, ht=^I, hts=\EH, ich=\E[%p1%d@,
+       ind=\n, is2=\E>\E F\E[?1h\E[?7h\E[r\E[2$~, kbs=^H,
+       kcub1=\EOD, kcud1=\EOB, kcuf1=\EOC, kcuu1=\EOA, kdl1=\E[3~,
+       kf0=\E[21~, kf1=\EOP, kf2=\EOQ, kf3=\EOR, kf4=\EOS,
+       kf6=\E[17~, kf7=\E[18~, kf8=\E[19~, kf9=\E[20~,
+       kich1=\E[2~, knp=\E[6~, kpp=\E[5~, mc0=\E[0i, mc4=\E[4i,
+       mc5=\E[5i, nel=\r\n, rev=\E[7m, ri=\EM, rin=\E[%p1%dL,
+       rmacs=\E(B, rmam=\E[?7l, rmir=\E[4l, rmkx=\E[?1l\E>,
+       rmso=\E[27m, rmul=\E[24m,
        rs1=\E(B\E)B\E>\E\sF\E[4;20l\E[12h\E[?1;5;6;38;42l\E[?7;25h
            \E[4i\E[?4i\E[m\E[r\E[2$~,
        sgr0=\E[m, smacs=\E(0, smam=\E[?7h, smir=\E[4h,
        smkx=\E[?1h\E=, smso=\E[7m, smul=\E[4m, tbc=\E[3g,
        tsl=\E[1$}\r\E[K, vpa=\E[%i%p1%dd, use=ansi+csr,
-       use=ansi+erase, use=ansi+idl, use=ansi+local,
+       use=ansi+erase, use=ansi+idl, use=ansi+local, use=dec+sl,
        use=vt220+cvis,
 
 # From: Joseph Gil <yogi@cs.ubc.ca> 13 Dec 1991
@@ -14086,11 +14037,10 @@ att4420|tty4420|Teletype 4420,
        bel=^G, clear=\EH\EJ, cr=\EG, cub1=\ED, cud1=\EB, cuf1=\EC,
        cup=\EY%p1%{32}%+%c%p2%{32}%+%c, cuu1=\EA, dch1=\EP,
        dl1=\EM, ed=\EJ, el=\Ez, home=\EH, il1=\EL, ind=\EH\EM\EY7\s,
-       kcbt=\EO, kclr=\EJ, kcub1=^H, kcud1=\EB, kcuf1=\EC,
-       kcuu1=\EA, kdch1=\EP, kdl1=\EM, kf0=\EU, kf3=\E@, khome=\EH,
-       kich1=\E\^, kil1=\EL, kind=\ES, kri=\ET,
+       kcbt=\EO, kclr=\EJ, kcub1=^H, kdch1=\EP, kdl1=\EM, kf0=\EU,
+       kf3=\E@, khome=\EH, kich1=\E\^, kil1=\EL, kind=\ES, kri=\ET,
        lf0=segment advance, lf3=cursor tab, rmdc@, rmso=\E~,
-       rmul=\EZ, smdc@, smso=\E}, smul=\E\\,
+       rmul=\EZ, smdc@, smso=\E}, smul=\E\\, use=vt52+arrows,
 
 #  The following is a terminfo entry for the Teletype 4424
 #  asynchronous keyboard-display terminal.  It supports
@@ -14199,15 +14149,14 @@ att4426|tty4426|Teletype 4426S,
        cr=\r, cup=\E[%i%p1%d;%p2%dH, dch=\E[%p1%dP, dch1=\EP,
        ed=\E[J, el=\E[0K, home=\E[H, hpa=\E[%p1%dG, ht=^I, hts=\E1,
        ich=\E[%p1%d@, ich1=\E\^, il1=\EL, ind=\n, is1=\Ec\E[?7h,
-       is2=\E[m\E[1;24r, kbs=^H, kcbt=\EO, kclr=\E[2J, kcub1=\ED,
-       kcud1=\EB, kcuf1=\EC, kcuu1=\EA, kf1=\EOP, kf2=\EOQ,
-       kf3=\EOR, kf4=\EOS, kf5=\EOT, kf6=\EOU, kf7=\EOV, kf8=\EOW,
-       khome=\E[H, kll=\E[24;1H, ll=\E[24H, nel=\r\n, rc=\E8,
-       rev=\E[7m, ri=\ET, rmacs=\E(B, rmam=\E[?7l, rmso=\E[m,
-       rmul=\E[m, rs2=\Ec\E[?3l\E[2;0y, sc=\E7, sgr0=\E[m\E(B,
-       smacs=\E(0, smam=\E[?7h, smso=\E[5m, smul=\E[4m, tbc=\E[3g,
-       vpa=\E[%p1%dd, use=ansi+idl, use=ansi+local,
-       use=ecma+index,
+       is2=\E[m\E[1;24r, kbs=^H, kcbt=\EO, kclr=\E[2J, kf1=\EOP,
+       kf2=\EOQ, kf3=\EOR, kf4=\EOS, kf5=\EOT, kf6=\EOU, kf7=\EOV,
+       kf8=\EOW, khome=\E[H, kll=\E[24;1H, ll=\E[24H, nel=\r\n,
+       rc=\E8, rev=\E[7m, ri=\ET, rmacs=\E(B, rmam=\E[?7l,
+       rmso=\E[m, rmul=\E[m, rs2=\Ec\E[?3l\E[2;0y, sc=\E7,
+       sgr0=\E[m\E(B, smacs=\E(0, smam=\E[?7h, smso=\E[5m,
+       smul=\E[4m, tbc=\E[3g, vpa=\E[%p1%dd, use=ansi+idl,
+       use=ansi+local, use=ecma+index, use=vt52+arrows,
 
 # Terminfo entry for the AT&T 510 A Personal Terminal
 # Function keys 9 - 16 are available only after the
@@ -14726,8 +14675,7 @@ att700|AT&T 700 24x80 column display w/102key keyboard,
        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, 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,
+       kil1=\E[L, knp=\E[U, kpp=\E[V, ll=\E[24H, nel=\EE,
        pfx=\E[%p1%d;%p2%l%02dq%?%p1%{9}%<%t\s\s\sF%p1%1d\s\s\s\s\s
            \s\s\s\s\s\s%;%p2%s,
        pln=\E[%p1%d;0;0;0q%p2%:-16.16s, ri=\EM, rmacs=^O,
@@ -14739,7 +14687,8 @@ att700|AT&T 700 24x80 column display w/102key keyboard,
        smxon=\E[53;0|, tsl=\E7\E[99;%i%p1%dx, use=ansi+arrows,
        use=ansi+csr, use=ansi+erase, use=ansi+idl,
        use=ansi+inittabs, use=ansi+local, use=ansi+rep,
-       use=ansi+sgrbold, use=decid+cpr, use=att610+cvis0,
+       use=ansi+sgrbold, use=decid+cpr, use=dec+pp,
+       use=att610+cvis0,
 
 # This entry was modified 3/13/90 by JWE.
 # fixes include additions of <enacs>, correcting <rep>, and modification
@@ -14758,10 +14707,10 @@ att730|AT&T 730 windowing terminal,
        am, da, db, eslok, hs, mir, msgr, npc, xenl, xon,
        cols#80, it#8, lh#2, lines#60, lm#0, lw#8, nlab#24, wsl#80,
        acsc=``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~,
-       bel=^G, cbt=\E[Z, cr=\r, cub1=^H, cvvis=\E[?12;25h,
-       dch=\E[%p1%dP, dch1=\E[P, dim=\E[2m, el1=\E[1K,
-       enacs=\E(B\E)0, flash=\E[?5h$<200>\E[?5l, fsl=\E8, ht=^I,
-       ich=\E[%p1%d@, ind=\ED,
+       bel=^G, cbt=\E[Z, cr=\r, cub1=^H, dch=\E[%p1%dP, dch1=\E[P,
+       dim=\E[2m, el1=\E[1K, enacs=\E(B\E)0,
+       flash=\E[?5h$<200>\E[?5l, fsl=\E8, ht=^I, ich=\E[%p1%d@,
+       ind=\ED,
        is1=\E[8;0|\E[?3;4;5;13;15l\E[13;20l\E[?7h\E[12h\E(B\E)B,
        is2=\E[m\017, is3=\E(B\E)0, kLFT=\E[ @, kRIT=\E[ A,
        kcbt=\E[Z, kclr=\E[2J, kf1=\EOc, kf10=\ENp, kf11=\ENq,
@@ -14774,8 +14723,7 @@ att730|AT&T 730 windowing terminal,
        kf4=\EOf, kf40=\EOV, kf41=\EOW, kf42=\EOX, kf43=\EOY,
        kf44=\EOZ, kf45=\EO[, kf46=\EO\s, kf47=\EO], kf48=\EO\^,
        kf5=\EOg, kf6=\EOh, kf7=\EOi, kf8=\EOj, kf9=\ENo, kich1=\E[@,
-       kil1=\E[L, kind=\E[S, kri=\E[T, mc0=\E[?19h\E[0i,
-       mc4=\E[?4i, mc5=\E[?5i, nel=\EE,
+       kil1=\E[L, kind=\E[S, kri=\E[T, mc0=\E[?19h\E[0i, nel=\EE,
        pfx=\E[%?%p1%{25}%<%t%p1%e%p1%{24}%-%;%d;%p2%l%02d%?%p1%{25}
            %<%tq\s\s\sSYS\s\s\s\s\sF%p1%:-2d\s\s%e;0;3q%;%p2%s,
        pfxl=\E[%p1%d;%p2%l%02d;0;0q%p3%:-16.16s%p2%s,
@@ -14789,7 +14737,7 @@ att730|AT&T 730 windowing terminal,
        tsl=\E7\E[;%i%p1%dx, use=ansi+arrows, use=ansi+csr,
        use=ansi+cup, use=ansi+erase, use=ansi+idl,
        use=ansi+local, use=ansi+rep, use=ansi+sgrbold,
-       use=decid+cpr, use=att610+cvis,
+       use=decid+cpr, use=dec+pp, use=att610+cvis,
 
 # "MGT" is "Multi-Tasking Graphics Terminal"
 att730-41|730MTG-41|AT&T 730-41 windowing terminal,
@@ -16532,14 +16480,7 @@ dgkeys+15|Private entry describing 15 DG mode special keys,
 #      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#0x100,
-       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,
+       ncv#53, use=dgmode+color,
 
 dg+fixed|Fixed color info for DG D430C terminals in DG mode,
        use=dgunix+fixed,
@@ -17265,10 +17206,8 @@ dm3025|Datamedia 3025a,
 dm3045|Datamedia 3045a,
        am, eo, km@, ul, xenl,
        dch1=\EB$<6>, dl1@, il1@, is2=\EU\EV, kcuf1=\EC, kcuu1=\EA,
-       kf0=\Ey\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, kf9=\Ex\r,
-       khome=\EH, pad=^?, rmdc@, rmir=\EP, rmso@, smdc@, smso@,
-       use=dm3025,
+       kf0=\Ey\r, kf9=\Ex\r, khome=\EH, pad=^?, rmdc@, rmir=\EP,
+       rmso@, smdc@, smso@, use=dm3025, use=hp+pfk+cr,
 # Datamedia DT80 soft switches:
 # 1    0=Jump  1=Smooth
 #      Autorepeat      0=off  1=on
@@ -17650,12 +17589,12 @@ sb1|Beehive SuperBee,
            \s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s
            \s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s
            \s\s\s\s\s\EP$<3>\s\EO\ER\EA$<3>,
-       ind=\n, is2=\EE$<3>\EX\EZ\EO\Eb\Eg\ER, kbs=^_, kcub1=\ED,
-       kcud1=\EB, kcuf1=\EC, kcuu1=\EA, kdl1=\EM, ked=\EJ, kel=\EK,
-       kf0=\E2, kf9=\E1, khome=\EH, kich1=\EQ\EO, krmir=\ER,
-       lf0=TAB CLEAR, lf9=TAB SET, rmcup=, rmir=\ER, rmso=\E_3,
-       rmul=\E_3, sgr0=\E_3, smcup=\EO, smir=\EQ\EO, smso=\E_1,
-       smul=\E_0, tbc=\E3, use=hp+pfk-cr,
+       ind=\n, is2=\EE$<3>\EX\EZ\EO\Eb\Eg\ER, kbs=^_, kdl1=\EM,
+       ked=\EJ, kel=\EK, kf0=\E2, kf9=\E1, khome=\EH, kich1=\EQ\EO,
+       krmir=\ER, lf0=TAB CLEAR, lf9=TAB SET, rmcup=, rmir=\ER,
+       rmso=\E_3, rmul=\E_3, sgr0=\E_3, smcup=\EO, smir=\EQ\EO,
+       smso=\E_1, smul=\E_0, tbc=\E3, use=hp+pfk-cr,
+       use=vt52+arrows,
 sbi|superbee|Beehive SuperBee at Indiana U.,
        xsb,
        cr=\r$<1>, il1=\EN$<1>\EL$<9>\EQ \EP$<9> \EO\ER\EA,
@@ -17678,8 +17617,8 @@ superbee-xsb|Beehive SuperBee (improved),
        dch1=\EP$<3>, dl1=\EM$<100>, ed=\EJ$<3>, el=\EK$<3>,
        home=\EH, ht=^I, hts=\E1,
        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, khome=\EH,
-       rmso=\E_3, sgr0=\E_3, smso=\E_1, tbc=\E3, use=hp+pfk-cr,
+       khome=\EH, rmso=\E_3, sgr0=\E_3, smso=\E_1, tbc=\E3,
+       use=hp+pfk-cr, use=vt52+arrows,
 # This loses on lines > 80 chars long, use at your own risk
 superbeeic|SuperBee with insert char,
        ich1=, rmir=\ER, smir=\EQ, use=superbee-xsb,
@@ -17706,10 +17645,9 @@ beehive|bee|Harris Beehive,
        cbt=\E>, clear=\EE, cub1=^H, cud1=\EB, cuf1=\EC,
        cup=\EF%p1%{32}%+%c%p2%{32}%+%c, cuu1=\EA, dch1=\EP,
        dl1=\EM, ed=\EJ, el=\EK, home=\EH, il1=\EL, kbs=^H, kcbt=\E>,
-       kclr=\EE, kcub1=\ED, kcud1=\EB, kcuf1=\EC, kcuu1=\EA,
-       kdch1=\EP, kdl1=\EM, kel=\EK, khome=\EH, kich1=\EQ, kil1=\EL,
-       krmir=\E@, rmir=\E@, rmso=\Ed@, rmul=\Ed@, sgr0=\Ed@,
-       smir=\EQ, smso=\EdP, smul=\Ed`,
+       kclr=\EE, kdch1=\EP, kdl1=\EM, kel=\EK, khome=\EH, kich1=\EQ,
+       kil1=\EL, krmir=\E@, rmir=\E@, rmso=\Ed@, rmul=\Ed@,
+       sgr0=\Ed@, smir=\EQ, smso=\EdP, smul=\Ed`, use=vt52+arrows,
 # set tab is ^F, clear (one) tab is ^V, no way to clear all tabs.
 # good grief - does this entry make :sg:/:ug: when it doesn't have to?
 # look at those spaces in <rmso>/<smso>.  Seems strange to me...
@@ -17734,9 +17672,9 @@ microb|microbee|Micro Bee series,
        cols#80, it#8, lines#24,
        bel=^G, clear=\EE, cr=\r, cub1=^H, cud1=\n, cuf1=\EC,
        cup=\EF%p1%{32}%+%c%p2%{32}%+%c, cuu1=\EA, ed=\EJ,
-       el=\EK, ht=^I, ind=\n, kcub1=\ED, kcud1=\EB, kcuf1=\EC,
-       kcuu1=\EA, kf9=\Ex, khome=\EH, rmso=\Ed@, rmul=\Ed@,
-       sgr0=\Ed@, smso=\s\EdP, smul=\Ed`, use=hp+pfk-cr,
+       el=\EK, ht=^I, ind=\n, kf9=\Ex, khome=\EH, rmso=\Ed@,
+       rmul=\Ed@, sgr0=\Ed@, smso=\s\EdP, smul=\Ed`,
+       use=hp+pfk-cr, use=vt52+arrows,
 
 # 8675, 8686, and bee from Cyrus Rahman
 # (8675: changed k10, k11...k16 to k;, F1...F6 -- esr)
@@ -17923,8 +17861,8 @@ ibm3101|i3101|IBM 3101-10,
        cols#80, lines#24,
        bel=^G, clear=\EK, cr=\r, cub1=^H, cud1=\n, cuf1=\EC,
        cup=\EY%p1%{32}%+%c%p2%{32}%+%c, cuu1=\EA, ed=\EJ,
-       el=\EI, home=\EH, hts=\E0, ind=\n, kcub1=\ED, kcud1=\EB,
-       kcuf1=\EC, kcuu1=\EA, nel=\r\n, tbc=\EH,
+       el=\EI, home=\EH, hts=\E0, ind=\n, nel=\r\n, tbc=\EH,
+       use=vt52+arrows,
 ibm3151|IBM 3151 display,
        is2=\E S, rmacs=\E>B, rs2=\E S,
        sgr=\E4%{64}%?%p1%t%{65}%|%;%?%p2%t%{66}%|%;%?%p3%t%{65}%|%;
@@ -17948,9 +17886,8 @@ ibm3161|ibm3163|wy60-316X|wyse60-316X|IBM 3161/3163 display,
        cud1=\EB, cuf1=\EC, cup=\EY%p1%{32}%+%c%p2%{32}%+%c,
        cuu1=\EA, dch1=\EQ, dl1=\EO, ed=\EJ, el=\EI, home=\EH,
        ich1=\EP \010, il1=\EN, ind=\n, 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, kf11=\Ek\r, kf12=\El\r, kf13=\E!a\r,
+       kclr=\EL\r, kctab=\E1, kdch1=\EQ, kdl1=\EO, ked=\EJ, kel=\EI,
+       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,
@@ -17962,6 +17899,7 @@ ibm3161|ibm3163|wy60-316X|wyse60-316X|IBM 3161/3163 display,
            %?%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,
+       use=vt52+arrows,
 
 ibm3161-C|IBM 3161-C NLS terminal using cartridge,
        rmcup=\E>B, s0ds=\E>B, s1ds=\E>A, smcup=\E>B, use=ibm3161,
@@ -18017,8 +17955,8 @@ ibmaed|IBM Experimental display,
        clear=\EH\EK, cub1=^H, cud1=\EB, cuf1=\EC,
        cup=\EY%p1%{32}%+%c%p2%{32}%+%c, cuu1=\EA, dch1=\EQ,
        dl1=\EO, ed=\EJ, el=\EI, flash=\EG, home=\EH, ht=^I, ich1=\EP,
-       il1=\EN, kbs=^H, kcub1=\ED, kcud1=\EB, kcuf1=\EC, kcuu1=\EA,
-       rmso=\E0, sgr0=\E0, smso=\E0,
+       il1=\EN, kbs=^H, rmso=\E0, sgr0=\E0, smso=\E0,
+       use=vt52+arrows,
 ibm-apl|apl|IBM apl terminal simulator,
        lines#25, use=dm1520,
 # (ibmmono: this had an unknown `sb' boolean, I changed it to `bs'.
@@ -19057,9 +18995,9 @@ mime2a|mime2a-v|microterm mime2a (emulating an enhanced VT52),
        bel=^G, clear=\EL, cr=\r, cub1=^H, cud1=\n, cuf1=\EC,
        cup=\EY%p1%{32}%+%c%p2%{32}%+%c, cuu1=\EA, dch1=^N,
        dl1=\027$<20*>, ed=\EQ$<20*>, el=\EP, home=\EH, ht=^I,
-       il1=\001$<20*>, ind=\n, ip=$<2>, is2=^Y, kcub1=\ED,
-       kcud1=\EB, kcuf1=\EC, kcuu1=\EA, ri=\EA, rmir=^Z, rmso=\E9,
-       rmul=\E5, smir=^O, smso=\E8, smul=\E4,
+       il1=\001$<20*>, ind=\n, ip=$<2>, is2=^Y, ri=\EA, rmir=^Z,
+       rmso=\E9, rmul=\E5, smir=^O, smso=\E8, smul=\E4,
+       use=vt52+arrows,
 # (mime3a: removed obsolete ":ma=^X ^K^J^Z^P:" -- esr)
 mime3a|mime1 emulating 3a,
        am@,
@@ -19474,31 +19412,14 @@ ncr260wy325wpp|NCR 2900/260 Wyse 325 wide mode,
 #          have it included, Un-comment it and recompile (using 'tic').
 #
 ncr260wy350pp|NCR 2900/260 Wyse 350,
-       am, bw, km, mc5i, mir, msgr, xon,
-       colors#16, cols#80, lines#24, ncv#33, nlab#32, pairs#16, xmc#1,
-       acsc=07a?h;j5k3l2m1n8q:t4u9v=w0x6, bel=^G, blink=\EG2,
-       cbt=\EI, civis=\E`0, clear=\E+$<20>, cnorm=\E`1, cr=\r,
-       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>,
-       ed=\Ey$<5>, el=\Et$<5>, home=\036$<10>, ht=^I, hts=\E1,
-       il1=\EE$<5>, ind=\n$<5>, invis=\EG1,
+       colors#16, ncv#33, pairs#16,
+       acsc=07a?h;j5k3l2m1n8q:t4u9v=w0x6, cbt=\EI,
+       cup=\E=%p1%{32}%+%c%p2%{32}%+%c$<40>, ed=\Ey$<5>,
+       el=\Et$<5>, ht=^I, hts=\E1,
        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=\n, 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,
+       rmacs=\EH\003\EcB0,
        rs2=\Ee6\Ed/\Ee1\Ed*\Er\EO\E`1\E`:\E`@\E~!\E"\Ee4\Ex@\E`9
            \Ee7$<100>,
        setb=\s,
@@ -19508,9 +19429,8 @@ ncr260wy350pp|NCR 2900/260 Wyse 350,
             %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,
-       use=ncr260vp+sl,
+       sgr0=\EG0\EH\003\EcD, smacs=\EH\002\EcB1, tbc=\E0,
+       use=ncr260vp+sl, use=ncr160wy50+pp,
 ncr260wy350wpp|NCR 2900/260 Wyse 350 wide mode,
        cols#132,
        cup=\Ea%i%p1%dR%p2%dC$<30>,
@@ -19750,10 +19670,9 @@ ncr7900iv|NCR 7900 model 4,
        bel=^G, clear=^L, cr=\r, cub1=^H, cud1=\n,
        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=\n, 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, nel=\r\n,
-       tsl=\Ej\Ex5\Ex1\EY8%p1%{32}%+%c\Eo,
+       kf1=\ES, kf2=\ET, kf3=\EU, kf4=\EV, kf5=\EW, kf6=\EP, kf7=\EQ,
+       kf8=\ER, khome=\EH, lf6=blue, lf7=red, lf8=white, nel=\r\n,
+       tsl=\Ej\Ex5\Ex1\EY8%p1%{32}%+%c\Eo, use=vt52+arrows,
 # Warning: This terminal will lock out the keyboard when it receives a CTRL-D.
 #         The user can enter a CTRL-B to get out of this locked state.
 # In <hpa>, we want to output the character given by the formula:
@@ -19967,12 +19886,11 @@ dmterm|deskmate terminal,
        bel=^G, civis=\EG5, clear=\Ej, cnorm=\EG6, cr=\r, cub1=^H,
        cud1=\EB, cuf1=\EC, cup=\EY%p1%{32}%+%c%p2%{32}%+%c,
        cuu1=\EA, dch1=\ES, dl1=\ER, ed=\EJ, el=\EK, home=\EH, ht=^I,
-       ich1=\EQ, il1=\EP, ind=\EX, invis@, kcub1=\ED, kcud1=\EB,
-       kcuf1=\EC, kcuu1=\EA, kf0=\E1, kf1=\E2, kf2=\E3, kf3=\E4,
-       kf4=\E5, kf5=\E6, kf6=\E7, kf7=\E8, kf8=\E9, kf9=\E0,
+       ich1=\EQ, il1=\EP, ind=\EX, invis@, kf0=\E1, kf1=\E2, kf2=\E3,
+       kf3=\E4, kf4=\E5, kf5=\E6, kf6=\E7, kf7=\E8, kf8=\E9, kf9=\E0,
        khome=\EH, lf0=f1, lf1=f2, lf2=f3, lf3=f4, lf4=f5, lf5=f6,
        lf6=f7, lf7=f8, lf8=f9, lf9=f10, ll=\EE, rmul@, smul@,
-       use=adm+sgr,
+       use=adm+sgr, use=vt52+arrows,
 dt100|dt-100|Tandy DT-100 terminal,
        xon,
        cols#80, lines#24, xmc#1,
@@ -20286,13 +20204,12 @@ tek4107|tek4109|Tektronix terminals 4107 4109,
        cub1=^H, cud1=\n, cuf1=\EC,
        cup=\EY%p1%{32}%+%c%p2%{32}%+%c, cuu1=\EA, cvvis=\E%!3,
        dim=\E%!1\E[<0m$<2>\E%!0, ed=\EJ, el=\EK, ht=^I, ind=\n,
-       kbs=^H, kcub1=\ED, kcud1=\EB, kcuf1=\EC, kcuu1=\EA,
-       rev=\E%!1\E[7m$<2>\E%!0, ri=\EI,
+       kbs=^H, rev=\E%!1\E[7m$<2>\E%!0, ri=\EI,
        rmso=\E%!1\E[m$<2>\E%!0, rmul=\E%!1\E[m$<2>\E%!0,
        sgr=\E%%!1\E[%?%p1%t;7;5%;%?%p2%t;4%;%?%p3%t;7%;%?%p4%t;5%;
            %?%p5%t<0%;%?%p6%t;1%;m$<2>\E%%!0,
        sgr0=\E%!1\E[m$<2>\E%!0, smso=\E%!1\E[7;5m$<2>\E%!0,
-       smul=\E%!1\E[4m$<2>\E%!0,
+       smul=\E%!1\E[4m$<2>\E%!0, use=vt52+arrows,
 # Tektronix 4207 with sysline.  In the ancestral termcap file this was 4107-s;
 # see the note attached to tek4207.
 tek4207-s|Tektronix 4207 with sysline but no memory,
@@ -20562,9 +20479,9 @@ scanset|sc410|sc415|Tymshare Scan Set,
        cols#80, lines#24,
        acsc=j%k4l<m-q\,x5, bel=^G, clear=\EH\EJ, cr=\r, cub1=^H,
        cud1=\n, cuf1=^I, cup=\EY%p1%{32}%+%c%p2%{32}%+%c,
-       cuu1=^K, ed=\EJ, el=\EK, home=\EH, ind=\n, kcub1=\ED,
-       kcud1=\EB, kcuf1=\EC, kcuu1=\EA, mc0=\E;3, mc4=\E;0,
+       cuu1=^K, ed=\EJ, el=\EK, home=\EH, ind=\n, mc0=\E;3, mc4=\E;0,
        mc5=\E;0, rc=^C, rmacs=^O, rs1=\E>, sc=^B, smacs=^N,
+       use=vt52+arrows,
 
 #### Volker-Craig (vc)
 #
@@ -20809,9 +20726,9 @@ apple-videx3|vapple|Apple II with 80 col card,
        cols#80, lines#24,
        clear=\Ev, cub1=\ED, cud1=\EB, cuf1=\EC,
        cup=\EY%p1%{32}%+%c%p2%{32}%+%c, cuu1=\EA, el=\Ex,
-       home=\EH, kcub1=\ED, kcud1=\EB, kcuf1=\EC, kcuu1=\EA,
-       kf0=\EP, kf1=\EQ, kf2=\ER, kf3=\E\s, kf4=\E!, kf5=\E", kf6=\E#,
-       kf7=\E$, kf8=\E%%, kf9=\E&, khome=\EH,
+       home=\EH, kf0=\EP, kf1=\EQ, kf2=\ER, kf3=\E\s, kf4=\E!,
+       kf5=\E", kf6=\E#, kf7=\E$, kf8=\E%%, kf9=\E&, khome=\EH,
+       use=vt52+arrows,
 #From: decvax!cbosgd!cbdkc1!mww Mike Warren via BRL
 aepro|Apple II+ running ASCII Express Pro--vt52,
        OTbs,
@@ -20922,11 +20839,11 @@ trs16|trs-80 model 16 console,
        cnorm=\ERC, cr=\r, 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,
-       ind=\n, kbs=^H, kcub1=\ED, kcud1=\EB, kcuf1=\EC, kcuu1=\EA,
-       kf0=^A, kf1=^B, kf2=^D, kf3=^L, kf4=^U, kf5=^P, kf6=^N, kf7=^S,
-       khome=^W, lf0=f1, lf1=f2, lf2=f3, lf3=f4, lf4=f5, lf5=f6, lf6=f7,
-       lf7=f8, mc4=\E]+, mc5=\E]=, rmacs=\ERg, rmso=\ER@, sgr0=\ER@,
-       smacs=\ERG, smso=\ERD,
+       ind=\n, kbs=^H, kf0=^A, kf1=^B, kf2=^D, kf3=^L, kf4=^U, kf5=^P,
+       kf6=^N, kf7=^S, khome=^W, lf0=f1, lf1=f2, lf2=f3, lf3=f4, lf4=f5,
+       lf5=f6, lf6=f7, lf7=f8, mc4=\E]+, mc5=\E]=, rmacs=\ERg,
+       rmso=\ER@, sgr0=\ER@, smacs=\ERG, smso=\ERD,
+       use=vt52+arrows,
 
 #### Commodore Business Machines
 #
@@ -21191,9 +21108,9 @@ pc-coherent|pcz19|coherent|IBM PC console running Coherent,
        cols#80, it#8, lines#25,
        bel=^G, clear=\EE, cr=\r, cub1=^H, cud1=\EB, cuf1=\EC,
        cup=\EY%p1%{32}%+%c%p2%{32}%+%c, cuu1=\EA, dch1=\EN,
-       ed=\EJ, el=\EK, home=\EH, ht=^I, ind=\n, kbs=^H, kcub1=\ED,
-       kcud1=\EB, kcuf1=\EC, kcuu1=\EA, khome=\EH, ri=\EI, rmir=\EO,
-       rmso=\Eq, sgr0=\Eq, smir=\E@, smso=\Ep,
+       ed=\EJ, el=\EK, home=\EH, ht=^I, ind=\n, kbs=^H, khome=\EH,
+       ri=\EI, rmir=\EO, rmso=\Eq, sgr0=\Eq, smir=\E@, smso=\Ep,
+       use=vt52+arrows,
 
 # According to the Venix 1.1 manual, the PC console is similar
 # to a DEC VT52.  Differences seem to be (1) arrow keys send
@@ -21538,7 +21455,7 @@ screen.minitel1b-nb|Screen specific for minitel1b-nb,
 
 linux-m1|Linux Minitel 1 "like" Couleurs,
        am, bw@, ccc, mir, msgr, xenl,
-       colors#8, it#8, ncv#16, pairs#64,
+       it#8, ncv#16,
        acsc=a\261f\370g\361h\260j\274k\273l\311m\310n\316q\315t
             \314u\271v\312w\313x\272y\363z\362{\343|\252~\372,
        bel=^G, blink=\E[5m, bold=\E[1m, cr=\r, cub1=^H, cud1=\n,
@@ -21557,12 +21474,11 @@ linux-m1|Linux Minitel 1 "like" Couleurs,
        khome=\E[1~, kil1=\E\E[B, kmous=\E[M, nel=\EE,
        oc=\E]R\E]P3FFFF80, op=\E[39;49m, rev=\E[7m, ri=\EM,
        rmacs=^O, rmam=\E[?7l, rmir=\E[4l, rmpch=\E[10m,
-       rmso=\E[27m, rs1=\Ec, rs3=\E[37;40m\E[8],
-       setab=\E[4%p1%dm, setaf=\E[3%p1%dm, sgr0=\E[m, smacs=^N,
-       smam=\E[?7h, smir=\E[4h, smpch=\E[11m, smso=\E[7m,
-       tbc=\E[3g, vpa=\E[%i%p1%dd, .VN=\E[?5l, .VR=\E[?5h, .am@,
-       .ich=\E[%p1%d@, .ich1=\E[@, .ll=\E[99H, .rmcup=,
-       .rmul=\E[24m, .smcup=\E]R\E]P3FFFF80\E[?8c,
+       rmso=\E[27m, rs1=\Ec, rs3=\E[37;40m\E[8], sgr0=\E[m,
+       smacs=^N, smam=\E[?7h, smir=\E[4h, smpch=\E[11m,
+       smso=\E[7m, tbc=\E[3g, vpa=\E[%i%p1%dd, .VN=\E[?5l,
+       .VR=\E[?5h, .am@, .ich=\E[%p1%d@, .ich1=\E[@, .ll=\E[99H,
+       .rmcup=, .rmul=\E[24m, .smcup=\E]R\E]P3FFFF80\E[?8c,
        .smul=\E[4m,
        E3=\E[99H\E[2J\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
           \n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
@@ -21574,7 +21490,8 @@ linux-m1|Linux Minitel 1 "like" Couleurs,
           \n\n\n\n\n\n\n\n\n\n,
        use=ansi+arrows, use=ansi+csr, use=ansi+cup,
        use=ansi+erase, use=ansi+idl, use=ansi+local1,
-       use=vt220+pcedit, use=vt220+cvis, use=linux+decid,
+       use=klone+color, use=vt220+pcedit, use=vt220+cvis,
+       use=linux+decid,
 
 # 1. Using double-shapes for VT100 graphical chars (eg: mc).
 # 2. Native brown color corrected to good yellow color.
@@ -21784,8 +21701,8 @@ blit|jerq|blit running teletype rom,
        cup=\EY%p2%{32}%+%c%p1%{32}%+%c, cuu1=\EA,
        dch=\Ee%p1%{32}%+%c, dch1=\Ee!, dl=\EE%p1%{32}%+%c,
        dl1=\EE!, el=\EK, ht=^I, ich=\Ef%p1%{32}%+%c, ich1=\Ef!,
-       il=\EF%p1%{32}%+%c, il1=\EF!, ind=\n, kbs=^H, kcub1=\ED,
-       kcud1=\EB, kcuf1=\EC, kcuu1=\EA, kf1=\Ex, kf2=\Ey, kf3=\Ez,
+       il=\EF%p1%{32}%+%c, il1=\EF!, ind=\n, kbs=^H, kf1=\Ex,
+       kf2=\Ey, kf3=\Ez, use=vt52+arrows,
 
 # (cbblit: here's a BSD termcap that says <cud1=\EG> -- esr)
 cbblit|fixterm|blit running columbus code,
@@ -21861,11 +21778,11 @@ bg1.25|BBN BitGraph 1.25,
        cols#85, lines#64,
        bel=^G, clear=\E[H\E[J$<150>, cr=\r, cub1=^H,
        cup=%i\E[%p1%d;%p2%dH, dl1=\E[M$<2*>, ed=\E[J$<150>,
-       el=\E[K$<2>, ht=^I, il1=\E[L$<2*>, ind=\n$<280>, kcub1=\ED,
-       kcud1=\EB, kcuf1=\EC, kcuu1=\EA, kf1=\EP, kf2=\EQ, kf3=\ER,
-       kf4=\ES, lf1=PF1, lf2=PF2, lf3=PF3, lf4=PF4, ll=\E[64;1H,
-       rmam=\E[?7l, rmkx=\E>, rmso=\E[m, sgr0=\E[m, smam=\E[?7h,
-       smkx=\E=, smso=\E[7m, use=ansi+local1,
+       el=\E[K$<2>, ht=^I, il1=\E[L$<2*>, ind=\n$<280>, kf1=\EP,
+       kf2=\EQ, kf3=\ER, kf4=\ES, lf1=PF1, lf2=PF2, lf3=PF3, lf4=PF4,
+       ll=\E[64;1H, rmam=\E[?7l, rmkx=\E>, rmso=\E[m, sgr0=\E[m,
+       smam=\E[?7h, smkx=\E=, smso=\E[7m, use=ansi+local1,
+       use=vt52+arrows,
 
 #### Bull (bq, dku, vip)
 #
@@ -22056,12 +21973,12 @@ dku7202|Bull Questar 200 DKU7202 (colour/character attributes),
 
 # This entry covers BQ303, BQ306, BQ310, Q303, Q306, Q310
 bq300|Bull VT320 ISO Latin 1 80 columns terminal,
-       eo, eslok, hs, km, mir, xenl, xon,
+       eo, km, mir, xenl, xon,
        vt#3, wsl#80,
        blink=\E[5m, bold=\E[1m, cup=\E[%i%p1%d;%p2%dH,
        dch=\E[%p1%dP, dch1=\E[P, dsl=\E[1$}\E[2$~\n\E[0$},
        ech=\E[%p1%dX, el1=\E[1K, flash=\E[?5h$<50>\E[?5l,
-       fsl=\E[0$}, ich=\E[%p1%d@, ind=\ED, is1=\E[63;1"p\E[2h,
+       ich=\E[%p1%d@, ind=\ED, is1=\E[63;1"p\E[2h,
        is2=\E[?2h\E[?3l\E[?5l\E[?7h\E[?8h\E>\E[?1l\E\sF\E[?42l\E[?4
            l,
        is3=\E[0$}\E[?25h\E[2l\E[H\E[J, ka1=\EOw, ka3=\EOy,
@@ -22080,7 +21997,7 @@ bq300|Bull VT320 ISO Latin 1 80 columns terminal,
        smcup=\E[?7l\E[?1l\E(B, smir=\E[4h, smso=\E[7m,
        smul=\E[4m, tsl=\E[1$}\E[2$~, use=ansi+enq, use=ansi+csr,
        use=ansi+erase, use=ansi+idl, use=ansi+local,
-       use=ansi+pp, use=vt100+4bsd, use=vt220+cvis,
+       use=ansi+pp, use=dec+sl, use=vt100+4bsd, use=vt220+cvis,
        use=vt220+vtedit,
 
 bq300-rv|Bull VT320 reverse 80 columns,
@@ -22315,17 +22232,15 @@ bq300-8-pc-w-rv|Questar 303 with PC keyboard full 8 bits reverse 132 columns,
 # This covers the vip7800 and BQ3155-vip7800
 vip|Bull Questar 3155-7800,
        am, eslok, hs, km, mc5i, msgr, xenl, xon,
-       cols#80, lines#24, vt#3, wsl#80,
-       acsc=0pjdkblamcnkqitgufvhwexj, bel=^G, blink=\EsB,
-       clear=\E`, cr=\r, cub1=^H, cud1=\n, cuf1=\EC,
-       cup=\E[%i%p1%03d%p2%03df, cuu1=\EA, dch1=\E[P, dim=\EsL,
-       dl1=\E[M, dsl=\Ev, ed=\EJ, el=\EK,
-       flash=\007$<80>\007$<80>\007, fsl=\EO, home=\EH, hts=\Ep,
-       ich1=\E[I, ind=\n, invis=\EsH,
+       vt#3, wsl#80,
+       acsc=0pjdkblamcnkqitgufvhwexj, blink=\EsB, clear=\E`,
+       cub1=^H, cud1=\n, cup=\E[%i%p1%03d%p2%03df, dch1=\E[P,
+       dim=\EsL, dl1=\E[M, dsl=\Ev,
+       flash=\007$<80>\007$<80>\007, fsl=\EO, hts=\Ep,
+       ich1=\E[I, invis=\EsH,
        is2=\E[00u\E[<>001001024080024080u\E[01u,
-       is3=\Er\E[W\E`, kHOM=\EH, kLFT=\Eo, kRIT=\Eu, kbs=^H,
-       kcbt=\E[Z, kclr=\E`, kctab=\E[g, kcub1=\ED, kcud1=\EB,
-       kcuf1=\EC, kcuu1=\EA, kdch1=\E[P, kdl1=\E[M, ked=\EJ,
+       is3=\Er\E[W\E`, kHOM=\EH, kLFT=\Eo, kRIT=\Eu, kcbt=\E[Z,
+       kclr=\E`, kctab=\E[g, kdch1=\E[P, kdl1=\E[M, ked=\EJ,
        kel=\EK, kf1=\E0, kf10=\ET, kf11=\E\\, kf12=\E\^, kf13@, kf14@,
        kf15@, kf16@, kf17@, kf18@, kf19@, kf2=\E2, kf20@, kf21=\E1,
        kf22=\E5, kf23=\E7, kf24=\E9, kf25=\E;, kf26=\E=, kf27=\E?,
@@ -22339,6 +22254,7 @@ vip|Bull Questar 3155-7800,
        rmul=\EsR, rs1=\Ec, rs2=\E[G, s0ds=\EF, s1ds=\EG,
        sgr0=\EsR\EsU\EF, smacs=\EG, smir=\E[I, smso=\EsI,
        smul=\Es_, tbc=\E[N, tsl=\Ew, use=ansi+inittabs,
+       use=vt52-basic,
 # normal screen, 8 bits, 132 columns terminal.
 vip-w|vip7800-w|Q310-vip-w|Q310-vip-w-am|Questar 3155-vip7800 wide,
        cols#132, wsl#132,
@@ -22517,8 +22433,7 @@ vt50|DEC VT50,
        cuu1=\EA, ed=\EJ, el=\EK, ht=^I, ind=\n, u8=\E/A, u9=\EZ,
 vt50h|DEC VT50h,
        cub1=\ED, cud1=\EB, cup=\EY%p1%{32}%+%c%p2%{32}%+%c,
-       kcub1=\ED, kcud1=\EB, kcuf1=\EC, kcuu1=\EA, u8=\E/[HJ],
-       use=vt52+keypad, use=vt50,
+       u8=\E/[HJ], use=vt52+keypad, use=vt50, use=vt52+arrows,
 
 # (vt61: there's a BSD termcap that claims <dl1=\EPd>, <il1=\EPf.> <kbs=^H>)
 vt61|vt-61|vt61.5|DEC VT61,
@@ -22526,8 +22441,7 @@ vt61|vt-61|vt61.5|DEC VT61,
        bel=^G, clear=\EH\EJ$<120>, cr=\r$<20>, cub1=^H, cud1=\n,
        cuf1=\EC$<20>, cup=\EY%p1%{32}%+%c%p2%{32}%+%c$<20>,
        cuu1=\EA$<20>, ed=\EJ$<120>, el=\EK$<70>, ht=^I,
-       ind=\n$<20>, kcub1=\ED, kcud1=\EB, kcuf1=\EC, kcuu1=\EA,
-       ri=\E$<20>I,
+       ind=\n$<20>, ri=\E$<20>I, use=vt52+arrows,
 
 # The gigi does standout with red!
 # (gigi: I added <rmam>/<smam> based on the init string, corrected cub1 -- esr)
@@ -22554,10 +22468,10 @@ pro350|decpro|DEC pro console,
        acsc=``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~,
        clear=\EH\EJ, cub1=^H, cud1=\EB, cuf1=\EC,
        cup=\EY%p1%{32}%+%c%p2%{32}%+%c, cuu1=\EA, ed=\EJ,
-       el=\EK, home=\EH, ht=^I, kcub1=\ED, kcud1=\EB, kcuf1=\EC,
-       kcuu1=\EA, kf0=\EE, kf1=\EF, kf2=\EG, kf3=\EH, kf4=\EI,
-       kf5=\EJ, kf6=\Ei, kf7=\Ej, khome=\EH, ri=\EI, rmacs=\EG,
-       rmso=\E^N, rmul=\E^C, smacs=\EF, smso=\E^H, smul=\E^D,
+       el=\EK, home=\EH, ht=^I, kf0=\EE, kf1=\EF, kf2=\EG, kf3=\EH,
+       kf4=\EI, kf5=\EJ, kf6=\Ei, kf7=\Ej, khome=\EH, ri=\EI,
+       rmacs=\EG, rmso=\E^N, rmul=\E^C, smacs=\EF, smso=\E^H,
+       smul=\E^D, use=vt52+arrows,
 
 dw1|DECwriter I,
        OTbs, hc, os,
@@ -22747,11 +22661,11 @@ h19|heath|h19-b|heathkit|heath-19|z19|zenith|Heathkit h19,
        clear=\EE, cnorm=\Ey4, cr=\r, cub1=^H, cud1=\EB, cuf1=\EC,
        cup=\EY%p1%{32}%+%c%p2%{32}%+%c, cuu1=\EA, cvvis=\Ex4,
        dch1=\EN, ed=\EJ, el=\EK, fsl=\Ek\Ey5, home=\EH, ht=^I, ind=\n,
-       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,
+       ip=$<1.5/>, kbs=^H, 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, use=vt52+arrows,
 h19-u|Heathkit with underscore cursor,
        cnorm@, cvvis@, use=h19-b,
 h19-g|h19g|Heathkit w/block cursor,
@@ -22809,12 +22723,11 @@ z29|zenith29|z29b|Zenith z29b,
        cvvis=\Ex4, dch1=\EN$<0.1*>, dl1=\EM$<1/>, dsl=\Ey1,
        ed=\EJ$<14>, el=\EK$<1>, fsl=\Ek\Ey5, home=\EH, ht=^I,
        ich1=\E<\E[1@\E[?2h$<1>, il1=\EL$<1/>, ind=\n$<2>,
-       is2=\E<\E[?2h\Ev, kbs=^H, kcub1=\ED, kcud1=\EB, kcuf1=\EC,
-       kcuu1=\EA, kf0=\E~, kf1=\ES, kf2=\ET, kf3=\EU, kf4=\EV,
-       kf5=\EW, kf6=\EP, kf7=\EQ, kf8=\ER, kf9=\E0I, khome=\EH,
-       lf0=home, ri=\EI$<2/>, rmacs=\EF, rmir=\EO, rmso=\Eq,
-       rmul=\Es0, smacs=\EG, smir=\E@, smso=\Ep, smul=\Es8,
-       tsl=\Ej\Ex5\Ex1\EY8%+ \Eo,
+       is2=\E<\E[?2h\Ev, kbs=^H, kf0=\E~, kf1=\ES, kf2=\ET, kf3=\EU,
+       kf4=\EV, kf5=\EW, kf6=\EP, kf7=\EQ, kf8=\ER, kf9=\E0I,
+       khome=\EH, lf0=home, ri=\EI$<2/>, rmacs=\EF, rmir=\EO,
+       rmso=\Eq, rmul=\Es0, smacs=\EG, smir=\E@, smso=\Ep,
+       smul=\Es8, tsl=\Ej\Ex5\Ex1\EY8%+ \Eo, use=vt52+arrows,
 # z29 in ANSI mode. Assumes that the cursor is in the correct state, and that
 # the world is stable. <rs1> causes the terminal to be reset to the state
 # indicated by the name. kc -> key click, nkc -> no key click, uc -> underscore
@@ -22857,19 +22770,19 @@ z39-a|z39a|zenith39-a|zenith39-ansi|Zenith 39 in ANSI mode,
        am, eslok, hs, mir, msgr, xon,
        cols#80, lines#24,
        acsc=0a``aaffggjjkkllmmnnooqqssttuuvvwwxx~~, bel=^G,
-       blink=\E[5m, bold=\E[1m, civis=\E[>5h, clear=\E[2J\E[H,
-       cnorm=\E[>5l, cr=\r, csr=\E[%i%p1%d;%p2%dr, cub1=^H,
-       cup=\E[%i%p1%d;%p2%dH, dch=\E[%p1%dP, dch1=\E[1P,
-       dim=\E[2m, dl=\E[%p1%dM, dl1=\E[1M, dsl=\E[>1l, ed=\E[0J,
-       el=\E[0K, el1=\E[1K, fsl=\E[u, home=\E[H, il=\E[%p1%dL,
-       il1=\E[1L, ind=\n, is2=\E<\E[>1;3;5;6;7l\E[0m\E[2J,
-       ka1=\EOw, ka3=\EOu, kb2=\EOy, kc1=\EOq, kc3=\EOs, ked=\E[J,
-       kf1=\EOS, kf2=\EOT, kf3=\EOU, kf4=\EOV, kf5=\EOW, kf6=\EOP,
-       kf7=\EOQ, kf8=\EOR, kf9=\EOX, khlp=\E[~, ll=\E[24;1H,
-       mc0=\E[?19h\E[i, rc=\E[u, rev=\E[7m, rmacs=\E(B,
-       rmir=\E[4l, rmkx=\E[>7l, rmso=\E[0m, 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,
+       blink=\E[5m, bold=\E[1m, cbt=\E[1Z, civis=\E[>5h,
+       clear=\E[2J\E[H, cnorm=\E[>5l, cr=\r,
+       csr=\E[%i%p1%d;%p2%dr, cub1=^H, cup=\E[%i%p1%d;%p2%dH,
+       dch=\E[%p1%dP, dch1=\E[1P, dim=\E[2m, dl=\E[%p1%dM,
+       dl1=\E[1M, dsl=\E[>1l, ed=\E[0J, el=\E[0K, el1=\E[1K,
+       fsl=\E[u, home=\E[H, il=\E[%p1%dL, il1=\E[1L, ind=\n,
+       is2=\E<\E[>1;3;5;6;7l\E[0m\E[2J, ka1=\EOw, ka3=\EOu,
+       kb2=\EOy, kc1=\EOq, kc3=\EOs, ked=\E[J, kf1=\EOS, kf2=\EOT,
+       kf3=\EOU, kf4=\EOV, kf5=\EOW, kf6=\EOP, kf7=\EOQ, kf8=\EOR,
+       kf9=\EOX, khlp=\E[~, ll=\E[24;1H, mc0=\E[?19h\E[i, rc=\E[u,
+       rev=\E[7m, rmacs=\E(B, rmir=\E[4l, rmkx=\E[>7l, rmso=\E[0m,
+       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,
        tsl=\E[s\E[>1h\E[25;%i%p1%dH, use=ansi+arrows,
        use=ansi+local, use=ansi+pp, use=ansi+tabs,
 
@@ -22884,11 +22797,10 @@ z100bw|h100bw|z110bw|z-100bw|h-100bw|Heath/Zenith z-100 pc,
        clear=\EE$<5*/>, cnorm=\Ey4, cub1=^H, cud1=\EB, cuf1=\EC,
        cup=\EY%p1%{32}%+%c%p2%{32}%+%c$<1*/>, cuu1=\EA,
        cvvis=\Ex4, dch1=\EN$<1*/>, dl1=\EM$<5*/>, ed=\EJ, el=\EK,
-       home=\EH, ht=^I, il1=\EL$<5*/>, kbs=^H, kcub1=\ED, kcud1=\EB,
-       kcuf1=\EC, kcuu1=\EA, kf0=\EJ, kf1=\ES, kf2=\ET, kf3=\EU,
-       kf4=\EV, kf5=\EW, kf6=\EP, kf7=\EQ, kf8=\ER, kf9=\EOI,
-       khome=\EH, ri=\EI, rmacs=\EG, rmir=\EO, rmso=\Eq, smacs=\EF,
-       smir=\E@, smso=\Ep,
+       home=\EH, ht=^I, il1=\EL$<5*/>, kbs=^H, kf0=\EJ, kf1=\ES,
+       kf2=\ET, kf3=\EU, kf4=\EV, kf5=\EW, kf6=\EP, kf7=\EQ, kf8=\ER,
+       kf9=\EOI, khome=\EH, ri=\EI, rmacs=\EG, rmir=\EO, rmso=\Eq,
+       smacs=\EF, smir=\E@, smso=\Ep, use=vt52+arrows,
 p19|h19-b with il1/dl1,
        dl1=\EM$<2*/>, il1=\EL$<2*/>, use=h19-b,
 # From: <ucscc!B.fiatlux@ucbvax.berkeley.edu>
@@ -22900,10 +22812,9 @@ ztx|ztx11|zt-1|htx11|ztx-1-a|Heath/Zenith ztx-10 or 11,
        cup=\EY%p1%{32}%+%c%p2%{32}%+%c, cuu1=\EA, dl1=\EM,
        dsl=\Ey1, ed=\EJ, el=\EK, fsl=\Ek\Ey5, home=\EH, ht=^I,
        il1=\EL, is2=\Ej\EH\Eq\Ek\Ev\Ey1\Ey5\EG\Ey8\Ey9\Ey>,
-       kbs=^H, kcub1=\ED, kcud1=\EB, kcuf1=\EC, kcuu1=\EA, kf0=\ES,
-       kf1=\EB, kf2=\EU, kf3=\EV, kf4=\EW, kf5=\EP, kf6=\EQ, kf7=\ER,
-       ri=\EI, rmso=\Eq, rmul=\Eq, smso=\Es5, smul=\Es2,
-       tsl=\Ej\Ex5\Ex1\EY8%+ \Eo,
+       kbs=^H, kf0=\ES, kf1=\EB, kf2=\EU, kf3=\EV, kf4=\EW, kf5=\EP,
+       kf6=\EQ, kf7=\ER, ri=\EI, rmso=\Eq, rmul=\Eq, smso=\Es5,
+       smul=\Es2, tsl=\Ej\Ex5\Ex1\EY8%+ \Eo, use=vt52+arrows,
 
 #### IMS International (ims)
 #
@@ -23546,11 +23457,11 @@ ti931|Texas Instruments 931 VDT,
        cud1=\EB, cuf1=\EC, cup=\EY%p1%{32}%+%c%p2%{32}%+%c,
        cuu1=\EA, dch1=\EQ, dl1=\EO, ed=\EJ, el=\EI, home=\EH,
        ich1=\ER\EP\EM, il1=\EN, ind=\Ea, invis=\E4H,
-       is2=\EGB\E(@B@@\E), kcub1=\ED, kcud1=\EB, kcuf1=\EC,
-       kcuu1=\EA, kdch1=\EQ, kdl1=\EO, kf1=\Ei1, kf2=\Ei2, kf3=\Ei3,
-       kf4=\Ei4, kf5=\Ei5, kf6=\Ei6, kf7=\Ei7, kf8=\Ei8, kf9=\Ei9,
-       kich1=\EP, kil1=\EN, rev=\E4B, ri=\Eb, rmso=\E4@, rmul=\E4@,
-       sgr0=\E4@, smso=\E4A, smul=\E4D,
+       is2=\EGB\E(@B@@\E), kdch1=\EQ, kdl1=\EO, kf1=\Ei1,
+       kf2=\Ei2, kf3=\Ei3, kf4=\Ei4, kf5=\Ei5, kf6=\Ei6, kf7=\Ei7,
+       kf8=\Ei8, kf9=\Ei9, kich1=\EP, kil1=\EN, rev=\E4B, ri=\Eb,
+       rmso=\E4@, rmul=\E4@, sgr0=\E4@, smso=\E4A, smul=\E4D,
+       use=vt52+arrows,
 ti926|Texas Instruments 926 VDT 8859/1 7 bit CTRL,
        csr@, ind=\E[1S, ri=\E[1T, use=ti924,
 # (ti926-8: I corrected this from the broken SCO entry -- esr)
@@ -23624,10 +23535,9 @@ cci|cci1|z8001|zen8001|CCI Custom Zentec 8001,
        csr=\ER%p1%{32}%+%c%p2%{32}%+%c, cub1=^H, cud1=\n,
        cuf1=\EC, cup=\EY%p1%{32}%+%c%p2%{32}%+%c, cuu1=\EA,
        cvvis=\EF\EQ\EM \ER 7, dim=\EM!, ed=\EJ, el=\EK, home=\EH,
-       invis=\EM(, is2=\EM \EF\ET\EP\ER 7, kbs=^H, kcub1=\ED,
-       kcud1=\EB, kcuf1=\EC, kcuu1=\EA, khome=\EH, mc4=^T, mc5=^R,
-       rev=\EM$, ri=\EI, rmso=\EM\s, rmul=\EM\s, sgr0=\EM\s,
-       smso=\EM$, smul=\EM0,
+       invis=\EM(, is2=\EM \EF\ET\EP\ER 7, kbs=^H, khome=\EH,
+       mc4=^T, mc5=^R, rev=\EM$, ri=\EI, rmso=\EM\s, rmul=\EM\s,
+       sgr0=\EM\s, smso=\EM$, smul=\EM0, use=vt52+arrows,
 
 ######## OBSOLETE UNIX CONSOLES
 #
@@ -24038,9 +23948,7 @@ ctrm|C terminal emulator,
        cup=\E&a%p2%dc%p1%dY, cuu1=\EA, dch1=\EP$<2>, dl1=\EM,
        ed=\EJ, el=\EK, hpa=\E&a%p1%dC, ht=\011$<2>, hts=\E1,
        il1=\EL, ind=\n, ip=$<2>, is2=\E&jA\r, kbs=^H, kcub1=\Eu\r,
-       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,
+       kcud1=\Ew\r, kcuf1=\Ev\r, kcuu1=\Et\r, khome=\Ep\r,
        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,
@@ -24057,6 +23965,7 @@ ctrm|C terminal emulator,
            %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,
+       use=hp+pfk+cr,
 
 # gs6300 - can't use blue foreground, it clashes with underline;
 # it's simulated with cyan
@@ -24287,17 +24196,13 @@ digilog|digilog 333,
 # The DWK was a terminal manufactured in the Soviet Union c.1986
 dwk|dwk-vt|dwk terminal,
        am,
-       cols#80, it#8, lines#24,
        acsc=+\^\,Q-S.M0\177`+a:f'g#h#i#jXkClJmFnNo~qUs_tEuPv\\wKxW~
             _,
-       bel=^G, clear=\EH\EJ, cr=\r, cub1=^H, cud1=\n, cuf1=\EC,
-       cup=\EY%p1%{32}%+%c%p2%{32}%+%c, cuu1=\EA, dch1=\EP,
-       ed=\EJ, el=\EK, home=\EH, ht=^I, ich1=\EQ, ind=\n, kbs=^?,
-       kcub1=\ED, kcud1=\EB, kcuf1=\EC, kcuu1=\EA, kdch1=\Ee,
-       kf1=\Ef1, kf10=\Ef0, kf2=\Ef2, kf3=\Ef3, kf4=\Ef4, kf5=\Ef5,
-       kf6=\Ef6, kf7=\Ef7, kf8=\Ef8, kf9=\Ef9, kich1=\Ed, knp=\Eh,
-       kpp=\Eg, nel=\r\n, rev=\ET, ri=\ES, rmacs=\EG, rmso=\EX,
-       sgr0=\EX, smacs=\EF, smso=\ET,
+       clear=\EH\EJ, cub1=^H, cud1=\n, dch1=\EP, ich1=\EQ, kbs=^?,
+       kdch1=\Ee, kf1=\Ef1, kf10=\Ef0, kf2=\Ef2, kf3=\Ef3, kf4=\Ef4,
+       kf5=\Ef5, kf6=\Ef6, kf7=\Ef7, kf8=\Ef8, kf9=\Ef9, kich1=\Ed,
+       knp=\Eh, kpp=\Eg, rev=\ET, ri=\ES, rmacs=\EG, rmso=\EX,
+       sgr0=\EX, smacs=\EF, smso=\ET, use=vt52-basic,
 env230|envision230|envision 230 graphics terminal,
        xenl@,
        enacs@, mc0=\E[0i, mc4=\E[4i, mc5=\E[5i, rmacs@,
@@ -25420,7 +25325,7 @@ v3220|LANPAR Vision II model 3220/3221/3222,
 #      * Replaced Qume QVT and Freedom-series entries with purpose-built
 #        terminfo entries.
 #      * Enhanced vt220, tvi910, tvi924, hpterm, hp2645, adm42, tek
-#        and dg200 entries using caps from from SCO.
+#        and dg200 entries using caps from SCO.
 #      * Added the usual set of function-key mappings to ANSI entry.
 #      * Corrected xterm's function-key capabilities.
 # 9.4.5 (Tue Mar 28 14:27:49 EST 1995):
@@ -27572,4 +27477,11 @@ v3220|LANPAR Vision II model 3220/3221/3222,
 #        ecma+color, ecma+sgr, vt100+4bsd, vt100+pfkeys, vt220+pcedit
 #        xterm+256color, xterm+acs, xterm+nopcfkeys, xterm+pcf2 to trim -TD
 #
+# 2024-01-27
+#      + amend change to z39-a (report by Sven Joachim).
+#      + use xterm+nopcfkeys, vt52-basic, dec+pp, dec+sl, vt52+arrows,
+#        hp+pfk+cr, klone+acs, klone+color, klone+sgr, ncr160wy50+pp
+#        to trim -TD
+#      + NetBSD-related fixes for x68k and wsvt52 (patch by Thomas Klausner)
+#
 ######## SHANTIH!  SHANTIH!  SHANTIH!
index 0a77de595b50d2706b45f13462a89b1590b59b25..190ac14d05fa44330d05af69606b714958643e03 100644 (file)
@@ -1,8 +1,8 @@
-ncurses6 (6.4+20240120) unstable; urgency=low
+ncurses6 (6.4+20240127) unstable; urgency=low
 
   * latest weekly patch
 
- -- Thomas E. Dickey <dickey@invisible-island.net>  Fri, 19 Jan 2024 06:23:02 -0500
+ -- Thomas E. Dickey <dickey@invisible-island.net>  Sat, 27 Jan 2024 06:04:16 -0500
 
 ncurses6 (5.9+20131005) unstable; urgency=low
 
index 0a77de595b50d2706b45f13462a89b1590b59b25..190ac14d05fa44330d05af69606b714958643e03 100644 (file)
@@ -1,8 +1,8 @@
-ncurses6 (6.4+20240120) unstable; urgency=low
+ncurses6 (6.4+20240127) unstable; urgency=low
 
   * latest weekly patch
 
- -- Thomas E. Dickey <dickey@invisible-island.net>  Fri, 19 Jan 2024 06:23:02 -0500
+ -- Thomas E. Dickey <dickey@invisible-island.net>  Sat, 27 Jan 2024 06:04:16 -0500
 
 ncurses6 (5.9+20131005) unstable; urgency=low
 
index b3b7256191b7112d2ae44cf3e839d4d08e64e844..fde41393150461ca755e518151036158f3ed0fe0 100644 (file)
@@ -1,8 +1,8 @@
-ncurses6 (6.4+20240120) unstable; urgency=low
+ncurses6 (6.4+20240127) unstable; urgency=low
 
   * latest weekly patch
 
- -- Thomas E. Dickey <dickey@invisible-island.net>  Fri, 19 Jan 2024 06:23:02 -0500
+ -- Thomas E. Dickey <dickey@invisible-island.net>  Sat, 27 Jan 2024 06:04:16 -0500
 
 ncurses6 (5.9+20120608) unstable; urgency=low
 
index 23076414ca9a3e3b51f3aec48c4a54be5602dfd2..4c4122c0fb93ef96d9d711ac165a2dba48294128 100644 (file)
@@ -1,4 +1,4 @@
-; $Id: mingw-ncurses.nsi,v 1.629 2024/01/19 11:23:02 tom Exp $\r
+; $Id: mingw-ncurses.nsi,v 1.630 2024/01/27 11:04:16 tom Exp $\r
 \r
 ; TODO add examples\r
 ; TODO bump ABI to 6\r
@@ -10,7 +10,7 @@
 !define VERSION_MAJOR "6"\r
 !define VERSION_MINOR "4"\r
 !define VERSION_YYYY  "2024"\r
-!define VERSION_MMDD  "0120"\r
+!define VERSION_MMDD  "0127"\r
 !define VERSION_PATCH ${VERSION_YYYY}${VERSION_MMDD}\r
 \r
 !define MY_ABI   "5"\r
index 0513767306f182d41b5e224147135aaa6aaed038..ad5a7f28f27f0a91b6efbd445fbd5e0c30b7906b 100644 (file)
@@ -3,7 +3,7 @@
 Summary: shared libraries for terminal handling
 Name: mingw32-ncurses6
 Version: 6.4
-Release: 20240120
+Release: 20240127
 License: X11
 Group: Development/Libraries
 URL: https://invisible-island.net/ncurses/
index 142275f7b38a057e37df34ff83517f348a4925ce..775f770c32b3bb989d991d960d8483ad423500ca 100644 (file)
@@ -1,7 +1,7 @@
 Summary: shared libraries for terminal handling
 Name: ncurses6
 Version: 6.4
-Release: 20240120
+Release: 20240127
 License: X11
 Group: Development/Libraries
 URL: https://invisible-island.net/ncurses/
index 88c58ee2cd558b476bbc0b882ef35fe8d1331f99..59460a5a36822de81fce16d8c40d9b1df3b98148 100644 (file)
@@ -1,7 +1,7 @@
 Summary: Curses library with POSIX thread support.
 Name: ncursest6
 Version: 6.4
-Release: 20240120
+Release: 20240127
 License: X11
 Group: Development/Libraries
 Source: ncurses-%{version}-%{release}.tgz