]> ncurses.scripts.mit.edu Git - ncurses.git/blobdiff - misc/terminfo.src
ncurses 6.4 - patch 20240106
[ncurses.git] / misc / terminfo.src
index 6f0c978ac6d7175db6faa4e1062e56d834c4cee8..87a7ef05d8233ddf168b05aaeb5dba913c80220d 100644 (file)
@@ -6,8 +6,8 @@
 # Report bugs and new terminal descriptions to
 #      bug-ncurses@gnu.org
 #
-#      $Revision: 1.1010 $
-#      $Date: 2022/06/18 19:10:35 $
+#      $Revision: 1.1102 $
+#      $Date: 2024/01/06 23:37:36 $
 #
 # 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
@@ -368,6 +368,9 @@ ansi+idc|ANSI insert/delete characters,
 ansi+arrows|ANSI normal-mode home and cursor-keys,
        kbs=^H, kcub1=\E[D, kcud1=\E[B, kcuf1=\E[C, kcuu1=\E[A,
        khome=\E[H,
+ansi+apparrows|ANSI application-mode home and cursor-keys,
+       kcub1=\EOD, kcud1=\EOB, kcuf1=\EOC, kcuu1=\EOA, khome=\EOH,
+       use=ansi+arrows,
 ansi+sgr|ANSI graphic renditions,
        blink=\E[5m, invis=\E[8m, rev=\E[7m,
        sgr=\E[0%?%p3%t;7%;%?%p4%t;5%;%?%p7%t;8%;m,
@@ -560,14 +563,13 @@ ansi-mtabs|any ANSI terminal with pessimistic assumptions (relative addressing),
 ansi77|ANSI 3.64 standard 1977 version,
        OTbs, am, mir,
        cols#80, it#8, lines#24,
-       bel=^G, clear=\E[;H\E[2J, cr=\r, csr=\E[%i%p1%d;%p2%dr,
-       cub1=^H, cud1=\E[B, cuf1=\E[C, cup=\E[%i%p1%d;%p2%dH,
-       cuu1=\E[A, dch1=\E[P, dl1=\E[M$<5*/>, ed=\E[J, el=\E[K,
-       home=\E[H, ht=^I, il1=\E[L$<5*/>, ind=\ED, kbs=^H,
-       kcub1=\E[D, kcud1=\E[B, kcuf1=\E[C, kcuu1=\E[A, kf1=\EOP,
-       kf2=\EOR, kf4=\EOS, khome=\E[H, nel=\r\ED, rc=\E8, ri=\EM,
-       rmir=\E[4l, rmso=\E[m, rmul=\E[m, sc=\E7, smir=\E[4h,
-       smso=\E[7m, smul=\E[4m,
+       bel=^G, clear=\E[;H\E[2J, cr=\r, cub1=^H, cud1=\E[B,
+       cuf1=\E[C, cup=\E[%i%p1%d;%p2%dH, cuu1=\E[A, dch1=\E[P,
+       dl1=\E[M$<5*/>, ed=\E[J, el=\E[K, home=\E[H, ht=^I,
+       il1=\E[L$<5*/>, ind=\ED, kf1=\EOP, kf2=\EOR, kf4=\EOS,
+       nel=\r\ED, ri=\EM, rmir=\E[4l, rmso=\E[m, rmul=\E[m,
+       smir=\E[4h, smso=\E[7m, smul=\E[4m, use=ansi+arrows,
+       use=ansi+csr,
 
 # Procomm and some other ANSI emulations don't recognize all of the ANSI-
 # standard capabilities.  This entry deletes <cuu>, <cuf>, <cud>, <cub>, and
@@ -581,13 +583,12 @@ ansi77|ANSI 3.64 standard 1977 version,
 # From: Eric S. Raymond <esr@snark.thyrsus.com> Oct 30 1995
 pcansi-m|pcansi-mono|ibm-pc terminal programs claiming to be ANSI (mono mode),
        OTbs, am, mir, msgr,
-       cols#80, it#8, lines#24,
-       bel=^G, cbt=\E[Z, clear=\E[H\E[J, cr=\r, cub1=\E[D,
-       cud1=\E[B, cuf1=\E[C, cup=\E[%i%p1%d;%p2%dH, cuu1=\E[A,
-       dch1=\E[P, dl1=\E[M, ed=\E[J, el=\E[K, home=\E[H, ht=^I,
-       hts=\EH, il1=\E[L, ind=\n, kbs=^H, kcub1=\E[D, kcud1=\E[B,
-       kcuf1=\E[C, kcuu1=\E[A, khome=\E[H, tbc=\E[3g,
-       use=klone+sgr-dumb,
+       cols#80, lines#24,
+       bel=^G, cr=\r, cub1=\E[D, cud1=\E[B, cuf1=\E[C,
+       cup=\E[%i%p1%d;%p2%dH, cuu1=\E[A, dch1=\E[P, dl1=\E[M,
+       home=\E[H, ht=^I, il1=\E[L, ind=\n, use=ansi+arrows,
+       use=ansi+erase, use=ansi+inittabs, use=klone+sgr-dumb,
+
 pcansi-25-m|pcansi25m|ibm-pc terminal programs with 25 lines (mono mode),
        lines#25, use=pcansi-m,
 pcansi-33-m|pcansi33m|ibm-pc terminal programs with 33 lines (mono mode),
@@ -613,15 +614,51 @@ ansi-m|ansi-mono|ANSI X3.64-1979 terminal with ANSI.SYS compatible attributes,
        cub=\E[%p1%dD, cud=\E[%p1%dB, cuf=\E[%p1%dC,
        cuu=\E[%p1%dA, dch=\E[%p1%dP, dl=\E[%p1%dM,
        ech=\E[%p1%dX, el1=\E[1K, hpa=\E[%i%p1%dG, ht=\E[I,
-       ich=\E[%p1%d@, il=\E[%p1%dL, kbs=^H, kcbt=\E[Z, kcub1=\E[D,
-       kcud1=\E[B, kcuf1=\E[C, kcuu1=\E[A, kich1=\E[L, mc4=\E[4i,
-       mc5=\E[5i, nel=\r\E[S, rep=%p1%c\E[%p2%{1}%-%db,
-       s0ds=\E(B, s1ds=\E)B, s2ds=\E*B, s3ds=\E+B, tbc=\E[3g,
-       vpa=\E[%i%p1%dd, use=ecma+index, use=pcansi-m,
-
+       ich=\E[%p1%d@, il=\E[%p1%dL, kcbt=\E[Z, kich1=\E[L,
+       mc4=\E[4i, mc5=\E[5i, nel=\r\E[S,
+       rep=%p1%c\E[%p2%{1}%-%db, s0ds=\E(B, s1ds=\E)B,
+       s2ds=\E*B, s3ds=\E+B, vpa=\E[%i%p1%dd, use=ecma+index,
+       use=pcansi-m,
+
+# ECMA-48 addresses three of the four capabilities here:
+#
+# u6 -
+#      8.3.14 CPR - ACTIVE POSITION REPORT
+#      Notation: (Pn1;Pn2) Representation: CSI Pn1;Pn2 05/02
+#      Parameter default values: Pn1 = 1; Pn2 = 1
+#
+# u7
+#      8.3.35 DSR - DEVICE ST A TUS REPORT
+#      Notation: (Ps) Representation: CSI Ps 06/14
+#      Parameter default value: Ps = 0
+#      DSR is used either to report the status of the sending device or to
+#      request a status report from the receiving device, depending on the
+#      parameter values:
+#      6 a report of the active presentation position or of the active data
+#        position in the form of ACTIVE POSITION REPORT (CPR) is requested
+#
+# u9 -
+#      8.3.24 DA - DEVICE ATTRIBUTES
+#      Notation: (Ps) Representation: CSI Ps 06/03
+#      Parameter default value: Ps = 0
+#      With a parameter value not equal to 0, DA is used to identify the
+#      device which sends the DA.  The parameter value is a device type
+#      identification code according to a register which is to be established. 
+#      If the parameter value is 0, DA is used to request an identifying DA
+#      from a device.
+#
+# DEC (and most "ANSI") terminals reply with a private-mode ("?") sequence,
+# but that register "which is to be" in ECMA-48 was never established.
+# For terminals that support DA1, a more specific u8 capability is preferred,
+# except for those (such as xterm) which can be configured to return different
+# responses.
+ansi+cpr|ncurses extension for ANSI CPR,
+       u6=\E[%i%d;%dR, u7=\E[6n,
 ansi+enq|ncurses extension for ANSI ENQ,
-       u6=\E[%i%d;%dR, u7=\E[6n, u8=\E[?%[;0123456789]c,
-       u9=\E[c,
+       u8=\E[?%[;0123456789]c, u9=\E[c, use=ansi+cpr,
+# DEC terminals provided DECID, subsumed into DA1:
+decid+cpr|ncurses extension for DECID,
+       u8=\E[?%[;0123456789]c, u9=\EZ, use=ansi+cpr,
 
 # ansi -- this terminfo expresses the largest subset of X3.64 that will fit in
 # standard terminfo.  Assumes ANSI.SYS-compatible attributes and color.
@@ -661,8 +698,8 @@ ansi.sys-old|ANSI.SYS under PC-DOS 2.0,
        cup=\E[%i%p1%d;%p2%dH, cuu1=\E[A, el=\E[k, home=\E[H,
        is2=\E[m\E[?7h, kcub1=^H, kcud1=\n, kcuf1=^L, kcuu1=^K,
        khome=^^, pfkey=\E[0;%p1%{58}%+%d;%p2"%s"p, rc=\E[u,
-       rmam=\E[?7l, sc=\E[s, smam=\E[?7h, u6=\E[%i%d;%dR,
-       u7=\E[6n, use=klone+color, use=klone+sgr8,
+       rmam=\E[?7l, sc=\E[s, smam=\E[?7h, use=ansi+cpr,
+       use=klone+color, use=klone+sgr8,
 
 # Keypad:      Home=\0G        Up=\0H  PrPag=\0I
 #              ka1,kh          kcuu1           kpp,ka3
@@ -685,7 +722,7 @@ ansi.sys-old|ANSI.SYS under PC-DOS 2.0,
 #
 # <pfkey> capability for F1-F48 -TD
 ansi.sys|ANSI.SYS 3.1 and later versions,
-       el=\E[K, ka1=\0G, ka3=\0I, kb2=\0L, kbs=^H, kc1=\0O, kc3=\0Q,
+       el=\E[K, ka1=\0G, ka3=\0I, kb2=\0L, kc1=\0O, kc3=\0Q,
        kcbt=\0^O, kcub1=\0K, kcud1=\0P, kcuf1=\0M, kcuu1=\0H,
        kdch1=\0S, kend=\0O, kf1=\0;, kf10=\0D, kf11=\0\205,
        kf12=\0\206, kf13=\0T, kf14=\0U, kf15=\0V, kf16=\0W,
@@ -700,7 +737,7 @@ ansi.sys|ANSI.SYS 3.1 and later versions,
        pfkey=\E[0;%?%p1%{11}%<%t%':'%e%p1%{13}%<%t%'z'%e%p1%{23}%<
              %t%'G'%e%p1%{25}%<%t%'p'%e%p1%'#'%<%t%'E'%e%p1%'%'%<%t
              %'f'%e%p1%'/'%<%t%'C'%e%{92}%;%p1%+%d;%p2"%s"p,
-       use=ansi.sys-old,
+       use=ansi+arrows, use=ansi.sys-old,
 
 #
 # Define IBM PC keypad keys for vi as per MS-Kermit while using ANSI.SYS.
@@ -808,23 +845,20 @@ tw100|Toswin VT100 window manager,
        acsc=++\,\,--..00II``aaffgghhjjkkllmmnnooppqqrrssttuuvvwwxxy
             yzz{{||}}~~,
        bel=^G, blink=\E[5m, bold=\E[1m, civis=\Ef,
-       clear=\E[2J\E[H, cnorm=\Ee, cr=\r, csr=\E[%i%p1%d;%p2%dr,
-       cub=\E[%p1%dD, cub1=^H, cud=\E[%p1%dB, cud1=\EB,
-       cuf=\E[%p1%dC, cuf1=\EC, cup=\E[%i%p1%d;%p2%dH,
-       cuu=\E[%p1%dA, cuu1=\EA, dch1=\Ea, dim=\E[2m, dl=\E[%p1%dM,
-       dl1=\E[M, ed=\E[J, el=\E[K, el1=\E[1K, home=\E[H, ht=^I,
-       hts=\EH, ich=\E[%p1%d@, il1=\EL, ind=\n, is2=\E<\E)0, kbs=^H,
-       kcub1=\EOD, kcud1=\EOB, kcuf1=\EOC, kcuu1=\EOA, kdch1=^?,
-       kf1=\EOP, kf10=\EOY, kf11=\Ep, kf12=\Eq, kf13=\Er, kf14=\Es,
-       kf15=\Et, kf16=\Eu, kf17=\Ev, kf18=\Ew, kf19=\Ex, kf2=\EOQ,
-       kf20=\Ey, kf3=\EOR, kf4=\EOS, kf5=\EOT, kf6=\EOU, kf7=\EOV,
-       kf8=\EOW, kf9=\EOX, khlp=\EH, khome=\E\EE, kich1=\EI,
-       knp=\Eb, kpp=\E\Ea, kund=\EK, ll=\E[24H, nel=\EE,
-       oc=\E[30;47m, op=\E[30;47m, rc=\E8, rev=\E[7m, ri=\EM,
-       rmacs=^O, rmcup=\E[?7h, rmir=\Ei, rmkx=\E[?1l\E>,
+       clear=\E[2J\E[H, cnorm=\Ee, cr=\r, cub=\E[%p1%dD, cub1=^H,
+       cud=\E[%p1%dB, cud1=\EB, cuf=\E[%p1%dC, cuf1=\EC,
+       cup=\E[%i%p1%d;%p2%dH, cuu=\E[%p1%dA, cuu1=\EA, dch1=\Ea,
+       dim=\E[2m, dl=\E[%p1%dM, dl1=\E[M, ed=\E[J, el=\E[K,
+       el1=\E[1K, home=\E[H, ht=^I, hts=\EH, ich=\E[%p1%d@, il1=\EL,
+       ind=\n, is2=\E<\E)0, kdch1=^?, kf1=\EOP, kf10=\EOY, kf11=\Ep,
+       kf12=\Eq, kf13=\Er, kf14=\Es, kf15=\Et, kf16=\Eu, kf17=\Ev,
+       kf18=\Ew, kf19=\Ex, kf2=\EOQ, kf20=\Ey, kf3=\EOR, kf4=\EOS,
+       kf5=\EOT, kf6=\EOU, kf7=\EOV, kf8=\EOW, kf9=\EOX, khlp=\EH,
+       khome=\E\EE, kich1=\EI, knp=\Eb, kpp=\E\Ea, kund=\EK,
+       ll=\E[24H, nel=\EE, oc=\E[30;47m, op=\E[30;47m, rev=\E[7m,
+       ri=\EM, rmacs=^O, rmcup=\E[?7h, rmir=\Ei, rmkx=\E[?1l\E>,
        rmso=\E[m, rmul=\E[m,
        rs1=\E<\E[20l\E[?3;6;9l\E[r\Eq\E(B\017\E)0\E>,
-       sc=\E7,
        setb=\E[4%p1%'0'%+%Pa%?%ga%'0'%=%t0%e%ga%'1'%=%t4%e%ga%'2'%=
             %t2%e%ga%'3'%=%t6%e%ga%'4'%=%t1%e%ga%'5'%=%t5%e%ga%'6'
             %=%t3%e7%;m,
@@ -833,6 +867,8 @@ tw100|Toswin VT100 window manager,
             %=%t3%e7%;m,
        sgr0=\E[m, smacs=^N, smcup=\E[?7l, smir=\Eh,
        smkx=\E[?1h\E=, smso=\E[7m, smul=\E[4m, tbc=\E[3g,
+       use=ansi+apparrows, use=ansi+csr,
+
 # The entries for stv52 and stv52pc probably need a revision.
 stv52|MiNT virtual console,
        am, msgr,
@@ -908,25 +944,21 @@ st52-old|Atari ST with VT52 emulation,
 beterm|BeOS Terminal,
        am, eo, mir, msgr, xenl, xon,
        colors#8, cols#80, it#8, lines#25, ncv#5, pairs#64,
-       bel=^G, bold=\E[1m, clear=\E[H\E[J, cr=\r,
-       csr=\E[%i%p1%d;%p2%dr, cub=\E[%p1%dD, cub1=^H,
+       bel=^G, bold=\E[1m, cr=\r, cub=\E[%p1%dD, 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,
-       dch=\E[%p1%dP, dch1=\E[P, dl=\E[%p1%dM, dl1=\E[M,
-       ech=\E[%p1%dX, ed=\E[J, el=\E[K, el1=\E[1K, home=\E[H,
-       hpa=\E[%i%p1%dG, ht=^I, hts=\EH, ich=\E[%p1%d@, ich1=\E[@,
-       il=\E[%p1%dL, il1=\E[L, ind=\n, kbs=^H, kcub1=\E[D,
-       kcud1=\E[B, kcuf1=\E[C, kcuu1=\E[A, kf1=\E[11~,
-       kf10=\E[20~, kf11=\E[21~, kf12=\E[22~, kf2=\E[12~,
-       kf3=\E[13~, kf4=\E[14~, kf5=\E[15~, kf6=\E[16~, kf7=\E[17~,
-       kf8=\E[18~, kf9=\E[19~, kspd=^Z, nel=\r\n, op=\E[m, rc=\E8,
-       rev=\E[7m, ri=\EM, rmir=\E[4l, rmkx=\E[?4l, rmso=\E[m,
-       rmul=\E[24m, rs1=\Ec, sc=\E7, setab=\E[4%p1%dm,
-       setaf=\E[3%p1%dm, setb=\E[%p1%{40}%+%cm,
-       setf=\E[%p1%{30}%+%cm, sgr0=\E[0;10m, smir=\E[4h,
-       smkx=\E[?4h, smso=\E[7m, smul=\E[4m,
+       ech=\E[%p1%dX, el1=\E[1K, home=\E[H, hpa=\E[%i%p1%dG,
+       ht=^I, hts=\EH, ind=\n, kf1=\E[11~, kf10=\E[20~, kf11=\E[21~,
+       kf12=\E[22~, kf2=\E[12~, kf3=\E[13~, kf4=\E[14~,
+       kf5=\E[15~, kf6=\E[16~, kf7=\E[17~, kf8=\E[18~, kf9=\E[19~,
+       khome=\E[1~, 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=vt220+pcedit,
+       use=ansi+arrows, use=ansi+csr, use=ansi+erase,
+       use=ansi+idc, use=ansi+idl, use=vt220+pcedit,
 
 #### Linux consoles
 #
@@ -962,28 +994,25 @@ linux-basic|Linux console (basic),
        acsc=+\020\,\021-\030.^Y0\333`\004a\261f\370g\361h\260i
             \316j\331k\277l\332m\300n\305o~p\304q\304r\304s_t\303u
             \264v\301w\302x\263y\363z\362{\343|\330}\234~\376,
-       bel=^G, clear=\E[H\E[J, cr=\r, csr=\E[%i%p1%d;%p2%dr,
-       cub=\E[%p1%dD, 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, dch=\E[%p1%dP, dch1=\E[P,
-       dim=\E[2m, dl=\E[%p1%dM, dl1=\E[M, ech=\E[%p1%dX, ed=\E[J,
-       el=\E[K, el1=\E[1K, flash=\E[?5h$<200/>\E[?5l, home=\E[H,
-       hpa=\E[%i%p1%dG, ht=^I, hts=\EH, ich=\E[%p1%d@, ich1=\E[@,
-       il=\E[%p1%dL, il1=\E[L, ind=\n, kb2=\E[G, kbs=^?, kcbt=\E[Z,
-       kcub1=\E[D, kcud1=\E[B, kcuf1=\E[C, kcuu1=\E[A, kf1=\E[[A,
-       kf10=\E[21~, kf11=\E[23~, kf12=\E[24~, kf2=\E[[B,
-       kf3=\E[[C, kf4=\E[[D, kf5=\E[[E, kf6=\E[17~, kf7=\E[18~,
-       kf8=\E[19~, kf9=\E[20~, kmous=\E[M, kspd=^Z, nel=\r\n,
-       rc=\E8, rev=\E[7m, ri=\EM, rmam=\E[?7l, rmir=\E[4l,
-       rmso=\E[27m, rmul=\E[24m, rs1=\Ec\E]R, sc=\E7,
+       bel=^G, cr=\r, cub=\E[%p1%dD, 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, dim=\E[2m, ech=\E[%p1%dX,
+       el1=\E[1K, flash=\E[?5h$<200/>\E[?5l, home=\E[H,
+       hpa=\E[%i%p1%dG, ht=^I, hts=\EH, ind=\n, kb2=\E[G, kbs=^?,
+       kcbt=\E[Z, kf1=\E[[A, kf10=\E[21~, kf11=\E[23~,
+       kf12=\E[24~, kf2=\E[[B, kf3=\E[[C, kf4=\E[[D, kf5=\E[[E,
+       kf6=\E[17~, kf7=\E[18~, kf8=\E[19~, kf9=\E[20~,
+       khome=\E[1~, kmous=\E[M, kspd=^Z, nel=\r\n, ri=\EM,
+       rmam=\E[?7l, rmso=\E[27m, rmul=\E[24m, rs1=\Ec\E]R,
        sgr=\E[0;10%?%p1%t;7%;%?%p2%t;4%;%?%p3%t;7%;%?%p4%t;5%;%?%p5
            %t;2%;%?%p6%t;1%;%?%p9%t;11%;m,
-       smam=\E[?7h, smir=\E[4h, smul=\E[4m, tbc=\E[3g,
-       vpa=\E[%i%p1%dd, use=vt220+pcedit, use=vt102+enq,
-       use=klone+sgr, use=ecma+color, use=linux+sfkeys,
+       smam=\E[?7h, tbc=\E[3g, vpa=\E[%i%p1%dd, use=ansi+arrows,
+       use=ansi+csr, use=ansi+erase, use=ansi+idc, use=ansi+idl,
+       use=vt220+pcedit, use=vt102+enq, use=klone+sgr,
+       use=ecma+color, use=linux+sfkeys,
 
 linux+decid|ncurses extension for Linux console DECID,
-       u6=\E[%i%d;%dR, u7=\E[6n, u8=\E[?6c, u9=\EZ,
+       u8=\E[?6c, use=decid+cpr,
 
 linux+sfkeys|shifted function-keys for Linux console,
        kf13=\E[25~, kf14=\E[26~, kf15=\E[28~, kf16=\E[29~,
@@ -1146,32 +1175,27 @@ kon|kon2|Kanji ON Linux console,
             \331k\277l\332m\300n\305o~p\304q\304r\304s_t\303u\264v
             \301w\302x\263y\363z\362{\343|\330}\234~\376,
        bel=^G, blink=\E[5m, bold=\E[1m, civis=\E[?25l,
-       clear=\E[H\E[J, cnorm=\E[?25h, cr=\r,
-       csr=\E[%i%p1%d;%p2%dr, cub=\E[%p1%dD, cub1=^H,
+       cnorm=\E[?25h, cr=\r, cub=\E[%p1%dD, 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,
-       dch=\E[%p1%dP, dch1=\E[P, dim=\E[2m, dl=\E[%p1%dM,
-       dl1=\E[M, dsl=\E[?H\E[?E, ed=\E[J, el=\E[K, el1=\E[1K,
-       fsl=\E[?F, home=\E[H, hpa=\E[%i%p1%dG, ht=^I, hts=\EH,
-       ich=\E[%p1%d@, ich1=\E[@, il=\E[%p1%dL, il1=\E[L, ind=\n,
+       dim=\E[2m, dsl=\E[?H\E[?E, el1=\E[1K, fsl=\E[?F, home=\E[H,
+       hpa=\E[%i%p1%dG, ht=^I, hts=\EH, ind=\n,
        initc=\E]P%p1%x%p2%02x%p3%02x%p4%02x, invis=\E[8m,
-       kb2=\E[G, kbs=^?, kcub1=\E[D, kcud1=\E[B, kcuf1=\E[C,
-       kcuu1=\E[A, kdch1=\E[3~, kend=\E[4~, kf1=\E[[A,
+       kb2=\E[G, kbs=^?, kdch1=\E[3~, kend=\E[4~, kf1=\E[[A,
        kf10=\E[21~, kf11=\E[23~, kf12=\E[24~, kf13=\E[25~,
        kf14=\E[26~, kf15=\E[28~, kf16=\E[29~, kf17=\E[31~,
        kf18=\E[32~, kf19=\E[33~, kf2=\E[[B, kf20=\E[34~,
        kf3=\E[[C, kf4=\E[[D, kf5=\E[[E, kf6=\E[17~, kf7=\E[18~,
        kf8=\E[19~, kf9=\E[20~, khome=\E[1~, kich1=\E[2~,
        knp=\E[6~, kpp=\E[5~, kspd=^Z, nel=\r\n, op=\E[37;40m,
-       rc=\E8, rev=\E[7m, ri=\EM, rmacs=\E[10m, rmir=\E[4l,
-       rmpch=\E[10m, rmso=\E[27m, rmul=\E[24m, rs1=\Ec, sc=\E7,
-       setab=\E[4%p1%dm, setaf=\E[3%p1%dm,
+       rev=\E[7m, ri=\EM, rmacs=\E[10m, rmpch=\E[10m, rmso=\E[27m,
+       rmul=\E[24m, rs1=\Ec, setab=\E[4%p1%dm, setaf=\E[3%p1%dm,
        sgr=\E[0;10%?%p1%t;7%;%?%p2%t;4%;%?%p3%t;7%;%?%p4%t;5%;%?%p5
            %t;2%;%?%p6%t;1%;%?%p7%t;8%;%?%p9%t;11%;m,
-       sgr0=\E[0;10m, smacs=\E[11m, smir=\E[4h, smpch=\E[11m,
-       smso=\E[7m, smul=\E[4m, tbc=\E[3g, tsl=\E[?T,
-       u6=\E[%i%d;%dR, u7=\E[6n, u8=\E[?6c, u9=\E[c,
-       vpa=\E[%i%p1%dd,
+       sgr0=\E[0;10m, smacs=\E[11m, smpch=\E[11m, smso=\E[7m,
+       smul=\E[4m, 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,
 
 # release: 0.4.7 2005/05
 #
@@ -1243,15 +1267,15 @@ bterm|bogl virtual terminal,
        acsc=aajjkkllmmqqttuuxx, bold=\E[1m, clear=\E[H\E[2J,
        cr=\r, cub1=^H, cud1=\n, cup=\E[%i%p1%d;%p2%dH, ed=\E[J,
        el=\E[K, home=\E[H, ind=\n, kb2=\E[G, kbs=^?, kcbt=\E[Z,
-       kcub1=\E[D, kcud1=\E[B, kcuf1=\E[C, kcuu1=\E[A, kf1=\E[[A,
-       kf10=\E[21~, kf11=\E[23~, kf12=\E[24~, kf13=\E[25~,
-       kf14=\E[26~, kf15=\E[28~, kf16=\E[29~, kf17=\E[31~,
-       kf18=\E[32~, kf19=\E[33~, kf2=\E[[B, kf20=\E[34~,
-       kf3=\E[[C, kf4=\E[[D, kf5=\E[[E, kf6=\E[17~, kf7=\E[18~,
-       kf8=\E[19~, kf9=\E[20~, kmous=\E[M, kspd=^Z, nel=\r\n,
-       op=\E[49m\E[39m, rev=\E[7m, ri=\EM, rmacs=^O, rmso=\E[27m,
-       rmul=\E[24m, setab=\E[4%p1%dm, setaf=\E[3%p1%dm,
-       sgr0=\E[0m, smacs=^N, smso=\E[7m, smul=\E[4m,
+       kf1=\E[[A, kf10=\E[21~, kf11=\E[23~, kf12=\E[24~,
+       kf13=\E[25~, kf14=\E[26~, kf15=\E[28~, kf16=\E[29~,
+       kf17=\E[31~, kf18=\E[32~, kf19=\E[33~, kf2=\E[[B,
+       kf20=\E[34~, kf3=\E[[C, kf4=\E[[D, kf5=\E[[E, kf6=\E[17~,
+       kf7=\E[18~, kf8=\E[19~, kf9=\E[20~, khome=\E[1~,
+       kmous=\E[M, kspd=^Z, nel=\r\n, op=\E[49m\E[39m, rev=\E[7m,
+       ri=\EM, rmacs=^O, rmso=\E[27m, rmul=\E[24m,
+       setab=\E[4%p1%dm, setaf=\E[3%p1%dm, sgr0=\E[0m, smacs=^N,
+       smso=\E[7m, smul=\E[4m, use=ansi+arrows,
        use=vt220+pcedit, use=vt220+cvis,
 
 #### Mach
@@ -1259,19 +1283,18 @@ bterm|bogl virtual terminal,
 
 # From: Matthew Vernon <mcv21@pick.sel.cam.ac.uk>
 mach|Mach console,
-       am, km,
+       am, km, NQ,
        cols#80, it#8, lines#25,
        bel=^G, blink=\E[5m, bold=\E[1m, clear=\Ec, cr=\r,
        cub=\E[%p1%dD, 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, dl=\E[%p1%dM, dl1=\E[M, ed=\E[J,
-       el=\E[K, home=\E[H, ht=^I, il=\E[%p1%dL, il1=\E[L, ind=\n,
-       kbs=^?, kcub1=\E[D, kcud1=\E[B, kcuf1=\E[C, kcuu1=\E[A,
-       kdch1=\E[9, kend=\E[Y, kf1=\EOP, kf10=\EOY, kf2=\EOQ,
-       kf3=\EOR, kf4=\EOS, kf5=\EOT, kf6=\EOU, kf7=\EOV, kf8=\EOW,
-       kf9=\EOX, khome=\E[H, kich1=\E[@, kll=\E[F, knp=\E[U,
-       kpp=\E[V, rev=\E[7m, rmso=\E[0m, rmul=\E[24m, sgr0=\E[0m,
-       smso=\E[7m, smul=\E[4m,
+       cuu=\E[%p1%dA, cuu1=\E[A, ed=\E[J, el=\E[K, home=\E[H, ht=^I,
+       ind=\n, kbs=^?, kdch1=\E[9, kend=\E[Y, kf1=\EOP, kf10=\EOY,
+       kf2=\EOQ, kf3=\EOR, kf4=\EOS, kf5=\EOT, kf6=\EOU, kf7=\EOV,
+       kf8=\EOW, kf9=\EOX, kich1=\E[@, kll=\E[F, knp=\E[U, kpp=\E[V,
+       rev=\E[7m, rmso=\E[0m, rmul=\E[24m, sgr0=\E[0m, smso=\E[7m,
+       smul=\E[4m, use=ansi+arrows, use=ansi+idl,
+
 mach-bold|Mach console with bold instead of underline,
        rmul=\E[0m, smul=\E[1m, use=mach,
 mach-color|Mach console with ANSI color,
@@ -1328,34 +1351,32 @@ 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,
+       am, bce, bw, eo, km, mir, msgr, xenl, xon, NQ,
        colors#8, it#8, ncv#18, pairs#64,
        acsc=++\,\,--..00``aaffgghhiijjkkllmmnnooppqqrrssttuuvvwwxxy
             yzz{{||}}~~,
        bel=^G, blink=\E[5m, bold=\E[1m, cbt=\E[Z, clear=\Ec, cr=\r,
-       csr=\E[%i%p1%d;%p2%dr, cub=\E[%p1%dD, cub1=^H,
-       cud=\E[%p1%dB, cud1=\E[B, cuf=\E[%p1%dC, cuf1=\E[C,
-       cup=\E[%i%p1%d;%p2%dH, cuu=\E[%p1%dA, cuu1=\E[A,
+       cub=\E[%p1%dD, cub1=^H, cud=\E[%p1%dB, cud1=\E[B,
+       cuf=\E[%p1%dC, cuf1=\E[C, cuu=\E[%p1%dA, cuu1=\E[A,
        cvvis=\E[34l, dch=\E[%p1%dP, dch1=\E[P, dim=\E[2m,
-       dl=\E[%p1%dM, dl1=\E[M, ech=\E[%p1%dX, ed=\E[J, el=\E[K,
-       el1=\E[1K, flash=\Eg, home=\E[H, hpa=\E[%i%p1%dG, ht=^I,
-       ich=\E[%p1%d@, il=\E[%p1%dL, il1=\E[L, ind=\E[S,
-       invis=\E[8m, kb2=\E[G, kbs=^?, kcbt=\E[Z, kcub1=\EOD,
-       kcud1=\EOB, kcuf1=\EOC, kcuu1=\EOA, kf1=\EOP, kf10=\E[21~,
-       kf11=\E[23~, kf12=\E[24~, kf13=\E[25~, kf14=\E[26~,
-       kf15=\E[28~, kf16=\E[29~, kf17=\E[31~, kf18=\E[32~,
-       kf19=\E[33~, kf2=\EOQ, kf20=\E[34~, kf3=\EOR, kf4=\EOS,
-       kf5=\E[15~, kf6=\E[17~, kf7=\E[18~, kf8=\E[19~, kf9=\E[20~,
-       kich1=\E[2~, kmous=\E[M, kspd=^Z, nel=\r\n, op=\E[39;49m,
-       rc=\E8, rev=\E[7m, ri=\E[T, rmacs=\E[10m, rmir=\E[4l,
-       rmso=\E[27m, rmul=\E[24m, rs1=\EM\E[?1000l, sc=\E7,
+       ech=\E[%p1%dX, el1=\E[1K, flash=\Eg, hpa=\E[%i%p1%dG,
+       ht=^I, ich=\E[%p1%d@, ind=\E[S, invis=\E[8m, kb2=\E[G,
+       kbs=^?, kcbt=\E[Z, kf1=\EOP, kf10=\E[21~, kf11=\E[23~,
+       kf12=\E[24~, kf13=\E[25~, kf14=\E[26~, kf15=\E[28~,
+       kf16=\E[29~, kf17=\E[31~, kf18=\E[32~, kf19=\E[33~,
+       kf2=\EOQ, kf20=\E[34~, kf3=\EOR, kf4=\EOS, 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, rev=\E[7m, 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,
        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,
        sgr0=\E[0m, smacs=\E[11m, smir=\E[4h, smso=\E[7m,
        smul=\E[4m, vpa=\E[%i%p1%dd, grbom=\E[>1l, gsbom=\E[>1h,
-       use=vt220+pcedit, use=ecma+index, use=ecma+italics,
-       use=vt220+cvis,
+       use=ansi+apparrows, use=ansi+csr, use=ansi+cup,
+       use=ansi+erase, use=ansi+idl, use=vt220+pcedit,
+       use=ecma+index, use=ecma+italics, use=vt220+cvis,
 
 #### QNX
 #
@@ -1458,25 +1479,23 @@ qnxt2|QNX 2.15 serial terminal,
 # QNX ANSI terminal definition
 qansi-g|QNX ANSI,
        am, eslok, hs, xon,
-       colors#8, cols#80, it#8, lines#25, ncv#19, pairs#64, wsl#80,
+       colors#8, cols#80, lines#25, ncv#19, pairs#64, wsl#80,
        acsc=Oa``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~,
-       bel=^G, blink=\E[5m, bold=\E[1m, cbt=\E[Z, clear=\E[2J\E[H,
-       cr=\r, csr=\E[%i%p1%d;%p2%dr, cub=\E[%p1%dD, cub1=\E[D,
+       bel=^G, blink=\E[5m, bold=\E[1m, clear=\E[2J\E[H, cr=\r,
+       csr=\E[%i%p1%d;%p2%dr, cub=\E[%p1%dD, cub1=\E[D,
        cud=\E[%p1%dB, cud1=\E[B, cuf=\E[%p1%dC, cuf1=\E[C,
        cup=\E[%i%p1%d;%p2%dH$<5>, cuu=\E[%p1%dA, cuu1=\E[A,
        cvvis=\E[?12;25h, dch=\E[%p1%dP, dch1=\E[P, dim=\E[2m,
        dl=\E[%p1%dM, dl1=\E[1M, dsl=\E[r, ech=\E[%p1%dX, ed=\E[J,
        el=\E[K, el1=\E[1K\E[X, flash=\E[?5h$<200>\E[?5l,
-       fsl=\E[?6h\E8, home=\E[H, hpa=\E[%i%p1%dG, ht=^I, hts=\EH,
-       ich=\E[%p1%d@, ich1=\E[1@, il=\E[%p1%dL, il1=\E[1L,
-       ind=\E[S, invis=\E[9m,
+       fsl=\E[?6h\E8, home=\E[H, hpa=\E[%i%p1%dG, ich=\E[%p1%d@,
+       ich1=\E[1@, il=\E[%p1%dL, il1=\E[1L, ind=\E[S, invis=\E[9m,
        is2=\E>\E[?1l\E[?7h\E[0;10;39;49m, is3=\E(B\E)0,
        kBEG=\ENn, kCAN=\E[s, kCMD=\E[t, kCPY=\ENs, kCRT=\ENt,
        kDL=\ENv, kEXT=\ENw, kFND=\ENx, kHLP=\ENy, kHOM=\E[h,
        kLFT=\E[d, kNXT=\E[u, kOPT=\ENz, kPRV=\E[v, kRIT=\E[c,
-       kbs=^H, kcan=\E[S, kcbt=\E[Z, kclo=\ENc, kclr=\ENa,
-       kcmd=\E[G, kcpy=\E[g, kctab=\E[z, kcub1=\E[D, kcud1=\E[B,
-       kcuf1=\E[C, kcuu1=\E[A, kdch1=\E[P, kdl1=\E[p, kend=\E[Y,
+       kcan=\E[S, kcbt=\E[Z, kclo=\ENc, kclr=\ENa, kcmd=\E[G,
+       kcpy=\E[g, kctab=\E[z, kdch1=\E[P, kdl1=\E[p, kend=\E[Y,
        kext=\E[y, kf1=\EOP, kf10=\EOY, kf11=\EOZ, kf12=\EOA,
        kf13=\EOp, kf14=\EOq, kf15=\EOr, kf16=\EOs, kf17=\EOt,
        kf18=\EOu, kf19=\EOv, kf2=\EOQ, kf20=\EOw, kf21=\EOx,
@@ -1488,13 +1507,13 @@ qansi-g|QNX ANSI,
        kf42=\E[22~, kf43=\E[23~, kf44=\E[24~, kf45=\E[25~,
        kf46=\E[26~, kf47=\E[27~, kf48=\E[28~, kf5=\EOT, kf6=\EOU,
        kf7=\EOV, kf8=\EOW, kf9=\EOX, kfnd=\ENf, khlp=\ENh,
-       khome=\E[H, khts=\ENb, kich1=\E[@, kil1=\E[`, kind=\E[a,
-       kmov=\ENi, kmrk=\ENm, kmsg=\ENe, knp=\E[U, kopn=\ENo,
-       kopt=\ENk, kpp=\E[V, kref=\ENl, kres=\ENp, krfr=\ENg,
-       kri=\E[b, krpl=\ENr, krst=\ENj, ksav=\ENq, kslt=\E[T,
-       ktbc=\ENd, kund=\ENu, ll=\E[99H, nel=\EE, op=\E[39;49m,
-       rev=\E[7m, ri=\E[T, rmacs=^O, rmam=\E[?7l, rmso=\E[27m,
-       rmul=\E[24m, rs1=\017\E[?7h\E[0;39;49m$<2>\E>\E[?1l,
+       khts=\ENb, kich1=\E[@, kil1=\E[`, kind=\E[a, kmov=\ENi,
+       kmrk=\ENm, kmsg=\ENe, knp=\E[U, kopn=\ENo, kopt=\ENk,
+       kpp=\E[V, kref=\ENl, kres=\ENp, krfr=\ENg, kri=\E[b,
+       krpl=\ENr, krst=\ENj, ksav=\ENq, kslt=\E[T, ktbc=\ENd,
+       kund=\ENu, ll=\E[99H, nel=\EE, op=\E[39;49m, rev=\E[7m,
+       ri=\E[T, rmacs=^O, rmam=\E[?7l, rmso=\E[27m, rmul=\E[24m,
+       rs1=\017\E[?7h\E[0;39;49m$<2>\E>\E[?1l,
        rs2=\E>\E[?3l\E[?4l\E[?5l\E[?7h\E[?8h,
        setb=\E[4%?%p1%{1}%=%t4%e%p1%{3}%=%t6%e%p1%{4}%=%t1%e%p1%{6}
             %=%t3%e%p1%d%;m,
@@ -1503,9 +1522,9 @@ qansi-g|QNX ANSI,
        sgr=\E[0%?%p6%t;1%;%?%p5%t;2%;%?%p2%t;4%;%?%p4%t;5%;%?%p3%p1
            %|%t;7%;%?%p7%t;9%;m%?%p9%t\016%e\017%;,
        sgr0=\E[m\017, smacs=^N, smam=\E[?7h, smso=\E[7m,
-       smul=\E[4m, tbc=\E[3g,
-       tsl=\E7\E1;24r\E[?6l\E[25;%i%p1%dH, use=ansi+rep,
-       use=att610+cvis0, use=ecma+index,
+       smul=\E[4m, tsl=\E7\E1;24r\E[?6l\E[25;%i%p1%dH,
+       use=ansi+arrows, use=ansi+rep, use=ansi+inittabs,
+       use=att610+cvis0, use=decid+cpr, use=ecma+index,
 #
 qansi|QNX ANSI with console writes,
        daisy, xhpa, use=qansi-g,
@@ -1554,7 +1573,7 @@ qansi-w|QNX ANSI for windows,
 #
 # Console documents only 3 attributes can be set with SGR (so we don't use sgr).
 scoansi-old|SCO Extended ANSI standard crt (5.0.5),
-       OTbs, am, bce, eo, xon,
+       OTbs, am, bce, eo, xon, NQ,
        colors#8, cols#80, it#8, lines#25, pairs#64,
        acsc=+/\,.-\230.\2310[5566778899::;;<<==>>FFGGHHIIJJKKLLMMNN
             OOPPQQRRSSTTUUVVWWXX`\204a0fxgqh2jYk?lZm@nEqDtCu4vAwBx3
@@ -1564,26 +1583,25 @@ scoansi-old|SCO Extended ANSI standard crt (5.0.5),
        cub=\E[%p1%dD, cub1=^H, cud=\E[%p1%dB, cud1=\E[B,
        cuf=\E[%p1%dC, cuf1=\E[C, cup=\E[%i%p1%d;%p2%dH,
        cuu=\E[%p1%dA, cuu1=\E[A, cvvis=\E[=0;12C, dch=\E[%p1%dP,
-       dch1=\E[P, dispc=\E[=%p1%dg, dl=\E[%p1%dM, dl1=\E[M,
-       ed=\E[m\E[J, el=\E[m\E[K, el1=\E[1K, home=\E[H, ht=^I,
-       hts=\EH, ich=\E[%p1%d@, ich1=\E[@, il=\E[%p1%dL, il1=\E[L,
-       ind=\E[S, invis=\E[8m, kbeg=\E[E, kbs=^H, kcbt=\E[Z,
-       kcub1=\E[D, kcud1=\E[B, kcuf1=\E[C, kcuu1=\E[A, kdch1=^?,
-       kend=\E[F, kf1=\E[M, kf10=\E[V, kf11=\E[W, kf12=\E[X,
-       kf13=\E[Y, kf15=\E[a, kf16=\E[b, kf17=\E[c, kf18=\E[d,
-       kf19=\E[e, kf2=\E[N, kf20=\E[f, kf21=\E[g, kf22=\E[h,
-       kf23=\E[i, kf24=\E[j, kf25=\E[k, kf26=\E[l, kf27=\E[m,
-       kf28=\E[n, kf29=\E[o, kf3=\E[O, kf30=\E[p, kf31=\E[q,
-       kf32=\E[r, kf33=\E[s, kf34=\E[t, kf35=\E[u, kf36=\E[v,
-       kf37=\E[w, kf38=\E[x, kf39=\E[y, kf4=\E[P, kf40=\E[z,
-       kf41=\E[@, kf42=\E[[, kf43=\E[\\, kf44=\E[], kf45=\E[\^,
-       kf46=\E[_, kf47=\E[`, kf48=\E[{, kf5=\E[Q, kf6=\E[R,
-       kf7=\E[S, kf8=\E[T, kf9=\E[U, khome=\E[H, kich1=\E[L,
-       knp=\E[G, kpp=\E[I, op=\E[0;37;40m, rc=\E8, rev=\E[7m,
-       ri=\E[T, rmacs=\E[10m, rmam=\E[?7l, rmso=\E[m, rmul=\E[m,
-       sc=\E7, setab=\E[4%p1%dm, setaf=\E[3%p1%dm,
-       sgr0=\E[0;10m, smacs=\E[12m, smam=\E[?7h, smso=\E[7m,
-       smul=\E[4m, use=ecma+index,
+       dch1=\E[P, dispc=\E[=%p1%dg, ed=\E[m\E[J, el=\E[m\E[K,
+       el1=\E[1K, home=\E[H, ht=^I, hts=\EH, ich=\E[%p1%d@,
+       ich1=\E[@, ind=\E[S, invis=\E[8m, kbeg=\E[E, kcbt=\E[Z,
+       kdch1=^?, kend=\E[F, kf1=\E[M, kf10=\E[V, kf11=\E[W,
+       kf12=\E[X, kf13=\E[Y, kf15=\E[a, kf16=\E[b, kf17=\E[c,
+       kf18=\E[d, kf19=\E[e, kf2=\E[N, kf20=\E[f, kf21=\E[g,
+       kf22=\E[h, kf23=\E[i, kf24=\E[j, kf25=\E[k, kf26=\E[l,
+       kf27=\E[m, kf28=\E[n, kf29=\E[o, kf3=\E[O, kf30=\E[p,
+       kf31=\E[q, kf32=\E[r, kf33=\E[s, kf34=\E[t, kf35=\E[u,
+       kf36=\E[v, kf37=\E[w, kf38=\E[x, kf39=\E[y, kf4=\E[P,
+       kf40=\E[z, kf41=\E[@, kf42=\E[[, kf43=\E[\\, kf44=\E[],
+       kf45=\E[\^, kf46=\E[_, kf47=\E[`, kf48=\E[{, kf5=\E[Q,
+       kf6=\E[R, kf7=\E[S, kf8=\E[T, kf9=\E[U, kich1=\E[L, knp=\E[G,
+       kpp=\E[I, op=\E[0;37;40m, rc=\E8, rev=\E[7m, ri=\E[T,
+       rmacs=\E[10m, rmam=\E[?7l, rmso=\E[m, rmul=\E[m, sc=\E7,
+       setab=\E[4%p1%dm, setaf=\E[3%p1%dm, sgr0=\E[0;10m,
+       smacs=\E[12m, smam=\E[?7h, smso=\E[7m, smul=\E[4m,
+       use=ansi+arrows, use=ansi+idl, use=ecma+index,
+
 scoansi-new|SCO Extended ANSI standard crt (5.0.6),
        km,
        civis=\E[=0c, cnorm=\E[=1c, csr=\E[%i%p1%d;%p2%dr,
@@ -1643,33 +1661,31 @@ iris-ansi|iris-ansi-net|IRIS emulating 40 line ANSI terminal (almost VT100),
        cnorm=\E[9/y\E[12/y\E[=6l, cr=\r, cub=\E[%p1%dD,
        cub1=\E[D, 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, cvvis=\E[10/y\E[=1h\E[=2l\E[=6h,
-       dl=\E[%p1%dM, dl1=\E[M, ed=\E[J, el=\E[K, el1=\E[1K,
-       home=\E[H, ht=^I, hts=\EH, il=\E[%p1%dL, il1=\E[L, ind=\ED,
+       cuu1=\E[A, cvvis=\E[10/y\E[=1h\E[=2l\E[=6h, ed=\E[J,
+       el=\E[K, el1=\E[1K, home=\E[H, ht=^I, hts=\EH, ind=\ED,
        is2=\E[?1l\E>\E[?7h\E[100g\E[0m\E7\E[r\E8, kDC=\E[P,
        kEND=\E[147q, kHOM=\E[143q, kLFT=\E[158q, kPRT=\E[210q,
-       kRIT=\E[167q, kSPD=\E[218q, kbs=^H, kcbt=\E[Z, kcub1=\E[D,
-       kcud1=\E[B, kcuf1=\E[C, kcuu1=\E[A, kdch1=^?, kend=\E[146q,
-       kent=\r, kf1=\E[001q, kf10=\E[010q, kf11=\E[011q,
-       kf12=\E[012q, kf2=\E[002q, kf3=\E[003q, kf4=\E[004q,
-       kf5=\E[005q, kf6=\E[006q, kf7=\E[007q, kf8=\E[008q,
-       kf9=\E[009q, khome=\E[H, kich1=\E[139q, knp=\E[154q,
+       kRIT=\E[167q, kSPD=\E[218q, kcbt=\E[Z, kdch1=^?,
+       kend=\E[146q, kent=\r, kf1=\E[001q, kf10=\E[010q,
+       kf11=\E[011q, kf12=\E[012q, kf2=\E[002q, kf3=\E[003q,
+       kf4=\E[004q, kf5=\E[005q, kf6=\E[006q, kf7=\E[007q,
+       kf8=\E[008q, kf9=\E[009q, kich1=\E[139q, knp=\E[154q,
        kpp=\E[150q, kprt=\E[209q, krmir=\E[146q, kspd=\E[217q,
        nel=\EE, pfkey=\EP101;%p1%d.y%p2%s\E\\, rc=\E8,
        rev=\E[7m, ri=\EM, rmam=\E[?7l, rmso=\E[m, rmul=\E[m, sc=\E7,
        sgr0=\E[m, smam=\E[?7h, smso=\E[1;7m, smul=\E[4m,
-       tbc=\E[3g,
+       tbc=\E[3g, use=ansi+arrows, use=ansi+idl,
+
 iris-ansi-ap|IRIS ANSI in application-keypad mode,
-       is2=\E[?1l\E=\E[?7h, kent=\EOM, kf10=\E[010q,
-       kf11=\E[011q, kf12=\E[012q, kf9=\E[009q, use=iris-ansi,
+       is2=\E[?1l\E=\E[?7h, kent=\EOM, use=iris-ansi,
 
 # From the man-page, this is a quasi-vt100 emulator that runs on SGI's IRIX
 # (T.Dickey 98/1/24)
 iris-color|xwsh|IRIX ANSI with color,
        ncv#33,
        csr=\E[%i%p1%d;%p2%dr, dch=\E[%p1%dP, dim=\E[2m,
-       ech=\E[%p1%dX, ich=\E[%p1%d@, rc=\E8, rmul=\E[24m, rs1=\Ec,
-       rs2=\E>\E[?3l\E[?4l\E[?5l\E[?7h\E[?8h, sc=\E7,
+       ech=\E[%p1%dX, ich=\E[%p1%d@, rmul=\E[24m, rs1=\Ec,
+       rs2=\E>\E[?3l\E[?4l\E[?5l\E[?7h\E[?8h,
        use=ecma+italics, use=vt100+enq, use=klone+color,
        use=iris-ansi-ap,
 
@@ -1695,15 +1711,14 @@ iris-color|xwsh|IRIX ANSI with color,
 #              CSI ? 5 h Reverse Video (DECSCNM).
 #
 pccon+keys|OpenBSD PC keyboard keys,
-       kbs=^?, kcub1=\E[D, kcud1=\E[B, kcuf1=\E[C, kcuu1=\E[A,
-       kdch1=\E[3~, kend=\E[8~, kent=\r, kf1=\E[11~, kf10=\E[21~,
-       kf11=\E[23~, kf12=\E[24~, kf13=\E[25~, kf14=\E[26~,
-       kf15=\E[28~, kf16=\E[29~, kf17=\E[31~, kf18=\E[32~,
-       kf19=\E[33~, kf2=\E[12~, kf20=\E[34~, kf21=\E[35~,
-       kf22=\E[36~, kf23=\E[37~, kf24=\E[38~, kf3=\E[13~,
-       kf4=\E[14~, kf5=\E[15~, kf6=\E[17~, kf7=\E[18~, kf8=\E[19~,
-       kf9=\E[20~, khome=\E[7~, kich1=\E[2~, knp=\E[6~, kpp=\E[5~,
-       krfr=^R,
+       kbs=^?, kdch1=\E[3~, kend=\E[8~, kent=\r, kf1=\E[11~,
+       kf10=\E[21~, kf11=\E[23~, kf12=\E[24~, kf13=\E[25~,
+       kf14=\E[26~, kf15=\E[28~, kf16=\E[29~, kf17=\E[31~,
+       kf18=\E[32~, kf19=\E[33~, kf2=\E[12~, kf20=\E[34~,
+       kf21=\E[35~, kf22=\E[36~, kf23=\E[37~, kf24=\E[38~,
+       kf3=\E[13~, kf4=\E[14~, kf5=\E[15~, kf6=\E[17~, kf7=\E[18~,
+       kf8=\E[19~, kf9=\E[20~, khome=\E[7~, kich1=\E[2~,
+       knp=\E[6~, kpp=\E[5~, krfr=^R, use=ansi+arrows,
 pccon+sgr+acs0|sgr and simple ASCII pseudographics for OpenBSD PC console,
        acsc=+>\,<-\^.v0#`+a:f\\h#i#j+k+l+m+n+o~p-q-r-s_t+u+v+w+x|y#
             z#{*|!}#~o,
@@ -1728,15 +1743,14 @@ pccon+colors|ANSI colors for OpenBSD PC console,
 pccon+base|base capabilities for OpenBSD PC console,
        am, km, mc5i, msgr, npc, nxon, xenl, xon,
        cols#80, it#8, lines#24,
-       bel=^G, clear=\E[H\E[J, cr=\r, csr=\E[%i%p1%d;%p2%dr,
-       cub=\E[%p1%dD, cub1=^H, cud=\E[%p1%dB, cud1=\n,
-       cuf=\E[%p1%dC, cuf1=\E[C, cup=\E[%i%p1%d;%p2%dH,
+       bel=^G, cr=\r, cub=\E[%p1%dD, 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, dch=\E[%p1%dP, dch1=\E[P,
-       dl=\E[%p1%dM, dl1=\E[M, ech=\E[%p1%dX, ed=\E[J, el=\E[K,
-       el1=\E[1K, home=\E[H, ht=^I, hts=\EH, ich=\E[%p1%d@,
-       il=\E[%p1%dL, il1=\E[L, ind=\ED, nel=\EE, rc=\E8, ri=\EM,
-       rmam=\E[?7l, rmul=\E[24m, rs2=\Ec, sc=\E7, smam=\E[?7h,
-       smul=\E[4m, tbc=\E[3g, u6=\E[%i%d;%dR, u7=\E[6n,
+       ech=\E[%p1%dX, el1=\E[1K, home=\E[H, ht=^I, hts=\EH,
+       ich=\E[%p1%d@, ind=\ED, nel=\EE, ri=\EM, rmam=\E[?7l,
+       rmul=\E[24m, rs2=\Ec, smam=\E[?7h, smul=\E[4m, tbc=\E[3g,
+       use=ansi+cpr, use=ansi+csr, use=ansi+erase, use=ansi+idl,
+
 pccon0-m|OpenBSD PC console without colors & with simple ASCII pseudographics,
        use=pccon+sgr+acs0, use=pccon+base, use=pccon+keys,
 pccon0|OpenBSD PC console with simple ASCII pseudographics,
@@ -1765,25 +1779,23 @@ pcvtXX|pcvt VT200 emulator (DEC VT220),
        it#8, vt#3,
        acsc=++\,\,--..00``aaffgghhiijjkkllmmnnooppqqrrssttuuvvwwxxy
             yzz~~,
-       bel=^G, blink=\E[5m, bold=\E[1m, clear=\E[H\E[J, cr=\r,
-       csr=\E[%i%p1%d;%p2%dr, cub=\E[%p1%dD, cub1=^H,
-       cud=\E[%p1%dB, cud1=\E[B, cuf=\E[%p1%dC, cuf1=\E[C,
-       cup=\E[%i%p1%d;%p2%dH, cuu=\E[%p1%dA, cuu1=\E[A,
-       dch=\E[%p1%dP, dch1=\E[P, dl=\E[%p1%dM, dl1=\E[M, ed=\E[J,
-       el=\E[K, el1=\E[1K, home=\E[H, ht=^I, hts=\EH, ich=\E[%p1%d@,
-       il=\E[%p1%dL, il1=\E[L, ind=\ED,
+       bel=^G, blink=\E[5m, bold=\E[1m, cr=\r, cub=\E[%p1%dD,
+       cub1=^H, cud=\E[%p1%dB, cud1=\E[B, cuf=\E[%p1%dC,
+       cuf1=\E[C, cup=\E[%i%p1%d;%p2%dH, cuu=\E[%p1%dA,
+       cuu1=\E[A, dch=\E[%p1%dP, dch1=\E[P, el1=\E[1K, home=\E[H,
+       ht=^I, hts=\EH, ich=\E[%p1%d@, ind=\ED,
        is1=\E>\E[?3l\E[?4l\E[?5l\E[?7h\E[?8h, kbs=^?,
-       kcub1=\EOD, kcud1=\EOB, kcuf1=\EOC, kcuu1=\EOA,
        kdch1=\E[3~, kf1=\E[17~, kf2=\E[18~, kf3=\E[19~,
        kf4=\E[20~, kf5=\E[21~, kf6=\E[23~, kf7=\E[24~, kf8=\E[25~,
        khome=\E[1~, kich1=\E[2~, kll=\E[4~, knp=\E[6~, kpp=\E[5~,
-       nel=\EE, rc=\E8, rev=\E[7m, rf=/usr/share/tabset/vt100,
-       ri=\EM, rmacs=\E(B, rmam=\E[?7l, rmir=\E[4l,
-       rmkx=\E[?1l\E>, rmso=\E[27m, rmul=\E[24m,
-       rs1=\Ec\E>\E[?3l\E[?4l\E[?5l\E[?7h\E[?8h, sc=\E7,
-       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,
-       use=ecma+index, use=vt220+cvis,
+       nel=\EE, rev=\E[7m, rf=/usr/share/tabset/vt100, ri=\EM,
+       rmacs=\E(B, rmam=\E[?7l, rmir=\E[4l, rmkx=\E[?1l\E>,
+       rmso=\E[27m, rmul=\E[24m,
+       rs1=\Ec\E>\E[?3l\E[?4l\E[?5l\E[?7h\E[?8h, 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, use=ansi+apparrows,
+       use=ansi+csr, use=ansi+erase, use=ansi+idl,
+       use=decid+cpr, use=ecma+index, use=vt220+cvis,
 
 #      NetBSD/FreeBSD VT220 terminal emulator console (pc keyboard & monitor)
 #      termcap entries for pure VT220-Emulation and 25, 28, 35, 40, 43 and
@@ -1849,9 +1861,8 @@ arm100|arm100-am|Arm(RiscPC) ncurses compatible (for 640x480),
        cols#80, it#8, lines#30,
        acsc=``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~,
        bel=^G, blink=\E[5m$<2>, bold=\E[1m$<2>,
-       clear=\E[H\E[J$<50>, cr=\r, csr=\E[%i%p1%d;%p2%dr,
-       cub=\E[%p1%dD, cub1=^H, cud=\E[%p1%dB, cud1=\n,
-       cuf=\E[%p1%dC, cuf1=\E[C$<2>,
+       clear=\E[H\E[J$<50>, cr=\r, cub=\E[%p1%dD, cub1=^H,
+       cud=\E[%p1%dB, cud1=\n, cuf=\E[%p1%dC, cuf1=\E[C$<2>,
        cup=\E[%i%p1%d;%p2%dH$<5>, cuu=\E[%p1%dA,
        cuu1=\E[A$<2>, ed=\E[J$<50>, el=\E[K$<3>, el1=\E[1K$<3>,
        enacs=\E(B\E)0, home=\E[H, ht=^I, hts=\EH, ind=\n,
@@ -1859,15 +1870,14 @@ arm100|arm100-am|Arm(RiscPC) ncurses compatible (for 640x480),
        kc1=\E[p, kc3=\E[n, kcub1=\E[D, kcud1=\E[B, kcuf1=\E[C,
        kcuu1=\E[A, kent=\E[M, kf0=\E[y, kf1=\E[P, kf10=\E[x,
        kf2=\E[Q, kf3=\E[R, kf4=\E[S, kf5=\E[t, kf6=\E[u, kf7=\E[v,
-       kf8=\E[l, kf9=\E[w, rc=\E8, rev=\E[7m$<2>, ri=\EM$<5>,
-       rmacs=^O, rmam=\E[?7l, rmkx=\E[?1l\E>, rmso=\E[m$<2>,
+       kf8=\E[l, kf9=\E[w, rev=\E[7m$<2>, ri=\EM$<5>, rmacs=^O,
+       rmam=\E[?7l, rmkx=\E[?1l\E>, rmso=\E[m$<2>,
        rmul=\E[m$<2>, rs2=\E>\E[?3l\E[?4l\E[?5l\E[?7h\E[?8h,
-       sc=\E7,
        sgr=\E[0%?%p1%p6%|%t;1%;%?%p2%t;4%;%?%p1%p3%|%t;7%;%?%p4%t;5
            %;%?%p7%t;8%;m%?%p9%t\016%e\017%;$<2>,
        sgr0=\E[m\017$<2>, smacs=^N, smam=\E[?7h, smkx=\E[?1h\E=,
-       smso=\E[7m$<2>, smul=\E[4m$<2>, tbc=\E[3g, use=ecma+sgr,
-       use=klone+color,
+       smso=\E[7m$<2>, smul=\E[4m$<2>, tbc=\E[3g, use=ansi+csr,
+       use=ecma+sgr, use=klone+color,
 
 arm100-w|arm100-wam|Arm(RiscPC) ncurses compatible (for 1024x768),
        cols#132, lines#50, use=arm100,
@@ -1915,13 +1925,12 @@ ofcons|DNARD OpenFirmware console,
 # the level of detail in a termcap, it is a passable emulator, since ECH does
 # work.  Don't use it on a VMS system -TD
 wsvt25|NetBSD wscons in 25 line DEC VT220 mode,
-       bce, msgr,
-       colors#8, cols#80, it#8, lines#25, ncv#2, pairs#64,
+       bce,
+       colors#8, lines#25, ncv#2, pairs#64,
        is2=\E[r\E[25;1H, kdch1=\E[3~, kend=\E[8~, kf1=\E[11~,
-       kf10=\E[21~, kf11=\E[23~, kf12=\E[24~, kf2=\E[12~,
-       kf3=\E[13~, kf4=\E[14~, kf5=\E[15~, kf6=\E[17~, kf7=\E[18~,
-       kf8=\E[19~, kf9=\E[20~, khome=\E[7~, op=\E[m, rs1=\Ec,
-       setab=\E[4%p1%dm, setaf=\E[3%p1%dm, use=vt220,
+       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,
+       setaf=\E[3%p1%dm, use=vt220,
 
 wsvt25m|NetBSD wscons in 25 line DEC VT220 mode with Meta,
        km, use=wsvt25,
@@ -1980,22 +1989,20 @@ rcons-color|BSD rasterconsole with ANSI color,
 mgterm|MGL/MGL2 MobileGear Graphic Library,
        OTbs, OTpt, am, bce, bw, eo, km, msgr, npc,
        colors#8, cols#80, it#8, lines#18, pairs#64,
-       bel=^G, blink=\E[5m, bold=\E[1m, cbt=\E[Z, clear=\E[H\E[J,
-       cr=\r, csr=\E[%i%p1%d;%p2%dr, cub=\E[%p1%dD, cub1=^H,
-       cud=\E[%p1%dB, cud1=\E[B, cuf=\E[%p1%dC, cuf1=\E[C,
-       cup=\E[%i%p1%d;%p2%dH, cuu=\E[%p1%dA, cuu1=\E[A,
-       dch=\E[%p1%dP, dch1=\E[P, dim=\E[30;1m, dl=\E[%p1%dM,
-       dl1=\E[M, ech=\E[%p1%dX, ed=\E[J, el=\E[K, el1=\E[1K,
-       home=\E[H, hpa=\E[%i%p1%d`, ht=^I, ich=\E[%p1%d@,
-       ich1=\E[@, il=\E[%p1%dL, il1=\E[L, ind=\E[S, kb2=\E[E,
-       kbs=^H, kcbt=\E[Z, kcub1=\E[D, kcud1=\E[B, kcuf1=\E[C,
-       kcuu1=\E[A, kdch1=^?, kend=\E[F, kf1=\E[M, kf10=\E[V,
-       kf11=\E[W, kf12=\E[X, kf2=\E[N, kf3=\E[O, kf4=\E[P, kf5=\E[Q,
-       kf6=\E[R, kf7=\E[S, kf8=\E[T, kf9=\E[U, khome=\E[H,
-       kich1=\E[L, knp=\E[G, kpp=\E[I, nel=\E[E, op=\E[x, rc=\E8,
-       rev=\E[7m, ri=\E[T, rmso=\E[m, rs2=\E[x\E[m\Ec, sc=\E7,
-       setb=\E[4%p1%dm, setf=\E[3%p1%dm, sgr0=\E[m, smso=\E[7m,
-       vpa=\E[%i%p1%dd, use=ecma+index,
+       bel=^G, blink=\E[5m, bold=\E[1m, cbt=\E[Z, cr=\r,
+       cub=\E[%p1%dD, cub1=^H, cud=\E[%p1%dB, cud1=\E[B,
+       cuf=\E[%p1%dC, cuf1=\E[C, cup=\E[%i%p1%d;%p2%dH,
+       cuu=\E[%p1%dA, cuu1=\E[A, dch=\E[%p1%dP, dch1=\E[P,
+       dim=\E[30;1m, ech=\E[%p1%dX, el1=\E[1K, home=\E[H,
+       hpa=\E[%i%p1%d`, ht=^I, ich=\E[%p1%d@, ich1=\E[@, ind=\E[S,
+       kb2=\E[E, kcbt=\E[Z, kdch1=^?, kend=\E[F, kf1=\E[M,
+       kf10=\E[V, kf11=\E[W, kf12=\E[X, kf2=\E[N, kf3=\E[O,
+       kf4=\E[P, kf5=\E[Q, kf6=\E[R, kf7=\E[S, kf8=\E[T, kf9=\E[U,
+       kich1=\E[L, knp=\E[G, kpp=\E[I, nel=\E[E, op=\E[x, rev=\E[7m,
+       ri=\E[T, rmso=\E[m, rs2=\E[x\E[m\Ec, setb=\E[4%p1%dm,
+       setf=\E[3%p1%dm, sgr0=\E[m, smso=\E[7m, vpa=\E[%i%p1%dd,
+       use=ansi+arrows, use=ansi+csr, use=ansi+erase,
+       use=ansi+idl, use=ecma+index,
 
 #### FreeBSD console entries
 
@@ -2032,32 +2039,30 @@ mgterm|MGL/MGL2 MobileGear Graphic Library,
 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,
-       bel=^G, blink=\E[5m, bold=\E[1m, cbt=\E[Z, clear=\E[H\E[J,
-       cnorm=\E[=0C, cr=\r, cub=\E[%p1%dD, cub1=^H, cud=\E[%p1%dB,
-       cud1=\E[B, cuf=\E[%p1%dC, cuf1=\E[C,
-       cup=\E[%i%p1%d;%p2%dH, cuu=\E[%p1%dA, cuu1=\E[A,
-       cvvis=\E[=1C, dch=\E[%p1%dP, dch1=\E[P, dim=\E[30;1m,
-       dl=\E[%p1%dM, dl1=\E[M, ech=\E[%p1%dX, ed=\E[J, el=\E[K,
-       home=\E[H, hpa=\E[%i%p1%d`, ht=^I, ich=\E[%p1%d@,
-       ich1=\E[@, il=\E[%p1%dL, il1=\E[L, ind=\E[S, kb2=\E[E,
-       kbs=^H, kcbt=\E[Z, kcub1=\E[D, kcud1=\E[B, kcuf1=\E[C,
-       kcuu1=\E[A, kdch1=^?, kend=\E[F, kf1=\E[M, kf10=\E[V,
-       kf11=\E[W, kf12=\E[X, kf13=\E[Y, kf14=\E[Z, kf15=\E[a,
-       kf16=\E[b, kf17=\E[c, kf18=\E[d, kf19=\E[e, kf2=\E[N,
-       kf20=\E[f, kf21=\E[g, kf22=\E[h, kf23=\E[i, kf24=\E[j,
-       kf25=\E[k, kf26=\E[l, kf27=\E[m, kf28=\E[n, kf29=\E[o,
-       kf3=\E[O, kf30=\E[p, kf31=\E[q, kf32=\E[r, kf33=\E[s,
-       kf34=\E[t, kf35=\E[u, kf36=\E[v, kf37=\E[w, kf38=\E[x,
-       kf39=\E[y, kf4=\E[P, kf40=\E[z, kf41=\E[@, kf42=\E[[,
-       kf43=\E[\\, kf44=\E[], kf45=\E[\^, kf46=\E[_, kf47=\E[`,
-       kf48=\E[{, kf5=\E[Q, kf6=\E[R, kf7=\E[S, kf8=\E[T, kf9=\E[U,
-       khome=\E[H, kich1=\E[L, knp=\E[G, kpp=\E[I, 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,
+       bel=^G, blink=\E[5m, bold=\E[1m, cbt=\E[Z, cnorm=\E[=0C,
+       cr=\r, cub=\E[%p1%dD, cub1=^H, cud=\E[%p1%dB, cud1=\E[B,
+       cuf=\E[%p1%dC, cuf1=\E[C, cup=\E[%i%p1%d;%p2%dH,
+       cuu=\E[%p1%dA, cuu1=\E[A, cvvis=\E[=1C, dch=\E[%p1%dP,
+       dch1=\E[P, dim=\E[30;1m, ech=\E[%p1%dX, home=\E[H,
+       hpa=\E[%i%p1%d`, ht=^I, ich=\E[%p1%d@, ich1=\E[@, ind=\E[S,
+       kb2=\E[E, kcbt=\E[Z, kdch1=^?, kend=\E[F, kf1=\E[M,
+       kf10=\E[V, kf11=\E[W, kf12=\E[X, kf13=\E[Y, kf14=\E[Z,
+       kf15=\E[a, kf16=\E[b, kf17=\E[c, kf18=\E[d, kf19=\E[e,
+       kf2=\E[N, kf20=\E[f, kf21=\E[g, kf22=\E[h, kf23=\E[i,
+       kf24=\E[j, kf25=\E[k, kf26=\E[l, kf27=\E[m, kf28=\E[n,
+       kf29=\E[o, kf3=\E[O, kf30=\E[p, kf31=\E[q, kf32=\E[r,
+       kf33=\E[s, kf34=\E[t, kf35=\E[u, kf36=\E[v, kf37=\E[w,
+       kf38=\E[x, kf39=\E[y, kf4=\E[P, kf40=\E[z, kf41=\E[@,
+       kf42=\E[[, kf43=\E[\\, kf44=\E[], kf45=\E[\^, kf46=\E[_,
+       kf47=\E[`, kf48=\E[{, kf5=\E[Q, kf6=\E[R, kf7=\E[S, kf8=\E[T,
+       kf9=\E[U, 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,
        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=ecma+index,
+       sgr0=\E[m, smso=\E[7m, vpa=\E[%i%p1%dd, use=ansi+arrows,
+       use=ansi+erase, use=ansi+idl, use=ecma+index,
+
 cons25|ansis|ansi80x25|FreeBSD console (25-line ANSI mode),
        acsc=-\030.^Y0\333`\004a\260f\370g\361h\261i\025j\331k\277l
             \332m\300n\305q\304t\303u\264v\301w\302x\263y\363z\362~
@@ -2215,19 +2220,18 @@ cons60l1-m|cons60-iso-m|FreeBSD console w/iso 8859-1 chars (60-line mono),
 # Those are removed from this entry's acsc string to avoid confusion.
 # The resulting description provides correct line-drawing and function-keys -TD
 teken-2018|teken as of 2018,
-       bw@, mir, xenl,
+       bw@, mir, xenl, NQ,
        acsc=0\333a\260f\370g\361h\261j\331k\277l\332m\300n\305q
             \304t\303u\264v\301w\302x\263y\363z\362~\371,
-       cvvis@, hpa=\E[%i%p1%dG, hts=\EH, kcub1=\E[D, kcud1=\E[B,
-       kcuf1=\E[C, kcuu1=\E[A, kdch1=\E[3~, kend=\E[F, kent=\r,
+       cvvis@, hpa=\E[%i%p1%dG, hts=\EH, kdch1=\E[3~, kent=\r,
        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[H, kich1=\E[2~, knp=\E[6~,
-       kpp=\E[5~, rmir=\E[4l, smir=\E[4h, tbc=\E[3g,
-       vpa=\E[%i%p1%dd, use=vt220+cvis, use=cons25,
+       kf8=\E[19~, kf9=\E[20~, kich1=\E[2~, knp=\E[6~, kpp=\E[5~,
+       rmir=\E[4l, smir=\E[4h, tbc=\E[3g, use=vt220+cvis,
+       use=cons25,
 
 teken-2022|teken as of 2022,
-       am, bce, eo, mir, msgr, npc,
+       am, bce, eo, mir, msgr, npc, NQ,
        colors#8, cols#80, it#8, lines#25, ncv#21, pairs#64, 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,
@@ -2285,9 +2289,8 @@ oldpc3|oldibmpc3|old IBM PC BSD/386 console,
        OTbs, km,
        lines#25,
        bel=^G, bold=\E[=15F, cr=\r, cud1=\n, dim=\E[=8F, dl1=\E[M,
-       ht=^I, il1=\E[L, ind=\n, kbs=^H, kcub1=\E[D, kcud1=\E[B,
-       kcuf1=\E[C, kcuu1=\E[A, khome=\E[H, kich1=\E[L, kll=\E[F,
-       knp=\E[G, kpp=\E[I, nel=\r\n, sgr0=\E[=R,
+       ht=^I, il1=\E[L, ind=\n, kich1=\E[L, kll=\E[F, knp=\E[G,
+       kpp=\E[I, nel=\r\n, sgr0=\E[=R, use=ansi+arrows,
 
 # Description of BSD/OS console emulator in version 1.1, 2.0, 2.1
 # Note, the emulator supports many of the additional console features
@@ -2310,14 +2313,12 @@ bsdos-pc-m|bsdos-pc-mono|BSD/OS PC console mono,
        cols#80, it#8, lines#25,
        bel=^G, clear=\Ec, cr=\r, cub=\E[%p1%dD, 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,
-       dl=\E[%p1%dM, dl1=\E[M, ed=\E[J, el=\E[K, home=\E[H, ht=^I,
-       il=\E[%p1%dL, il1=\E[L, ind=\n, kbs=^H, kcub1=\E[D,
-       kcud1=\E[B, kcuf1=\E[C, kcuu1=\E[A, khome=\E[H, kich1=\E[L,
-       kll=\E[F, knp=\E[G, kpp=\E[I, nel=\r\n, rc=\E8, sc=\E7,
+       cup=\E[%i%p1%d;%p2%dH, cuu=\E[%p1%dA, cuu1=\E[A, ed=\E[J,
+       el=\E[K, home=\E[H, ht=^I, ind=\n, kich1=\E[L, kll=\E[F,
+       knp=\E[G, kpp=\E[I, nel=\r\n, rc=\E8, sc=\E7,
        sgr=\E[0;10%?%p1%t;7%;%?%p3%t;7%;%?%p4%t;5%;%?%p6%t;1%;%?%p7
            %t;8%;%?%p9%t;11%;m%?%p5%t\E[=8F%;,
-       use=klone+sgr8,
+       use=ansi+arrows, use=ansi+idl, use=klone+sgr8,
 
 # Old names for BSD/OS PC console used in releases before 4.1.
 pc3|BSD/OS on the PC console,
@@ -2556,15 +2557,16 @@ vt102+enq|ncurses extension for VT102-style ENQ,
 vt100|vt100-am|DEC VT100 (w/advanced video),
        OTbs, mc5i, xenl, xon,
        vt#3,
-       csr=\E[%i%p1%d;%p2%dr, kcub1=\EOD, kcud1=\EOB,
-       kcuf1=\EOC, kcuu1=\EOA, lf1=pf1, lf2=pf2, lf3=pf3, lf4=pf4,
-       mc0=\E[0i, mc4=\E[4i, mc5=\E[5i, rc=\E8, rmam=\E[?7l,
-       rmkx=\E[?1l\E>, rs2=\E<\E>\E[?3;4;5l\E[?7;8h\E[r,
-       sc=\E7,
+       kcub1=\EOD, kcud1=\EOB, kcuf1=\EOC, kcuu1=\EOA, lf1=pf1,
+       lf2=pf2, lf3=pf3, lf4=pf4, mc0=\E[0i, mc4=\E[4i, mc5=\E[5i,
+       rmam=\E[?7l, rmkx=\E[?1l\E>,
+       rs2=\E<\E>\E[?3;4;5l\E[?7;8h\E[r,
        sgr=\E[0%?%p1%p6%|%t;1%;%?%p2%t;4%;%?%p1%p3%|%t;7%;%?%p4%t;5
            %;m%?%p9%t\016%e\017%;$<2>,
        smam=\E[?7h, smkx=\E[?1h\E=, smso=\E[7m$<2>,
-       use=vt100+4bsd, use=vt100+fnkeys,
+       use=ansi+csr, use=decid+cpr, use=vt100+4bsd,
+       use=vt100+fnkeys,
+
 vt100+4bsd|DEC VT100 from 4.0BSD,
        am, msgr,
        cols#80, it#8, lines#24,
@@ -2582,6 +2584,7 @@ vt100+4bsd|DEC VT100 from 4.0BSD,
            %;m%?%p9%t\016%e\017%;$<2>,
        sgr0=\E[m\017$<2>, smacs=^N, smso=\E[1;7m$<2>,
        smul=\E[4m$<2>, tbc=\E[3g,
+
 vt100nam|vt100-nam|VT100 no automargins,
        am@, xenl@,
        rs2=\E>\E[?3l\E[?4l\E[?5l\E[?7l\E[?8h, use=vt100-am,
@@ -2655,18 +2658,17 @@ vt131|DEC VT131,
        OTbs, am, xenl,
        cols#80, it#8, lines#24, vt#3,
        bel=^G, blink=\E[5m$<2/>, bold=\E[1m$<2/>,
-       clear=\E[;H\E[2J$<50/>, cr=\r, csr=\E[%i%p1%d;%p2%dr,
-       cub1=^H, cud1=\n, cuf1=\E[C$<2/>,
-       cup=\E[%i%p1%d;%p2%dH$<5/>, cuu1=\E[A$<2/>,
-       ed=\E[J$<50/>, el=\E[K$<3/>, home=\E[H, ht=^I,
-       is2=\E[1;24r\E[24;1H, kbs=^H, kcub1=\EOD, kcud1=\EOB,
-       kcuf1=\EOC, kcuu1=\EOA, kf1=\EOP, kf2=\EOQ, kf3=\EOR,
-       kf4=\EOS, nel=\r\n, rc=\E8, rev=\E[7m$<2/>, ri=\EM$<5/>,
+       clear=\E[;H\E[2J$<50/>, cr=\r, cub1=^H, cud1=\n,
+       cuf1=\E[C$<2/>, cup=\E[%i%p1%d;%p2%dH$<5/>,
+       cuu1=\E[A$<2/>, ed=\E[J$<50/>, el=\E[K$<3/>, home=\E[H,
+       ht=^I, is2=\E[1;24r\E[24;1H, kbs=^H, kcub1=\EOD,
+       kcud1=\EOB, kcuf1=\EOC, kcuu1=\EOA, kf1=\EOP, kf2=\EOQ,
+       kf3=\EOR, kf4=\EOS, nel=\r\n, rev=\E[7m$<2/>, ri=\EM$<5/>,
        rmam=\E[?7h, rmkx=\E[?1l\E>, rmso=\E[m$<2/>,
        rmul=\E[m$<2/>,
-       rs1=\E>\E[?3l\E[?4l\E[?5l\E[?7h\E[?8h, sc=\E7,
+       rs1=\E>\E[?3l\E[?4l\E[?5l\E[?7h\E[?8h,
        sgr0=\E[m$<2/>, smam=\E[?7h, smkx=\E[?1h\E=,
-       smso=\E[7m$<2/>, smul=\E[4m$<2/>,
+       smso=\E[7m$<2/>, smul=\E[4m$<2/>, use=ansi+csr,
 
 # vt132 - like vt100 but slower and has ins/del line and such.
 # I'm told that <smir>/<rmir> are backwards in the terminal from the
@@ -2691,23 +2693,22 @@ vt220-old|vt200-old|DEC VT220 in VT100 emulation mode,
        OTnl=\n,
        acsc=``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~,
        bel=^G, blink=\E[5m$<2>, bold=\E[1m$<2>,
-       clear=\E[H\E[2J$<50>, cr=\r, csr=\E[%i%p1%d;%p2%dr,
-       cub1=^H, cud1=\E[B, cuf1=\E[C,
+       clear=\E[H\E[2J$<50>, cr=\r, cub1=^H, cud1=\E[B, cuf1=\E[C,
        cup=\E[%i%p1%d;%p2%dH$<10>, cuu1=\E[A, dch1=\E[P,
-       dl1=\E[M, ed=\E[J$<50>, el=\E[K$<3>, home=\E[H, ht=^I,
-       if=/usr/share/tabset/vt100, il1=\E[L, ind=\ED$<20/>,
-       is2=\E[1;24r\E[24;1H, kbs=^H, kcub1=\E[D, kcud1=\E[B,
-       kcuf1=\E[C, kcuu1=\E[A, kf1=\EOP, kf10=\E[29~, kf2=\EOQ,
+       ed=\E[J$<50>, el=\E[K$<3>, home=\E[H, ht=^I,
+       if=/usr/share/tabset/vt100, ind=\ED$<20/>,
+       is2=\E[1;24r\E[24;1H, kf1=\EOP, kf10=\E[29~, kf2=\EOQ,
        kf3=\EOR, kf4=\EOS, kf5=\E[17~, kf6=\E[18~, kf7=\E[19~,
-       kf8=\E[20~, kf9=\E[21~, kich1=\E[2~, rc=\E8, rev=\E[7m$<2>,
-       rf=/usr/share/tabset/vt100, ri=\EM$<14/>,
-       rmacs=\E(B$<4>, rmam=\E[?7l, rmir=\E[4l, rmso=\E[27m,
-       rmul=\E[24m, rs2=\E>\E[?3l\E[?4l\E[?5l\E[?7h\E[?8h,
-       sc=\E7,
+       kf8=\E[20~, kf9=\E[21~, khome=\E[1~, kich1=\E[2~,
+       rev=\E[7m$<2>, rf=/usr/share/tabset/vt100,
+       ri=\EM$<14/>, rmacs=\E(B$<4>, rmam=\E[?7l, rmir=\E[4l,
+       rmso=\E[27m, rmul=\E[24m,
+       rs2=\E>\E[?3l\E[?4l\E[?5l\E[?7h\E[?8h,
        sgr=\E[0%?%p6%t;1%;%?%p2%t;4%;%?%p4%t;5%;%?%p1%p3%|%t;7%;m%?
            %p9%t\E(0%e\E(B%;$<2>,
        sgr0=\E[m$<2>, smacs=\E(0$<2>, smam=\E[?7h, smir=\E[4h,
-       smso=\E[7m, smul=\E[4m, use=vt220+pcedit, use=vt220+cvis,
+       smso=\E[7m, smul=\E[4m, use=ansi+arrows, use=ansi+csr,
+       use=ansi+idl1, use=vt220+pcedit, use=vt220+cvis,
 
 # Here's a picture of the Sun/PC editing keypad:
 #      +--------+--------+--------+
@@ -2750,15 +2751,12 @@ vt220-base|DEC VT220 as emulated,
        OTbs, am, mir, msgr, xenl, xon,
        cols#80, it#8, lines#24, vt#3,
        acsc=``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~,
-       bel=^G, blink=\E[5m, bold=\E[1m, clear=\E[H\E[J, cr=\r,
-       csr=\E[%i%p1%d;%p2%dr, cub=\E[%p1%dD, 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,
-       dch=\E[%p1%dP, dch1=\E[P, dl=\E[%p1%dM, dl1=\E[M,
-       ech=\E[%p1%dX, ed=\E[J, el=\E[K, el1=\E[1K, enacs=\E)0,
-       flash=\E[?5h$<200/>\E[?5l, home=\E[H, ht=^I, hts=\EH,
-       ich=\E[%p1%d@, if=/usr/share/tabset/vt100,
-       il=\E[%p1%dL, il1=\E[L, ind=\ED,
+       bel=^G, blink=\E[5m, bold=\E[1m, cr=\r, cub=\E[%p1%dD,
+       cub1=^H, cud=\E[%p1%dB, cud1=\n, cuf=\E[%p1%dC, cuf1=\E[C,
+       cuu=\E[%p1%dA, cuu1=\E[A, dch=\E[%p1%dP, dch1=\E[P,
+       ech=\E[%p1%dX, el1=\E[1K, enacs=\E)0,
+       flash=\E[?5h$<200/>\E[?5l, ht=^I, hts=\EH, ich=\E[%p1%d@,
+       if=/usr/share/tabset/vt100, ind=\ED,
        is2=\E[?7h\E[>\E[?1l\E F\E[?4l, kbs=^H, kcub1=\E[D,
        kcud1=\E[B, kcuf1=\E[C, kcuu1=\E[A, kdch1=\E[3~, kf1=\EOP,
        kf10=\E[21~, kf11=\E[23~, kf12=\E[24~, kf13=\E[25~,
@@ -2766,13 +2764,15 @@ vt220-base|DEC VT220 as emulated,
        kf2=\EOQ, kf20=\E[34~, kf3=\EOR, kf4=\EOS, kf6=\E[17~,
        kf7=\E[18~, kf8=\E[19~, kf9=\E[20~, khlp=\E[28~,
        krdo=\E[29~, lf1=pf1, lf2=pf2, lf3=pf3, lf4=pf4, nel=\EE,
-       rc=\E8, rev=\E[7m, ri=\EM, rmacs=\E(B$<4>, rmam=\E[?7l,
-       rmir=\E[4l, rmso=\E[27m, rmul=\E[24m, rs1=\E[?3l, sc=\E7,
+       rev=\E[7m, ri=\EM, rmacs=\E(B$<4>, rmam=\E[?7l, rmir=\E[4l,
+       rmso=\E[27m, rmul=\E[24m, rs1=\E[?3l,
        sgr=\E[0%?%p6%t;1%;%?%p2%t;4%;%?%p4%t;5%;%?%p1%p3%|%t;7%;m%?
            %p9%t\E(0%e\E(B%;$<2>,
        sgr0=\E[m\E(B, smacs=\E(0$<2>, smam=\E[?7h, smir=\E[4h,
-       smso=\E[7m, smul=\E[4m, tbc=\E[3g, use=vt220+vtedit,
-       use=ansi+pp, use=ansi+enq,
+       smso=\E[7m, smul=\E[4m, tbc=\E[3g, use=ansi+csr,
+       use=ansi+cup, use=ansi+pp, use=ansi+enq, use=ansi+erase,
+       use=ansi+idl, use=vt220+vtedit,
+
 vt220|vt200|DEC VT220,
        use=vt220+cvis, use=vt220-base,
 vt220-w|vt200-w|DEC VT220 in wide mode,
@@ -2844,19 +2844,18 @@ vt220-nam|v200-nam|VT220 in VT100 mode with no auto margins,
 vt200-js|vt220-js|DEC VT200 series with jump scroll,
        am, msgr,
        cols#80,
-       bel=^G, clear=\E[H\E[J, cr=\r, csr=\E[%i%p1%d;%p2%dr,
-       cub1=^H, cud1=\n, cuf1=\E[C, cup=\E[%i%p1%d;%p2%dH,
-       cuu1=\E[A, dch1=\E[P, dl1=\E[M, ed=\E[J, el=\E[K, home=\E[H,
-       ht=^I, il1=\E[L, ind=\ED,
+       bel=^G, cr=\r, cub1=^H, cud1=\n, cuf1=\E[C,
+       cup=\E[%i%p1%d;%p2%dH, cuu1=\E[A, dch1=\E[P, dl1=\E[M,
+       home=\E[H, ht=^I, il1=\E[L, ind=\ED,
        is2=\E[61"p\E[H\E[?3l\E[?4l\E[?1h\E[?5l\E[?6l\E[?7h\E[?8h\E[
            ?25h\E>\E[m,
        kbs=^H, kcub1=\EOD, kcud1=\EOB, kcuf1=\EOC, kcuu1=\EOA,
-       kf1=\EOP, kf2=\EOQ, kf3=\EOR, kf4=\EOS, nel=\r\ED, rc=\E8,
+       kf1=\EOP, kf2=\EOQ, kf3=\EOR, kf4=\EOS, nel=\r\ED,
        rf=/usr/share/tabset/vt100, ri=\EM, rmdc=, rmir=\E[4l,
        rmkx=\E[?1l\E>, rmso=\E[27m$<5/>, rmul=\E[24m,
-       rs1=\E>\E[?3l\E[?4l\E[?5l\E[?7h\E[?8h, sc=\E7, smdc=,
+       rs1=\E>\E[?3l\E[?4l\E[?5l\E[?7h\E[?8h, smdc=,
        smir=\E[4h, smkx=\E[?1h\E=, smso=\E[7m$<5/>, smul=\E[4m,
-       use=vt220+cvis,
+       use=ansi+csr, use=ansi+erase, use=vt220+cvis,
 
 # This was DEC's VT320.  Use the purpose-built one below instead
 #vt320|DEC VT320 in VT100 emulation mode,
@@ -2887,31 +2886,30 @@ vt320|vt300|DEC VT320 7 bit terminal,
        cols#80, lines#24, wsl#80,
        acsc=``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~,
        bel=^G, blink=\E[5m, bold=\E[1m, clear=\E[H\E[2J, cr=\r,
-       csr=\E[%i%p1%d;%p2%dr, cub=\E[%p1%dD, 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,
-       dch=\E[%p1%dP, dch1=\E[P, dl=\E[%p1%dM, dl1=\E[M,
+       cub=\E[%p1%dD, 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, dch=\E[%p1%dP, dch1=\E[P,
        ech=\E[%p1%dX, ed=\E[J, el=\E[K, el1=\E[1K, home=\E[H, ht=^I,
-       hts=\EH, ich=\E[%p1%d@, il=\E[%p1%dL, il1=\E[L, ind=\ED,
+       hts=\EH, ich=\E[%p1%d@, ind=\ED,
        is2=\E>\E[?3l\E[?4l\E[?5l\E[?7h\E[?8h\E[1;24r\E[24;1H,
-       kbs=^?, kcub1=\EOD, kcud1=\EOB, kcuf1=\EOC, kcuu1=\EOA,
-       kdch1=\E[3~, kel=\E[4~, kf10=\E[21~, kf11=\E[23~,
+       kbs=^?, kdch1=\E[3~, kel=\E[4~, kf10=\E[21~, kf11=\E[23~,
        kf12=\E[24~, kf13=\E[25~, kf14=\E[26~, kf15=\E[28~,
        kf16=\E[29~, kf17=\E[31~, kf18=\E[32~, kf19=\E[33~,
        kf20=\E[34~, kf6=\E[17~, kf7=\E[18~, kf8=\E[19~,
        kf9=\E[20~, khome=\E[1~, kich1=\E[2~, knp=\E[6~, knxt=^I,
-       kpp=\E[5~, kprv=\E[Z, kslt=\E[4~, nel=\EE, rc=\E8, rev=\E[7m,
+       kpp=\E[5~, kprv=\E[Z, kslt=\E[4~, nel=\EE, rev=\E[7m,
        rf=/usr/share/tabset/vt300, ri=\EM, rmacs=\E(B,
        rmam=\E[?7l, rmir=\E[4l, rmkx=\E[?1l\E>, rmso=\E[m,
        rmul=\E[m,
        rs2=\E>\E[?3l\E[?4l\E[?5l\E[?7h\E[?8h\E[1;24r\E[24;1H,
-       sc=\E7,
        sgr=\E[0%?%p6%t;1%;%?%p2%t;4%;%?%p4%t;5%;%?%p1%p3%|%t;7%;m%?
            %p9%t\E(0%e\E(B%;$<2>,
        sgr0=\E[m\E(B, smacs=\E(0, smam=\E[?7h, smir=\E[4h,
        smkx=\E[?1h\E=, smso=\E[7m, smul=\E[4m, tbc=\E[3g,
-       use=dec+pp, use=vt220+cvis, use=vt220+keypad, use=dec+sl,
-       use=ansi+enq,
+       use=ansi+apparrows, use=ansi+csr, use=ansi+enq,
+       use=ansi+idl, use=dec+pp, use=vt220+cvis,
+       use=vt220+keypad, use=dec+sl,
+
 vt320-nam|vt300-nam|DEC VT320 7 bit terminal with no am to make SAS happy,
        am@,
        is2=\E>\E[?3l\E[?4l\E[?5l\E[?7l\E[?8h\E[1;24r\E[24;1H,
@@ -2950,28 +2948,27 @@ vt340|dec-vt340|vt330|dec-vt330|DEC VT340 graphics terminal with 24 line page,
        am, eslok, hs, mir, msgr, xenl, xon,
        cols#80, it#8, lines#24, vt#3,
        acsc=``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~,
-       blink=\E[5m, bold=\E[1m, clear=\E[H\E[J, cr=\r,
-       csr=\E[%i%p1%d;%p2%dr, cub=\E[%p1%dD, cub1=^H,
+       blink=\E[5m, bold=\E[1m, cr=\r, cub=\E[%p1%dD, 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,
-       dch=\E[%p1%dP, dch1=\E[P, dl=\E[%p1%dM, dl1=\E[M,
-       dsl=\E[2$~\r\E[1$}\E[K\E[$}, ed=\E[J, el=\E[K,
+       dch=\E[%p1%dP, dch1=\E[P, dsl=\E[2$~\r\E[1$}\E[K\E[$},
        flash=\E[?5h$<200/>\E[?5l, fsl=\E[$}, home=\E[H, ht=^I,
-       hts=\EH, ich=\E[%p1%d@, il=\E[%p1%dL, il1=\E[L, ind=\ED,
+       hts=\EH, ich=\E[%p1%d@, ind=\ED,
        is2=\E<\E\sF\E>\E[?1h\E[?3l\E[?4l\E[?5l\E[?7h\E[?8h\E[1;24r
            \E[24;1H,
        kbs=^H, kcub1=\EOD, kcud1=\EOB, kcuf1=\EOC, kcuu1=\EOA,
        kf1=\EOP, kf2=\EOQ, kf3=\EOR, kf4=\EOS, kf6=\E[17~,
        kf7=\E[18~, kf8=\E[19~, kf9=\E[20~, lf1=pf1, lf2=pf2,
-       lf3=pf3, lf4=pf4, nel=\r\ED, rc=\E8, rev=\E[7m,
+       lf3=pf3, lf4=pf4, nel=\r\ED, rev=\E[7m,
        rf=/usr/share/tabset/vt300, ri=\EM, rmacs=\E(B,
        rmam=\E[?7l, rmir=\E[4l, rmkx=\E[?1l\E>, rmso=\E[27m,
-       rmul=\E[24m, rs1=\E[?3l, sc=\E7,
+       rmul=\E[24m, rs1=\E[?3l,
        sgr=\E[0%?%p6%t;1%;%?%p2%t;4%;%?%p4%t;5%;%?%p1%p3%|%t;7%;m%?
            %p9%t\E(0%e\E(B%;$<2>,
        sgr0=\E[m\E(B, smacs=\E(0, smam=\E[?7h, smir=\E[4h,
        smkx=\E[?1h\E=, smso=\E[7m, smul=\E[4m, tbc=\E[3g,
-       tsl=\E[2$~\E[1$}\E[1;%dH, use=vt220+cvis,
+       tsl=\E[2$~\E[1$}\E[1;%dH, use=ansi+csr, use=ansi+erase,
+       use=ansi+idl, use=vt220+cvis,
 
 # Left/right margins are supported in xterm since patch #279 (2012/05/10)
 vt420+lrmm|VT420 left/right margins,
@@ -3005,28 +3002,26 @@ vt400|vt400-24|dec-vt400|DEC VT400 24x80 column autowrap,
        cols#80, it#8, lines#24, vt#3,
        acsc=``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~,
        blink=\E[5m, bold=\E[1m, clear=\E[H\E[J$<10/>, cr=\r,
-       csr=\E[%i%p1%d;%p2%dr, cub=\E[%p1%dD, 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,
-       dch=\E[%p1%dP, dch1=\E[P, dl=\E[%p1%dM, dl1=\E[M,
+       cub=\E[%p1%dD, cub1=^H, cud=\E[%p1%dB, cud1=\n,
+       cuf=\E[%p1%dC, cuf1=\E[C, cuu=\E[%p1%dA, cuu1=\E[A,
        dsl=\E[2$~\r\E[1$}\E[K\E[$}, ed=\E[J$<10/>,
        el=\E[K$<4/>, flash=\E[?5h$<200/>\E[?5l, fsl=\E[$},
-       home=\E[H, ht=^I, hts=\EH, ich=\E[%p1%d@, ich1=\E[@,
-       il=\E[%p1%dL, il1=\E[L, ind=\ED,
+       ht=^I, hts=\EH, ind=\ED,
        is2=\E<\E\sF\E>\E[?1h\E[?3l\E[?4l\E[?5l\E[?7h\E[?8h\E[1;24r
            \E[24;1H,
        kbs=^H, kcub1=\EOD, kcud1=\EOB, kcuf1=\EOC, kcuu1=\EOA,
        kf1=\EOP, kf2=\EOQ, kf3=\EOR, kf4=\EOS, kf6=\E[17~,
        kf7=\E[18~, kf8=\E[19~, kf9=\E[20~, lf1=pf1, lf2=pf2,
-       lf3=pf3, lf4=pf4, nel=\r\ED, rc=\E8, rev=\E[7m,
+       lf3=pf3, lf4=pf4, nel=\r\ED, rev=\E[7m,
        rf=/usr/share/tabset/vt300, ri=\EM, rmacs=\E(B,
-       rmam=\E[?7l, rmir=\E[4l, rmkx=\E[?1l\E>, rmso=\E[27m,
-       rmul=\E[24m, rs1=\E<\E[?3l\E[!p\E[?7h, sc=\E7,
+       rmam=\E[?7l, rmkx=\E[?1l\E>, rmso=\E[27m, rmul=\E[24m,
+       rs1=\E<\E[?3l\E[!p\E[?7h,
        sgr=\E[0%?%p6%t;1%;%?%p2%t;4%;%?%p4%t;5%;%?%p1%p3%|%t;7%;m%?
            %p9%t\E(0%e\E(B%;$<2>,
-       sgr0=\E[m\E(B, smacs=\E(0, smam=\E[?7h, smir=\E[4h,
-       smkx=\E[?1h\E=, smso=\E[7m, smul=\E[4m, tbc=\E[3g,
-       tsl=\E[2$~\E[1$}\E[1;%dH, use=dec+sl, use=vt220+cvis,
+       sgr0=\E[m\E(B, smacs=\E(0, smam=\E[?7h, smkx=\E[?1h\E=,
+       smso=\E[7m, smul=\E[4m, tbc=\E[3g,
+       tsl=\E[2$~\E[1$}\E[1;%dH, use=ansi+csr, use=ansi+cup,
+       use=ansi+idc, use=ansi+idl, use=dec+sl, use=vt220+cvis,
 
 # (vt420: I removed <kf0>, it collided with <kf10>.  I also restored
 # a missing <sc> -- esr)
@@ -3036,29 +3031,28 @@ vt420|DEC VT420,
        cols#80, it#8, lines#24, vt#3,
        acsc=``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~,
        bel=^G, blink=\E[5m$<2>, bold=\E[1m$<2>,
-       clear=\E[H\E[2J$<50>, cr=\r, csr=\E[%i%p1%d;%p2%dr,
-       cub=\E[%p1%dD, cub1=^H, cud=\E[%p1%dB, cud1=\n,
-       cuf=\E[%p1%dC, cuf1=\E[C, cup=\E[%i%p1%d;%p2%dH$<10>,
-       cuu=\E[%p1%dA, cuu1=\E[A, dch=\E[%p1%dP, dch1=\E[P,
-       dl=\E[%p1%dM, dl1=\E[M, ech=\E[%p1%dX, ed=\E[J$<50>,
+       clear=\E[H\E[2J$<50>, cr=\r, cub=\E[%p1%dD, cub1=^H,
+       cud=\E[%p1%dB, cud1=\n, cuf=\E[%p1%dC, cuf1=\E[C,
+       cup=\E[%i%p1%d;%p2%dH$<10>, cuu=\E[%p1%dA, cuu1=\E[A,
+       dch=\E[%p1%dP, dch1=\E[P, ech=\E[%p1%dX, ed=\E[J$<50>,
        el=\E[K$<3>, el1=\E[1K, enacs=\E)0,
        flash=\E[?5h$<200/>\E[?5l, home=\E[H, ht=^I, hts=\EH,
-       ich=\E[%p1%d@, if=/usr/share/tabset/vt300,
-       il=\E[%p1%dL, il1=\E[L, ind=\ED, is2=\E[1;24r\E[24;1H,
-       is3=\E[?67h\E[64;1"p, kbs=^H, kcub1=\E[D, kcud1=\E[B,
-       kcuf1=\E[C, kcuu1=\E[A, kf1=\EOP, kf10=\E[29~, kf2=\EOQ,
-       kf3=\EOR, kf4=\EOS, kf5=\E[17~, kf6=\E[18~, kf7=\E[19~,
-       kf8=\E[20~, kf9=\E[21~, nel=\EE, rc=\E8, rev=\E[7m$<2>,
-       rf=/usr/share/tabset/vt300, ri=\EM, rmacs=\E(B$<4>,
-       rmam=\E[?7l, rmir=\E[4l, rmkx=\E>,
+       ich=\E[%p1%d@, if=/usr/share/tabset/vt300, ind=\ED,
+       is2=\E[1;24r\E[24;1H, is3=\E[?67h\E[64;1"p, kbs=^H,
+       kcub1=\E[D, kcud1=\E[B, kcuf1=\E[C, kcuu1=\E[A, kf1=\EOP,
+       kf10=\E[29~, kf2=\EOQ, kf3=\EOR, kf4=\EOS, kf5=\E[17~,
+       kf6=\E[18~, kf7=\E[19~, kf8=\E[20~, kf9=\E[21~, nel=\EE,
+       rev=\E[7m$<2>, rf=/usr/share/tabset/vt300, ri=\EM,
+       rmacs=\E(B$<4>, rmam=\E[?7l, rmir=\E[4l, rmkx=\E>,
        rmsc=\E[?0;0r\E>\E[?3l\E[?4l\E[?5l\E[?7h\E[?8h,
-       rmso=\E[27m, rmul=\E[24m, rs3=\E[?67h\E[64;1"p, sc=\E7,
+       rmso=\E[27m, rmul=\E[24m, rs3=\E[?67h\E[64;1"p,
        sgr=\E[0%?%p6%t;1%;%?%p2%t;4%;%?%p4%t;5%;%?%p1%p3%|%t;7%;m%?
            %p9%t\E(0%e\E(B%;$<2>,
        sgr0=\E[m\E(B$<2>, smacs=\E(0$<2>, smam=\E[?7h,
        smir=\E[4h, smkx=\E=, smso=\E[7m, smul=\E[4m, tbc=\E[3g,
-       use=vt220+vtedit, use=ansi+pp, use=dec+sl, use=ansi+enq,
-       use=vt220+cvis, use=vt420+lrmm,
+       use=ansi+csr, use=ansi+enq, use=ansi+idl, use=ansi+pp,
+       use=dec+sl, use=vt220+cvis, use=vt420+lrmm,
+       use=vt220+vtedit,
 
 # DEC VT220 and up support DECUDK (user-defined keys).  DECUDK (i.e., pfx)
 # takes two parameters, the key and the string.  Translating the key is
@@ -3403,20 +3397,19 @@ tt|tkterm|Don Libes' tk text widget terminal emulator,
 nsterm+7|AppKit Terminal.app v41+ basic capabilities w/ASCII charset,
        am, bw, msgr, xenl, xon,
        cols#80, it#8, lines#24,
-       bel=^G, blink=\E[5m, bold=\E[1m, clear=\E[H\E[J, cr=\r,
-       csr=\E[%i%p1%d;%p2%dr, cub=\E[%p1%dD, 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,
-       dim=\E[2m, dl=\E[%p1%dM, dl1=\E[M, ed=\E[J, el=\E[K,
-       el1=\E[1K, home=\E[H, ht=^I, hts=\EH, il=\E[%p1%dL, il1=\E[L,
-       ind=\n, invis=\E[8m, kbs=^?, kcub1=\EOD, kcud1=\EOB,
-       kcuf1=\EOC, kcuu1=\EOA, kent=\EOM, rc=\E8, rev=\E[7m, ri=\EM,
+       bel=^G, blink=\E[5m, bold=\E[1m, cr=\r, cub=\E[%p1%dD,
+       cub1=^H, cud=\E[%p1%dB, cud1=\n, cuf=\E[%p1%dC, cuf1=\E[C,
+       cuu=\E[%p1%dA, cuu1=\E[A, dim=\E[2m, el1=\E[1K, ht=^I,
+       hts=\EH, ind=\n, invis=\E[8m, kbs=^?, kcub1=\EOD, kcud1=\EOB,
+       kcuf1=\EOC, kcuu1=\EOA, kent=\EOM, rev=\E[7m, ri=\EM,
        rmam=\E[?7l, rmkx=\E[?1l\E>, rmso=\E[m, rmul=\E[m,
-       rs2=\E>\E[?3l\E[?4l\E[?5l\E[?7h\E[?8h, sc=\E7,
+       rs2=\E>\E[?3l\E[?4l\E[?5l\E[?7h\E[?8h,
        sgr=\E[0%?%p6%t;1%;%?%p2%t;4%;%?%p1%p3%|%t;7%;%?%p4%t;5%;%?
            %p5%t;2%;%?%p7%t;8%;m,
        sgr0=\E[m, smam=\E[?7h, smkx=\E[?1h\E=, smso=\E[7m,
-       smul=\E[4m, tbc=\E[3g, use=vt100+enq, use=vt100+pfkeys,
+       smul=\E[4m, tbc=\E[3g, use=ansi+csr, use=ansi+cup,
+       use=ansi+erase, use=ansi+idl, use=vt100+enq,
+       use=vt100+pfkeys,
 
 nsterm+acs|AppKit Terminal.app v41+ basic capabilities w/VT100 alternate-charset,
        acsc=``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~,
@@ -3524,16 +3517,14 @@ nsterm-c-s|AppKit Terminal.app v51+ w/MacRoman charset (full color w/statusline)
 # vt52, vt100, vt102 and xterm.
 nsterm-16color|AppKit Terminal.app v240.2+ with Mac OS X version 10.5,
        bw@, mir, npc,
-       dch=\E[%p1%dP, dch1=\E[P, flash=\E[?5h$<200/>\E[?5l,
-       hpa=\E[%i%p1%dG, ich=\E[%p1%d@, ich1=\E[@, kdch1=\E[3~,
-       kend=\E[F, kf10=\E[21~, kf11=\E[23~, kf12=\E[24~,
-       kf13=\E[25~, kf14=\E[26~, kf15=\E[28~, kf16=\E[29~,
-       kf17=\E[31~, kf18=\E[22~, kf19=\E[33~, kf20=\E[34~,
-       kf5=\E[15~, kf6=\E[17~, kf7=\E[18~, kf8=\E[19~, kf9=\E[20~,
-       khome=\E[H, knp=\E[6~, kpp=\E[5~, rmcup=\E[2J\E[?47l\E8,
-       rmir=\E[4l, smcup=\E7\E[?47h, smir=\E[4h,
-       vpa=\E[%i%p1%dd, kLFT5=\E[5D, kRIT5=\E[5C,
-       use=nsterm-c-s-acs, use=vt220+cvis,
+       flash=\E[?5h$<200/>\E[?5l, hpa=\E[%i%p1%dG,
+       kdch1=\E[3~, kend=\E[F, kf10=\E[21~, kf11=\E[23~,
+       kf12=\E[24~, kf13=\E[25~, kf14=\E[26~, kf15=\E[28~,
+       kf16=\E[29~, kf17=\E[31~, kf18=\E[22~, kf19=\E[33~,
+       kf20=\E[34~, kf5=\E[15~, kf6=\E[17~, kf7=\E[18~,
+       kf8=\E[19~, kf9=\E[20~, khome=\E[H, knp=\E[6~, kpp=\E[5~,
+       vpa=\E[%i%p1%dd, kLFT5=\E[5D, kRIT5=\E[5C, use=ansi+idc,
+       use=xterm+alt47, use=nsterm-c-s-acs, use=vt220+cvis,
 
 # The versions of Terminal.app in Mac OS X version 10.3.x seem to have
 # the background color erase feature. The newer version 240.2 in Mac OS X
@@ -3657,9 +3648,12 @@ nsterm-build400|Terminal.app in OS X 10.13,
        rmso=\E[27m, rmul=\E[24m, use=xterm+sm+1006,
        use=ecma+italics, use=nsterm-build361,
 
+nsterm-build440|Terminal.app in MacOS 11.6.8,
+       use=xterm+alt1049, use=nsterm-build400,
+
 # This is an alias which should always point to the "current" version
 nsterm|nsterm-256color|Apple_Terminal|AppKit Terminal.app,
-       use=nsterm-build400,
+       use=nsterm-build440,
 
 #### iTerm, iTerm2
 
@@ -3698,34 +3692,30 @@ nsterm|nsterm-256color|Apple_Terminal|AppKit Terminal.app,
 #      can display/alter xterm-256color cube
 #      can display/alter xterm-88color cube
 iTerm.app|iterm|iTerm.app terminal emulator for Mac OS X,
-       am, bce, hs, mir, msgr, npc, xenl, xon,
+       am, bce, mir, msgr, npc, xenl, xon,
        cols#80, it#8, lines#24, wsl#50,
        acsc=``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~,
-       bel=^G, blink=\E[5m, bold=\E[1m, clear=\E[H\E[J, cr=\r,
-       csr=\E[%i%p1%d;%p2%dr, cub=\E[%p1%dD, cub1=^H,
-       cud=\E[%p1%dB, cud1=\n, cuf=\E[%p1%dC, cuf1=\E[C,
+       bel=^G, blink=\E[5m, bold=\E[1m, cr=\r, cub=\E[%p1%dD,
+       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,
-       dch=\E[%p1%dP, dch1=\E[P, dl=\E[%p1%dM, dl1=\E[M, ed=\E[J,
-       el=\E[K, el1=\E[1K, enacs=\E(B\E)0,
-       flash=\E[?5h$<200/>\E[?5l, home=\E[H, hpa=\E[%i%p1%dG,
-       ht=^I, hts=\EH, ich=\E[%p1%d@, ich1=\E[@, il=\E[%p1%dL,
-       il1=\E[L, ind=\n, kLFT=\E[1;2D, kRIT=\E[1;2C, kbs=^?,
-       kcbt=\E[Z, kcub1=\EOD, kcud1=\EOB, kcuf1=\EOC, kcuu1=\EOA,
-       kdch1=\E[3~, kend=\EOF, kent=\EOM, 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=\EOH, knp=\E[6~, kpp=\E[5~, op=\E[0m, rc=\E8,
-       rev=\E[7m, ri=\EM, rmacs=^O, rmam=\E[?7l,
-       rmcup=\E[2J\E[?47l\E8, rmir=\E[4l, rmkx=\E[?1l\E>,
-       rmso=\E[m, rmul=\E[m,
-       rs2=\E>\E[?3l\E[?4l\E[?5l\E[?7h\E[?8h, sc=\E7,
+       el1=\E[1K, enacs=\E(B\E)0, flash=\E[?5h$<200/>\E[?5l,
+       home=\E[H, hpa=\E[%i%p1%dG, ht=^I, hts=\EH, ind=\n,
+       kLFT=\E[1;2D, kRIT=\E[1;2C, kbs=^?, kcbt=\E[Z, kdch1=\E[3~,
+       kend=\EOF, kent=\EOM, 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~, knp=\E[6~,
+       kpp=\E[5~, op=\E[0m, rev=\E[7m, ri=\EM, rmacs=^O,
+       rmam=\E[?7l, rmkx=\E[?1l\E>, rmso=\E[m, rmul=\E[m,
+       rs2=\E>\E[?3l\E[?4l\E[?5l\E[?7h\E[?8h,
        sgr=\E[0%?%p6%t;1%;%?%p2%t;4%;%?%p1%p3%|%t;7%;%?%p4%t;5%;m%?
            %p9%t\016%e\017%;,
-       sgr0=\E[m\017, smacs=^N, smam=\E[?7h, smcup=\E7\E[?47h,
-       smir=\E[4h, smkx=\E[?1h\E=, smso=\E[7m, smul=\E[4m,
-       tbc=\E[3g, vpa=\E[%i%p1%dd, kEND5=\E[1;5F, kHOM5=\E[1;5H,
-       use=ansi+enq, use=xterm+sl-twm, use=vt100+keypad,
-       use=xterm+x11mouse, use=xterm+256setaf, use=vt220+cvis,
+       sgr0=\E[m\017, smacs=^N, smam=\E[?7h, smkx=\E[?1h\E=,
+       smso=\E[7m, smul=\E[4m, tbc=\E[3g, vpa=\E[%i%p1%dd,
+       kEND5=\E[1;5F, kHOM5=\E[1;5H, use=ansi+apparrows,
+       use=ansi+csr, use=ansi+enq, use=ansi+erase, use=ansi+idc,
+       use=ansi+idl, use=vt100+keypad, use=xterm+alt47,
+       use=xterm+sl-twm, use=xterm+x11mouse,
+       use=xterm+256setaf, use=vt220+cvis,
 
 # iTerm2 3.0.15
 #
@@ -3761,13 +3751,13 @@ iTerm.app|iterm|iTerm.app terminal emulator for Mac OS X,
 # 2018/01/21: found xterm+sm+1006 did not work with version 3.1.5
 # 2018/05/19: xterm+sm+1006 seems to work with 3.1.6beta -TD
 iTerm2.app|iterm2|terminal emulator for Mac OS X,
-       blink=\E[5m, cbt=\E[Z, dim=\E[2m, kEND=\E[1;2F,
-       kHOM=\E[1;2H, ka1@, ka3@, kb2@, kc1@, kc3@, kent@, 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~, kind=\E[1;2B, kri=\E[1;2A, nel=\EE,
-       op=\E[39;49m, rmso=\E[27m, rmul=\E[24m,
+       cbt=\E[Z, dim=\E[2m, kEND=\E[1;2F, kHOM=\E[1;2H, ka1@, ka3@,
+       kb2@, kc1@, kc3@, kent@, 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~, kf20=\E[19;2~, kf21=\E[20;2~,
+       kf22=\E[21;2~, kf23=\E[23;2~, kf24=\E[24;2~,
+       kind=\E[1;2B, kri=\E[1;2A, nel=\EE, op=\E[39;49m,
+       rmso=\E[27m, rmul=\E[24m,
        rs2=\E[!p\E[?3;4l\E[4l\E>\E[?1000l,
        sgr=\E[0%?%p6%t;1%;%?%p2%t;4%;%?%p1%p3%|%t;7%;%?%p4%t;5%;%?
            %p5%t;2%;m%?%p9%t\016%e\017%;,
@@ -3781,6 +3771,7 @@ iTerm2.app|iterm2|terminal emulator for Mac OS X,
        kRIT5=\E[1;5C, kRIT6=\E[1;6C, kUP3=\E\E[A, kUP4=\E[1;10A,
        kUP5=\E[1;5A, kUP6=\E[1;6A, use=ecma+index,
        use=xterm+alt+title, use=ecma+italics, use=iterm,
+       use=bracketed+paste,
 
 # xnuppc - Darwin PowerPC Console (a.k.a. "darwin")
 #
@@ -3878,20 +3869,19 @@ iTerm2.app|iterm2|terminal emulator for Mac OS X,
 
 # The '+' entries are building blocks
 xnuppc+basic|Darwin PowerPC console basic capabilities,
-       am, bce, mir, xenl,
+       am, bce, mir, xenl, NQ,
        it#8,
-       bold=\E[1m, clear=\E[H\E[J, cr=\r, csr=\E[%i%p1%d;%p2%dr,
-       cub=\E[%p1%dD, cub1=\E[D, cud=\E[%p1%dB, cud1=\E[B,
-       cuf=\E[%p1%dC, cuf1=\E[C, cup=\E[%i%p1%d;%p2%dH,
-       cuu=\E[%p1%dA, cuu1=\E[A, dsl=\E]2;\007, ed=\E[J, el=\E[K,
-       el1=\E[1K, home=\E[H, ht=^I, hts=\EH, ind=\n, kbs=^?,
-       kcub1=\EOD, kcud1=\EOB, kcuf1=\EOC, kcuu1=\EOA, rc=\E8,
+       bold=\E[1m, cr=\r, cub=\E[%p1%dD, cub1=\E[D, cud=\E[%p1%dB,
+       cud1=\E[B, cuf=\E[%p1%dC, cuf1=\E[C,
+       cup=\E[%i%p1%d;%p2%dH, cuu=\E[%p1%dA, cuu1=\E[A,
+       dsl=\E]2;\007, el1=\E[1K, home=\E[H, ht=^I, hts=\EH, ind=\n,
+       kbs=^?, kcub1=\EOD, kcud1=\EOB, kcuf1=\EOC, kcuu1=\EOA,
        rev=\E[7m, ri=\EM, rmam=\E[?7l, rmkx=\E[?1l\E>, rmso=\E[m,
        rmul=\E[m, rs2=\E>\E[?3l\E[?4l\E[?5l\E[?7h\E[?8h,
-       sc=\E7,
        sgr=\E[0%?%p6%t;1%;%?%p2%t;4%;%?%p1%p3%|%t;7%;m,
        sgr0=\E[m, smam=\E[?7h, smkx=\E[?1h\E=, smso=\E[7m,
-       smul=\E[4m, tbc=\E[3g, use=vt100+keypad,
+       smul=\E[4m, tbc=\E[3g, use=ansi+csr, use=ansi+erase,
+       use=vt100+keypad,
 
 xnuppc+c|Darwin PowerPC console ANSI color support,
        colors#8, ncv#32, pairs#64,
@@ -4054,9 +4044,8 @@ xnuppc-256x96|darwin-256x96|Darwin PowerPC console (color) 256x96,
 ######## DOS/WINDOWS
 # CRT is shareware.  It implements some xterm features, including mouse.
 crt|crt-vt220|CRT 2.3 emulating VT220,
-       bce, msgr,
-       ncv@,
-       hts=\EH, use=vt100+enq, use=vt220-base, use=ecma+color,
+       bce,
+       ncv@, use=vt100+enq, use=vt220-base, use=ecma+color,
 
 # SecureCRT 8.7.3.2279
 # 8.7.3 was released 2020/08/11
@@ -4117,7 +4106,7 @@ crt|crt-vt220|CRT 2.3 emulating VT220,
 #      resize.pl gets no reply, resize.sh needs fix for no reply.
 scrt|securecrt|SecureCRT emulating xterm-256color,
        bce@, km@, npc,
-       bel@, cvvis@, kcbt=\E[Z, kent=\EOM, use=vt220+pcedit,
+       bel@, cvvis@, kcbt=\E[Z, use=vt220+pcedit,
        use=xterm+256setaf, use=ecma+index, use=ansi+rep,
        use=xterm+keypad, use=xterm+pcfkeys, use=xterm-basic,
 
@@ -4167,15 +4156,23 @@ scrt|securecrt|SecureCRT emulating xterm-256color,
 #      supports 256-colors, including changing palette (ncurses menu d works)
 #      supports UTF-8, but honors VT100 line-drawing
 absolute|Absolute Telnet emulating xterm,
-       kcbt=\E[Z, use=ecma+index, use=ansi+rep,
+       kcbt=\E[Z, use=ecma+index, use=linux+kbs, use=ansi+rep,
        use=vt220+pcedit, use=xterm+keypad, use=xterm+app,
        use=xterm+pcf0, use=xterm+256color, use=xterm+x11mouse,
        use=xterm-basic,
 
 #### PuTTY
-# PuTTY 0.74 (27 June 2020)
 # http://www.chiark.greenend.org.uk/~sgtatham/putty/
 #
+# PuTTY 0.78 (September 2020, tested 12 August 2023)
+# Testing with tack:
+#      implements cross-out text (shortly after 0.74)
+#      restore kLFT as kLFT5, etc. (mentioned in October 2021)
+#      does not support direct-colors (mentioned in July 2021)
+#
+# PuTTY 0.74 (27 June 2020)
+#      (unchanged)
+#
 # PuTTY 0.73 (September 2019)
 # Testing with tack:
 #      does not implement italics
@@ -4222,9 +4219,8 @@ putty|PuTTY terminal emulator,
        am, bce, bw, ccc, mir, msgr, xenl, xon, XT,
        colors#8, it#8, ncv#22, pairs#64, U8#1,
        acsc=``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~,
-       bel=^G, blink=\E[5m, bold=\E[1m, clear=\E[H\E[J, cr=\r,
-       csr=\E[%i%p1%d;%p2%dr, cub=\E[%p1%dD, cub1=^H,
-       cud=\E[%p1%dB, cud1=\ED, cuf=\E[%p1%dC, cuf1=\E[C,
+       bel=^G, blink=\E[5m, bold=\E[1m, cr=\r, cub=\E[%p1%dD,
+       cub1=^H, cud=\E[%p1%dB, cud1=\ED, cuf=\E[%p1%dC, cuf1=\E[C,
        cup=\E[%i%p1%d;%p2%dH, cuu=\E[%p1%dA, 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
@@ -4233,29 +4229,37 @@ putty|PuTTY terminal emulator,
              \342\231\253\E%%@%e%p1%{15}%=%t\E%%G\342\230\274\E%%@
              %e%p1%{27}%=%t\E%%G\342\206\220\E%%@%e%p1%{155}%=%t\E
              %%G\340\202\242\E%%@%e%p1%c%;,
-       dl=\E[%p1%dM, dl1=\E[M, ech=\E[%p1%dX, ed=\E[J, el=\E[K,
-       el1=\E[1K, enacs=\E(B\E)0, flash=\E[?5h$<100/>\E[?5l,
-       home=\E[H, hpa=\E[%i%p1%dG, il=\E[%p1%dL, il1=\E[L, ind=\n,
+       ech=\E[%p1%dX, el1=\E[1K, enacs=\E(B\E)0,
+       flash=\E[?5h$<100/>\E[?5l, home=\E[H, hpa=\E[%i%p1%dG,
+       ind=\n,
        initc=\E]P%p1%x%p2%{255}%*%{1000}%/%02x%p3%{255}%*%{1000}%/
              %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, kcub1=\EOD, kcud1=\EOB, kcuf1=\EOC,
-       kcuu1=\EOA, kind=\E[B, kri=\E[A, kspd=^Z, nel=\r\n, oc=\E]R,
-       op=\E[39;49m, rc=\E8, rev=\E[7m, ri=\EM, rmacs=^O,
-       rmam=\E[?7l, rmcup=\E[2J\E[?47l, rmir=\E[4l,
-       rmkx=\E[?1l\E>, rmpch=\E[10m, rmso=\E[27m, rmul=\E[24m,
+       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,
        rs2=\E<\E["p\E[50;6"p\Ec\E[?3l\E]R\E[?1000l,
-       s0ds=\E[10m, s1ds=\E[11m, s2ds=\E[12m, sc=\E7,
-       setab=\E[4%p1%dm, setaf=\E[3%p1%dm,
+       s0ds=\E[10m, s1ds=\E[11m, s2ds=\E[12m, setab=\E[4%p1%dm,
+       setaf=\E[3%p1%dm,
        sgr=\E[0%?%p1%p6%|%t;1%;%?%p2%t;4%;%?%p1%p3%|%t;7%;%?%p4%t;5
            %;m%?%p9%t\016%e\017%;,
-       sgr0=\E[m\017, smacs=^N, smam=\E[?7h, smcup=\E[?47h,
-       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=vt220+pcedit,
+       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+tabs, use=ansi+rep, use=ecma+index,
-       use=xterm+sm+1006, use=putty+fnkeys, use=vt102+enq,
-       use=xterm+sl, use=vt100+fnkeys, use=putty+keypad,
-       use=vt220+cvis,
+       use=vt220+pcedit, use=xterm+alt1049, use=xterm+sm+1006,
+       use=putty+fnkeys, use=vt102+enq, use=xterm+sl,
+       use=vt100+fnkeys, use=putty+keypad, use=vt220+cvis,
+       use=bracketed+paste, use=putty+cursor,
+       use=ecma+strikeout,
+
+# 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,
+# and a few years later (after 0.74) restored as the control-modifier.
+putty+cursor|PuTTY modified cursor-keys,
+       kDN5=\E[B, kLFT5=\E[D, kRIT5=\E[C, kUP5=\E[A,
 putty+keypad|PuTTY numeric keypad,
        kp1=\EOq, kp2=\EOr, kp3=\EOs, kp4=\EOt, kp5=\EOu, kp6=\EOv,
        kp7=\EOw, kp8=\EOx, kp9=\EOy, kpADD=\EOl, kpDIV=\EOQ,
@@ -4379,10 +4383,11 @@ mintty+common|shared capabilities for mintty,
        rsupm=\E[75m, smm@, smpch=\E[11m, sshm=\E[1:2m,
        ssubm=\E[74m, ssupm=\E[73m, Rmol=\E[55m, Smol=\E[53m,
        Smulx=\E[4:%p1%dm, blink2=\E[6m, norm=\E[22m,
-       opaq=\E[28m, smul2=\E[21m, use=ansi+rep,
+       opaq=\E[28m, smul2=\E[21m, use=linux+kbs, use=ansi+rep,
        use=ecma+strikeout, use=ecma+index, use=vt420+lrmm,
-       use=xterm+sm+1006, use=xterm+pcfkeys, use=xterm+tmux,
-       use=ecma+italics, use=xterm-basic,
+       use=xterm+focus, use=xterm+sm+1006, use=xterm+pcfkeys,
+       use=xterm+tmux, use=ecma+italics, use=xterm-basic,
+       use=bracketed+paste, use=report+version,
 # 2019-06-09: These capabilities are commented-out for compatibility with
 # existing releases 5.9-6.1, and may be considered for inclusion after the
 # release of ncurses 6.2:
@@ -4450,18 +4455,17 @@ teraterm2.3|Tera Term Pro 2.3,
             \264v\301w\302x\263y\363z\362{\343|\330}\234~\376,
        blink=\E[5m, bold=\E[1m, clear=\E[H\E[J, cuf1=\E[C,
        cup=\E[%i%p1%d;%p2%dH, cuu1=\E[A, dch=\E[%p1%dP,
-       dch1=\E[P, dl=\E[%p1%dM, dl1=\E[M, ech=\E[%p1%dX, ed=\E[J,
-       el=\E[K, el1=\E[1K, flash=\E[?5h$<200/>\E[?5l,
-       hpa=\E[%i%p1%dG, il=\E[%p1%dL, il1=\E[L, kf1=\E[11~,
+       dch1=\E[P, ech=\E[%p1%dX, ed=\E[J, el=\E[K, el1=\E[1K,
+       flash=\E[?5h$<200/>\E[?5l, hpa=\E[%i%p1%dG, kf1=\E[11~,
        kf10=\E[21~, kf11=\E[23~, kf12=\E[24~, kf13=\E[25~,
        kf14=\E[26~, kf15=\E[28~, kf16=\E[29~, kf17=\E[31~,
        kf18=\E[32~, kf19=\E[33~, kf2=\E[12~, kf20=\E[34~,
        kf3=\E[13~, kf4=\E[14~, kf5=\E[15~, kf6=\E[17~, kf7=\E[18~,
        kf8=\E[19~, kf9=\E[20~, op=\E[100m, rev=\E[7m, ri=\EM,
        rmso=\E[27m, rmul=\E[24m, sgr0=\E[0m\017, smso=\E[7m,
-       smul=\E[4m, vpa=\E[%i%p1%dd, use=vt220+vtedit,
-       use=vt100+enq, use=klone+color, use=vt100,
-       use=vt220+cvis,
+       smul=\E[4m, vpa=\E[%i%p1%dd, use=ansi+idl,
+       use=vt220+vtedit, use=vt100+enq, use=klone+color,
+       use=vt100, use=vt220+cvis,
 
 # Version 4.59 has regular VT100 line-drawing (so it is no longer necessary
 # to choose a Windows OEM font).
@@ -4580,9 +4584,91 @@ ms-vt100+|vt100+|windows XP VT100+ (sic),
 ms-vt-utf8|vt-utf8|UTF-8 flavor of VT100+,
        use=ms-vt100+,
 
+# VT-UTF-8 and VT100+ Protocols
+# https://learn.microsoft.com/en-us/openspecs/windows_protocols/ms-vuvp/969416c0-ccd6-4a75-a9b3-597d7713845b
+#
+# This Microsoft "protocol" adapted the aixterm 16-color feature from xterm's
+# documentation in 2015, as seen in successive revisions:
+#
+# 2013/07/22 has 8 colors
+# 2015/10/16 has 16 colors using SGR 90-97, 100-107 as well as SGR 24 and 27,
+#            adds "informative" reference to xterm's ctlseqs
+#
+# The cnorm/civis definitions added in 2015 are unrelated to any standard.
+ms-vt100-16color|VT-UTF-8 and VT100+,
+       civis=\E[?h, cnorm=\E[?l, rmso=\E[27m, rmul=\E[24m,
+       use=ibm+16color, use=ms-vt100+,
+
+# Based on
+# https://docs.microsoft.com/en-us/windows/console/console-virtual-terminal-sequences
+# We use this scheme to map function keys
+#       terminfo        modifier        code    keys
+#       kf13-kf24       shift           2       F1 to F12
+#       kf25-kf36       alt             3       F1 to F12
+#       kf37-kf48       control         4       F1 to F12
+#       kf49-kf60       ctrl-alt        7       F1 to F12
+#
+# Unclear: smam and rmam implemented?
+# Unclear: rmkx, smkx, rmir, smir - irrelevant?
+#
+# TD:
+# +    According to tack, tbc and cbt fail.
+# +    The line-drawing (acsc) does not work in telnet or ssh.  I added the
+#      U8 extension to tell ncurses to use UTF-8 for line-drawing (when the
+#      locale uses UTF-8).  That won't work for telnet (which uses ASCII),
+#      but seems to work for OpenSSH's ssh.  I set the codepage to 65001,
+#      of course.
+# +    Function keys... do not work consistently in telnet and ssh.  With
+#      telnet, kf1-kf4 are \EOP to \EOS, and kf5-kf12 match the terminfo.
+#      But with ssh, it's entirely different (reminds me of rxvt).
+winconsole|Windows 10 new console,
+       am, km, mir, msgr, xenl, AX,
+       ncv@, U8#1,
+       acsc=++\,\,--..00``aaffgghhiijjkkllmmnnooppqqrrssttuuvvwwxxy
+            yzz~~,
+       bel=^G, blink@, cr=\r, ech=\E[%p1%dX, el1=\E[0K, ich1@, ind=\n,
+       invis@, is1=\E[!p, kdch1=\E[3~, kend=\E[4~, 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~, kich1=\E[2~,
+       knp=\E[6~, kpp=\E[5~, 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,
+
 # Windows Terminal (Preview)
 # https://github.com/microsoft/terminal
 #
+# Windows 10 22H2 (also Windows 11)
+# Version 1.16.10261.0
+#
+# - Windows Terminal #1553: "Feature Request:  Mouse/Touch/Pointer Bindings
+#   (like middle-click paste, right-click context menu, etc.)", compare to
+#   https://learn.microsoft.com/en-us/windows/console/mouse-event-record-str
+#   This appears to be related to a problem with its implementation of the
+#   Console API; the mouse does not work in a "Command Window" (e.g., as used
+#   in the ncurses MinGW driver), although escape sequences work.
+#
 # Windows 10 21H1
 # Version 1.9.1942.0
 #
@@ -4673,10 +4759,10 @@ ms-vt-utf8|vt-utf8|UTF-8 flavor of VT100+,
 ms-terminal|Windows10 terminal,
        npc,
        cud1=\E[B, kcbt=\E[Z, rmkx=\E[?1l, rmm@, smkx=\E[?1h, smm@,
-       Cr@, Ms@, use=xterm+256color, use=xterm+pcfkeys,
-       use=ansi+rep, use=xterm+sm+1006, use=ecma+index,
-       use=ecma+italics, use=ecma+strikeout, use=xterm-basic,
-       use=xterm+tmux,
+       Cr@, Ms@, use=linux+kbs, use=xterm+256color,
+       use=xterm+pcfkeys, use=ansi+rep, use=xterm+sm+1006,
+       use=ecma+index, use=ecma+italics, use=ecma+strikeout,
+       use=xterm-basic, use=xterm+tmux,
 
 #### Visual Studio
 # Visual Studio Code 1.45.0 uses xterm.js 12.8.1 (see https://xtermjs.org/).
@@ -4725,9 +4811,10 @@ ms-terminal|Windows10 terminal,
 # - color-palette cannot be changed
 vscode|xterm.js|Visual Studio Code terminal using xterm.js,
        npc,
-       kcbt=\E[Z, rmkx=\E[?1l, smkx=\E[?1h, use=xterm+256setaf,
-       use=ecma+index, use=xterm+sm+1006, use=xterm+pcfkeys,
-       use=ecma+italics, use=xterm-basic,
+       kcbt=\E[Z, rmkx=\E[?1l, smkx=\E[?1h, use=linux+kbs,
+       use=xterm+256setaf, use=ecma+index, use=xterm+focus,
+       use=xterm+sm+1006, use=xterm+pcfkeys, use=ecma+italics,
+       use=xterm-basic, use=bracketed+paste,
 vscode-direct|Visual Studio Code with direct-colors,
        use=xterm+indirect, use=vscode,
 
@@ -4754,14 +4841,14 @@ x10term|vs100-x10|xterm terminal emulator (X10 window system),
        cols#80, it#8, lines#65,
        bold=\E[1m, clear=\E[H\E[2J, csr=\E[%i%p1%d;%p2%dr,
        cub1=^H, cud1=\n, cuf1=\E[C, cup=\E[%i%p1%d;%p2%dH,
-       cuu1=\E[A, dch=\E[%p1%dP, dch1=\E[P, dl=\E[%p1%dM,
-       dl1=\E[M, ed=\E[J, el=\E[K, home=\E[H, ht=^I, il=\E[%p1%dL,
-       il1=\E[L, ind=\n, is2=\E\E[m\E[?7h\E[?1;4l, kbs=^H,
+       cuu1=\E[A, dch=\E[%p1%dP, dch1=\E[P, ed=\E[J, el=\E[K,
+       home=\E[H, ht=^I, ind=\n, is2=\E\E[m\E[?7h\E[?1;4l, kbs=^H,
        kcub1=\EOD, kcud1=\EOB, kcuf1=\EOC, kcuu1=\EOA, kf1=\EOP,
        kf2=\EOQ, kf3=\EOR, kf4=\EOS, rev=\E[7m, ri=\EM, rmam=\E[?7l,
        rmir=\E[4l, rmkx=\E[?1l\E>, rmso=\E[m, rmul=\E[m,
        sgr0=\E[m, smam=\E[?7h, smir=\E[4h, smkx=\E[?1h\E=,
-       smso=\E[7m, smul=\E[4m,
+       smso=\E[7m, smul=\E[4m, use=ansi+idl,
+
 # csl is extension which clears the status line
 x10term+sl|status-line for X10 xterm,
        eslok, hs,
@@ -4775,26 +4862,22 @@ x10term+sl|status-line for X10 xterm,
 xterm-r5|xterm R5 version,
        OTbs, am, km, msgr, xenl,
        cols#80, it#8, lines#24,
-       bel=^G, bold=\E[1m, clear=\E[H\E[2J, cr=\r,
-       csr=\E[%i%p1%d;%p2%dr, cub=\E[%p1%dD, 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,
-       dch=\E[%p1%dP, dch1=\E[P, dl=\E[%p1%dM, dl1=\E[M, ed=\E[J,
-       el=\E[K, home=\E[H, ht=^I, hts=\EH, ich=\E[%p1%d@, ich1=\E[@,
-       il=\E[%p1%dL, il1=\E[L, ind=\n, kcub1=\EOD, kcud1=\EOB,
-       kcuf1=\EOC, kcuu1=\EOA, kdl1=\E[31~, kel=\E[8~, kf0=\EOq,
-       kf1=\E[11~, kf10=\E[21~, kf11=\E[23~, kf12=\E[24~,
-       kf2=\E[12~, kf3=\E[13~, kf4=\E[14~, kf5=\E[15~, kf6=\E[17~,
-       kf7=\E[18~, kf8=\E[19~, kf9=\E[20~, khome=\E[1~,
-       kil1=\E[30~, kmous=\E[M, rc=\E8, rev=\E[7m, ri=\EM,
-       rmir=\E[4l, rmkx=\E[?1l\E>, rmso=\E[m, rmul=\E[m,
+       bel=^G, bold=\E[1m, clear=\E[H\E[2J, cr=\r, cub=\E[%p1%dD,
+       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, ed=\E[J,
+       el=\E[K, home=\E[H, ht=^I, hts=\EH, ind=\n, kdl1=\E[31~,
+       kel=\E[8~, kf0=\EOq, kf1=\E[11~, kf10=\E[21~, kf11=\E[23~,
+       kf12=\E[24~, kf2=\E[12~, kf3=\E[13~, kf4=\E[14~,
+       kf5=\E[15~, kf6=\E[17~, kf7=\E[18~, kf8=\E[19~, kf9=\E[20~,
+       khome=\E[1~, kil1=\E[30~, kmous=\E[M, rev=\E[7m, ri=\EM,
+       rmkx=\E[?1l\E>, rmso=\E[m, rmul=\E[m,
        rs2=\E>\E[?1;3;4;5;6l\E[4l\E[?7h\E[m\E[r\E[2J\E[H,
-       sc=\E7,
        sgr=\E[%?%p1%t;7%;%?%p2%t;4%;%?%p3%t;7%;%?%p4%t;5%;%?%p6%t;1
            %;m,
-       sgr0=\E[m, smir=\E[4h, smkx=\E[?1h\E=, smso=\E[7m,
-       smul=\E[4m, tbc=\E[3g, use=vt220+pcedit, use=vt100+enq,
-       use=xterm+kbs,
+       sgr0=\E[m, smkx=\E[?1h\E=, smso=\E[7m, smul=\E[4m,
+       tbc=\E[3g, use=xterm+kbs, use=ansi+apparrows,
+       use=ansi+csr, use=ansi+idc, use=ansi+idl,
+       use=vt220+pcedit, use=vt100+enq,
 
 # Compatible with the R6 xterm
 # (from XFree86 3.2 distribution, <acsc> and <it> added, <blink@> removed)
@@ -4805,13 +4888,11 @@ xterm-r6|xterm X11R6 version,
        OTbs, am, km, mir, msgr, xenl,
        cols#80, it#8, lines#24,
        acsc=``aaffggiijjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~,
-       bel=^G, bold=\E[1m, clear=\E[H\E[2J, cr=\r,
-       csr=\E[%i%p1%d;%p2%dr, cub=\E[%p1%dD, cub1=^H,
-       cud=\E[%p1%dB, cud1=\n, cuf=\E[%p1%dC, cuf1=\E[C,
+       bel=^G, bold=\E[1m, clear=\E[H\E[2J, cr=\r, cub=\E[%p1%dD,
+       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,
-       dch=\E[%p1%dP, dch1=\E[P, dl=\E[%p1%dM, dl1=\E[M, ed=\E[J,
-       el=\E[K, enacs=\E)0, home=\E[H, ht=^I, hts=\EH, il=\E[%p1%dL,
-       il1=\E[L, ind=\n,
+       dch=\E[%p1%dP, dch1=\E[P, ed=\E[J, el=\E[K, enacs=\E)0,
+       home=\E[H, ht=^I, hts=\EH, ind=\n,
        is2=\E[m\E[?7h\E[4l\E>\E7\E[r\E[?1;3;4;6l\E8,
        kcub1=\EOD, kcud1=\EOB, kcuf1=\EOC, kcuu1=\EOA, kf1=\E[11~,
        kf10=\E[21~, kf11=\E[23~, kf12=\E[24~, kf13=\E[25~,
@@ -4819,12 +4900,13 @@ xterm-r6|xterm X11R6 version,
        kf18=\E[32~, kf19=\E[33~, kf2=\E[12~, kf20=\E[34~,
        kf3=\E[13~, kf4=\E[14~, kf5=\E[15~, kf6=\E[17~, kf7=\E[18~,
        kf8=\E[19~, kf9=\E[20~, kmous=\E[M, meml=\El, memu=\Em,
-       rc=\E8, rev=\E[7m, ri=\EM, rmacs=^O, rmcup=\E[2J\E[?47l\E8,
-       rmir=\E[4l, rmkx=\E[?1l\E>, rmso=\E[m, rmul=\E[m,
-       rs2=\E[m\E[?7h\E[4l\E>\E7\E[r\E[?1;3;4;6l\E8, sc=\E7,
-       sgr0=\E[m, smacs=^N, smcup=\E7\E[?47h, smir=\E[4h,
-       smkx=\E[?1h\E=, smso=\E[7m, smul=\E[4m, tbc=\E[3g,
-       use=vt220+vtedit, use=xterm+kbs, use=vt100+enq,
+       rev=\E[7m, ri=\EM, rmacs=^O, rmir=\E[4l, rmkx=\E[?1l\E>,
+       rmso=\E[m, rmul=\E[m,
+       rs2=\E[m\E[?7h\E[4l\E>\E7\E[r\E[?1;3;4;6l\E8,
+       sgr0=\E[m, smacs=^N, smir=\E[4h, smkx=\E[?1h\E=,
+       smso=\E[7m, smul=\E[4m, tbc=\E[3g, use=xterm+alt47,
+       use=ansi+csr, use=ansi+idl, use=vt220+vtedit,
+       use=xterm+kbs, use=vt100+enq,
 xterm-old|antique xterm version,
        use=xterm-r6,
 # The monochrome version began as a copy of "xtermm" (from Solaris), and was
@@ -4840,40 +4922,36 @@ xterm-mono|monochrome xterm,
 # The name has been changed and some aliases have been removed.
 xterm-xf86-v32|xterm terminal emulator (XFree86 3.2 Window System),
        OTbs, am, bce, km, mir, msgr, xenl, XT,
-       cols#80, it#8, lines#24, ncv@,
+       cols#80, lines#24, ncv@,
        acsc=``aaffggiijjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~,
-       bel=^G, bold=\E[1m, cbt=\E[Z, clear=\E[H\E[2J, cr=\r,
-       csr=\E[%i%p1%d;%p2%dr, cub=\E[%p1%dD, cub1=^H,
-       cud=\E[%p1%dB, cud1=\n, cuf=\E[%p1%dC, cuf1=\E[C,
+       bel=^G, bold=\E[1m, clear=\E[H\E[2J, cr=\r, cub=\E[%p1%dD,
+       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,
-       dch=\E[%p1%dP, dch1=\E[P, dl=\E[%p1%dM, dl1=\E[M,
        ech=\E[%p1%dX, ed=\E[J, el=\E[K, el1=\E[1K, enacs=\E(B\E)0,
        flash=\E[?5h$<100/>\E[?5l, home=\E[H, hpa=\E[%i%p1%dG,
-       ht=^I, hts=\EH, ich=\E[%p1%d@, ich1=\E[@, il=\E[%p1%dL,
-       il1=\E[L, ind=\n,
-       is2=\E7\E[r\E[m\E[?7h\E[?1;3;4;6l\E[4l\E8\E>,
-       kbeg=\EOE, kcub1=\EOD, kcud1=\EOB, kcuf1=\EOC, kcuu1=\EOA,
-       kdch1=^?, kend=\EOF, kf1=\E[11~, kf10=\E[21~, kf11=\E[23~,
-       kf12=\E[24~, kf13=\E[25~, kf14=\E[26~, kf15=\E[28~,
-       kf16=\E[29~, kf17=\E[31~, kf18=\E[32~, kf19=\E[33~,
-       kf2=\E[12~, kf20=\E[34~, kf3=\E[13~, kf4=\E[14~,
-       kf5=\E[15~, kf6=\E[17~, kf7=\E[18~, kf8=\E[19~, kf9=\E[20~,
-       kfnd=\E[1~, khome=\EOH, kich1=\E[2~, kmous=\E[M, knp=\E[6~,
-       kpp=\E[5~, kslt=\E[4~, meml=\El, memu=\Em, rc=\E8, rev=\E[7m,
-       ri=\EM, rmacs=^O, rmam=\E[?7l, rmcup=\E[2J\E[?47l\E8,
-       rmir=\E[4l, rmkx=\E[?1l\E>, rmso=\E[27m, rmul=\E[24m,
-       rs1=^O, rs2=\E7\E[r\E8\E[m\E[?7h\E[?1;3;4;6l\E[4l\E>,
-       sc=\E7,
+       ind=\n, is2=\E7\E[r\E[m\E[?7h\E[?1;3;4;6l\E[4l\E8\E>,
+       kbeg=\EOE, kbs=^?, kdch1=^?, kend=\EOF, kf1=\E[11~,
+       kf10=\E[21~, kf11=\E[23~, kf12=\E[24~, kf13=\E[25~,
+       kf14=\E[26~, kf15=\E[28~, kf16=\E[29~, kf17=\E[31~,
+       kf18=\E[32~, kf19=\E[33~, kf2=\E[12~, kf20=\E[34~,
+       kf3=\E[13~, kf4=\E[14~, kf5=\E[15~, kf6=\E[17~, kf7=\E[18~,
+       kf8=\E[19~, kf9=\E[20~, kfnd=\E[1~, kich1=\E[2~,
+       kmous=\E[M, knp=\E[6~, kpp=\E[5~, kslt=\E[4~, meml=\El,
+       memu=\Em, rev=\E[7m, ri=\EM, rmacs=^O, rmam=\E[?7l,
+       rmkx=\E[?1l\E>, rmso=\E[27m, rmul=\E[24m, rs1=^O,
+       rs2=\E7\E[r\E8\E[m\E[?7h\E[?1;3;4;6l\E[4l\E>,
        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%?%p1%p6%|%t;1%;%?%p2%t;4%;%?%p1%p3%|%t;7%;%?%p4%t;5
            %;m%?%p9%t\016%e\017%;,
-       sgr0=\E[m\017, smacs=^N, smam=\E[?7h, smcup=\E7\E[?47h,
-       smir=\E[4h, smkx=\E[?1h\E=, smso=\E[7m, smul=\E[4m,
-       tbc=\E[3g, vpa=\E[%i%p1%dd, use=xterm+kbs, use=vt100+enq,
-       use=ecma+color, use=vt220+cvis, use=vt220+keypad,
+       sgr0=\E[m\017, smacs=^N, smam=\E[?7h, smkx=\E[?1h\E=,
+       smso=\E[7m, smul=\E[4m, vpa=\E[%i%p1%dd,
+       use=ansi+apparrows, use=ansi+csr, use=ansi+idc,
+       use=ansi+idl, use=ansi+inittabs, use=xterm+alt47,
+       use=xterm+kbs, use=vt100+enq, use=ecma+color,
+       use=vt220+cvis, use=vt220+keypad,
 
 # This is the stock xterm entry supplied with XFree86 3.3, which uses VT100
 # codes for F1-F4 except while in VT220 mode.
@@ -4899,18 +4977,17 @@ xterm-xf86-v40|xterm terminal emulator (XFree86 4.0 Window System),
        npc,
        kDC=\E[3;5~, kEND=\EO5F, kHOM=\EO5H, kIC=\E[2;5~,
        kLFT=\EO5D, kNXT=\E[6;5~, kPRV=\E[5;5~, kRIT=\EO5C, ka1@,
-       ka3@, kb2=\EOE, kc1@, kc3@, kcbt=\E[Z, kdch1=\E[3~, kend=\EOF,
-       kf13=\EO2P, kf14=\EO2Q, kf15=\EO2R, kf16=\EO2S,
-       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[23;2~, kf24=\E[24;2~, kf25=\EO5P, kf26=\EO5Q,
-       kf27=\EO5R, kf28=\EO5S, kf29=\E[15;5~, 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=\EO6P,
-       kf38=\EO6Q, kf39=\EO6R, 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~, khome=\EOH,
+       ka3@, kb2=\EOE, kc1@, kc3@, kcbt=\E[Z, kf13=\EO2P, kf14=\EO2Q,
+       kf15=\EO2R, kf16=\EO2S, 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[23;2~, kf24=\E[24;2~, kf25=\EO5P,
+       kf26=\EO5Q, kf27=\EO5R, kf28=\EO5S, kf29=\E[15;5~,
+       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=\EO6P, kf38=\EO6Q, kf39=\EO6R,
+       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~,
        sgr=\E[0%?%p6%t;1%;%?%p2%t;4%;%?%p1%p3%|%t;7%;%?%p4%t;5%;m%?
            %p9%t\016%e\017%;,
        use=xterm+alt1049, use=xterm-xf86-v333,
@@ -4946,16 +5023,18 @@ xterm-xfree86|xterm terminal emulator (XFree86),
 
 xterm+nofkeys|building block for xterm fkey-variants,
        npc,
-       kcbt=\E[Z, kent=\EOM, nel=\EE, use=ecma+index,
-       use=ansi+rep, use=ecma+strikeout, use=vt420+lrmm,
+       kcbt=\E[Z, nel=\EE, use=ecma+index, use=ansi+rep,
+       use=ecma+strikeout, use=vt420+lrmm, use=xterm+focus,
        use=xterm+sm+1006, use=xterm+tmux, use=ecma+italics,
        use=xterm+keypad, use=xterm-basic,
 
 xterm-p370|xterm patch #370,
-       npc,
-       kcbt=\E[Z, kent=\EOM, nel=\EE, use=ecma+index,
-       use=ansi+rep, use=ecma+strikeout, use=xterm+pcfkeys,
-       use=xterm+nofkeys,
+       rv=\E\\[41;[1-6][0-9][0-9];0c,
+       xr=\EP>\\|XTerm\\([1-9][0-9]+\\)\E\\\\,
+       use=ecma+index, use=ansi+rep, use=ecma+strikeout,
+       use=xterm+pcfkeys, use=xterm+nofkeys,
+       use=bracketed+paste, use=report+version,
+       use=xterm+focus,
 
 xterm-p371|xterm patch #371,
        use=dec+sl, use=xterm-p370,
@@ -4965,9 +5044,15 @@ xterm-new|modern xterm terminal emulator,
        use=xterm-p370,
 
 # This fragment is for people who cannot agree on what the backspace key
-# should send.
+# should send.  The ncurses configure script option "--with-xterm-kbs" can
+# set it to BS (standard) or DEL (Linux's notion of "vt220").  xterm provides
+# either, depending on how the pseudoterminals are configured.
 xterm+kbs|fragment for backspace key,
        kbs=^H,
+
+# Use this fragment for terminals that always use DEL for "backspace".
+linux+kbs|fragment for "backspace" key,
+       kbs=^?,
 #
 # This fragment describes as much of XFree86 xterm's "pc-style" function
 # keys as will fit into terminfo's 60 function keys.
@@ -5129,17 +5214,16 @@ xterm+pcf2|fragment with modifyFunctionKeys:2,
 # Chunks from xterm #230:
 xterm+pce2|fragment with modifyCursorKeys:2 editing-keys,
        kDC=\E[3;2~, kEND=\E[1;2F, kHOM=\E[1;2H, kIC=\E[2;2~,
-       kNXT=\E[6;2~, kPRV=\E[5;2~, kich1=\E[2~, knp=\E[6~,
-       kpp=\E[5~, kDC3=\E[3;3~, kDC4=\E[3;4~, kDC5=\E[3;5~,
-       kDC6=\E[3;6~, kDC7=\E[3;7~, kEND3=\E[1;3F, kEND4=\E[1;4F,
-       kEND5=\E[1;5F, kEND6=\E[1;6F, kEND7=\E[1;7F,
-       kHOM3=\E[1;3H, kHOM4=\E[1;4H, kHOM5=\E[1;5H,
-       kHOM6=\E[1;6H, kHOM7=\E[1;7H, kIC3=\E[2;3~, kIC4=\E[2;4~,
-       kIC5=\E[2;5~, kIC6=\E[2;6~, kIC7=\E[2;7~, kNXT3=\E[6;3~,
-       kNXT4=\E[6;4~, kNXT5=\E[6;5~, kNXT6=\E[6;6~,
-       kNXT7=\E[6;7~, kPRV3=\E[5;3~, kPRV4=\E[5;4~,
-       kPRV5=\E[5;5~, kPRV6=\E[5;6~, kPRV7=\E[5;7~,
-       use=xterm+edit,
+       kNXT=\E[6;2~, kPRV=\E[5;2~, kDC3=\E[3;3~, kDC4=\E[3;4~,
+       kDC5=\E[3;5~, kDC6=\E[3;6~, kDC7=\E[3;7~, kEND3=\E[1;3F,
+       kEND4=\E[1;4F, kEND5=\E[1;5F, kEND6=\E[1;6F,
+       kEND7=\E[1;7F, kHOM3=\E[1;3H, kHOM4=\E[1;4H,
+       kHOM5=\E[1;5H, kHOM6=\E[1;6H, kHOM7=\E[1;7H,
+       kIC3=\E[2;3~, kIC4=\E[2;4~, kIC5=\E[2;5~, kIC6=\E[2;6~,
+       kIC7=\E[2;7~, kNXT3=\E[6;3~, kNXT4=\E[6;4~,
+       kNXT5=\E[6;5~, kNXT6=\E[6;6~, kNXT7=\E[6;7~,
+       kPRV3=\E[5;3~, kPRV4=\E[5;4~, kPRV5=\E[5;5~,
+       kPRV6=\E[5;6~, kPRV7=\E[5;7~, use=xterm+edit,
 
 xterm+edit|fragment for 6-key editing-keypad,
        kdch1=\E[3~, kich1=\E[2~, knp=\E[6~, kpp=\E[5~,
@@ -5156,6 +5240,9 @@ xterm+vt+edit|fragment for VT220-style editing keypad,
 xterm+noalt|xterm without altscreen,
        rmcup@, smcup@,
 
+xterm+alt47|X11R4 alternate-screen,
+       rmcup=\E[2J\E[?47l\E8, smcup=\E7\E[?47h,
+
 xterm+alt1049|xterm 90 feature,
        rmcup=\E[?1049l, smcup=\E[?1049h,
 
@@ -5228,22 +5315,20 @@ xterm+acs|ISO-2022 alternate character-switching for xterm,
 # This chunk is used for building the VT220/Sun/PC keyboard variants.
 xterm-basic|modern xterm terminal emulator - common,
        OTbs, am, bce, mir, msgr, xenl, AX, XT,
-       colors#8, cols#80, it#8, lines#24, pairs#64,
+       colors#8, cols#80, lines#24, pairs#64,
        acsc=``aaffggiijjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~,
-       bel=^G, blink=\E[5m, bold=\E[1m, cbt=\E[Z, clear=\E[H\E[2J,
-       cr=\r, csr=\E[%i%p1%d;%p2%dr, cub=\E[%p1%dD, 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,
-       dch=\E[%p1%dP, dch1=\E[P, dim=\E[2m, dl=\E[%p1%dM,
-       dl1=\E[M, ech=\E[%p1%dX, ed=\E[J, el=\E[K, el1=\E[1K,
+       bel=^G, blink=\E[5m, bold=\E[1m, clear=\E[H\E[2J, cr=\r,
+       cub=\E[%p1%dD, 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, dch=\E[%p1%dP, dch1=\E[P,
+       dim=\E[2m, ech=\E[%p1%dX, ed=\E[J, el=\E[K, el1=\E[1K,
        flash=\E[?5h$<100/>\E[?5l, home=\E[H, hpa=\E[%i%p1%dG,
-       ht=^I, hts=\EH, ich=\E[%p1%d@, il=\E[%p1%dL, il1=\E[L,
-       ind=\n, invis=\E[8m, is2=\E[!p\E[?3;4l\E[4l\E>,
-       kmous=\E[M, meml=\El, memu=\Em, op=\E[39;49m, rc=\E8,
-       rev=\E[7m, ri=\EM, rmacs=\E(B, rmam=\E[?7l, rmir=\E[4l,
-       rmkx=\E[?1l\E>, rmso=\E[27m, rmul=\E[24m, rs1=\Ec,
-       rs2=\E[!p\E[?3;4l\E[4l\E>, sc=\E7, setab=\E[4%p1%dm,
-       setaf=\E[3%p1%dm,
+       ich=\E[%p1%d@, ind=\n, invis=\E[8m,
+       is2=\E[!p\E[?3;4l\E[4l\E>, kmous=\E[M, meml=\El,
+       memu=\Em, op=\E[39;49m, rev=\E[7m, ri=\EM, rmacs=\E(B,
+       rmam=\E[?7l, rmir=\E[4l, rmkx=\E[?1l\E>, rmso=\E[27m,
+       rmul=\E[24m, rs1=\Ec, rs2=\E[!p\E[?3;4l\E[4l\E>,
+       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}
@@ -5251,10 +5336,10 @@ xterm-basic|modern xterm terminal emulator - common,
        sgr=%?%p9%t\E(0%e\E(B%;\E[0%?%p6%t;1%;%?%p5%t;2%;%?%p2%t;4%;
            %?%p1%p3%|%t;7%;%?%p4%t;5%;%?%p7%t;8%;m,
        sgr0=\E(B\E[m, smacs=\E(0, smam=\E[?7h, smir=\E[4h,
-       smkx=\E[?1h\E=, smso=\E[7m, smul=\E[4m, tbc=\E[3g,
-       vpa=\E[%i%p1%dd, E3=\E[3J, use=ansi+pp, use=xterm+kbs,
-       use=xterm+alt+title, use=ansi+enq, use=att610+cvis,
-       use=xterm+meta,
+       smkx=\E[?1h\E=, smso=\E[7m, smul=\E[4m, vpa=\E[%i%p1%dd,
+       E3=\E[3J, use=ansi+csr, use=ansi+enq, use=ansi+idl,
+       use=ansi+inittabs, use=ansi+pp, use=xterm+kbs,
+       use=xterm+alt+title, use=att610+cvis, use=xterm+meta,
 
 xterm+meta|meta mode for xterm,
        km,
@@ -5545,8 +5630,8 @@ xterm-8bit|xterm terminal emulator 8-bit controls (X Window System),
        sgr0=\2330m\E(B, smacs=\E(0, smam=\233?7h,
        smcup=\233?1049h, smir=\2334h, smkx=\233?1h\E=,
        smso=\2337m, smul=\2334m, tbc=\2333g, u6=\233[%i%d;%dR,
-       u7=\E[6n, u8=\233[?%[;0123456789]c, u9=\E[c,
-       vpa=\233%i%p1%dd, use=xterm+kbs,
+       u8=\233[?%[;0123456789]c, vpa=\233%i%p1%dd,
+       use=ansi+enq, use=xterm+kbs,
 
 # Note: normally xterm supports modified function-keys as described in
 #      XTerm - "Other" modified keys
@@ -5571,19 +5656,18 @@ xterm-hp|xterm with hpterm function keys,
        use=hp+pfk-cr, use=xterm+nofkeys, use=xterm+nopcfkeys,
 
 xterm-sco|xterm with SCO function keys,
-       kbeg=\E[E, kcub1=\E[D, kcud1=\E[B, kcuf1=\E[C, kcuu1=\E[A,
-       kdch1=^?, kend=\E[F, kf1=\E[M, kf10=\E[V, kf11=\E[W,
-       kf12=\E[X, kf13=\E[Y, kf14=\E[Z, kf15=\E[a, kf16=\E[b,
-       kf17=\E[c, kf18=\E[d, kf19=\E[e, kf2=\E[N, kf20=\E[f,
-       kf21=\E[g, kf22=\E[h, kf23=\E[i, kf24=\E[j, kf25=\E[k,
-       kf26=\E[l, kf27=\E[m, kf28=\E[n, kf29=\E[o, kf3=\E[O,
-       kf30=\E[p, kf31=\E[q, kf32=\E[r, kf33=\E[s, kf34=\E[t,
-       kf35=\E[u, kf36=\E[v, kf37=\E[w, kf38=\E[x, kf39=\E[y,
-       kf4=\E[P, kf40=\E[z, kf41=\E[@, kf42=\E[[, kf43=\E[\\,
-       kf44=\E[], kf45=\E[\^, kf46=\E[_, kf47=\E[`, kf48=\E[{,
-       kf5=\E[Q, kf6=\E[R, kf7=\E[S, kf8=\E[T, kf9=\E[U, khome=\E[H,
+       kbeg=\E[E, kbs=^?, kdch1=^?, kend=\E[F, kf1=\E[M, kf10=\E[V,
+       kf11=\E[W, kf12=\E[X, kf13=\E[Y, kf14=\E[Z, kf15=\E[a,
+       kf16=\E[b, kf17=\E[c, kf18=\E[d, kf19=\E[e, kf2=\E[N,
+       kf20=\E[f, kf21=\E[g, kf22=\E[h, kf23=\E[i, kf24=\E[j,
+       kf25=\E[k, kf26=\E[l, kf27=\E[m, kf28=\E[n, kf29=\E[o,
+       kf3=\E[O, kf30=\E[p, kf31=\E[q, kf32=\E[r, kf33=\E[s,
+       kf34=\E[t, kf35=\E[u, kf36=\E[v, kf37=\E[w, kf38=\E[x,
+       kf39=\E[y, kf4=\E[P, kf40=\E[z, kf41=\E[@, kf42=\E[[,
+       kf43=\E[\\, kf44=\E[], kf45=\E[\^, kf46=\E[_, kf47=\E[`,
+       kf48=\E[{, kf5=\E[Q, kf6=\E[R, kf7=\E[S, kf8=\E[T, kf9=\E[U,
        kich1=\E[L, kmous=\E[>M, knp=\E[G, kpp=\E[I,
-       use=xterm+nofkeys,
+       use=ansi+arrows, use=xterm+nofkeys,
 
 # The xterm-new description has all of the features, but is not completely
 # compatible with VT220.  If you are using a Sun or PC keyboard, set the
@@ -5596,17 +5680,15 @@ xterm-sco|xterm with SCO function keys,
 #
 xterm-vt220|xterm emulating VT220,
        npc,
-       kcbt=\E[Z, kcub1=\EOD, kcud1=\EOB, kcuf1=\EOC, kcuu1=\EOA,
-       kend=\E[4~, kent=\EOM, kf10=\E[21~, kf11=\E[23~,
+       kcbt=\E[Z, kend=\E[4~, kf10=\E[21~, kf11=\E[23~,
        kf12=\E[24~, kf13=\E[25~, kf14=\E[26~, kf15=\E[28~,
        kf16=\E[29~, kf17=\E[31~, kf18=\E[32~, kf19=\E[33~,
        kf20=\E[34~, kf5=\E[15~, kf6=\E[17~, kf7=\E[18~,
-       kf8=\E[19~, kf9=\E[20~, khome=\E[1~, kich1=\E[2~,
-       kmous=\E[M, knp=\E[6~, kpp=\E[5~, nel=\EE, use=xterm+app,
-       use=xterm+edit, use=vt220+keypad, use=ecma+italics,
-       use=ecma+index, use=ansi+rep, use=ecma+strikeout,
-       use=xterm+sm+1006, use=xterm+tmux, use=xterm+keypad,
-       use=xterm-basic,
+       kf8=\E[19~, kf9=\E[20~, khome=\E[1~, kmous=\E[M, nel=\EE,
+       use=xterm+app, use=xterm+edit, use=vt220+keypad,
+       use=ecma+italics, use=ecma+index, use=ansi+rep,
+       use=ecma+strikeout, use=xterm+focus, use=xterm+sm+1006,
+       use=xterm+tmux, use=xterm+keypad, use=xterm-basic,
 
 xterm-vt52|xterm emulating DEC VT52,
        cols#80, it#8, lines#24,
@@ -5701,7 +5783,7 @@ xterm+sl-alt|alternate access X title line,
 #
 dec+sl|DEC VTxx status line,
        eslok, hs,
-       dsl=\E[1$~, fsl=\E[0$}, tsl=\E[2$~\E[1$}\E[%i%p1%d`,
+       dsl=\E[0$~, fsl=\E[0$}, tsl=\E[2$~\E[1$}\E[%i%p1%d`,
 
 #
 # The following xterm variants don't depend on your base version
@@ -5719,6 +5801,33 @@ xterm-nic|xterm with ich/ich1 suppressed for non-curses programs,
 xterm1|xterm terminal emulator ignoring the alternate screen buffer,
        rmcup@, smcup@, use=xterm,
 
+# https://invisible-island.net/xterm/xterm-paste64.html
+#
+# Bracketed paste was introduced by xterm patch #203 in May 2005, as part of a
+# larger feature for manipulating the clipboard selection.  Few terminals aside
+# from xterm fully implement the clipboard feature, but several copy this
+# detail.  The names for the extended capabilities here were introduced by vim
+# in January 2017, but used internally.  In 2023, vim patch 9.0.1117 is needed
+# to work with this change.
+bracketed+paste|xterm bracketed paste,
+       BD=\E[?2004l, BE=\E[?2004h, PE=\E[201~, PS=\E[200~,
+
+# https://invisible-island.net/xterm/xterm.log.html#xterm_354
+#
+# The response is a DSR sequence identifying the version: DCS > | text ST
+# For example:
+#      ^[P>|XTerm(354)^[\
+report+version|Report xterm name and version (XTVERSION),
+       XR=\E[>0q, xr=\EP>\\|[ -~]+\E\\\\, use=report+da2,
+
+# Vim uses RV to denote the secondary device attributes.  Xterm documents the
+# - first parameter as the terminal type (extending it to VT100),
+# - the second as the patch number for xterm, and
+# - the third parameter as zero.
+# Other terminals may provide useful responses, though few are documented.
+report+da2|report secondary device attributes (DA2),
+       RV=\E[>c, rv=\E\\[[0-9]+;[0-9]+;[0-9]+c,
+
 #### XTERM Mouse
 # The xterm mouse protocol is used by other terminal emulators.
 # In this section, two extended capabilities are used to illustrate the mouse
@@ -5802,9 +5911,9 @@ xterm-x11hilite|X11 mouse with highlight,
 # "any-event" mouse mode.
 #
 # These building blocks incorporate later features as well:
-# xterm patch #224 (2007/2/11 added private mode 1004, for enabling/disabling
+# xterm patch #224 (2007/2/11) added private mode 1004, for enabling/disabling
 # focus in/out event reporting.
-# xterm patch #277 (2012/01/07 added private mode 1006
+# xterm patch #277 (2012/01/07) added private mode 1006
 
 xterm+sm+1002|xterm any-button mouse,
        kmous=\E[<, XM=\E[?1006;1004;1002%?%p1%{1}%=%th%el%;,
@@ -5819,8 +5928,12 @@ xterm+sm+1003|xterm any-event mouse,
 xterm-1003|example of xterm any-event mouse,
        use=xterm+sm+1003, use=xterm,
 
+# Some terminal emulators implement xterm focus in/out, but do it incorrectly,
+# interfering with user applications.
+# https://lists.gnu.org/archive/html/bug-ncurses/2023-10/msg00087.html
 xterm+focus|xterm focus-in/out event "keys",
-       kxIN=\E[I, kxOUT=\E[O,
+       XF,
+       fd=\E[?1004l, fe=\E[?1004h, kxIN=\E[I, kxOUT=\E[O,
 
 # xterm patch #116 (1999/9/25) added Stephen P Wall's changes to support DEC
 # locator mode.
@@ -5858,6 +5971,13 @@ xterm+sm+1006|xterm SGR-mouse (building block),
 xterm-1006|xterm SGR-mouse,
        use=xterm+sm+1006, use=xterm,
 
+# Some terminal emulators implement xterm focus in/out, but do it incorrectly,
+# interfering with user applications.
+# https://lists.gnu.org/archive/html/bug-ncurses/2023-10/msg00087.html
+oldxterm+sm+1006|xterm SGR-mouse (building block),
+       kmous=\E[<, XM=\E[?1006;1000%?%p1%{1}%=%th%el%;,
+       xm=\E[<%i%p3%d;%p1%d;%p2%d;%?%p4%tM%em%;,
+
 #### KTERM
 # (kterm: this had extension capabilities ":KJ:TY=ascii:" -- esr)
 # (kterm should not invoke DEC Graphics as the alternate character set
@@ -5868,9 +5988,8 @@ xterm-1006|xterm SGR-mouse,
 kterm|kterm kanji terminal emulator (X window system),
        XT,
        ncv@,
-       acsc=``aajjkkllmmnnooppqqrrssttuuvvwwxx~~,
-       csr=\E[%i%p1%d;%p2%dr, enacs=, kmous=\E[M, rc=\E8,
-       rmacs=\E(B, rmam=\E[?7l, sc=\E7,
+       acsc=``aajjkkllmmnnooppqqrrssttuuvvwwxx~~, enacs=,
+       rmacs=\E(B, rmam=\E[?7l,
        sgr=\E[0%?%p6%t;1%;%?%p2%t;4%;%?%p1%p3%|%t;7%;m%?%p9%t\E(0%e
            \E(B%;,
        sgr0=\E[m\E(B, smacs=\E(0, smam=\E[?7h, use=x10term+sl,
@@ -5888,24 +6007,22 @@ xtermm|xterm terminal emulator (monochrome),
        btns#3, cols#80, it#8, lines#24,
        acsc=``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~,
        bel=^G, blink@, bold=\E[1m, clear=\E[H\E[2J, cr=\r,
-       csr=\E[%i%p1%d;%p2%dr, cub=\E[%p1%dD, cub1=\E[D,
-       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,
-       dch=\E[%p1%dP, dch1=\E[P, dl=\E[%p1%dM, dl1=\E[M, ed=\E[J,
-       el=\E[K, el1=\E[1K$<3>, enacs=\E(B\E)0, getm=\E[%p1%dY,
-       home=\E[H, ht=^I, hts=\EH, ich=\E[%p1%d@, ich1=\E[@,
-       il=\E[%p1%dL, il1=\E[L, ind=\n, kbs=^H, kcub1=\EOD,
-       kcud1=\EOB, kcuf1=\EOC, kcuu1=\EOA, kend=\E[Y, kf0=\EOy,
-       kf10=\EOY, kf11=\EOZ, kf12=\EOA, kf5=\EOT, kf6=\EOU,
-       kf7=\EOV, kf8=\EOW, kf9=\EOX, khome=\E[H, kmous=\E[^_,
-       knp=\E[U, kpp=\E[V, rc=\E8, reqmp=\E[492Z, rev=\E[7m, ri=\EM,
-       rmacs=^O, rmcup=\E@0\E[?4r, rmso=\E[m,
+       cub=\E[%p1%dD, cub1=\E[D, cud=\E[%p1%dB, cud1=\n,
+       cuf=\E[%p1%dC, cuf1=\E[C, cuu=\E[%p1%dA, cuu1=\E[A,
+       dch=\E[%p1%dP, dch1=\E[P, el1=\E[1K$<3>, enacs=\E(B\E)0,
+       getm=\E[%p1%dY, ht=^I, hts=\EH, ich=\E[%p1%d@, ich1=\E[@,
+       ind=\n, kend=\E[Y, kf0=\EOy, kf10=\EOY, kf11=\EOZ, kf12=\EOA,
+       kf5=\EOT, kf6=\EOU, kf7=\EOV, kf8=\EOW, kf9=\EOX, khome=\E[H,
+       kmous=\E[^_, knp=\E[U, kpp=\E[V, reqmp=\E[492Z, rev=\E[7m,
+       ri=\EM, rmacs=^O, rmcup=\E@0\E[?4r, rmso=\E[m,
        rs1=\E>\E[1;3;4;5;6l\E[?7h\E[m\E[r\E[2J\E[H,
-       rs2=\E>\E[?3l\E[?4l\E[?5l\E[?7h\E[?8h, sc=\E7,
+       rs2=\E>\E[?3l\E[?4l\E[?5l\E[?7h\E[?8h,
        sgr=\E[0%?%p1%p6%|%t;1%;%?%p2%t;4%;%?%p1%p3%|%t;7%;%?%p4%t;5
            %;m%?%p9%t\016%e\017%;,
        sgr0=\E[m\017, smacs=^N, smcup=\E@0\E[?4s\E[?4h\E@1,
-       smso=\E[7m, tbc=\E[3g, use=vt100+fnkeys,
+       smso=\E[7m, tbc=\E[3g, use=ansi+apparrows, use=ansi+csr,
+       use=ansi+cup, use=ansi+erase, use=ansi+idl,
+       use=decid+cpr, use=vt100+fnkeys,
 
 xtermc|xterm terminal emulator (color),
        colors#8, ncv#7, pairs#64,
@@ -5928,8 +6045,25 @@ xterm-pcolor|xterm with color used for highlights and status line,
            %t;7;31%;%?%p3%t;7;34%;m,
        smso=\E[7;31m, smul=\E[4;42m, use=xterm+sl, use=xterm-r6,
 
+# This was mentioned
+#      http://unix.stackexchange.com/questions/119/colors-in-man-pages
+# pointing to
+#      http://nion.modprobe.de/blog/archives/569-colored-manpages.html
+#      (blog posting by Nico Golde, June 24 2007)
+# archive:
+#      https://web-beta.archive.org/web/20070921042430/http://nion.modprobe.de/mostlike.txt
+# The comment hints where it started, but there are differences:
+#      Reconstructed via infocmp from file: /usr/share/terminfo/x/xterm-pcolor
+mostlike|manpages with color looking like most,
+       OTbs@,
+       bold=\E[1m\E[31m,
+       is2=\E7\E[r\E[m\E[?7h\E[?1;3;4;6l\E[4l\E8\E>, kbs=^H,
+       meml@, memu@, rev=\E[7m\E[34m,
+       rs2=\E7\E[r\E8\E[m\E[?7h\E[?1;3;4;6l\E[4l\E>, sgr@,
+       smso=\E[1;30m\E[47m, smul=\E[32m, TS@, use=xterm-pcolor,
+
 # This describes the capabilities of color_xterm, an xterm variant from
-# before ECMA-64 color support was folded into the main-line xterm release.
+# before ECMA-48 color support was folded into the main-line xterm release.
 # This entry is straight from color_xterm's maintainer.
 # From: Jacob Mandelson <jlm@ugcs.caltech.edu>, 09 Nov 1996
 # The README's with the distribution also say that it supports SGR 21, 24, 25
@@ -5938,28 +6072,26 @@ color_xterm|cx|cx100|color_xterm color terminal emulator for X,
        OTbs, am, km, mir, msgr, xenl, XT,
        cols#80, it#8, lines#65, ncv@,
        acsc=``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~,
-       bel=^G, bold=\E[1m, clear=\E[H\E[2J, cr=\r,
-       csr=\E[%i%p1%d;%p2%dr, cub=\E[%p1%dD, cub1=^H,
-       cud=\E[%p1%dB, cud1=\n, cuf=\E[%p1%dC, cuf1=\E[C,
+       bel=^G, bold=\E[1m, clear=\E[H\E[2J, cr=\r, cub=\E[%p1%dD,
+       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,
-       dch=\E[%p1%dP, dch1=\E[P, dl=\E[%p1%dM, dl1=\E[M, ed=\E[J,
-       el=\E[K, el1=\E[1K, enacs=\E(B\E)0, home=\E[H, ht=^I,
-       ich=\E[%p1%d@, il=\E[%p1%dL, il1=\E[L, ind=\n,
-       is1=\E[r\E[m\E[?7h\E[?4;6l\E[4l, kbs=^H, kcub1=\EOD,
-       kcud1=\EOB, kcuf1=\EOC, kcuu1=\EOA, kend=\E[8~, kf1=\E[11~,
-       kf10=\E[21~, kf11=\E[23~, kf12=\E[24~, kf2=\E[12~,
-       kf3=\E[13~, kf4=\E[14~, kf5=\E[15~, kf6=\E[17~, kf7=\E[18~,
-       kf8=\E[19~, kf9=\E[20~, khome=\E[7~, kich1=\E[2~,
-       kmous=\E[M, knp=\E[6~, kpp=\E[5~, rc=\E8, rev=\E[7m, ri=\EM,
-       rmacs=^O, rmam=\E[?7l, rmcup=\E>\E[?41;1r, rmir=\E[4l,
-       rmso=\E[27m, rmul=\E[24m,
+       dch=\E[%p1%dP, dch1=\E[P, ed=\E[J, el=\E[K, el1=\E[1K,
+       enacs=\E(B\E)0, home=\E[H, ht=^I, ich=\E[%p1%d@, ind=\n,
+       is1=\E[r\E[m\E[?7h\E[?4;6l\E[4l, kend=\E[8~,
+       kf1=\E[11~, kf10=\E[21~, kf11=\E[23~, kf12=\E[24~,
+       kf2=\E[12~, kf3=\E[13~, kf4=\E[14~, kf5=\E[15~, kf6=\E[17~,
+       kf7=\E[18~, kf8=\E[19~, kf9=\E[20~, khome=\E[7~,
+       kich1=\E[2~, kmous=\E[M, knp=\E[6~, kpp=\E[5~, rev=\E[7m,
+       ri=\EM, rmacs=^O, rmam=\E[?7l, rmcup=\E>\E[?41;1r,
+       rmir=\E[4l, rmso=\E[27m, rmul=\E[24m,
        rs1=\E(B\017\E[r\E[m\E[2J\E[H\E[?7h\E[?1;3;4;6l\E[4l\E<,
-       sc=\E7,
        sgr=\E[0%?%p1%p6%|%t;1%;%?%p2%t;4%;%?%p1%p3%|%t;7%;%?%p4%t;5
            %;m%?%p9%t\016%e\017%;,
        sgr0=\E[0m\017, smacs=^N, smam=\E[?7h,
        smcup=\E[?1;41s\E[?1;41h\E=, smir=\E[4h, smso=\E[7m,
-       smul=\E[4m, use=ecma+color, use=vt220+keypad,
+       smul=\E[4m, use=ansi+apparrows, use=ansi+csr,
+       use=ansi+idl, use=decid+cpr, use=ecma+color,
+       use=vt220+keypad,
 
 # The IRAF source has a terminfo using "xterm-r5", but line-drawing does not
 # work in that case.  This entry uses xterm+acs, to work around that problem.
@@ -6008,8 +6140,7 @@ xterm-color|nxterm|generic color xterm,
 # with their Sun keyboard labels instead.
 # From: Simon J. Gerraty <sjg@zen.void.oz.au> 10 Jan 1996
 xterm-sun|xterm with sunFunctionKeys true,
-       kb2=\E[218z, kcpy=\E[197z, kcub1=\EOD, kcud1=\EOB,
-       kcuf1=\EOC, kcuu1=\EOA, kdch1=\E[3z, kend=\E[220z,
+       kb2=\E[218z, kcpy=\E[197z, kdch1=\E[3z, kend=\E[220z,
        kent=\EOM, kf1=\E[224z, kf10=\E[233z, kf11=\E[192z,
        kf12=\E[193z, kf13=\E[194z, kf14=\E[195z, kf15=\E[196z,
        kf17=\E[198z, kf18=\E[199z, kf19=\E[200z, kf2=\E[225z,
@@ -6020,16 +6151,18 @@ xterm-sun|xterm with sunFunctionKeys true,
        kf5=\E[228z, kf6=\E[229z, kf7=\E[230z, kf8=\E[231z,
        kf9=\E[232z, kfnd=\E[200z, khlp=\E[196z, khome=\E[214z,
        kich1=\E[2z, knp=\E[222z, kpp=\E[216z, kund=\E[195z,
-       use=xterm+nofkeys, use=xterm+nopcfkeys,
+       use=xterm+kbs, use=ansi+apparrows, use=xterm+nofkeys,
+       use=xterm+nopcfkeys,
+
 xterms-sun|small (80x24) xterm with sunFunctionKeys true,
-       cols#80, lines#24, use=xterm-sun,
+       use=xterm-sun,
 
 #### GNOME (VTE)
 # this describes the alpha-version of GNOME terminal shipped with Redhat 6.0
 gnome-rh62|GNOME terminal,
        bce,
        kdch1=^?, kf1=\EOP, kf2=\EOQ, kf3=\EOR, kf4=\EOS,
-       use=xterm-color,
+       use=linux+kbs, use=xterm-color,
 
 # GNOME Terminal 1.4.0.4 (Redhat 7.2)
 #
@@ -6051,12 +6184,11 @@ gnome-rh62|GNOME terminal,
 #      it hangs in tack after running function-keys test.
 gnome-rh72|GNOME Terminal in RedHat 7,
        bce, km@,
-       kdch1=\E[3~, kf1=\EOP, kf2=\EOQ, kf3=\EOR, kf4=\EOS,
-       rmam=\E[?7l,
+       kf1=\EOP, kf2=\EOQ, kf3=\EOR, kf4=\EOS, rmam=\E[?7l,
        sgr=\E[0%?%p6%t;1%;%?%p2%t;4%;%?%p1%p3%|%t;7%;m%?%p9%t\016%e
            \017%;,
        sgr0=\E[0m\017, smam=\E[?7h, tbc@, use=vt220+cvis,
-       use=xterm-color,
+       use=linux+kbs, use=xterm-color,
 
 # GNOME Terminal 2.0.1 (Redhat 8.0)
 #
@@ -6073,18 +6205,17 @@ gnome-rh72|GNOME Terminal in RedHat 7,
 # that it implements kcbt.
 gnome-rh80|GNOME Terminal in RedHat 8,
        bce@, msgr@,
-       ech=\E[%p1%dX, flash=\E[?5h$<100/>\E[?5l, kbs=^?,
-       kcbt=\E^I, op=\E[39;49m, use=gnome-rh72,
+       ech=\E[%p1%dX, flash=\E[?5h$<100/>\E[?5l, kcbt=\E^I,
+       op=\E[39;49m, use=gnome-rh72,
 
 # GNOME Terminal 2.2.1 (Redhat 9.0)
 #
 # bce and msgr are repaired.
 gnome-rh90|GNOME Terminal in RedHat 9,
        bce, msgr, XT,
-       hpa=\E[%i%p1%dG, kDC=\E[3;2~, kLFT=\EO2D, kRIT=\EO2C,
-       kb2=\E[E, kcbt=\E[Z, kend=\EOF, khome=\EOH, tbc=\E[3g,
-       vpa=\E[%i%p1%dd, use=xterm+pcf0, use=xterm+pcfkeys,
-       use=gnome-rh80,
+       hpa=\E[%i%p1%dG, kLFT=\EO2D, kRIT=\EO2C, kb2=\E[E,
+       kcbt=\E[Z, tbc=\E[3g, vpa=\E[%i%p1%dd, use=xterm+pcf0,
+       use=xterm+pcfkeys, use=gnome-rh80,
 
 # GNOME Terminal 2.14.2 (Fedora Core 5)
 # Ed Catmur notes that gnome-terminal has recognized soft-reset since May 2002.
@@ -6153,10 +6284,9 @@ gnome-2012|GNOME Terminal 3.6.0,
 # The parameters with \EO (SS3) are technically an error, since SS3 should have
 # no parameters.  This appears to be rote copying based on xterm+pcc0.
 vte+pcfkeys|VTE's variation on xterm+pcfkeys (building block),
-       kf1=\EOP, kf13=\EO1;2P, kf14=\EO1;2Q, kf15=\EO1;2R,
-       kf16=\EO1;2S, kf2=\EOQ, kf25=\EO1;5P, kf26=\EO1;5Q,
-       kf27=\EO1;5R, kf28=\EO1;5S, kf3=\EOR, kf37=\EO1;6P,
-       kf38=\EO1;6Q, kf39=\EO1;6R, kf4=\EOS, kf40=\EO1;6S,
+       kf13=\EO1;2P, kf14=\EO1;2Q, kf15=\EO1;2R, kf16=\EO1;2S,
+       kf25=\EO1;5P, kf26=\EO1;5Q, kf27=\EO1;5R, kf28=\EO1;5S,
+       kf37=\EO1;6P, kf38=\EO1;6Q, kf39=\EO1;6R, kf40=\EO1;6S,
        kf49=\EO1;3P, kf50=\EO1;3Q, kf51=\EO1;3R, kf52=\EO1;3S,
        kf61=\EO1;4P, kf62=\EO1;4Q, kf63=\EO1;4R,
        use=xterm+pcfkeys,
@@ -6190,7 +6320,8 @@ vte-2014|VTE 0.35.1,
        ncv@,
        cbt=\E[Z, el1=\E[1K, flash=\E[?5h$<100/>\E[?5l,
        ich=\E[%p1%d@, kent=\EOM, use=ecma+index,
-       use=xterm+sm+1006, use=xterm+pcfkeys, use=vte-2012,
+       use=oldxterm+sm+1006, use=xterm+pcfkeys, use=vte-2012,
+       use=bracketed+paste,
 
 # As of January 2018, this was the  most recent release,
 # e.g., with gnome-terminal 3.26.2
@@ -6250,10 +6381,12 @@ xfce|Xfce Terminal,
 hterm|Chromium hterm,
        npc,
        U8#1,
-       kcbt=\E[Z, kent=\EOM, nel=\EE, use=xterm+osc104,
-       use=ecma+index, use=ansi+rep, use=ecma+strikeout,
-       use=vt420+lrmm, use=xterm+sm+1006, use=xterm+tmux,
-       use=ecma+italics, use=xterm+pcfkeys, use=xterm-basic,
+       kcbt=\E[Z, kent=\EOM, nel=\EE, use=linux+kbs,
+       use=xterm+osc104, use=ecma+index, use=ansi+rep,
+       use=ecma+strikeout, use=vt420+lrmm, use=xterm+focus,
+       use=xterm+sm+1006, use=xterm+tmux, use=ecma+italics,
+       use=xterm+pcfkeys, use=xterm-basic,
+       use=bracketed+paste,
 hterm-256color|Chromium hterm with xterm 256-colors,
        use=xterm+256color2, use=hterm,
 
@@ -6278,29 +6411,27 @@ hterm-256color|Chromium hterm with xterm 256-colors,
 # trimmed to eliminate those.  Also, since it is a slightly older version of
 # VTE, it lacks a few more features (again, trimmed).
 termite|VTE-based terminal,
-       am, ccc, km, mir, msgr, npc, xenl,
-       cols#80, it#8, lines#24, ncv@,
+       am, km, mir, msgr, npc, xenl,
+       cols#80, lines#24, ncv@,
        acsc=++\,\,--..00``aaffgghhiijjkkllmmnnooppqqrrssttuuvvwwxxy
             yzz{{||}}~~,
-       bel=^G, bold=\E[1m, cbt=\E[Z, clear=\E[H\E[2J, cr=\r,
-       csr=\E[%i%p1%d;%p2%dr, cub=\E[%p1%dD, cub1=^H,
-       cud=\E[%p1%dB, cud1=\n, cuf=\E[%p1%dC, cuf1=\E[C,
+       bel=^G, bold=\E[1m, clear=\E[H\E[2J, cr=\r, cub=\E[%p1%dD,
+       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,
-       dch=\E[%p1%dP, ech=\E[%p1%dX, ed=\E[J, el=\E[K, el1=\E[1K,
+       ech=\E[%p1%dX, ed=\E[J, el=\E[K, el1=\E[1K,
        flash=\E[?5h$<100/>\E[?5l, home=\E[H, hpa=\E[%i%p1%dG,
-       ht=^I, hts=\EH, ind=\n, invis=\E[8m,
-       is2=\E[!p\E[?3;4l\E[4l\E>, kb2=\EOE, kbs=^?, kcbt=\E[Z,
-       kent=\EOM, kmous=\E[M, rc=\E8, rev=\E[7m, ri=\EM, rmacs=\E(B,
-       rmam=\E[?7l, rmkx=\E[?1l\E>, rmso=\E[27m, rmul=\E[24m,
-       rs1=\Ec, rs2=\E[!p\E[?3;4l\E[4l\E>, sc=\E7,
+       ind=\n, invis=\E[8m, is2=\E[!p\E[?3;4l\E[4l\E>, kb2=\EOE,
+       kbs=^?, kcbt=\E[Z, kent=\EOM, kmous=\E[M, rev=\E[7m, ri=\EM,
+       rmacs=\E(B, rmam=\E[?7l, rmkx=\E[?1l\E>, rmso=\E[27m,
+       rmul=\E[24m, rs1=\Ec, rs2=\E[!p\E[?3;4l\E[4l\E>,
        sgr=%?%p9%t\E(0%e\E(B%;\E[0%?%p6%t;1%;%?%p2%t;4%;%?%p1%p3%|
            %t;7%;%?%p7%t;8%;m,
        sgr0=\E(B\E[m, smacs=\E(0, smam=\E[?7h, smkx=\E[?1h\E=,
-       smso=\E[7m, smul=\E[4m, tbc=\E[3g, vpa=\E[%i%p1%dd,
-       use=xterm+alt1049, use=ecma+index, use=ansi+idc,
-       use=ansi+idl, use=ansi+enq, use=ecma+italics,
-       use=xterm+256color, use=ecma+color, use=vt220+cvis,
-       use=xterm+pcfkeys, use=xterm+sl-twm,
+       smso=\E[7m, smul=\E[4m, vpa=\E[%i%p1%dd, use=ansi+csr,
+       use=ansi+enq, use=ansi+idc, use=ansi+idl,
+       use=ansi+inittabs, use=ecma+index, use=ecma+italics,
+       use=xterm+alt1049, use=xterm+256color, use=ecma+color,
+       use=vt220+cvis, use=xterm+pcfkeys, use=xterm+sl-twm,
 
 #### Other GNOME
 # Multi-GNOME-Terminal 1.6.2
@@ -6315,7 +6446,8 @@ mgt|Multi GNOME Terminal,
 # or not is debatable).
 kvt|KDE terminal,
        bce, km@,
-       kdch1=^?, kend=\E[F, khome=\E[H, use=xterm-color,
+       kdch1=^?, kend=\E[F, khome=\E[H, use=linux+kbs,
+       use=xterm-color,
 
 # Konsole 1.0.1 (2001/11/25)
 # (formerly known as kvt)
@@ -6370,22 +6502,23 @@ kvt|KDE terminal,
 #
 # Re-enable "bel", since it is latent in the source-code even though KDE config
 # often hides the feature (2020/5/30)
-konsole-base|KDE console window (base),
+konsole-base|KDE console window (common),
        bce, km@, npc, XT,
        ncv@,
        blink=\E[5m, dim=\E[2m, ech=\E[%p1%dX,
        flash=\E[?5h$<100/>\E[?5l, hpa=\E[%i%p1%dG,
-       invis=\E[8m, kbs=^?, kdch1=\E[3~, kend=\E[4~, kf1@, kf10@,
-       kf11@, kf12@, kf13@, kf14@, kf15@, kf16@, kf17@, kf18@, kf19@, kf2@,
-       kf20@, kf3@, kf4@, kf5@, kf6@, kf7@, kf8@, kf9@, kfnd@, khome=\E[1~,
-       kslt@, rmam=\E[?7l, rmso=\E[27m, rmul=\E[24m, rs1=\Ec,
+       invis=\E[8m, kend=\E[4~, kf1@, kf10@, kf11@, kf12@, kf13@, kf14@,
+       kf15@, kf16@, kf17@, kf18@, kf19@, kf2@, kf20@, kf3@, kf4@, kf5@, kf6@,
+       kf7@, kf8@, kf9@, kfnd@, khome=\E[1~, kslt@, rmam=\E[?7l,
+       rmso=\E[27m, rmul=\E[24m, rs1=\Ec,
        rs2=\E7\E[r\E8\E[m\E[?7h\E[?1;3;4;6l\E[4l\E>\E[?1000l\E[?25h,
        sgr=\E[0%?%p6%t;1%;%?%p2%t;4%;%?%p1%p3%|%t;7%;%?%p4%t;5%;%?
            %p5%t;2%;%?%p7%t;8%;m%?%p9%t\016%e\017%;,
        sgr0=\E[0m\017, smam=\E[?7h, vpa=\E[%i%p1%dd,
-       use=ecma+index, use=xterm+sm+1006, use=ecma+strikeout,
-       use=ecma+italics, use=ecma+color, use=xterm-r6,
-       use=vt220+cvis,
+       use=ecma+index, use=xterm+focus, use=xterm+sm+1006,
+       use=ecma+strikeout, use=ecma+italics, use=ecma+color,
+       use=xterm-r6, use=vt220+cvis, use=bracketed+paste,
+       use=report+version,
 
 # The keytab feature was introduced in 0.9.12 (February 2000) with "linux" and
 # "vt100" key-table files along with a compiled-in default key-table.
@@ -6471,11 +6604,11 @@ konsole+pcfkeys|konsole subset of xterm+pcfkeys,
 # it is still useful for deriving the other entries, since the developer
 # provided function-keys based on xterm.
 konsole-vt100|KDE console window with VT100 (sic) keyboard,
-       kbs=^?, kdch1=\E[3~, kend=\E[F, kf1=\E[11~, kf10=\E[21~,
-       kf11=\E[23~, kf12=\E[24~, kf13@, kf14@, kf15@, kf16@, kf17@,
-       kf18@, kf19@, kf2=\E[12~, kf20@, kf3=\E[13~, kf4=\E[14~,
-       kf5=\E[15~, kf6=\E[17~, kf7=\E[18~, kf8=\E[19~, kf9=\E[20~,
-       khome=\E[H, use=konsole-base,
+       kend=\E[F, kf1=\E[11~, kf10=\E[21~, kf11=\E[23~,
+       kf12=\E[24~, kf13@, kf14@, kf15@, kf16@, kf17@, kf18@, kf19@,
+       kf2=\E[12~, kf20@, kf3=\E[13~, kf4=\E[14~, kf5=\E[15~,
+       kf6=\E[17~, kf7=\E[18~, kf8=\E[19~, kf9=\E[20~, khome=\E[H,
+       use=konsole-base,
 
 # Obsolete: vt420pc.keytab was added in June 2000, dropped from the install in
 # September 2008 and removed in June 2016.  The developer who removed it stated
@@ -6544,7 +6677,8 @@ mlterm3|multi lingual terminal emulator 3.x,
        use=ecma+strikeout, use=xterm+app, use=xterm+pcf2,
        use=xterm+pcc2, use=xterm+pce2, use=xterm+meta,
        use=xterm+alt+title, use=xterm+sm+1006,
-       use=vt100+pfkeys, use=mlterm2,
+       use=vt100+pfkeys, use=bracketed+paste, use=mlterm2,
+       use=report+version,
 
 # This is mlterm 2.9.3's mlterm.ti, with some additions/corrections -TD
 #
@@ -6567,32 +6701,29 @@ mlterm3|multi lingual terminal emulator 3.x,
 #
 mlterm2|multi lingual terminal emulator 2.x,
        am, eslok, km, mc5i, mir, msgr, npc, xenl, XT,
-       colors#8, cols#80, it#8, lines#24, pairs#64,
+       colors#8, cols#80, lines#24, pairs#64,
        acsc=00``aaffgghhjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~,
-       bel=^G, bold=\E[1m, cbt=\E[Z, clear=\E[H\E[2J, cr=\r,
-       csr=\E[%i%p1%d;%p2%dr, cub=\E[%p1%dD, cub1=^H,
-       cud=\E[%p1%dB, cud1=\n, cuf=\E[%p1%dC, cuf1=\E[C,
+       bel=^G, bold=\E[1m, clear=\E[H\E[2J, cr=\r, cub=\E[%p1%dD,
+       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,
-       dch=\E[%p1%dP, dch1=\E[P, dl=\E[%p1%dM, dl1=\E[M,
-       ech=\E[%p1%dX, ed=\E[J, el=\E[K, el1=\E[1K, enacs=,
-       home=\E[H, hpa=\E[%i%p1%dG, ht=^I, hts=\EH, ich=\E[%p1%d@,
-       il=\E[%p1%dL, il1=\E[L, ind=\n,
+       dch=\E[%p1%dP, dch1=\E[P, ech=\E[%p1%dX, ed=\E[J, el=\E[K,
+       el1=\E[1K, enacs=, home=\E[H, hpa=\E[%i%p1%dG,
+       ich=\E[%p1%d@, ind=\n,
        is2=\E7\E[r\E[m\E[?7h\E[?1;3;4;6l\E[4l\E8\E>, kbs=^?,
-       kcbt=\E[Z, kcub1=\EOD, kcud1=\EOB, kcuf1=\EOC, kcuu1=\EOA,
-       kend=\EOF, kent=\EOM, khome=\EOH, kind=\EO1;2B, kmous=\E[M,
-       kri=\EO1;2A, mc0=\E[i, nel=\EE, op=\E[39;49m, rc=\E8,
-       rev=\E[7m, ri=\EM, rmacs=\E(B, rmam=\E[?7l, rmir=\E[4l,
+       kcbt=\E[Z, kend=\EOF, kent=\EOM, kind=\EO1;2B, kmous=\E[M,
+       kri=\EO1;2A, mc0=\E[i, nel=\EE, op=\E[39;49m, rev=\E[7m,
+       ri=\EM, rmacs=\E(B, rmam=\E[?7l, rmir=\E[4l,
        rmkx=\E[?1l\E>, rmso=\E[27m, rmul=\E[24m, rs1=\Ec,
        rs2=\E7\E[r\E8\E[m\E[?7h\E[?1;3;4;6l\E[4l\E>\E[?1000l,
-       sc=\E7, setab=\E[4%p1%dm, setaf=\E[3%p1%dm,
+       setab=\E[4%p1%dm, setaf=\E[3%p1%dm,
        sgr=\E[0%?%p6%t;1%;%?%p2%t;4%;%?%p1%p3%|%t;7%;m%?%p9%t\E(0%e
            \E(B%;,
        sgr0=\E[m\E(B, smacs=\E(0, smam=\E[?7h, smir=\E[4h,
-       smkx=\E[?1h\E=, smso=\E[7m, smul=\E[4m, tbc=\E[3g,
-       u6=\E[%i%d;%dR, u7=\E[6n, u8=\E[?1;2c, u9=\E[c,
-       vpa=\E[%i%p1%dd, use=vt220+vtedit, use=xterm+alt1049,
-       use=ecma+index, use=mlterm+pcfkeys, use=vt220+cvis,
-       use=xterm+r6f2,
+       smkx=\E[?1h\E=, smso=\E[7m, smul=\E[4m, u8=\E[?1;2c,
+       vpa=\E[%i%p1%dd, use=ansi+apparrows, use=ansi+csr,
+       use=ansi+enq, use=ansi+idl, use=ansi+inittabs,
+       use=vt220+vtedit, use=xterm+alt1049, use=ecma+index,
+       use=mlterm+pcfkeys, use=vt220+cvis, use=xterm+r6f2,
 
 # The insert/delete/home/end keys do not respond to modifiers because mlterm
 # looks in its termcap to decide which string to send.  If it used terminfo
@@ -6638,26 +6769,25 @@ rxvt-basic|rxvt terminal base (X Window System),
        cols#80, it#8, lines#24,
        acsc=``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~,
        bel=^G, blink=\E[5m, bold=\E[1m, clear=\E[H\E[2J, cr=\r,
-       csr=\E[%i%p1%d;%p2%dr, cub=\E[%p1%dD, 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,
-       dl=\E[%p1%dM, dl1=\E[M, ed=\E[J, el=\E[K, el1=\E[1K,
+       cub=\E[%p1%dD, 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, ed=\E[J, el=\E[K, el1=\E[1K,
        enacs=\E(B\E)0, flash=\E[?5h$<100/>\E[?5l, home=\E[H,
-       ht=^I, hts=\EH, ich=\E[%p1%d@, il=\E[%p1%dL, il1=\E[L,
-       ind=\n, is1=\E[?47l\E=\E[?1l,
+       ht=^I, hts=\EH, ich=\E[%p1%d@, ind=\n,
+       is1=\E[?47l\E=\E[?1l,
        is2=\E[r\E[m\E[2J\E[H\E[?7h\E[?1;3;4;6l\E[4l, kbs=^H,
-       kcbt=\E[Z, kmous=\E[M, rc=\E8, rev=\E[7m, ri=\EM, rmacs=^O,
-       rmcup=\E[2J\E[?47l\E8, rmir=\E[4l, rmkx=\E>, rmso=\E[27m,
-       rmul=\E[24m,
+       kcbt=\E[Z, kmous=\E[M, rev=\E[7m, ri=\EM, rmacs=^O,
+       rmir=\E[4l, rmkx=\E>, rmso=\E[27m, rmul=\E[24m,
        rs1=\E>\E[1;3;4;5;6l\E[?7h\E[m\E[r\E[2J\E[H,
        rs2=\E[r\E[m\E[2J\E[H\E[?7h\E[?1;3;4;6l\E[4l\E>\E[?1000l\E[?
            25h,
-       s0ds=\E(B, s1ds=\E(0, sc=\E7,
+       s0ds=\E(B, s1ds=\E(0,
        sgr=\E[0%?%p6%t;1%;%?%p2%t;4%;%?%p1%p3%|%t;7%;%?%p4%t;5%;m%?
            %p9%t\016%e\017%;,
-       sgr0=\E[0m\017, smacs=^N, smcup=\E7\E[?47h, smir=\E[4h,
-       smkx=\E=, smso=\E[7m, smul=\E[4m, tbc=\E[3g, use=vt100+enq,
-       use=rxvt+pcfkeys, use=vt220+cvis, use=vt220+keypad,
+       sgr0=\E[0m\017, smacs=^N, smir=\E[4h, smkx=\E=, smso=\E[7m,
+       smul=\E[4m, tbc=\E[3g, use=ansi+csr, use=ansi+idl,
+       use=xterm+alt47, use=vt100+enq, use=rxvt+pcfkeys,
+       use=vt220+cvis, use=vt220+keypad,
 # Key Codes from rxvt reference:
 #
 # Note: Shift + F1-F10 generates F11-F20
@@ -6857,7 +6987,6 @@ rxvt-16color|rxvt with 16 colors like aixterm,
 #      (not in rxvt, but not documented by mrxvt) but not CSI 19 t.
 # +    none of the "dynamic colors" (OSC colors) scripts work.
 mrxvt|multitabbed rxvt,
-       XT,
        kEND=\E[8;2~, kHOM=\E[7;2~, kcub1=\E[D, kcud1=\E[B,
        kcuf1=\E[C, kcuu1=\E[A, kend=\E[8~, khome=\E[7~,
        kEND3=\E[8;3~, kEND4=\E[8;4~, kEND5=\E[8;5~,
@@ -6885,29 +7014,27 @@ Eterm|Eterm-color|Eterm with xterm-style color support (X Window System),
        btns#5, cols#80, it#8, lines#24, lm#0, ncv@,
        acsc=``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~,
        bel=^G, blink=\E[5m, bold=\E[1m, clear=\E[H\E[2J, cr=\r,
-       csr=\E[%i%p1%d;%p2%dr, cub=\E[%p1%dD, cub1=^H,
-       cud=\E[%p1%dB, cud1=\E[B, cuf=\E[%p1%dC, cuf1=\E[C,
-       cup=\E[%i%p1%d;%p2%dH, cuu=\E[%p1%dA, cuu1=\E[A,
-       dch=\E[%p1%dP, dch1=\E[P, dl=\E[%p1%dM, dl1=\E[M,
+       cub=\E[%p1%dD, cub1=^H, cud=\E[%p1%dB, cud1=\E[B,
+       cuf=\E[%p1%dC, cuf1=\E[C, cup=\E[%i%p1%d;%p2%dH,
+       cuu=\E[%p1%dA, cuu1=\E[A, dch=\E[%p1%dP, dch1=\E[P,
        ech=\E[%p1%dX, ed=\E[J, el=\E[K, el1=\E[1K, enacs=\E)0,
        home=\E[H, hpa=\E[%i%p1%dG, ht=^I, hts=\EH, ich=\E[%p1%d@,
-       il=\E[%p1%dL, il1=\E[L, ind=\n, is1=\E[?47l\E>\E[?1l,
+       ind=\n, is1=\E[?47l\E>\E[?1l,
        is2=\E[r\E[m\E[2J\E[H\E[?7h\E[?1;3;4;6l\E[4l, kNXT@,
        kPRV@, ka1=\E[7~, ka3=\E[5~, kb2=\EOu, kbeg=\EOu, kbs=^H,
        kc1=\E[8~, kc3=\E[6~, kent=\EOM, khlp=\E[28~, kmous=\E[M,
-       mc4=\E[4i, mc5=\E[5i, rc=\E8, rev=\E[7m, ri=\EM, rmacs=^O,
-       rmam=\E[?7l, rmcup=\E[2J\E[?47l\E8, rmir=\E[4l, rmkx=,
-       rmso=\E[27m, rmul=\E[24m,
+       mc4=\E[4i, mc5=\E[5i, rev=\E[7m, ri=\EM, rmacs=^O,
+       rmam=\E[?7l, rmir=\E[4l, rmkx=, rmso=\E[27m, rmul=\E[24m,
        rs1=\E>\E[1;3;4;5;6l\E[?7h\E[m\E[r\E[2J\E[H,
        rs2=\E[r\E[m\E[2J\E[H\E[?7h\E[?1;3;4;6l\E[4l\E>\E[?1000l\E[?
            25h,
-       sc=\E7,
        sgr=\E[0%?%p1%p6%|%t;1%;%?%p2%t;4%;%?%p1%p3%|%t;7%;%?%p4%t;5
            %;m%?%p9%t\016%e\017%;,
-       sgr0=\E[m\017, smacs=^N, smam=\E[?7h, smcup=\E7\E[?47h,
-       smir=\E[4h, smkx=, smso=\E[7m, smul=\E[4m, tbc=\E[3g,
-       vpa=\E[%i%p1%dd, use=vt100+enq, use=rxvt+pcfkeys,
-       use=ecma+color, use=vt220+cvis,
+       sgr0=\E[m\017, smacs=^N, smam=\E[?7h, smir=\E[4h, smkx=,
+       smso=\E[7m, smul=\E[4m, tbc=\E[3g, vpa=\E[%i%p1%dd,
+       use=ansi+csr, use=ansi+idl, use=xterm+alt47,
+       use=vt100+enq, use=rxvt+pcfkeys, use=ecma+color,
+       use=vt220+cvis,
 
 Eterm-256color|Eterm with xterm 256-colors,
        use=xterm+256color, use=Eterm,
@@ -6927,8 +7054,7 @@ aterm|AfterStep terminal,
 # vttest shows several problems with keyboard, cursor-movements.
 # see also https://invisible-island.net/xterm/xterm.faq.html#bug_xiterm
 xiterm|internationalized terminal emulator for X,
-       km@,
-       kbs=^?, kdch1=\E[3~, use=klone+color, use=xterm-r6,
+       km@, use=klone+color, use=xterm-r6,
 
 
 #### HPTERM
@@ -7054,28 +7180,28 @@ emu-220|Emu-220 (vt200-7bit mode),
        cols#80, it#8, lines#24, vt#200,
        acsc=aaffggjjkkllmmnnooqqssttuuvvwwxx~~, bel=^G,
        blink=\E[0;5m, bold=\E[0;1m, clear=\E[2J\E[H, cr=\r,
-       csr=\E[%i%p1%d;%p2%dr, cub=\E[%p1%dD, cub1=\E[1D,
-       cud=\E[%p1%dB, cud1=\E[1B, cuf=\E[%p1%dC, cuf1=\E[1C,
-       cup=\E[%i%p1%d;%p2%dH, cuu=\E[%p1%dA, cuu1=\E[1A,
-       dch=\E[%p1%dP, dch1=\E[1P, dl=\E[%p1%dM, dl1=\E[1M,
-       ed=\E[0J, el=\E[0K, el1=\E[1K, enacs=\E)0, home=\E[H, ht=^I,
-       hts=\EH, if=/usr/share/tabset/vt300, il=\E[%p1%dL,
-       il1=\E[1L, ind=\ED, is2=\E>\E[?1l\E[?3l\E[4l\E[?7h,
-       kbs=^H, kcmd=\E[29~, kcub1=\E[D, kcud1=\E[B, kcuf1=\E[C,
+       cub=\E[%p1%dD, cub1=\E[1D, cud=\E[%p1%dB, cud1=\E[1B,
+       cuf=\E[%p1%dC, cuf1=\E[1C, cup=\E[%i%p1%d;%p2%dH,
+       cuu=\E[%p1%dA, cuu1=\E[1A, dch=\E[%p1%dP, dch1=\E[1P,
+       dl=\E[%p1%dM, dl1=\E[1M, ed=\E[0J, el=\E[0K, el1=\E[1K,
+       enacs=\E)0, home=\E[H, ht=^I, hts=\EH,
+       if=/usr/share/tabset/vt300, il=\E[%p1%dL, il1=\E[1L,
+       ind=\ED, is2=\E>\E[?1l\E[?3l\E[4l\E[?7h, kbs=^H,
+       kcmd=\E[29~, kcub1=\E[D, kcud1=\E[B, kcuf1=\E[C,
        kcuu1=\E[A, kent=\EOM, kf0=\EOp, kf1=\EOq, kf10=\EOl,
        kf11=\EOm, kf12=\EOn, kf13=\EOP, kf14=\EOQ, kf15=\EOR,
        kf16=\EOS, kf2=\EOr, kf26=\E[17~, kf27=\E[18~, kf28=\E[19~,
        kf29=\E[20~, kf3=\EOs, kf30=\E[21~, kf34=\E[26~,
        kf37=\E[31~, kf38=\E[32~, kf39=\E[33~, kf4=\EOt,
        kf40=\E[34~, kf5=\EOu, kf6=\EOv, kf7=\EOw, kf8=\EOx,
-       kf9=\EOy, khlp=\E[28~, rc=\E8, rev=\E[0;7m, ri=\EM, rmacs=^O,
+       kf9=\EOy, khlp=\E[28~, rev=\E[0;7m, ri=\EM, rmacs=^O,
        rmcup=\E>, rmkx=\E>, rmso=\E[m, rmul=\E[m,
-       rs2=\E[4l\E[34l\E[?1l\E[?3l\E[?5l\E[?7h, sc=\E7,
+       rs2=\E[4l\E[34l\E[?1l\E[?3l\E[?5l\E[?7h,
        sgr=\E[0%?%p1%t;7%;%?%p2%t;4%;%?%p3%t;7%;%?%p4%t;5%;%?%p5%t;
            2%;%?%p6%t;1%;%?%p7%t;8%;m%?%p9%t\016%e\017%;,
        sgr0=\E[m\017, smacs=^N, smcup=\E[?1l\E=, smkx=\E=,
-       smso=\E[0;7m, smul=\E[0;4m, tbc=\E[3g, use=vt220+vtedit,
-       use=vt220+cvis,
+       smso=\E[0;7m, smul=\E[0;4m, tbc=\E[3g, use=ansi+csr,
+       use=vt220+vtedit, use=vt220+cvis,
 
 #### MVTERM
 # A commercial product, Reportedly a version of Xterm with an OPEN LOOK UI,
@@ -7093,24 +7219,21 @@ mvterm|vv100|SwitchTerm aka mvTERM,
        colors#8, cols#80, it#8, lines#24, pairs#64,
        acsc=``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~,
        bel=^G, blink=\E[5m, bold=\E[1m, clear=\E[H\E[2J, cr=\r,
-       csr=\E[%i%p1%d;%p2%dr, cub=\E[%p1%dD, 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,
-       dch=\E[%p1%dP, dch1=\E[P, dl=\E[%p1%dM, dl1=\E[M, ed=\E[J,
-       el=\E[K, el1=\E[1K$<3>, enacs=\E(B\E)0, home=\E[H, ht=^I,
-       hts=\EH, ich=\E[%p1%d@, ich1=\E[@, il=\E[%p1%dL, il1=\E[L,
-       ind=\n, kbs=^H, kcub1=\EOD, kcud1=\EOB, kcuf1=\EOC,
-       kcuu1=\EOA, kf0=\EOy, kf10=\EOx, kf5=\EOt, kf6=\EOu,
-       kf7=\EOv, kf8=\EOl, kf9=\EOw, op=\E[100m, rc=\E8, rev=\E[7m,
-       ri=\EM, rmacs=^O, rmcup=\E[2J\E[?47l\E8, rmkx=\E[?1l\E>,
-       rmso=\E[m, rmul=\E[m,
+       cub=\E[%p1%dD, 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, dch=\E[%p1%dP, dch1=\E[P,
+       ed=\E[J, el=\E[K, el1=\E[1K$<3>, enacs=\E(B\E)0, home=\E[H,
+       ht=^I, hts=\EH, ich=\E[%p1%d@, ich1=\E[@, ind=\n, kbs=^H,
+       kcub1=\EOD, kcud1=\EOB, kcuf1=\EOC, kcuu1=\EOA, op=\E[100m,
+       rev=\E[7m, ri=\EM, rmacs=^O, rmkx=\E[?1l\E>, rmso=\E[m,
+       rmul=\E[m,
        rs2=\E>\E[1;3;4;5;6l\E[?7h\E[100m\E[m\E[r\E[2J\E[H,
-       sc=\E7, setab=\E[4%p1%dm, setaf=\E[3%p1%dm,
+       setab=\E[4%p1%dm, setaf=\E[3%p1%dm,
        sgr=\E[0%?%p1%p6%|%t;1%;%?%p2%t;4%;%?%p1%p3%|%t;7%;%?%p4%t;5
            %;m%?%p9%t\016%e\017%;,
-       sgr0=\E[m\017, smacs=^N, smcup=\E7\E[?47h,
-       smkx=\E[?1h\E=, smso=\E[7m, smul=\E[4m, tbc=\E[3g,
-       use=vt100+fnkeys, use=x10term+sl,
+       sgr0=\E[m\017, smacs=^N, smkx=\E[?1h\E=, smso=\E[7m,
+       smul=\E[4m, tbc=\E[3g, use=ansi+csr, use=ansi+idl,
+       use=xterm+alt47, use=vt100+fnkeys, use=x10term+sl,
 
 #### MTERM
 #
@@ -7121,19 +7244,19 @@ mterm-ansi|ANSI emulation,
        am, bw, mir, msgr,
        it#8,
        acsc=``aaffggiijjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~,
-       bel=^G, blink=\E[5m, bold=\E[1m, clear=\E[H\E[J, cr=\r,
-       cub=\E[%p1%dD, cub1=\E[D, cud=\E[%p1%dB, cud1=\E[B,
-       cuf=\E[%p1%dC, cuf1=\E[C, cup=\E[%i%p1%d;%p2%dH,
-       cuu=\E[%p1%dA, cuu1=\E[A, dch=\E[%p1%dP, dch1=\E[P,
-       dim=\E[2m, dl=\E[%p1%dM, dl1=\E[M, ech=\E[%p1%dX, ed=\E[J,
-       el=\E[K, home=\E[H, hpa=\E[%i%p1%d`, ht=^I, ich1=,
-       il=\E[%p1%dL, il1=\E[L, ind=\E[S, invis=\E[8m,
-       is2=\E)0\017, kbs=^H, nel=\EE, rev=\E[7m, ri=\E[T, rmacs=^O,
-       rmir=\E[4l, rmso=\E[27m, rmul=\E[24m,
+       bel=^G, blink=\E[5m, bold=\E[1m, cr=\r, cub=\E[%p1%dD,
+       cub1=\E[D, cud=\E[%p1%dB, cud1=\E[B, cuf=\E[%p1%dC,
+       cuf1=\E[C, cup=\E[%i%p1%d;%p2%dH, cuu=\E[%p1%dA,
+       cuu1=\E[A, dch=\E[%p1%dP, dim=\E[2m, ech=\E[%p1%dX,
+       home=\E[H, hpa=\E[%i%p1%d`, ht=^I, ich1=, ind=\E[S,
+       invis=\E[8m, is2=\E)0\017, kbs=^H, nel=\EE, rev=\E[7m,
+       ri=\E[T, rmacs=^O, rmso=\E[27m, rmul=\E[24m,
        sgr=\E[0%?%p6%t;1%;%?%p2%t;4%;%?%p1%p3%|%t;7%;%?%p4%t;5%;%?
            %p5%t;2%;%?%p7%t;8%;m%?%p9%t\016%e\017%;,
-       sgr0=\E[m\017, smacs=^N, smir=\E[4h, smso=\E[7m,
-       smul=\E[4m, vpa=\E[%i%p1%dd, use=ecma+index,
+       sgr0=\E[m\017, smacs=^N, smso=\E[7m, smul=\E[4m,
+       vpa=\E[%i%p1%dd, use=ansi+erase, use=ansi+idc1,
+       use=ansi+idl, use=ecma+index,
+
 # mterm normally sets $TERM to "mterm"
 mterm|mouse-sun|Der Mouse term,
        am, bw, mir,
@@ -7149,29 +7272,28 @@ decansi|ANSI emulation with DEC compatibility hacks,
        am, mir, msgr, xenl,
        colors#8, it#8, pairs#64,
        acsc=``aaffggiijjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~,
-       bel=^G, blink=\E[5m, bold=\E[1m, clear=\E[H\E[J, cr=\r,
-       csr=\E[%i%p1%d;%p2%dr, cub=\E[%p1%dD, cub1=\E[D,
-       cud=\E[%p1%dB, cud1=\E[B, cuf=\E[%p1%dC, cuf1=\E[C,
-       cup=\E[%i%p1%d;%p2%dH, cuu=\E[%p1%dA, cuu1=\E[A,
-       dch=\E[%p1%dP, dch1=\E[P, dim=\E[2m, dl=\E[%p1%dM,
-       dl1=\E[M, ech=\E[%p1%dX, ed=\E[J, el=\E[K, enacs=\E(B\E)0,
-       home=\E[H, hpa=\E[%i%p1%d`, ht=^I, ich1=, il=\E[%p1%dL,
-       il1=\E[L, ind=\E[S, invis=\E[8m, is2=\E)0\E[r\017, kbs=^H,
+       bel=^G, blink=\E[5m, bold=\E[1m, cr=\r, cub=\E[%p1%dD,
+       cub1=\E[D, cud=\E[%p1%dB, cud1=\E[B, cuf=\E[%p1%dC,
+       cuf1=\E[C, cup=\E[%i%p1%d;%p2%dH, cuu=\E[%p1%dA,
+       cuu1=\E[A, dch=\E[%p1%dP, dim=\E[2m, ech=\E[%p1%dX,
+       enacs=\E(B\E)0, home=\E[H, hpa=\E[%i%p1%d`, ht=^I, ich1=,
+       ind=\E[S, invis=\E[8m, is2=\E)0\E[r\017, kbs=^H,
        kcub1=\EOD, kcud1=\EOB, kcuf1=\EOC, kcuu1=\EOA, kf1=\E[11~,
        kf10=\E[21~, kf11=\E[23~, kf12=\E[24~, kf13=\E[25~,
        kf14=\E[26~, kf15=\E[28~, kf16=\E[29~, kf17=\E[31~,
        kf18=\E[32~, kf19=\E[33~, kf2=\E[12~, kf20=\E[34~,
        kf3=\E[13~, kf4=\E[14~, kf5=\E[15~, kf6=\E[17~, kf7=\E[18~,
-       kf8=\E[19~, kf9=\E[20~, nel=\EE, op=\E[0m, rc=\E8, rev=\E[7m,
-       ri=\E[T, rmacs=^O, rmam=\E[?7l, rmir=\E[4l, rmkx=\E[?1l\E>,
-       rmso=\E[27m, rmul=\E[24m, sc=\E7, setab=\E[4%p1%dm,
+       kf8=\E[19~, kf9=\E[20~, nel=\EE, op=\E[0m, rev=\E[7m,
+       ri=\E[T, rmacs=^O, rmam=\E[?7l, rmkx=\E[?1l\E>,
+       rmso=\E[27m, rmul=\E[24m, setab=\E[4%p1%dm,
        setaf=\E[3%p1%dm,
        sgr=\E[0%?%p6%t;1%;%?%p2%t;4%;%?%p1%p3%|%t;7%;%?%p4%t;5%;%?
            %p5%t;2%;%?%p7%t;8%;m%?%p9%t\016%e\017%;,
-       sgr0=\E[m\017, smacs=^N, smam=\E[?7h, smir=\E[4h,
-       smkx=\E[?1h\E=, smso=\E[7m, smul=\E[4m, u6=\E[%i%d;%dR,
-       u7=\E[6n, vpa=\E[%i%p1%dd, use=vt220+vtedit,
-       use=ecma+index, use=vt220+cvis,
+       sgr0=\E[m\017, smacs=^N, smam=\E[?7h, smkx=\E[?1h\E=,
+       smso=\E[7m, smul=\E[4m, vpa=\E[%i%p1%dd, use=ansi+cpr,
+       use=ansi+csr, use=ansi+erase, use=ansi+idc1,
+       use=ansi+idl, use=vt220+vtedit, use=ecma+index,
+       use=vt220+cvis,
 
 #### VWM
 # http://vwm.sourceforge.net/
@@ -7183,22 +7305,23 @@ vwmterm|VWM terminal,
        am, bce, ccc, mir, msgr, npc, xenl, xon,
        colors#8, pairs#64,
        acsc=``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~,
-       bel=^G, blink=\E[5m, bold=\E[1m, clear=\E[H\E[J, cr=\r,
-       cub=\E[%p1%dD, cub1=^H, cud=\E[%p1%dB, cud1=\E[B,
-       cuf=\E[%p1%dC, cuf1=\E[C, cup=\E[%i%p1%d;%p2%dH,
-       cuu=\E[%p1%dA, cuu1=\E[A, cvvis=\E[?25h, dim=\E[2m,
-       ed=\E[J, el=\E[K, home=\E[H, il1=\E[L, ind=\n, invis=\E[8m,
-       kcub1=\E[D, kcud1=\E[B, kcuf1=\E[C, kcuu1=\E[A,
-       kdch1=\E[3~, kend=\E[4~, kf1=\E[[A, kf10=\E[21~,
-       kf11=\E[22~, kf12=\E[23~, kf2=\E[[B, kf3=\E[[C, kf4=\E[[D,
-       kf5=\E[[E, kf6=\E[17~, kf7=\E[18~, kf8=\E[19~, kf9=\E[20~,
-       khome=\E[1~, knp=\E[6~, kpp=\E[5~, rev=\E[7m, rmacs=\E[10m,
-       rmam=\E[?7l, rs1=\E[H\E[J\E[m\Ec, setab=\E[4%p1%dm,
+       bel=^G, blink=\E[5m, bold=\E[1m, cr=\r, cub=\E[%p1%dD,
+       cub1=^H, cud=\E[%p1%dB, cud1=\E[B, cuf=\E[%p1%dC,
+       cuf1=\E[C, cup=\E[%i%p1%d;%p2%dH, cuu=\E[%p1%dA,
+       cuu1=\E[A, cvvis=\E[?25h, dim=\E[2m, home=\E[H, il1=\E[L,
+       ind=\n, invis=\E[8m, kcub1=\E[D, kcud1=\E[B, kcuf1=\E[C,
+       kcuu1=\E[A, kdch1=\E[3~, kend=\E[4~, kf1=\E[[A,
+       kf10=\E[21~, kf11=\E[22~, kf12=\E[23~, kf2=\E[[B,
+       kf3=\E[[C, kf4=\E[[D, kf5=\E[[E, kf6=\E[17~, kf7=\E[18~,
+       kf8=\E[19~, kf9=\E[20~, khome=\E[1~, knp=\E[6~, kpp=\E[5~,
+       rev=\E[7m, rmacs=\E[10m, rmam=\E[?7l,
+       rs1=\E[H\E[J\E[m\Ec, setab=\E[4%p1%dm,
        setaf=\E[3%p1%dm,
        sgr=\E[0;10%?%p1%t;3%;%?%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, smacs=\E[11m, smam=\E[?7h, smso=\E[3m,
-       smul=\E[4m, use=vt220+cvis, use=xterm+alt1049,
+       smul=\E[4m, use=ansi+erase, use=vt220+cvis,
+       use=xterm+alt1049,
 
 #### MGR
 #
@@ -7253,14 +7376,12 @@ st|stterm|aka simpleterm,
 # This entry discards the ccc/initc capabilities from st-0.7 because they
 # belong in st-256color.
 st-0.8|simpleterm 0.8,
-       dim=\E[2m, kcbt@, kent@, oc=\E]104\007,
-       sgr=%?%p9%t\E(0%e\E(B%;\E[0%?%p6%t;1%;%?%p2%t;4%;%?%p1%p3%|
-           %t;7%;%?%p4%t;5%;%?%p5%t;2%;%?%p7%t;8%;m,
-       Ms=\E]52;%p1%s;%p2%s\007, kDN3=\E[1;3B, kDN5=\E[1;5B,
-       kLFT3=\E[1;3D, kLFT5=\E[1;5D, kNXT3=\E[6;3~,
-       kNXT5=\E[6;5~, kPRV3=\E[5;3~, kPRV5=\E[5;5~,
-       kRIT3=\E[1;3C, kRIT5=\E[1;5C, kUP3=\E[1;3A, kUP5=\E[1;5A,
-       use=ecma+strikeout, use=st-0.6,
+       kcbt@, kent@, oc=\E]104\007, Ms=\E]52;%p1%s;%p2%s\007,
+       kDN3=\E[1;3B, kDN5=\E[1;5B, kLFT3=\E[1;3D, kLFT5=\E[1;5D,
+       kNXT3=\E[6;3~, kNXT5=\E[6;5~, kPRV3=\E[5;3~,
+       kPRV5=\E[5;5~, kRIT3=\E[1;3C, kRIT5=\E[1;5C,
+       kUP3=\E[1;3A, kUP5=\E[1;5A, use=ecma+strikeout,
+       use=st-0.6,
 
 # Reviewed 0.7:
 #      dim is intermittent, sometimes works, sometimes does not
@@ -7273,17 +7394,14 @@ st-0.8|simpleterm 0.8,
 #      as booleans rather than strings.
 st-0.7|simpleterm 0.7,
        ccc,
-       dim=\E[2m,
        initc=\E]4;%p1%d;rgb:%p2%{255}%*%{1000}%/%2.2X/%p3%{255}%*
              %{1000}%/%2.2X/%p4%{255}%*%{1000}%/%2.2X\E\\,
-       kcbt@, kent@, oc=\E]104\007,
-       sgr=%?%p9%t\E(0%e\E(B%;\E[0%?%p6%t;1%;%?%p2%t;4%;%?%p1%p3%|
-           %t;7%;%?%p4%t;5%;%?%p5%t;2%;%?%p7%t;8%;m,
-       Ms=\E]52;%p1%s;%p2%s\007, kDN3=\E[1;3B, kDN5=\E[1;5B,
-       kLFT3=\E[1;3D, kLFT5=\E[1;5D, kNXT3=\E[6;3~,
-       kNXT5=\E[6;5~, kPRV3=\E[5;3~, kPRV5=\E[5;5~,
-       kRIT3=\E[1;3C, kRIT5=\E[1;5C, kUP3=\E[1;3A, kUP5=\E[1;5A,
-       use=ecma+strikeout, use=st-0.6,
+       kcbt@, kent@, oc=\E]104\007, Ms=\E]52;%p1%s;%p2%s\007,
+       kDN3=\E[1;3B, kDN5=\E[1;5B, kLFT3=\E[1;3D, kLFT5=\E[1;5D,
+       kNXT3=\E[6;3~, kNXT5=\E[6;5~, kPRV3=\E[5;3~,
+       kPRV5=\E[5;5~, kRIT3=\E[1;3C, kRIT5=\E[1;5C,
+       kUP3=\E[1;3A, kUP5=\E[1;5A, use=ecma+strikeout,
+       use=st-0.6,
 
 # st-0.4.1
 #
@@ -7314,24 +7432,21 @@ st-0.7|simpleterm 0.7,
 # still has no function keys past kf36 (no combinations of modifiers)
 # no application keypad mode, e.g, kent.
 st-0.6|simpleterm 0.6,
-       am, bce, hs, mir, msgr, npc, xenl, XT,
-       colors#8, cols#80, it#8, lines#24, pairs#64,
+       am, bce, mir, msgr, npc, xenl, XT,
+       colors#8, cols#80, lines#24, pairs#64,
        acsc=+C\,D-A.B0E``aaffgghFiGjjkkllmmnnooppqqrrssttuuvvwwxxyy
             zz{{||}}~~,
-       bel=^G, blink=\E[5m, bold=\E[1m, cbt=\E[Z, clear=\E[H\E[2J,
-       cr=\r, csr=\E[%i%p1%d;%p2%dr, cub=\E[%p1%dD, 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,
-       dch=\E[%p1%dP, dch1=\E[P, dim=\E[2m, dl=\E[%p1%dM,
-       dl1=\E[M, ech=\E[%p1%dX, ed=\E[J, el=\E[K, el1=\E[1K,
-       enacs=\E)0, flash=\E[?5h$<100/>\E[?5l, fsl=^G, home=\E[H,
-       hpa=\E[%i%p1%dG, ht=^I, hts=\EH, ich=\E[%p1%d@,
-       il=\E[%p1%dL, il1=\E[L, ind=\n, invis=\E[8m,
+       bel=^G, blink=\E[5m, bold=\E[1m, clear=\E[H\E[2J, cr=\r,
+       cub=\E[%p1%dD, 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, dch=\E[%p1%dP, dch1=\E[P,
+       dim=\E[2m, ech=\E[%p1%dX, ed=\E[J, el=\E[K, el1=\E[1K,
+       enacs=\E)0, flash=\E[?5h$<100/>\E[?5l, home=\E[H,
+       hpa=\E[%i%p1%dG, ich=\E[%p1%d@, ind=\n, invis=\E[8m,
        is2=\E[4l\E>\E[?1034l, kDC=\E[3;2~, kEND=\E[1;2F,
        kHOM=\E[1;2H, kIC=\E[2;2~, kLFT=\E[1;2D, kNXT=\E[6;2~,
        kPRV=\E[5;2~, kRIT=\E[1;2C, ka1=\E[1~, ka3=\E[5~, kb2=\EOu,
        kbs=^?, kc1=\E[4~, kc3=\E[6~, kcbt=\E[Z, kclr=\E[3;5~,
-       kcub1=\EOD, kcud1=\EOB, kcuf1=\EOC, kcuu1=\EOA,
        kdl1=\E[3;2~, ked=\E[1;5F, kel=\E[1;2F, kent=\EOM,
        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,
@@ -7352,10 +7467,10 @@ st-0.6|simpleterm 0.6,
        kf61=\E[1;4P, kf62=\E[1;4Q, kf63=\E[1;4R, kf7=\E[18~,
        kf8=\E[19~, kf9=\E[20~, khome=\E[1~, kil1=\E[2;5~,
        kind=\E[1;2B, kmous=\E[M, kri=\E[1;2A, krmir=\E[2;2~,
-       mc0=\E[i, mc4=\E[4i, mc5=\E[5i, op=\E[39;49m, rc=\E8,
-       rev=\E[7m, ri=\EM, rmacs=\E(B, rmir=\E[4l, rmkx=\E[?1l\E>,
+       mc0=\E[i, mc4=\E[4i, mc5=\E[5i, op=\E[39;49m, rev=\E[7m,
+       ri=\EM, rmacs=\E(B, rmir=\E[4l, rmkx=\E[?1l\E>,
        rmso=\E[27m, rmul=\E[24m, rs1=\Ec, rs2=\E[4l\E>\E[?1034l,
-       sc=\E7, setab=\E[4%p1%dm, setaf=\E[3%p1%dm,
+       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}
@@ -7363,11 +7478,13 @@ st-0.6|simpleterm 0.6,
        sgr=%?%p9%t\E(0%e\E(B%;\E[0%?%p6%t;1%;%?%p2%t;4%;%?%p1%p3%|
            %t;7%;%?%p4%t;5%;%?%p5%t;2%;%?%p7%t;8%;m,
        sgr0=\E[0m, smacs=\E(0, smir=\E[4h, smkx=\E[?1h\E=,
-       smso=\E[7m, smul=\E[4m, tbc=\E[3g, u6=\E[%i%d;%dR,
-       u7=\E[6n, u8=\E[?1;2c, u9=\E[c, vpa=\E[%i%p1%dd, Se=\E[2 q,
-       Ss=\E[%p1%d q, use=vt220+pcedit, use=ecma+index,
+       smso=\E[7m, smul=\E[4m, u8=\E[?1;2c, vpa=\E[%i%p1%dd,
+       Se=\E[2 q, Ss=\E[%p1%d q, use=ansi+apparrows,
+       use=ansi+csr, use=ansi+enq, use=ansi+idl,
+       use=ansi+inittabs, use=vt220+pcedit, use=ecma+index,
        use=xterm+alt1049, use=vt220+cvis, use=xterm+sl,
        use=ecma+italics, use=ecma+strikeout,
+       use=bracketed+paste,
 #
 # st-0.1.1
 #
@@ -7391,23 +7508,23 @@ 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,
        acsc=``aaffggiijjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~,
-       bel=^G, bold=\E[1m, clear=\E[H\E[2J, cr=\r,
-       csr=\E[%i%p1%d;%p2%dr, 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, dch1=\E[P, dl=\E[%p1%dM,
-       dl1=\E[M, ed=\E[J, el=\E[K, home=\E[H, hpa=\E[%i%p1%dG,
-       ht=^I, ich=\E[%p1%d@, il=\E[%p1%dL, il1=\E[L, ind=\n, kbs=^?,
-       kcub1=\E[D, kcud1=\E[B, kcuf1=\E[C, kcuu1=\E[A,
-       kdch1=\E[3~, 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, rc=\E8,
-       rev=\E[7m, rmacs=\E(B, rmso=\E[m, rmul=\E[m, sc=\E7,
-       setab=\E[4%p1%dm, setaf=\E[3%p1%dm,
+       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,
+       dch1=\E[P, ed=\E[J, el=\E[K, home=\E[H, hpa=\E[%i%p1%dG,
+       ht=^I, ich=\E[%p1%d@, ind=\n, kbs=^?, kdch1=\E[3~,
+       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,
+       rmacs=\E(B, rmso=\E[m, rmul=\E[m, setab=\E[4%p1%dm,
+       setaf=\E[3%p1%dm,
        sgr=%?%p9%t\E(0%e\E(B%;\E[0%?%p6%t;1%;%?%p2%t;4%;%?%p1%p3%|
            %t;7%;m,
        sgr0=\E[0m, smacs=\E(0, smso=\E[7m, smul=\E[4m,
+       use=ansi+arrows, use=ansi+csr, use=ansi+idl,
        use=vt220+cvis, use=ecma+index,
+
 st-16color|stterm-16color|simpleterm with 16-colors,
        use=ibm+16color, use=st,
 # Tested with st 0.8.2
@@ -7497,29 +7614,28 @@ terminator|Terminator no line wrap,
        bce, eo, mir, msgr, xenl, xon,
        cols#80, it#8, lines#24, lm#0,
        acsc=``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~,
-       bold=\E[1m, clear=\E[H\E[2J, cr=\r,
-       csr=\E[%i%p1%d;%p2%dr, cub=\E[%p1%dD, cub1=^H,
+       bold=\E[1m, clear=\E[H\E[2J, cr=\r, cub=\E[%p1%dD, 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,
-       dch=\E[%p1%dP, dch1=\E[P, dim=\E[2m, dl=\E[%p1%dM,
-       dl1=\E[M, ed=\E[J, el=\E[K, el1=\E[1K, enacs=\E(B\E)0,
-       flash=^G, home=\E[H, hpa=\E[%i%p1%dG, ht=^I, hts=\EH,
-       il=\E[%p1%dL, il1=\E[L, ind=\n, is1=\E[?47l\E=\E[?1l,
+       dch=\E[%p1%dP, dch1=\E[P, dim=\E[2m, ed=\E[J, el=\E[K,
+       el1=\E[1K, enacs=\E(B\E)0, flash=^G, home=\E[H,
+       hpa=\E[%i%p1%dG, ht=^I, hts=\EH, ind=\n,
+       is1=\E[?47l\E=\E[?1l,
        is2=\E[r\E[m\E[2J\E[H\E[?7h\E[?1;3;4;6l\E[4l, kbs=^?,
-       kcub1=\E[D, kcud1=\E[B, kcuf1=\E[C, kcuu1=\E[A, kf1=\EOP,
-       kf10=\E[21~, kf11=\E[23~, kf12=\E[24~, kf13=\E[25~,
-       kf14=\E[26~, kf15=\E[28~, kf16=\E[29~, kf2=\EOQ, kf3=\EOR,
-       kf4=\EOS, kf5=\E[15~, kf6=\E[17~, kf7=\E[18~, kf8=\E[19~,
-       kf9=\E[20~, rc=\E8, rev=\E[7m, ri=\EM, rmacs=\E(B,
-       rmir=\E[4l, rmso=\E[27m, rmul=\E[24m, rs1=\Ec,
-       rs2=\E[!p\E[?3;4l\E[4l\E>, s0ds=\E(B, s1ds=\E(0, sc=\E7,
+       kf1=\EOP, kf10=\E[21~, kf11=\E[23~, kf12=\E[24~,
+       kf13=\E[25~, kf14=\E[26~, kf15=\E[28~, kf16=\E[29~,
+       kf2=\EOQ, kf3=\EOR, kf4=\EOS, kf5=\E[15~, kf6=\E[17~,
+       kf7=\E[18~, kf8=\E[19~, kf9=\E[20~, khome=\E[1~, rev=\E[7m,
+       ri=\EM, rmacs=\E(B, rmir=\E[4l, rmso=\E[27m, rmul=\E[24m,
+       rs1=\Ec, rs2=\E[!p\E[?3;4l\E[4l\E>, s0ds=\E(B, s1ds=\E(0,
        sgr=\E[0%?%p1%p6%|%t;1%;%?%p2%t;4%;%?%p5%t;2%;%?%p1%p3%|%t;7
            %;m%?%p9%t\E(0%e\E(B%;,
        sgr0=\E[m\E(B, smacs=\E(0, smir=\E[4h, smso=\E[7m,
-       smul=\E[4m, tbc=\E[3g, tsl=\E]2;, vpa=\E[%i%p1%dd,
+       smul=\E[4m, tbc=\E[3g, vpa=\E[%i%p1%dd, use=ansi+arrows,
+       use=ansi+csr, use=ansi+enq, use=ansi+idl,
        use=vt220+pcedit, use=ecma+italics, use=ecma+index,
        use=xterm+256setaf, use=xterm+sl-twm,
-       use=xterm+alt1049, use=vt220+cvis,
+       use=xterm+alt1049, use=vt220+cvis, use=bracketed+paste,
 
 #### TERMINOLOGY
 # https://www.enlightenment.org/about-terminology
@@ -7574,9 +7690,7 @@ terminator|Terminator no line wrap,
 terminology-0.6.1|EFL-based terminal emulator (0.6.1),
        mc5i@,
        blink@, ed@, el@, el1@, invis=\E[8m, kLFT=\E[1;2D,
-       kRIT=\E[1;2C, kf10=\E[21~, kf11=\E[23~, kf12=\E[24~,
-       kf5=\E[15~, kf6=\E[17~, kf7=\E[18~, kf8=\E[19~, kf9=\E[20~,
-       kind=\E[1;2B, kri=\E[1;2A,
+       kRIT=\E[1;2C, kind=\E[1;2B, kri=\E[1;2A,
        sgr=\E[0%?%p1%p6%|%t;1%;%?%p2%t;4%;%?%p1%p3%|%t;7%;%?%p7%t;8
            %;m%?%p9%t\016%e\017%;$<2>,
        vpa=\E[%i%p1%dd, kDC3=\E[3;3~, kDC4=\E[3;4~,
@@ -7586,8 +7700,8 @@ terminology-0.6.1|EFL-based terminal emulator (0.6.1),
        kLFT3=\E[1;3D, kLFT4=\E[1;4D, kLFT5=\E[1;5D,
        kLFT6=\E[1;6D, kLFT7=\E[1;7D, kRIT3=\E[1;3C,
        kRIT4=\E[1;4C, kRIT5=\E[1;5C, kRIT6=\E[1;6C,
-       kRIT7=\E[1;7C, kUP=\E[1;2A, use=xterm+pcf0, use=vt100,
-       use=xterm+256setaf,
+       kRIT7=\E[1;7C, kUP=\E[1;2A, use=ansi+enq, use=xterm+pcf0,
+       use=vt100, use=xterm+256setaf,
 
 # 2017-11-11:
 # Tested terminology 1.0.0
@@ -7610,7 +7724,8 @@ terminology-1.0.0|EFL-based terminal emulator (1.0.0),
            %?%p1%p3%|%t;7%;%?%p7%t;8%;m$<2>,
        sgr0=\E(B\E[m, smacs=\E(0, use=ecma+italics,
        use=vt220+cvis, use=xterm+x11mouse, use=xterm+pce2,
-       use=xterm+pcf2, use=xterm+pcc2, use=terminology-0.6.1,
+       use=xterm+pcf2, use=xterm+pcc2, use=bracketed+paste,
+       use=terminology-0.6.1,
 
 # 2020/12/26:
 # Tested terminology 1.8.1 using tack and vttest.
@@ -7629,10 +7744,11 @@ terminology-1.0.0|EFL-based terminal emulator (1.0.0),
 terminology-1.8.1|EFL-based terminal emulator (1.8.1),
        km@,
        cvvis@, flash@, initc@, kcbt=\E[Z, rmm@, smm@, Ms@,
-       use=ecma+index, use=xterm+256setaf, use=ansi+rep,
-       use=ecma+strikeout, use=xterm+sm+1006,
-       use=xterm+pcfkeys, use=xterm+tmux, use=vt220+cvis,
-       use=ecma+italics, use=xterm-basic,
+       use=linux+kbs, use=ecma+index, use=xterm+256setaf,
+       use=ansi+rep, use=ecma+strikeout, use=xterm+focus,
+       use=xterm+sm+1006, use=xterm+pcfkeys, use=xterm+tmux,
+       use=vt220+cvis, use=ecma+italics, use=xterm-basic,
+       use=report+version,
 
 terminology|EFL-based terminal emulator,
        use=terminology-1.8.1,
@@ -7700,12 +7816,19 @@ alacritty-direct|alacritty with direct color indexing,
 # added xterm+sl-twm in 0.3.3 -TD
 alacritty+common|base fragment for alacritty,
        km@, npc,
-       kb2=\EOE, kbs=^?, kcbt=\E[Z, kent=\EOM, Se=\E[0 q,
-       Smulx=\E[4:%p1%dm, use=ecma+index, use=xterm+sm+1006,
-       use=xterm-basic, use=xterm+app, use=ansi+rep,
-       use=xterm+tmux, use=ecma+strikeout, use=xterm+sl-twm,
-       use=ecma+italics, use=xterm+pce2, use=xterm+pcc2,
-       use=xterm+pcf2,
+       kb2=\EOE, kcbt=\E[Z, kent=\EOM, Se=\E[0 q,
+       Smulx=\E[4:%p1%dm, use=ecma+index, use=xterm+focus,
+       use=xterm+sm+1006, use=xterm-basic, use=xterm+app,
+       use=ansi+rep, use=xterm+tmux, use=ecma+strikeout,
+       use=xterm+sl-twm, use=ecma+italics, use=xterm+pce2,
+       use=xterm+pcc2, use=xterm+pcf2, use=bracketed+paste,
+
+# https://github.com/raphamorim/rio
+# derived from alacritty
+rio|fork of alacritty,
+       use=alacritty,
+rio-direct|fork of alacritty,
+       use=alacritty-direct,
 
 #### Kitty
 # https://github.com/kovidgoyal/kitty
@@ -7825,42 +7948,29 @@ kitty-direct|KovId's TTY using direct colors,
        oc=\E]104\007, use=xterm+direct2, use=kitty+common,
 kitty+common|KovId's TTY common properties,
        am, mc5i, mir, msgr, npc, xenl,
-       cols#80, it#8, lines#24,
+       cols#80, lines#24,
        acsc=++\,\,--..00``aaffgghhiijjkkllmmnnooppqqrrssttuuvvwwxxy
             yzz{{||}}~~,
-       bel=^G, bold=\E[1m, cbt=\E[Z, clear=\E[H\E[2J, cr=\r,
-       csr=\E[%i%p1%d;%p2%dr, cub=\E[%p1%dD, cub1=^H,
-       cud=\E[%p1%dB, cud1=\n, cuf=\E[%p1%dC, cuf1=\E[C,
+       bel=^G, bold=\E[1m, clear=\E[H\E[2J, cr=\r, cub=\E[%p1%dD,
+       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,
-       dch=\E[%p1%dP, dch1=\E[P, dim=\E[2m, dl=\E[%p1%dM,
-       dl1=\E[M, ech=\E[%p1%dX, ed=\E[J, el=\E[K, el1=\E[1K,
-       flash=\E[?5h$<100/>\E[?5l, home=\E[H, hpa=\E[%i%p1%dG,
-       ht=^I, hts=\EH, ich=\E[%p1%d@, il=\E[%p1%dL, il1=\E[L,
-       ind=\n, kBEG=\E[1;2E, kbeg=\EOE, kbs=^?, kcbt=\E[Z,
-       kcub1=\EOD, kcud1=\EOB, kcuf1=\EOC, kcuu1=\EOA,
-       kdch1=\E[3~, kend=\EOF, 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~, kf4=\EOS, kf5=\E[15~,
-       kf6=\E[17~, kf7=\E[18~, kf8=\E[19~, kf9=\E[20~, khome=\EOH,
-       kich1=\E[2~, kind=\E[1;2B, knp=\E[6~, kpp=\E[5~,
-       kri=\E[1;2A, op=\E[39;49m, rc=\E8, rev=\E[7m, ri=\EM,
-       rmacs=\E(B, rmam=\E[?7l, rmir=\E[4l, rmkx=\E[?1l,
-       rmso=\E[27m, rmul=\E[24m, rs1=\E]\E\\\Ec, sc=\E7,
+       dch=\E[%p1%dP, dch1=\E[P, dim=\E[2m, ech=\E[%p1%dX,
+       ed=\E[J, el=\E[K, el1=\E[1K, flash=\E[?5h$<100/>\E[?5l,
+       home=\E[H, hpa=\E[%i%p1%dG, ich=\E[%p1%d@, ind=\n,
+       kBEG=\E[1;2E, kbeg=\EOE, kbs=^?, kcbt=\E[Z, op=\E[39;49m,
+       rev=\E[7m, ri=\EM, rmacs=\E(B, rmam=\E[?7l, rmir=\E[4l,
+       rmkx=\E[?1l, rmso=\E[27m, rmul=\E[24m, rs1=\E]\E\\\Ec,
        sgr=%?%p9%t\E(0%e\E(B%;\E[0%?%p6%t;1%;%?%p5%t;2%;%?%p2%t;4%;
            %?%p1%p3%|%t;7%;m,
        sgr0=\E(B\E[m, smacs=\E(0, smam=\E[?7h, smir=\E[4h,
-       smkx=\E[?1h, smso=\E[7m, smul=\E[4m, tbc=\E[3g,
-       vpa=\E[%i%p1%dd, Smulx=\E[4:%p1%dm, use=ansi+enq,
-       use=ansi+rep, use=xterm+sm+1006, use=ecma+index,
+       smkx=\E[?1h, smso=\E[7m, smul=\E[4m, vpa=\E[%i%p1%dd,
+       Smulx=\E[4:%p1%dm, use=ansi+csr, use=ansi+enq,
+       use=ansi+idl, use=ansi+inittabs, use=ansi+rep,
+       use=xterm+focus, use=xterm+sm+1006, use=ecma+index,
        use=xterm+pcfkeys, use=xterm+sl-twm,
        use=ecma+strikeout, use=ecma+italics,
        use=xterm+alt1049, use=att610+cvis, use=xterm+tmux,
+       use=bracketed+paste, use=report+version,
 
 kitty+setal|set underline colors (nonstandard),
        setal=\E[58:2::%p1%{65536}%/%d:%p1%{256}%/%{255}%&%d:%p1
@@ -7902,16 +8012,16 @@ foot-direct|foot with direct color indexing,
        use=xterm+direct, use=foot+base,
 
 foot+base|foot base fragment,
-       am, bce, bw, hs, mir, msgr, npc, xenl, AX, XT,
+       am, bce, bw, mir, msgr, npc, xenl, AX, XT,
        cols#80, it#8, lines#24,
        acsc=``aaffggiijjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~,
        bel=^G, blink=\E[5m, bold=\E[1m, clear=\E[H\E[2J, cr=\r,
        cub1=^H, cud1=\n, dim=\E[2m, ech=\E[%p1%dX, ed=\E[J, el=\E[K,
        el1=\E[1K, flash=\E]555\E\\, ind=\n, invis=\E[8m,
-       is2=\E[!p\E[?3;4l\E[4l\E>, kbs=^?, kcbt=\E[Z,
-       oc=\E]104\E\\, op=\E[39;49m, rev=\E[7m, ri=\EM, rmacs=\E(B,
-       rmam=\E[?7l, rmkx=\E[?1l\E>, rmso=\E[27m, rmul=\E[24m,
-       rs1=\Ec, rs2=\E[!p\E[?3;4l\E[4l\E>,
+       is2=\E[!p\E[4l\E>, kbs=^?, kcbt=\E[Z, oc=\E]104\E\\,
+       op=\E[39;49m, rev=\E[7m, ri=\EM, rmacs=\E(B, rmam=\E[?7l,
+       rmkx=\E[?1l\E>, rmso=\E[27m, rmul=\E[24m, rs1=\Ec,
+       rs2=\E[!p\E[4l\E>,
        sgr=%?%p9%t\E(0%e\E(B%;\E[0%?%p6%t;1%;%?%p5%t;2%;%?%p2%t;4%;
            %?%p1%p3%|%t;7%;%?%p4%t;5%;%?%p7%t;8%;m,
        sgr0=\E(B\E[m, smacs=\E(0, smam=\E[?7h, smkx=\E[?1h\E=,
@@ -7921,7 +8031,8 @@ foot+base|foot base fragment,
        use=ansi+tabs, use=ecma+index, use=ecma+italics,
        use=ecma+strikeout, use=xterm+alt+title,
        use=xterm+pcfkeys, use=xterm+sm+1006, use=xterm+tmux2,
-       use=xterm+sl-alt,
+       use=xterm+sl-alt, use=bracketed+paste,
+       use=report+version, use=xterm+focus,
 
 ######## WEB CLIENTS
 
@@ -7975,8 +8086,153 @@ domterm|DomTerm web client,
        bel@, blink@, dim@, invis@, kcbt=\E[Z, ritm@, rmkx=\E[?1l,
        sgr=%?%p9%t\E(0%e\E(B%;\E[0%?%p6%t;1%;%?%p2%t;4%;%?%p1%p3%|
            %t;7%;m,
-       sitm@, smkx=\E[?1h, use=xterm+256setaf, use=ecma+index,
-       use=xterm+sm+1006, use=xterm+pcfkeys, use=xterm-basic,
+       sitm@, smkx=\E[?1h, use=linux+kbs, use=xterm+256setaf,
+       use=ecma+index, use=xterm+focus, use=xterm+sm+1006,
+       use=xterm+pcfkeys, use=xterm-basic,
+       use=bracketed+paste,
+
+######## Miscellaneous
+
+#### WezTerm
+# https://wezfurlong.org/wezterm/
+# https://github.com/wez/wezterm
+#
+# which says:
+# "wezterm is a terminal emulator with support for modern features
+#  such as fonts with ligatures, hyperlinks, tabs and multiple windows."
+#
+# wezterm-20230712_072601_f4abf8fd-1.fedora38.x86_64
+# tested with MacOS and Fedora 38/39.
+#
+# General:
+# + written in Rust.
+# + initial screensize is odd, i.e., 81x24
+#   provides no visual feedback on resize
+#   ignores "resize -s"
+#   manual resize and then running resize got off-by-one adjustment
+# + leaves debris (unerased cells) when switching between normal/alternate
+#   screens.
+# + sets TERM=xterm-256color
+# tack:
+# + misplaced message in "am" screen
+# + fails xenl (should be false)
+# + cvvis is same as cnorm, block
+# + has blink and dim
+# + in bce test, blue isn't really blue but some pale purple
+# + modified keys mostly work, but its tab control interferes with some
+# + rmm/smm don't work (always uses escape-prefix)
+# wraptest:
+# + poor (doesn't copy anyone, most of the results are wrong)
+# vttest:
+# + DA is VT5xx with sixel, selective erase, user windows, color
+# + DA2 is VT220 version 277
+# + only the VT100 character set works, contrary to DA/DA2.
+# + no NRCS, either
+# + double-sized character work, with some debris
+# + doesn't switch between 80/132 columns.
+# + numeric keypad ANSI application mode escapes don't work.
+# + numeric keypad ANSI mode misses "0", ".", ","
+# + uses PC-style editing keypad \E[H and \E[F for Find and Select
+# + no VT52
+# + DECSED selective erase doesn't work
+# + SRM doesn't work
+# + 8-bit controls don't work
+# + DECNCSM doesn't work
+# + most DECRQSS do not work (DECSCL, DECSTBM, DECSLRM respond)
+# + DECRQM/DECRPM don't work (most reply permanently reset)
+# + DECLRMM responds to DECRPM, but VT420 rectangle tests do not work.
+#   Some of the left/right margin tests work with the cursor-movement screen,
+#   but DECFI/DECBI do not work.  The other cursor-movement tests are buggy.
+# + implements ECMA-48 cursor movement, but not SL/SR or protected area
+# + implements xterm normal, any-event and button-event mouse, none of the rest
+# + reports window size, none of the other window reports
+wezterm|Wez's Terminal Emulator,
+       km@, xenl@,
+       cvvis@, rmkx=\E[?1l, rmm@, smkx=\E[?1h, smm@,
+       use=xterm-256color,
+
+#### Contour
+# https://github.com/contour-terminal/contour
+#
+# "Modern C++ Terminal Emulator"
+# Contour is a modern and actually fast, modal, virtual terminal emulator,
+# for everyday use. It is aiming for power users with a modern feature mindset.
+#
+# That is three occurrences of "modern" too many -TD
+#
+# MacOS
+# - cannot run, because the package is not signed.
+#
+# Fedora rawhide
+# contour-terminal-0.3.12.262-6.fc39.x86_64
+# - dumps core, cannot test
+#
+# Fedora 39
+# contour-terminal-0.4.0.6245-1.fc38.x86_64
+# - starts but doesn't display
+#
+# Fedora 38
+# contour-terminal-0.4.0.6245-1.fc38.x86_64
+# - starts but doesn't display
+# contour-terminal-0.3.12.262-1.fc38.x86_64
+# + testable (see below)
+# + initial screensize 62x23, no visual feedback on resize, no "resize -s"
+#
+# Sets TERM=contour (which is preferable to xterm).
+#
+# tack:
+# + cvvis is same as cnorm, "|"
+# + sitm/ritm don't work
+# + rmm/smm don't work (always uses escape, but terminfo defines km)
+# + initp interchanges red/blue (bug in tack?)
+# + modified F1-F4 are wrong, sending SS3 with modifier numbers
+# + shifted editing-keypad doesn't send anything
+# + meta key doesn't work
+# + status-line works (based on xterm, including window-resizing)
+# + dots don't line up for home test
+#
+# wraptest:
+# + poor 7/25 differences from xterm (perhaps copying iTerm2)
+#
+# vttest:
+# + hangs in menu 1, etc., when it tries to resize
+#
+# infocmp vs xterm-256color
+# + missing XM/xm
+# + rmcup/smcup doesn't use title-stack (but is implemented)
+# + doesn't use SGR mouse (but is implemented)
+# + sgr doesn't define dim, but dim capability is in terminfo (implemented)
+#
+# Developer's terminfo (compiled-in) uses some extensions.
+contour|contour-latest|Contour Terminal Emulator,
+       am, bce, eslok, hs, km, mc5i, mir, msgr, npc, xenl, xvpa,
+       cols#80, lines#24, pairs#0x7fff,
+       acsc=``aaffggiijjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~,
+       bel=^G, bold=\E[1m, clear=\E[H\E[2J, cr=\r, cub=\E[%p1%dD,
+       cub1=^H, cud=\E[%p1%dB, cud1=\n, cuf=\E[%p1%dC, cuf1=\E[C,
+       cuu=\E[%p1%dA, cuu1=\E[A, dim=\E[2m, dsl=\E[$~,
+       ech=\E[%p1%dX, el1=\E[1K, flash=\E[?5h$<100/>\E[?5l,
+       fsl=\E[$}, hpa=\E[%i%p1%dG, ind=\n, indn=\E[%p1%dS,
+       invis=\E[8m, ka1=, ka3=, kbs=^?, kc1=, kc3=, kcbt=\E[Z,
+       kend=\EOF, khlp=, kmous=\E[M, kund=, oc=\E]104\E\\,
+       op=\E[39;49m, rev=\E[7m, ri=\EM, rin=\E[%p1%dT, rmacs=\E(B,
+       rmam=\E[?7l, rmkx=\E[?1l, rmso=\E[27m, rmul=\E[24m,
+       rs1=\E]\E\\\Ec,
+       sgr=%?%p9%t\E(0%e\E(B%;\E[0%?%p6%t;1%;%?%p2%t;4%;%?%p1%p3%|
+           %t;7%;%?%p4%t;5%;%?%p7%t;8%;m,
+       sgr0=\E(B\E[m, smacs=\E(0, smam=\E[?7h, smkx=\E[?1h,
+       smso=\E[7m, smul=\E[4m, tsl=\E[2$~\E[1$}\E[H\E[2J,
+       vpa=\E[%i%p1%dd, Cs=\E]12;%p1%s\E\\, E3=\E[3J,
+       Rmol=\E[55m, Se=\E[ q, Smol=\E[53m, Smulx=\E[4:%p1%dm,
+       Ss=\E[%p1%d q, use=ansi+apparrows, use=ansi+cup,
+       use=ansi+csr, use=ansi+erase, use=ansi+idc, use=ansi+idl,
+       use=ansi+inittabs, use=ansi+rep, use=att610+cvis,
+       use=ecma+italics, use=ecma+strikeout,
+       use=xterm+256color, use=xterm+alt1049, use=xterm+pcc2,
+       use=xterm+pce2, use=xterm+pcf2,
+
+contour-direct|Contour terminal with direct colors,
+       use=xterm+direct, use=contour,
 
 ######## UNIX VIRTUAL TERMINALS, VIRTUAL CONSOLES, AND TELNET CLIENTS
 #
@@ -8010,36 +8266,26 @@ pty|4bsd pseudo teletype,
 eterm|GNU Emacs term.el terminal emulation,
        am, mir, xenl,
        cols#80, lines#24,
-       bel=^G, bold=\E[1m, clear=\E[H\E[J, cr=\r,
-       csr=\E[%i%p1%d;%p2%dr, cub=\E[%p1%dD, 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,
-       dch=\E[%p1%dP, dch1=\E[P, dl=\E[%p1%dM, dl1=\E[M, ed=\E[J,
-       el=\E[K, el1=\E[1K, home=\E[H, ht=^I, ich=\E[%p1%d@,
-       il=\E[%p1%dL, il1=\E[L, ind=\n, rev=\E[7m,
-       rmcup=\E[2J\E[?47l\E8, rmir=\E[4l, rmso=\E[m, rmul=\E[m,
-       sgr0=\E[m, smcup=\E7\E[?47h, smir=\E[4h, smso=\E[7m,
-       smul=\E[4m,
+       bel=^G, bold=\E[1m, cr=\r, csr=\E[%i%p1%d;%p2%dr,
+       cub=\E[%p1%dD, 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, dch=\E[%p1%dP, dch1=\E[P,
+       el1=\E[1K, home=\E[H, ht=^I, ich=\E[%p1%d@, ind=\n,
+       rev=\E[7m, rmir=\E[4l, rmso=\E[m, rmul=\E[m, sgr0=\E[m,
+       smir=\E[4h, smso=\E[7m, smul=\E[4m, use=ansi+cpr,
+       use=ansi+erase, use=ansi+idl, use=xterm+alt47,
 
 # The codes supported by the term.el terminal emulation in GNU Emacs 22.2
 eterm-color|Emacs term.el terminal emulator term-protocol-version 0.96,
-       am, mir, msgr, xenl,
-       colors#8, cols#80, lines#24, pairs#64,
-       bel=^G, blink=\E[5m, bold=\E[1m, clear=\E[H\E[J, cr=\r,
-       csr=\E[%i%p1%d;%p2%dr, cub=\E[%p1%dD, 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,
-       dch=\E[%p1%dP, dch1=\E[P, dl=\E[%p1%dM, dl1=\E[M, ed=\E[J,
-       el=\E[K, el1=\E[1K, home=\E[H, ht=^I, ich=\E[%p1%d@,
-       il=\E[%p1%dL, il1=\E[L, ind=\n, invis=\E[8m, kbs=^?,
-       kcub1=\EOD, kcud1=\EOB, kcuf1=\EOC, kcuu1=\EOA,
-       op=\E[39;49m, rc=\E8, rev=\E[7m, ri=\EM, rmir=\E[4l,
-       rmso=\E[27m, rmul=\E[24m, rs1=\Ec, sc=\E7,
+       msgr,
+       colors#8, pairs#64,
+       blink=\E[5m, invis=\E[8m, kbs=^?, khome=\E[1~,
+       op=\E[39;49m, ri=\EM, rmso=\E[27m, rmul=\E[24m, rs1=\Ec,
        setab=\E[%p1%'('%+%dm, setaf=\E[%p1%{30}%+%dm,
        sgr=\E[0%?%p1%p3%|%t;7%;%?%p2%t;4%;%?%p4%t;5%;%?%p6%t;1%;%?
            %p7%t;8%;m,
-       sgr0=\E[m, smir=\E[4h, smso=\E[7m, smul=\E[4m,
-       u6=\E[%i%d;%dR, u7=\E[6n, use=vt220+pcedit,
+       sgr0=\E[m, use=ansi+apparrows, use=ansi+csr,
+       use=vt220+pcedit, use=eterm,
 
 # shell.el can "do" color, though not nearly as well.
 #
@@ -8133,40 +8379,46 @@ dumb-emacs-ansi|Emacs dumb terminal with ANSI color codes,
 # since 1994 (i.e., screen 3.0.5), stating that it was an obscure code used by
 # the (Siemens Nixdorf) 97801 terminal.  It was not shown in the termcap or
 # terminfo entries (which list about 60% of the control sequences).
-screen|VT 100/ANSI X3.64 virtual terminal (base),
+screen-base|VT 100/ANSI X3.64 virtual terminal (base),
        OTbs, OTpt, am, km, mir, msgr, xenl, G0,
-       colors#8, cols#80, it#8, lines#24, ncv@, pairs#64, U8#1,
+       cols#80, lines#24, ncv@, U8#1,
        acsc=++\,\,--..00``aaffgghhiijjkkllmmnnooppqqrrssttuuvvwwxxy
             yzz{{||}}~~,
-       bel=^G, blink=\E[5m, bold=\E[1m, cbt=\E[Z, civis=\E[?25l,
-       clear=\E[H\E[J, cnorm=\E[34h\E[?25h, cr=\r,
-       csr=\E[%i%p1%d;%p2%dr, cub=\E[%p1%dD, cub1=^H,
+       bel=^G, blink=\E[5m, bold=\E[1m, civis=\E[?25l,
+       cnorm=\E[34h\E[?25h, cr=\r, cub=\E[%p1%dD, 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=\EM,
        cvvis=\E[34l, dch=\E[%p1%dP, dch1=\E[P, dim=\E[2m,
-       dl=\E[%p1%dM, dl1=\E[M, ed=\E[J, el=\E[K, el1=\E[1K,
-       enacs=\E(B\E)0, flash=\Eg, home=\E[H, hpa=\E[%i%p1%dG,
-       ht=^I, hts=\EH, ich=\E[%p1%d@, il=\E[%p1%dL, il1=\E[L,
-       ind=\n, indn=\E[%p1%dS, is2=\E)0, kbs=^H, kcbt=\E[Z,
-       kcub1=\EOD, kcud1=\EOB, kcuf1=\EOC, kcuu1=\EOA, 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~, kmous=\E[M, nel=\EE, rc=\E8, rev=\E[7m, ri=\EM,
+       el1=\E[1K, enacs=\E(B\E)0, flash=\Eg, home=\E[H,
+       hpa=\E[%i%p1%dG, ich=\E[%p1%d@, ind=\n, indn=\E[%p1%dS,
+       is2=\E)0, kbs=^?, kcbt=\E[Z, 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~, kmous=\E[M, nel=\EE, rev=\E[7m, ri=\EM,
        rmacs=^O, rmir=\E[4l, rmkx=\E[?1l\E>, rmso=\E[23m,
-       rmul=\E[24m, rs2=\Ec\E[?1000l\E[?25h, sc=\E7,
+       rmul=\E[24m, rs2=\Ec\E[?1000l\E[?25h,
        sgr=\E[0%?%p6%t;1%;%?%p1%t;3%;%?%p2%t;4%;%?%p3%t;7%;%?%p4%t;
            5%;%?%p5%t;2%;m%?%p9%t\016%e\017%;,
        sgr0=\E[m\017, smacs=^N, smir=\E[4h, smkx=\E[?1h\E=,
-       smso=\E[3m, smul=\E[4m, tbc=\E[3g, vpa=\E[%i%p1%dd,
-       E0=\E(B, S0=\E(%p1%c, use=vt220+pcedit,
-       use=xterm+alt1049, use=ecma+color, use=vt100+enq,
+       smso=\E[3m, smul=\E[4m, vpa=\E[%i%p1%dd, E0=\E(B,
+       S0=\E(%p1%c, use=ansi+apparrows, use=ansi+csr,
+       use=ansi+erase, use=ansi+idl, use=ansi+inittabs,
+       use=xterm+kbs, use=vt220+pcedit, use=xterm+alt1049,
+       use=ecma+color, use=vt100+enq,
+
+screen|VT 100/ANSI X3.64 virtual terminal,
+       use=screen4,
+
+no+brackets|cancel bracketed paste,
+       BD@, BE@, PE@, PS@,
+
 # The bce and status-line entries are from screen 3.9.13 (and require some
 # changes to .screenrc).
 screen-bce|VT 100/ANSI X3.64 virtual terminal with bce,
        bce,
-       ech@, use=screen4,
+       ech@, use=screen,
 screen-s|VT 100/ANSI X3.64 virtual terminal with hardstatus line,
-       dsl=\E_\E\\, fsl=\E\\, tsl=\E_, use=screen4,
+       dsl=\E_\E\\, fsl=\E\\, tsl=\E_, use=screen,
 
 # ======================================================================
 # Entries for GNU Screen with 16 colors.
@@ -8177,7 +8429,7 @@ screen-s|VT 100/ANSI X3.64 virtual terminal with hardstatus line,
 # do all support 16 color palette.
 
 screen-16color|GNU Screen with 16 colors,
-       use=ibm+16color, use=screen4,
+       use=ibm+16color, use=screen,
 
 screen-16color-s|GNU Screen with 16 colors and status line,
        use=ibm+16color, use=screen-s,
@@ -8192,13 +8444,13 @@ screen-16color-bce-s|GNU Screen with 16 colors using BCE and status line,
 # Entries for GNU Screen 4.02 with --enable-colors256.
 
 screen-256color|GNU Screen with 256 colors,
-       use=xterm+256setaf, use=screen4,
+       use=xterm+256setaf, use=screen,
 
 screen-256color-s|GNU Screen with 256 colors and status line,
        use=xterm+256setaf, use=screen-s,
 
 screen-256color-bce|GNU Screen with 256 colors and BCE,
-       bce, use=xterm+256setaf, use=screen-bce,
+       use=xterm+256setaf, use=screen-bce,
 
 screen-256color-bce-s|GNU Screen with 256 colors using BCE and status line,
        bce, use=xterm+256setaf, use=screen-s,
@@ -8207,7 +8459,7 @@ screen.xterm-256color|GNU Screen with xterm using 256 colors,
        use=xterm+256setaf, use=screen.xterm-new,
 
 screen.konsole-256color|GNU Screen with konsole using 256 colors,
-       use=xterm+256setaf, use=screen.konsole,
+       XR@, use=xterm+256setaf, use=screen.konsole,
 
 screen.vte-256color|GNU Screen with vte using 256 colors,
        use=xterm+256setaf, use=screen.vte,
@@ -8216,7 +8468,7 @@ screen.putty-256color|GNU Screen with putty using 256 colors,
        use=xterm+256setaf, use=screen.putty,
 
 screen.mlterm-256color|GNU Screen with mlterm using 256 colors,
-       use=xterm+256setaf, use=screen.mlterm,
+       XR@, use=xterm+256setaf, use=screen.mlterm,
 
 # ======================================================================
 
@@ -8254,6 +8506,7 @@ screen+italics|screen cannot support italics,
 #      match.  Hence, no "screen.xterm" entry is provided, since that would
 #      create heartburn for people running remote xterm's.
 # (f)   screen does not support rep.
+# (g)  the xterm-new compatibility does not include bracketed paste.
 #
 #      xterm (-xfree86 or -r6) does not normally support kIC, kNXT and kPRV
 #      since the default translations override the built-in keycode
@@ -8264,9 +8517,14 @@ screen.xterm-xfree86|screen.xterm-new|screen customized for modern xterm,
        sgr=%?%p9%t\E(0%e\E(B%;\E[0%?%p6%t;1%;%?%p2%t;4%;%?%p1%p3%|
            %t;7%;%?%p4%t;5%;%?%p5%t;2%;m,
        E3@, use=screen+italics, use=screen+fkeys,
-       use=xterm+x11mouse, use=xterm-p370,
+       use=xterm+x11mouse, use=ecma+index, use=ansi+rep,
+       use=ecma+strikeout, use=xterm+pcfkeys,
+       use=xterm+nofkeys,
+
+# Don't use this, because not everyone has "screen.xterm-new":
 #:screen.xterm|screen for modern xterm,
 #:     use=screen.xterm-new,
+
 # xterm-r6 does not really support khome/kend unless it is propped up by
 # the translations resource.
 screen.xterm-r6|screen customized for X11R6 xterm,
@@ -8278,36 +8536,38 @@ screen.teraterm|disable ncv in teraterm,
        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,
-       use=screen+fkeys, use=xterm+x11mouse, use=screen4,
+       use=screen+fkeys, use=xterm+x11mouse, use=screen,
 # Other terminals
 screen.rxvt|screen in rxvt,
        bw, XT,
        cvvis@, flash@, kcub1=\EOD, kcud1=\EOB, kcuf1=\EOC,
        kcuu1=\EOA, use=screen+fkeys, use=vt100+enq,
        use=rxvt+pcfkeys, use=xterm+x11mouse, use=vt220+keypad,
-       use=screen4,
+       use=screen,
 screen.Eterm|screen in Eterm,
        use=xterm+x11mouse, use=screen+fkeys, use=Eterm,
 screen.mrxvt|screen in mrxvt,
        use=xterm+x11mouse, use=screen+fkeys, use=mrxvt,
 screen.vte|screen in any VTE-based terminal,
        use=xterm+x11mouse, use=screen+italics,
-       use=screen+fkeys, use=vte,
+       use=screen+fkeys, use=no+brackets, use=vte,
 screen.gnome|screen in GNOME Terminal,
        use=xterm+x11mouse, use=screen+italics,
-       use=screen+fkeys, use=gnome,
+       use=screen+fkeys, use=no+brackets, use=gnome,
 screen.konsole|screen in KDE console window,
-       use=xterm+x11mouse, use=screen+italics,
-       use=screen+fkeys, use=konsole,
+       XR@, use=xterm+x11mouse, use=screen+italics,
+       use=screen+fkeys, use=no+brackets, use=konsole,
 # fix the backspace key
 screen.linux|screen.linux-s|screen in Linux console,
        bw,
-       kbs=^?, kcbt@, use=linux+sfkeys, use=xterm+x11mouse,
-       use=screen+fkeys, use=screen4,
+       kcbt@, use=linux+sfkeys, use=xterm+x11mouse,
+       use=screen+fkeys, use=screen,
 screen.mlterm|screen in mlterm,
-       use=xterm+x11mouse, use=screen+fkeys, use=mlterm,
+       XR@, use=xterm+x11mouse, use=screen+fkeys,
+       use=no+brackets, use=mlterm,
 screen.putty|screen in putty,
-       use=xterm+x11mouse, use=screen+fkeys, use=putty,
+       use=xterm+x11mouse, use=screen+fkeys, use=no+brackets,
+       use=putty,
 
 # The default "screen" entry is reasonably portable, but not optimal for the
 # most widely-used terminal emulators.  The "bce" capability is supported in
@@ -8335,55 +8595,51 @@ screen-bce.mrxvt|screen optimized for mrxvt,
        bce,
        ech@, use=screen.mrxvt,
 screen-bce.gnome|screen optimized for GNOME-Terminal,
-       bce,
        ech@, use=screen+italics, use=screen.gnome,
 screen-bce.konsole|screen optimized for KDE console window,
-       bce,
        ech@, use=screen+italics, use=screen.konsole,
 screen-bce.linux|screen optimized for Linux console,
        bce,
        ech@, use=screen.linux,
 
 screen-w|VT 100/ANSI X3.64 virtual terminal with 132 cols,
-       cols#132, use=screen4,
+       cols#132, use=screen,
 
 screen2|VT 100/ANSI X3.64 virtual terminal (old 2.x),
-       cols#80, it#8, lines#24,
-       cbt=\E[Z, clear=\E[2J\E[H, cr=\r, cub=\E[%p1%dD, cub1=^H,
+       cols#80, lines#24,
+       clear=\E[2J\E[H, cr=\r, cub=\E[%p1%dD, cub1=^H,
        cud=\E[%p1%dB, cud1=\E[B, cuf=\E[%p1%dC, cuf1=\E[C,
-       cup=\E[%i%p1%d;%p2%dH, cuu=\E[%p1%dA, cuu1=\E[A,
-       dch=\E[%p1%dP, dch1=\E[P, dl=\E[%p1%dM, dl1=\E[M, ed=\E[J,
-       el=\E[K, ht=^I, hts=\EH, ich=\E[%p1%d@, ich1=, il=\E[%p1%dL,
-       il1=\E[L, 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, rmir=\E[4l, rmso=\E[23m,
-       rmul=\E[24m, rs1=\Ec, sc=\E7, sgr0=\E[m, smir=\E[4h,
-       smso=\E[3m, smul=\E[4m, tbc=\E[3g,
+       cup=\E[%i%p1%d;%p2%dH, cuu=\E[%p1%dA, cuu1=\E[A, 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,
+       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,
+
 # (screen3: removed unknown ":xv:LP:G0:" -- esr)
 screen3|VT 100/ANSI X3.64 virtual terminal (old 3.x),
        km, mir, msgr,
-       cols#80, it#8, lines#24,
-       bel=^G, blink=\E[5m, bold=\E[1m, cbt=\E[Z, clear=\E[H\E[J,
-       cr=\r, csr=\E[%i%p1%d;%p2%dr, cub=\E[%p1%dD, cub1=^H,
-       cud=\E[%p1%dB, cud1=\n, cuf=\E[%p1%dC, cuf1=\E[C,
+       cols#80, lines#24,
+       bel=^G, blink=\E[5m, bold=\E[1m, cr=\r, cub=\E[%p1%dD,
+       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=\EM,
-       dch=\E[%p1%dP, dch1=\E[P, dl=\E[%p1%dM, dl1=\E[M, ed=\E[J,
-       el=\E[K, home=\E[H, ht=^I, hts=\EH, ich=\E[%p1%d@,
-       il=\E[%p1%dL, il1=\E[L, ind=\n, is2=\E)0, kbs=^H, kcub1=\EOD,
-       kcud1=\EOB, kcuf1=\EOC, kcuu1=\EOA, kf1=\EOP, kf2=\EOQ,
-       kf3=\EOR, kf4=\EOS, nel=\EE, rc=\E8, rev=\E[7m, ri=\EM,
-       rmir=\E[4l, rmkx=\E>, rmso=\E[23m, rmul=\E[24m, rs1=\Ec,
-       sc=\E7, sgr0=\E[m, smir=\E[4h, smkx=\E=, smso=\E[3m,
-       smul=\E[4m, tbc=\E[3g,
+       dch=\E[%p1%dP, dch1=\E[P, home=\E[H, ich=\E[%p1%d@, ind=\n,
+       is2=\E)0, kbs=^H, kcub1=\EOD, kcud1=\EOB, kcuf1=\EOC,
+       kcuu1=\EOA, kf1=\EOP, kf2=\EOQ, kf3=\EOR, kf4=\EOS, nel=\EE,
+       rev=\E[7m, ri=\EM, rmir=\E[4l, rmkx=\E>, rmso=\E[23m,
+       rmul=\E[24m, rs1=\Ec, sgr0=\E[m, smir=\E[4h, smkx=\E=,
+       smso=\E[3m, smul=\E[4m, use=ansi+csr, use=ansi+erase,
+       use=ansi+idl, use=ansi+inittabs,
 
 # screen 4.0 was released 2003-07-21, and as of March 2019, its terminfo file
 # was last updated in 2009 to include 256-color support.  The most recent
 # release is 4.6.2 (October 2017).
 screen4|VT 100/ANSI X3.64 virtual terminal (4.x),
-       use=ecma+index, use=screen,
+       use=ecma+index, use=screen-base,
 
-# As of March 2019, screen 5.0 has not been released.
+# As of December 2022, screen 5.0 has not been released.
 #
 # However,
 #
@@ -8399,7 +8655,8 @@ screen5|VT 100/ANSI X3.64 virtual terminal (someday),
        rmso=\E[27m,
        sgr=\E[0%?%p6%t;1%;%?%p2%t;4%;%?%p1%p3%|%t;7%;%?%p4%t;5%;%?
            %p5%t;2%;m%?%p9%t\016%e\017%;,
-       smso=\E[7m, use=ecma+italics, use=screen4,
+       smso=\E[7m, use=ecma+italics, use=ecma+index,
+       use=screen-base,
 
 #### Tmux
 
@@ -8412,13 +8669,14 @@ screen5|VT 100/ANSI X3.64 virtual terminal (someday),
 # various entries such as screen.xterm-new provide a way to more closely
 # match the terminal.
 tmux|tmux terminal multiplexer,
-       invis=\E[8m, kbs=^?, rmso=\E[27m,
+       invis=\E[8m, rmso=\E[27m,
        sgr=\E[0%?%p6%t;1%;%?%p2%t;4%;%?%p1%p3%|%t;7%;%?%p4%t;5%;%?
            %p5%t;2%;%?%p7%t;8%;m%?%p9%t\016%e\017%;,
        smso=\E[7m, E3=\E[3J, Smulx=\E[4:%p1%dm,
        use=ecma+italics, use=ecma+strikeout, use=xterm+edit,
        use=xterm+pcfkeys, use=xterm+sl, use=xterm+tmux,
-       use=screen,
+       use=screen, use=bracketed+paste, use=report+version,
+       use=xterm+focus,
 
 tmux-256color|tmux with 256 colors,
        use=xterm+256setaf, use=tmux,
@@ -8467,8 +8725,8 @@ mosh|mobile shell,
            %t;7%;%?%p4%t;5%;%?%p7%t;8%;m,
        sgr0=\E(B\E[m, use=ansi+enq, use=xterm+meta,
        use=ecma+italics, use=ecma+index, use=xterm+acs,
-       use=xterm+sm+1006, use=xterm+pcfkeys,
-       use=xterm-xfree86,
+       use=xterm+focus, use=xterm+sm+1006, use=xterm+pcfkeys,
+       use=xterm-xfree86, use=bracketed+paste,
 
 mosh-256color|mosh using 256-colors,
        use=xterm+256color, use=mosh,
@@ -8499,36 +8757,33 @@ dvtm|dynamic virtual terminal manager,
        colors#8, cols#80, it#8, lines#24, ncv@, pairs#64,
        acsc=``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~,
        bel=^G, blink=\E[5m, bold=\E[1m, clear=\E[H\E[2J, cr=\r,
-       csr=\E[%i%p1%d;%p2%dr, cub=\E[%p1%dD, 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,
-       dl=\E[%p1%dM, dl1=\E[M, ed=\E[J, el=\E[K, el1=\E[1K,
+       cub=\E[%p1%dD, 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, ed=\E[J, el=\E[K, el1=\E[1K,
        enacs=\E(B\E)0, home=\E[H, hpa=\E[%i%p1%dG, ht=^I, hts=\EH,
-       ich=\E[%p1%d@, ich1=\E[@, il=\E[%p1%dL, il1=\E[L, ind=\n,
-       is1=\E[?47l\E=\E[?1l,
+       ich=\E[%p1%d@, ich1=\E[@, ind=\n, is1=\E[?47l\E=\E[?1l,
        is2=\E[r\E[m\E[2J\E[H\E[?7h\E[?1;3;4;6l\E[4l,
        kDC=\E[3$, kEND=\E[8$, kHOM=\E[7$, kIC=\E[2$, kLFT=\E[d,
        kNXT=\E[6$, kPRV=\E[5$, kRIT=\E[c, ka1=\EOw, ka3=\EOy,
-       kb2=\EOu, kbs=^?, kc1=\EOq, kc3=\EOs, kcbt=\E[Z, kcub1=\E[D,
-       kcud1=\E[B, kcuf1=\E[C, kcuu1=\E[A, kel=\E[8\^, kend=\E[8~,
-       kent=\EOM, kf0=\E[21~, kf1=\E[11~, kf10=\E[21~,
+       kb2=\EOu, kbs=^?, kc1=\EOq, kc3=\EOs, kcbt=\E[Z, kel=\E[8\^,
+       kend=\E[8~, kent=\EOM, kf0=\E[21~, kf1=\E[11~, kf10=\E[21~,
        kf11=\E[23~, kf12=\E[24~, kf13=\E[25~, kf14=\E[26~,
        kf15=\E[28~, kf16=\E[29~, kf17=\E[31~, kf18=\E[32~,
        kf19=\E[33~, kf2=\E[12~, kf20=\E[34~, kf21=\E[23$,
        kf22=\E[24$, kf3=\E[13~, kf4=\E[14~, kf5=\E[15~,
        kf6=\E[17~, kf7=\E[18~, kf8=\E[19~, kf9=\E[20~,
        khome=\E[7~, kind=\E[a, kmous=\E[M, kri=\E[b, op=\E[39;49m,
-       rc=\E8, rev=\E[7m, ri=\EM, rmacs=^O, rmcup=\E[2J\E[?47l\E8,
-       rmir=\E[4l, rmso=\E[27m, rmul=\E[24m,
+       rev=\E[7m, ri=\EM, rmacs=^O, rmir=\E[4l, rmso=\E[27m,
+       rmul=\E[24m,
        rs1=\E>\E[1;3;4;5;6l\E[?7h\E[m\E[r\E[2J\E[H,
        rs2=\E[r\E[m\E[2J\E[H\E[?7h\E[?1;3;4;6l\E[4l\E>\E[?1000l\E[?
            25h,
-       s0ds=\E(B, s1ds=\E(0, sc=\E7, setab=\E[4%p1%dm,
-       setaf=\E[3%p1%dm,
+       s0ds=\E(B, s1ds=\E(0, setab=\E[4%p1%dm, setaf=\E[3%p1%dm,
        sgr=\E[0%?%p6%t;1%;%?%p2%t;4%;%?%p1%p3%|%t;7%;%?%p4%t;5%;m%?
            %p9%t\016%e\017%;,
-       sgr0=\E[m\017, smacs=^N, smcup=\E7\E[?47h, smir=\E[4h,
-       smso=\E[7m, smul=\E[4m, tbc=\E[3g, vpa=\E[%i%p1%dd,
+       sgr0=\E[m\017, smacs=^N, smir=\E[4h, smso=\E[7m,
+       smul=\E[4m, tbc=\E[3g, vpa=\E[%i%p1%dd, use=ansi+arrows,
+       use=ansi+csr, use=ansi+idl, use=xterm+alt47,
        use=vt220+vtedit, use=vt220+cvis, use=ecma+italics,
 
 dvtm-256color|dynamic virtual terminal manager with 256 colors,
@@ -8579,31 +8834,30 @@ ncsa-m|ncsa-vt220-8|NCSA Telnet 2.6 for Macintosh in VT220-8 mode,
        am, km, mir, msgr, xenl,
        acsc=``aaffggiijjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~,
        bel=^G, blink=\E[5m, bold=\E[1m, clear=\E[H\E[2J, cr=\r,
-       csr=\E[%i%p1%d;%p2%dr, cub=\E[%p1%dD, 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,
-       dch=\E[%p1%dP, dch1=\E[P, dl=\E[%p1%dM, dl1=\E[M, ed=\E[J,
-       el=\E[K, el1=\E[1K, enacs=\E)0,
+       cub=\E[%p1%dD, 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, dch=\E[%p1%dP, dch1=\E[P,
+       ed=\E[J, el=\E[K, el1=\E[1K, enacs=\E)0,
        flash=\E[?5h$<100/>\E[?5l, home=\E[H, ht=^I, hts=\EH,
        ich=\E[%p1%d@, if=/usr/share/tabset/vt100,
-       il=\E[%p1%dL, il1=\E[L, ind=\n$<150*>,
-       is2=\E7\E[r\E[m\E[?7h\E[?1;4;6l\E[4l\E8\E>, kbs=^H,
-       kcub1=\E[D, kcud1=\E[B, kcuf1=\E[C, kcuu1=\E[A,
+       ind=\n$<150*>,
+       is2=\E7\E[r\E[m\E[?7h\E[?1;4;6l\E[4l\E8\E>,
        kdch1=\E[4~, kend=\E[5~, kf1=\E[17~, kf10=\E[28~,
        kf11=\E[29~, kf12=\E[31~, kf13=\E[32~, kf14=\E[33~,
        kf15=\E[34~, kf2=\E[18, kf3=\E[19~, kf4=\E[20~, kf5=\E[21~,
        kf6=\E[23~, kf7=\E[24~, kf8=\E[25~, kf9=\E[26~, khlp=\E[1~,
        khome=\E[2~, knp=\E[6~, kpp=\E[3~, mc4=\E[4i, mc5=\E[5i,
-       rc=\E8, rev=\E[7m, rf=/usr/share/tabset/vt100, ri=\EM,
+       rev=\E[7m, rf=/usr/share/tabset/vt100, ri=\EM,
        rmacs=\E(B, rmam=\E[?7l, rmcup=\E[2J\E8, rmir=\E[4l,
        rmso=\E[27m, rmul=\E[24m,
-       rs2=\E7\E[r\E8\E[m\E[?7h\E[?1;4;6l\E[4l\E>, sc=\E7,
+       rs2=\E7\E[r\E8\E[m\E[?7h\E[?1;4;6l\E[4l\E>,
        sgr=\E[0%?%p6%t;1%;%?%p2%t;4%;%?%p4%t;5%;%?%p1%p3%|%t;7%;m%?
            %p9%t\E(0%e\E(B%;,
        sgr0=\E[m\E(B, smacs=\E(0, smam=\E[?7h, smcup=\E7,
        smir=\E[4h, smso=\E[7m, smul=\E[4m, tbc=\E[3g,
-       u8=\E[?62;1;6c, use=vt220+cvis, use=xterm+sl,
-       use=ansi+enq,
+       u8=\E[?62;1;6c, use=ansi+arrows, use=ansi+csr,
+       use=ansi+idl, use=vt220+cvis, use=xterm+sl, use=ansi+enq,
+
 ncsa|NCSA Telnet 2.7 for Macintosh in VT220-8 mode (color),
        use=ncsa-m, use=klone+color,
 ncsa-ns|NCSA Telnet 2.7 for Macintosh in VT220-8 mode (color w/o status line),
@@ -8688,9 +8942,9 @@ pccons|pcconsole|ANSI (mostly) Alpha PC console terminal emulation,
        cols#80, lines#25,
        bel=^G, clear=\E[H\E[2J, cr=\r, cub1=^H, cud1=\n, cuf1=\E[C,
        cup=\E[%i%p1%d;%p2%dH, cuu1=\E[A, dch1=\E[P, dl1=\E[M,
-       el=\E[K, home=\E[H, ht=^I, ich1=\E[@, il1=\E[L, kbs=^H,
-       kcub1=\E[D, kcud1=\E[B, kcuf1=\E[C, kcuu1=\E[A, khome=\E[H,
-       nel=\r\n, rev=\E[7m, rmso=\E[m, sgr0=\E[m, smso=\E[7m,
+       el=\E[K, home=\E[H, ht=^I, ich1=\E[@, il1=\E[L, nel=\r\n,
+       rev=\E[7m, rmso=\E[m, sgr0=\E[m, smso=\E[7m,
+       use=ansi+arrows,
 
 #### Sun consoles
 #
@@ -8701,11 +8955,11 @@ oldsun|Sun Microsystems Workstation console,
        cols#80, it#8, lines#34,
        bel=^G, clear=^L, cr=\r, cub1=^H, cud1=\E[B, cuf1=\E[C,
        cup=\E[%i%p1%d;%p2%dH, cuu1=\E[A, dch=\E[%p1%dP,
-       dch1=\E[P, dl=\E[%p1%dM, dl1=\E[M, ed=\E[J, el=\E[K, ht=^I,
-       ich=\E[%p1%d@, ich1=\E[@, il=\E[%p1%dL, il1=\E[L, ind=\n,
-       is1=\E[1r, kcub1=\E[D, kcud1=\E[B, kcuf1=\E[C, kcuu1=\E[A,
-       kf1=\EOP, kf2=\EOQ, kf3=\EOR, kf4=\EOS, khome=\E[H,
-       rmso=\E[m, sgr0=\E[m, smso=\E[7m,
+       dch1=\E[P, ed=\E[J, el=\E[K, ht=^I, ich=\E[%p1%d@, ich1=\E[@,
+       ind=\n, is1=\E[1r, kcub1=\E[D, kcud1=\E[B, kcuf1=\E[C,
+       kcuu1=\E[A, kf1=\EOP, kf2=\EOQ, kf3=\EOR, kf4=\EOS,
+       khome=\E[H, rmso=\E[m, sgr0=\E[m, smso=\E[7m, use=ansi+idl,
+
 # From: Alexander Lukyanov <lav@video.yars.free.net>, 14 Nov 1995
 # <lines> capability later corrected by J.T. Conklin <jtc@cygnus.com>
 # SGR 1, 4 aren't supported - removed bold/underline (T.Dickey 17 Jan 1998)
@@ -8714,22 +8968,42 @@ sun-il|Sun Microsystems console with working insert-line,
        cols#80, lines#34,
        bel=^G, clear=^L, cr=\r, cub1=^H, cud1=\n, cuf1=\E[C,
        cup=\E[%i%p1%d;%p2%dH, cuu1=\E[A, dch=\E[%p1%dP,
-       dch1=\E[P, dl=\E[%p1%dM, dl1=\E[M, ed=\E[J, el=\E[K, ht=^I,
-       ich=\E[%p1%d@, ich1=\E[@, il=\E[%p1%dL, il1=\E[L, ind=\n,
-       kb2=\E[218z, kbs=^H, kcub1=\E[D, kcud1=\E[B, kcuf1=\E[C,
-       kcuu1=\E[A, kdch1=^?, kend=\E[220z, kf1=\E[224z,
+       dch1=\E[P, ed=\E[J, el=\E[K, ht=^I, ich=\E[%p1%d@, ich1=\E[@,
+       ind=\n, kb2=\E[218z, kdch1=^?, kend=\E[220z, kf1=\E[224z,
        kf10=\E[233z, kf11=\E[234z, kf12=\E[235z, kf2=\E[225z,
        kf3=\E[226z, kf4=\E[227z, kf5=\E[228z, kf6=\E[229z,
        kf7=\E[230z, kf8=\E[231z, kf9=\E[232z, khome=\E[214z,
        kich1=\E[247z, knp=\E[222z, kopt=\E[194z, kpp=\E[216z,
        kres=\E[193z, kund=\E[195z, rev=\E[7m, rmso=\E[m, rmul@,
        rs2=\E[s, sgr=\E[0%?%p1%p3%|%t;7%;m, sgr0=\E[m,
-       smso=\E[7m, u8=\E[1t, u9=\E[11t,
+       smso=\E[7m, u8=\E[1t, u9=\E[11t, use=ansi+arrows,
+       use=ansi+idl,
+
 # On some versions of CGSIX framebuffer firmware (SparcStation 5), <il1>/<il>
 # flake out on the last line.  Unfortunately, without them the terminal has no
 # way to scroll.
 sun-cgsix|sun-ss5|Sun SparcStation 5 console,
        il@, il1@, use=sun-il,
+
+# The Sun console was documented in the wscons manual page (apparently
+# unrelated to the "wscons" used by some of the BSDs).
+#
+#    https://illumos.org/man/4D/wscons
+#    https://www.bitsavers.org/pdf/sun/sun1/800-0345_Sun-1_System_Reference_Manual_Jul82.pdf
+#
+# The early cmdtool and shelltool programs in Sun's NeWS were based on this.
+# After NeWS was discontinued, XView provided a similar shelltool, with an
+# incomplete manual page.  Presumably the intent was to document features of
+# shelltool not in wscons:
+#
+#    https://manpages.ubuntu.com/manpages/bionic/en/man1/shelltool.1.html
+#    https://manpages.ubuntu.com/manpages/bionic/en/man1/cmdtool.1.html
+#
+# The wscons manual page and the XView source show that it had no feature that
+# could be used in ncurses u6/u7/u8/u9 extensions.  Interesting, the XView
+# source shows that its shelltool could tell the host what a particular mode
+# was set to.  But neither that nor its CSI..t controls support u6/u7/u8/u9.
+#
 # If you are using an SS5, change the sun definition to use sun-ss5.
 sun|sun1|sun2|Sun Microsystems Inc. workstation console,
        use=sun-il,
@@ -8746,7 +9020,7 @@ sun-e-s|sun-s-e|Sun Microsystems Workstation with status hacked for emacs,
 sun-48|Sun 48-line window,
        cols#80, lines#48, use=sun,
 sun-34|Sun 34-line window,
-       cols#80, lines#34, use=sun,
+       use=sun,
 sun-24|Sun 24-line window,
        cols#80, lines#24, use=sun,
 sun-17|Sun 17-line window,
@@ -8790,14 +9064,14 @@ sun-type4|Sun Workstation console with type 4 keyboard,
 sun-color|Sun Microsystems Workstation console with color support (IA systems),
        colors#8, ncv#3, pairs#64,
        bold=\E[1m, cub=\E[%p1%dD, cud=\E[%p1%dB, cuf=\E[%p1%dC,
-       cuu=\E[%p1%dA, home=\E[H, op=\E[0m, rs2=\E[s,
-       setab=\E[4%p1%dm, setaf=\E[3%p1%dm,
+       cuu=\E[%p1%dA, 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,
-       smso=\E[7m, use=sun,
+       use=sun,
 
 #### Iris consoles
 #
@@ -8888,17 +9162,17 @@ news-unk|Sony NEWS VT100 emulator common entry,
        OTbs, OTpt, am, xenl,
        cols#80,
        OTnl=\n, bel=^G, blink=\E[5m, bold=\E[1m, clear=\E[H\E[2J,
-       cr=\r, csr=\E[%i%p1%d;%p2%dr, cub1=^H, cud1=\n, cuf1=\E[C,
-       cup=\E[%i%p1%d;%p2%dH, cuu1=\E[A, dl=\E[%p1%dM, dl1=\E[M,
-       ed=\E[J, el=\E[K, home=\E[H, ht=^I,
-       if=/usr/share/tabset/vt100, il=\E[%p1%dL, il1=\E[L,
+       cr=\r, cub1=^H, cud1=\n, cuf1=\E[C, cup=\E[%i%p1%d;%p2%dH,
+       cuu1=\E[A, ed=\E[J, el=\E[K, home=\E[H, ht=^I,
+       if=/usr/share/tabset/vt100,
        is2=\E[?7h\E[?1h\E[?3l\E7\E8, kbs=^H, kcub1=\EOD,
        kcud1=\EOB, kcuf1=\EOC, kcuu1=\EOA, kf0=\EOY, kf1=\EOP,
        kf2=\EOQ, kf3=\EOR, kf4=\EOS, kf5=\EOT, kf6=\EOU, kf7=\EOV,
-       kf8=\EOW, kf9=\EOX, rc=\E8, rev=\E[7m, ri=\EM,
-       rmkx=\E[?1l\E>, rmso=\E[m, rmul=\E[m,
-       rs2=\E>\E[?3l\E[?4l\E[?5l\E[?7h\E[?8h\E[r, sc=\E7,
-       sgr0=\E[m, smkx=\E[?1h\E=, smso=\E[7m, smul=\E[4m,
+       kf8=\EOW, kf9=\EOX, rev=\E[7m, ri=\EM, rmkx=\E[?1l\E>,
+       rmso=\E[m, rmul=\E[m,
+       rs2=\E>\E[?3l\E[?4l\E[?5l\E[?7h\E[?8h\E[r, sgr0=\E[m,
+       smkx=\E[?1h\E=, smso=\E[7m, smul=\E[4m, use=ansi+csr,
+       use=ansi+idl,
 #
 # (news-29: this had :TY=ascii: --esr)
 news-29|Sony NEWS VT100 emulator with 29 lines,
@@ -8937,14 +9211,14 @@ news-old-unk|old Sony NEWS VT100 emulator common entry,
        OTbs, OTpt, am, xenl,
        cols#80, vt#3,
        OTnl=\n, bel=^G, blink=\E[5m, bold=\E[1m, clear=\E[;H\E[2J,
-       cr=\r, csr=\E[%i%p1%d;%p2%dr, cub1=^H, cud1=\n, cuf1=\E[C,
-       cup=\E[%i%p1%d;%p2%dH, cuu1=\E[A, ed=\E[J, el=\E[K,
-       home=\E[H, ht=^I, if=/usr/share/tabset/vt100, kbs=^H,
-       kcub1=\E[D, kcud1=\E[B, kcuf1=\E[C, kcuu1=\E[A, kf1=\EOP,
-       kf2=\EOQ, kf3=\EOR, kf4=\EOS, rc=\E8, rev=\E[7m, ri=\EM,
-       rmkx=\E[?1l\E>, rmso=\E[m, rmul=\E[m,
-       rs2=\E>\E[?3l\E[?4l\E[?5l\E[?7h\E[?8h, sc=\E7,
-       sgr0=\E[m, smkx=\E[?1h\E=, smso=\E[7m, smul=\E[4m,
+       cr=\r, cub1=^H, cud1=\n, cuf1=\E[C, cup=\E[%i%p1%d;%p2%dH,
+       cuu1=\E[A, ed=\E[J, el=\E[K, home=\E[H, ht=^I,
+       if=/usr/share/tabset/vt100, kbs=^H, kcub1=\E[D,
+       kcud1=\E[B, kcuf1=\E[C, kcuu1=\E[A, kf1=\EOP, kf2=\EOQ,
+       kf3=\EOR, kf4=\EOS, rev=\E[7m, ri=\EM, rmkx=\E[?1l\E>,
+       rmso=\E[m, rmul=\E[m,
+       rs2=\E>\E[?3l\E[?4l\E[?5l\E[?7h\E[?8h, sgr0=\E[m,
+       smkx=\E[?1h\E=, smso=\E[7m, smul=\E[4m, use=ansi+csr,
 #
 # (nwp512: this had :DE=^H:, which I think means <OTbs> --esr)
 nwp512|news|nwp514|news40|vt100-bm|nwp512-o|nwp514-o|news-o|news40-o|vt100-bm-o|old Sony VT100 emulator 40 lines,
@@ -9031,29 +9305,27 @@ dtterm|CDE desktop terminal,
        am, mir, msgr, xenl, xon,
        cols#80, it#8, lines#24, lm#0, ncv@,
        acsc=``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~,
-       bel=^G, blink=\E[5m, bold=\E[1m, clear=\E[H\E[J, cr=\r,
-       csr=\E[%i%p1%d;%p2%dr, cub=\E[%p1%dD, cub1=^H,
-       cud=\E[%p1%dB, cud1=\n, cuf=\E[%p1%dC, cuf1=\E[C,
+       bel=^G, blink=\E[5m, bold=\E[1m, cr=\r, cub=\E[%p1%dD,
+       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,
-       dch=\E[%p1%dP, dch1=\E[P, dim=\E[2m, dl=\E[%p1%dM,
-       dl1=\E[M, ech=\E[%p1%dX, ed=\E[J, el=\E[K, el1=\E[1K,
-       enacs=\E(B\E)0, flash=\E[?5h$<200>\E[?5l, home=\E[H,
-       ht=^I, hts=\EH, ich=\E[%p1%d@, il=\E[%p1%dL, il1=\E[L,
-       ind=\ED, invis=\E[8m, is2=\E F\E>\E[?1l\E[?7h\E[?45l,
-       kbs=^H, kcub1=\E[D, kcud1=\E[B, kcuf1=\E[C, kcuu1=\E[A,
-       kf1=\E[11~, kf10=\E[21~, kf11=\E[23~, kf12=\E[24~,
-       kf13=\E[25~, kf14=\E[26~, kf15=\E[28~, kf16=\E[29~,
-       kf17=\E[31~, kf18=\E[32~, kf19=\E[33~, kf2=\E[12~,
-       kf20=\E[34~, kf3=\E[13~, kf4=\E[14~, kf5=\E[15~,
-       kf6=\E[17~, kf7=\E[18~, kf8=\E[19~, kf9=\E[20~,
-       khlp=\E[28~, nel=\EE, rc=\E8, rev=\E[7m, ri=\EM, rmacs=^O,
-       rmam=\E[?7l, rmir=\E[4l, rmso=\E[22;27m, rmul=\E[24m,
-       sc=\E7,
+       dch=\E[%p1%dP, dch1=\E[P, dim=\E[2m, ech=\E[%p1%dX,
+       el1=\E[1K, enacs=\E(B\E)0, flash=\E[?5h$<200>\E[?5l,
+       home=\E[H, ht=^I, hts=\EH, ich=\E[%p1%d@, ind=\ED,
+       invis=\E[8m, is2=\E F\E>\E[?1l\E[?7h\E[?45l, kbs=^H,
+       kcub1=\E[D, kcud1=\E[B, kcuf1=\E[C, kcuu1=\E[A, kf1=\E[11~,
+       kf10=\E[21~, kf11=\E[23~, kf12=\E[24~, kf13=\E[25~,
+       kf14=\E[26~, kf15=\E[28~, kf16=\E[29~, kf17=\E[31~,
+       kf18=\E[32~, kf19=\E[33~, kf2=\E[12~, kf20=\E[34~,
+       kf3=\E[13~, kf4=\E[14~, kf5=\E[15~, kf6=\E[17~, kf7=\E[18~,
+       kf8=\E[19~, kf9=\E[20~, khlp=\E[28~, nel=\EE, rev=\E[7m,
+       ri=\EM, rmacs=^O, rmam=\E[?7l, rmir=\E[4l, rmso=\E[22;27m,
+       rmul=\E[24m,
        sgr=\E[0%?%p1%t;2;7%;%?%p2%t;4%;%?%p3%t;7%;%?%p4%t;5%;%?%p5
            %t;2%;%?%p6%t;1%;%?%p7%t;8%;m%?%p9%t\016%e\017%;,
        sgr0=\E[m\017, smacs=^N, smam=\E[?7h, smir=\E[4h,
-       smso=\E[2;7m, smul=\E[4m, tbc=\E[3g, use=vt220+vtedit,
-       use=vt220+cvis, use=ecma+color,
+       smso=\E[2;7m, smul=\E[4m, tbc=\E[3g, use=ansi+csr,
+       use=ansi+erase, use=ansi+idl, use=decid+cpr,
+       use=vt220+vtedit, use=vt220+cvis, use=ecma+color,
 
 ######## Non-Unix Consoles
 #
@@ -9074,33 +9346,25 @@ emx-base|DOS special keys,
 #
 # Removed: rmacs=\E[10m, smacs=\E[11m, because OS/2 does not implement acs.
 ansi-emx|ANSI.SYS color,
-       am, bce, eo, mir, msgr, xon,
-       colors#8, cols#80, it#8, lines#25, pairs#64,
-       bel=^G, blink=\E[5m, bold=\E[1m,
-       clear=\E[1;33;44m\E[H\E[J, cr=\r, cub1=^H, cud1=\n,
-       cuf1=\E[C, cup=\E[%i%p1%d;%p2%dH, cuu1=\E[A,
-       dch=\E[%p1%dp, ed=\E[J, el=\E[K,
-       flash=\E[?5h$<100/>\E[?5l, home=\E[H, ht=^I, hts=\EH,
-       ich=\E[%p1%d@, ich1=\E[@, ind=\n, kb2=\E[G, kbs=^H, kf0=\0D,
-       kll=\0O, kspd=^Z, nel=\r\n, rev=\E[5;37;41m, rmir=\E[4l,
-       rmpch=\E[10m, rmso=\E[0;44m\E[1;33m,
-       rmul=\E[0;44m\E[1;33m, rs1=\Ec, setab=\E[4%p1%dm,
-       setaf=\E[3%p1%dm, sgr0=\E[0m\E[1;33;44m, smir=\E[4h,
-       smpch=\E[11m, smso=\E[0;31;47m, smul=\E[1;31;44m,
-       tbc=\E[3g, u8=\E[?6c, u9=\E[c, use=vt220+cvis,
-       use=emx-base,
+       eo,
+       clear=\E[1;33;44m\E[H\E[J, cr=\r, cud1=\n, dch=\E[%p1%dp,
+       ed=\E[J, flash=\E[?5h$<100/>\E[?5l, ht=^I, hts=\EH,
+       ich=\E[%p1%d@, ich1=\E[@, ind=\n, kb2=\E[G, kf0=\0D, kll=\0O,
+       kspd=^Z, nel=\r\n, rev=\E[5;37;41m, rmir=\E[4l,
+       rmso=\E[0;44m\E[1;33m, rmul=\E[0;44m\E[1;33m, rs1=\Ec,
+       sgr0=\E[0m\E[1;33;44m, smir=\E[4h, smso=\E[0;31;47m,
+       smul=\E[1;31;44m, tbc=\E[3g, u8=\E[?6c, u9=\E[c,
+       use=vt220+cvis, use=emx-base,
 # nice colors for Emacs (white on blue, mode line white on cyan)
 ansi-color-2-emx|ANSI.SYS color 2,
        clear=\E[0;37;44m\E[H\E[J, rev=\E[1;37;46m,
-       rmso=\E[0;37;44m, rmul=\E[0;37;44m, rs1=\Ec,
-       setaf=\E[3%p1%dm, sgr0=\E[0;37;44m, smso=\E[1;37;46m,
-       smul=\E[1;36;44m, use=ansi-emx,
+       rmso=\E[0;37;44m, rmul=\E[0;37;44m, sgr0=\E[0;37;44m,
+       smso=\E[1;37;46m, smul=\E[1;36;44m, use=ansi-emx,
 # nice colors for Emacs (white on black, mode line black on cyan)
 ansi-color-3-emx|ANSI.SYS color 3,
        clear=\E[0;37;40m\E[H\E[J, rev=\E[1;37;46m,
-       rmso=\E[0;37;40m, rmul=\E[0;37;40m, rs1=\Ec,
-       setaf=\E[3%p1%dm, sgr0=\E[0;10m, smso=\E[1;37;46m,
-       smul=\E[0;36;40m, use=ansi-emx,
+       rmso=\E[0;37;40m, rmul=\E[0;37;40m, sgr0=\E[0;10m,
+       smso=\E[1;37;46m, smul=\E[0;36;40m, use=ansi-emx,
 mono-emx|stupid monochrome ANSI terminal with only one kind of emphasis,
        am,
        cols#80, it#8, lines#24,
@@ -9183,28 +9447,25 @@ cygwin|ANSI emulation for Cygwin,
        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, clear=\E[H\E[J, cr=\r, cub=\E[%p1%dD,
-       cub1=^H, cud=\E[%p1%dB, cud1=\E[B, cuf=\E[%p1%dC,
-       cuf1=\E[C, cup=\E[%i%p1%d;%p2%dH, cuu=\E[%p1%dA,
-       cuu1=\E[A, dch=\E[%p1%dP, dch1=\E[P, dl=\E[%p1%dM,
-       dl1=\E[M, ed=\E[J, el=\E[K, el1=\E[1K, fsl=^G, home=\E[H,
-       hpa=\E[%i%p1%dG, ht=^I, ich=\E[%p1%d@, ich1=\E[@,
-       il=\E[%p1%dL, il1=\E[L, ind=\n, invis=\E[8m, kb2=\E[G,
-       kbs=^H, kcub1=\E[D, kcud1=\E[B, kcuf1=\E[C, kcuu1=\E[A,
-       kf1=\E[[A, kf10=\E[21~, kf11=\E[23~, kf12=\E[24~,
-       kf13=\E[25~, kf14=\E[26~, kf15=\E[28~, kf16=\E[29~,
-       kf17=\E[31~, kf18=\E[32~, kf19=\E[33~, kf2=\E[[B,
-       kf20=\E[34~, kf3=\E[[C, kf4=\E[[D, kf5=\E[[E, kf6=\E[17~,
-       kf7=\E[18~, kf8=\E[19~, kf9=\E[20~, kspd=^Z, nel=\r\n,
-       op=\E[39;49m, rc=\E8, rev=\E[7m, ri=\EM, rmacs=\E[10m,
-       rmcup=\E[2J\E[?47l\E8, rmir=\E[4l, 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,
+       bel=^G, bold=\E[1m, cr=\r, cub=\E[%p1%dD, cub1=^H,
+       cud=\E[%p1%dB, cud1=\E[B, cuf=\E[%p1%dC, cuf1=\E[C,
+       cup=\E[%i%p1%d;%p2%dH, cuu=\E[%p1%dA, cuu1=\E[A,
+       el1=\E[1K, fsl=^G, home=\E[H, hpa=\E[%i%p1%dG, ht=^I, ind=\n,
+       invis=\E[8m, kb2=\E[G, kf1=\E[[A, kf10=\E[21~, kf11=\E[23~,
+       kf12=\E[24~, kf13=\E[25~, kf14=\E[26~, kf15=\E[28~,
+       kf16=\E[29~, kf17=\E[31~, kf18=\E[32~, kf19=\E[33~,
+       kf2=\E[[B, kf20=\E[34~, kf3=\E[[C, kf4=\E[[D, kf5=\E[[E,
+       kf6=\E[17~, kf7=\E[18~, kf8=\E[19~, kf9=\E[20~,
+       khome=\E[1~, 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,
        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, smcup=\E7\E[?47h,
-       smir=\E[4h, smpch=\E[11m, smso=\E[7m, smul=\E[4m, tsl=\E];,
-       vpa=\E[%i%p1%dd, use=vt220+pcedit, use=vt102+enq,
+       sgr0=\E[0;10m, smacs=\E[11m, smpch=\E[11m, smso=\E[7m,
+       smul=\E[4m, tsl=\E];, vpa=\E[%i%p1%dd, use=ansi+arrows,
+       use=ansi+erase, use=ansi+idc, use=ansi+idl,
+       use=xterm+alt47, use=vt220+pcedit, use=vt102+enq,
 
 # I've supplied this so that you can help test new values and add other
 # features.  Cheers, earnie_boyd@yahoo.com.
@@ -9214,32 +9475,30 @@ 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, it#8, lines#24, ncv#3, pairs#64,
+       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,
-       bel=^G, blink=\E[5m, bold=\E[1m, cbt=\E[Z, clear=\E[H\E[J,
-       cr=\r, cub=\E[%p1%dD, cub1=\E[D, cud=\E[%p1%dB, cud1=\E[B,
-       cuf=\E[%p1%dC, cuf1=\E[C, cup=\E[%i%p1%d;%p2%dH,
-       cuu=\E[%p1%dA, cuu1=\E[A, dch=\E[%p1%dP, dch1=\E[P,
-       dim=\E[2m, dl=\E[%p1%dM, dl1=\E[M, ed=\E[J, el=\E[K,
-       el1=\E[1K, flash=\E[?5h$<200/>\E[?5l, home=\E[H,
-       hpa=\E[%i%p1%dG, ht=^I, hts=\EH, ich=\E[%p1%d@, ich1=\E[@,
-       il=\E[%p1%dL, il1=\E[L, ind=\n, invis=\E[8m, kNXT=\E[6$,
-       kPRV=\E[5$, kb2=\E[G, kbs=^H, kcbt=\E[Z, kcub1=\E[D,
-       kcud1=\E[B, kcuf1=\E[C, kcuu1=\E[A, kf1=\E[[A, kf10=\E[21~,
-       kf11=\E[23~, kf12=\E[24~, kf13=\E[25~, kf14=\E[26~,
-       kf15=\E[28~, kf16=\E[29~, kf17=\E[31~, kf18=\E[32~,
-       kf19=\E[33~, kf2=\E[[B, kf20=\E[34~, kf3=\E[[C, kf4=\E[[D,
-       kf5=\E[[E, kf6=\E[17~, kf7=\E[18~, kf8=\E[19~, kf9=\E[20~,
-       kspd=^Z, nel=\r\n, op=\E[39;49m, rc=\E8, rev=\E[7m, ri=\EM,
-       rmacs=\E[10m, rmir=\E[4l, rmso=\E[m, rmul=\E[m,
+       bel=^G, blink=\E[5m, bold=\E[1m, cr=\r, cub=\E[%p1%dD,
+       cub1=\E[D, cud=\E[%p1%dB, cud1=\E[B, cuf=\E[%p1%dC,
+       cuf1=\E[C, cup=\E[%i%p1%d;%p2%dH, cuu=\E[%p1%dA,
+       cuu1=\E[A, dim=\E[2m, el1=\E[1K,
+       flash=\E[?5h$<200/>\E[?5l, home=\E[H, hpa=\E[%i%p1%dG,
+       ind=\n, invis=\E[8m, kNXT=\E[6$, kPRV=\E[5$, kb2=\E[G,
+       kcbt=\E[Z, kf1=\E[[A, kf10=\E[21~, kf11=\E[23~,
+       kf12=\E[24~, kf13=\E[25~, kf14=\E[26~, kf15=\E[28~,
+       kf16=\E[29~, kf17=\E[31~, kf18=\E[32~, kf19=\E[33~,
+       kf2=\E[[B, kf20=\E[34~, kf3=\E[[C, kf4=\E[[D, kf5=\E[[E,
+       kf6=\E[17~, kf7=\E[18~, kf8=\E[19~, kf9=\E[20~,
+       khome=\E[1~, kspd=^Z, nel=\r\n, op=\E[39;49m, rc=\E8,
+       rev=\E[7m, ri=\EM, rmacs=\E[10m, rmso=\E[m, rmul=\E[m,
        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%;%?%p4%t;5%;%?%p5
            %t;2%;%?%p6%t;1%;%?%p7%t;8%;%?%p9%t;12%;m,
-       sgr0=\E[0;10m, smacs=\E[11m, smir=\E[4h, smso=\E[7m,
-       smul=\E[4m, tbc=\E[3g, vpa=\E[%i%p1%dd, use=vt220+pcedit,
-       use=vt220+cvis, use=vt102+enq,
+       sgr0=\E[0;10m, smacs=\E[11m, smso=\E[7m, smul=\E[4m,
+       vpa=\E[%i%p1%dd, use=ansi+arrows, use=ansi+erase,
+       use=ansi+idc, use=ansi+idl, use=ansi+inittabs,
+       use=vt220+pcedit, use=vt220+cvis, use=vt102+enq,
 
 #### DJGPP
 
@@ -9368,22 +9627,21 @@ djgpp|ANSI emulation for DJGPP alpha,
             \331k\277l\332m\300n\305o~p\304q\304r\304s_t\303u\264v
             \301w\302x\263y\363z\362{\343|\330}\234~\376,
        bel=^G, blink=\E[5m, bold=\E[1m, cbt=\E[Z, civis=\E[1v,
-       clear=\E[H\E[J, cnorm=\E[v, cr=\r, cub=\E[%p1%dD, cub1=^H,
-       cud=\E[%p1%dB, cud1=\E[B, cuf=\E[%p1%dC, cuf1=\E[C,
+       cnorm=\E[v, cr=\r, cub=\E[%p1%dD, cub1=^H, cud=\E[%p1%dB,
+       cud1=\E[B, cuf=\E[%p1%dC, cuf1=\E[C,
        cup=\E[%i%p1%d;%p2%dH, cuu=\E[%p1%dA, cuu1=\E[A,
-       cvvis=\E[2v, dch=\E[%p1%dP, dch1=\E[P, dl=\E[%p1%dM,
-       dl1=\E[M, ech=\E[%p1%dX, ed=\E[J, el=\E[K, el1=\E[1K,
-       home=\E[H, hpa=\E[%i%p1%dG, ht=^I, ich=\E[%p1%d@,
-       ich1=\E[@, il=\E[%p1%dL, il1=\E[L, ind=\E[S, invis=\E[8m,
-       kbs=^H, kcub1=\E[D, kcud1=\E[B, kcuf1=\E[C, kcuu1=\E[A,
-       kf1=\E[[A, kf10=\E[21~, kf11=\E[23~, kf12=\E[24~,
-       kf2=\E[[B, kf3=\E[[C, kf4=\E[[D, kf5=\E[[E, kf6=\E[17~,
-       kf7=\E[18~, kf8=\E[19~, kf9=\E[20~, nel=\r\n, op=\E[37;40m,
-       rev=\E[7m, ri=\E[T, rmso=\E[m, setab=\E[4%p1%dm,
-       setaf=\E[3%p1%dm,
+       cvvis=\E[2v, dch=\E[%p1%dP, dch1=\E[P, ech=\E[%p1%dX,
+       el1=\E[1K, home=\E[H, hpa=\E[%i%p1%dG, ht=^I,
+       ich=\E[%p1%d@, ich1=\E[@, ind=\E[S, invis=\E[8m, kf1=\E[[A,
+       kf10=\E[21~, kf11=\E[23~, kf12=\E[24~, kf2=\E[[B,
+       kf3=\E[[C, kf4=\E[[D, kf5=\E[[E, kf6=\E[17~, kf7=\E[18~,
+       kf8=\E[19~, kf9=\E[20~, khome=\E[1~, nel=\r\n,
+       op=\E[37;40m, rev=\E[7m, ri=\E[T, rmso=\E[m,
+       setab=\E[4%p1%dm, setaf=\E[3%p1%dm,
        sgr=\E[0%?%p1%t;7%;%?%p2%t;4%;%?%p3%t;7%;%?%p4%t;5%e;25%;%?
            %p6%t;1%;%?%p7%t;8%;m,
        sgr0=\E[m, smso=\E[7m, smul=\E[4m, vpa=\E[%i%p1%dd,
+       use=ansi+arrows, use=ansi+erase, use=ansi+idl,
        use=vt220+pcedit, use=ecma+index,
 
 djgpp203|entry for DJGPP 2.03,
@@ -9400,15 +9658,14 @@ djgpp204|entry for DJGPP 2.04,
        cub1=\E[D, cud=\E[%p1%dB, cud1=\E[B, cuf=\E[%p1%dC,
        cuf1=\E[C, cup=\E[%i%p1%d;%p2%dH, cuu=\E[%p1%dA,
        cuu1=\E[A, cvvis=\E[2v, dch=\E[%p1%dP, dch1=\E[P,
-       dl=\E[%p1%dM, dl1=\E[M, ech=\E[%p1%dX, ed=\E[J, el=\E[K,
-       home=\E[H, ht=^I, ich=\E[%p1%d@, ich1=\E[@, il=\E[%p1%dL,
-       il1=\E[L, ind=\E[S, invis=\E[8m, kbs=^H, kcub1=\E[D,
-       kcud1=\E[B, kcuf1=\E[C, kcuu1=\E[A, kf0=\E[21~, kf1=\E[[A,
-       kf10=\E[21~, kf2=\E[[B, kf3=\E[[C, kf4=\E[[D, kf5=\E[[E,
-       kf6=\E[17~, kf7=\E[18~, kf8=\E[19~, kf9=\E[20~, kll=\E[4~,
-       nel=\r\n, rev=\E[7m, ri=\E[T, rmso=\E[m, setab=\E[4%p1%dm,
-       setaf=\E[3%p1%dm, sgr0=\E[m, smso=\E[7m, smul=\E[4m,
-       use=vt220+pcedit, use=ecma+index,
+       ech=\E[%p1%dX, ed=\E[J, el=\E[K, home=\E[H, ht=^I,
+       ich=\E[%p1%d@, ich1=\E[@, ind=\E[S, invis=\E[8m,
+       kf0=\E[21~, kf1=\E[[A, kf10=\E[21~, kf2=\E[[B, kf3=\E[[C,
+       kf4=\E[[D, kf5=\E[[E, kf6=\E[17~, kf7=\E[18~, kf8=\E[19~,
+       kf9=\E[20~, khome=\E[1~, kll=\E[4~, nel=\r\n, rev=\E[7m,
+       ri=\E[T, rmso=\E[m, setab=\E[4%p1%dm, setaf=\E[3%p1%dm,
+       sgr0=\E[m, smso=\E[7m, smul=\E[4m, use=ansi+arrows,
+       use=ansi+idl, use=vt220+pcedit, use=ecma+index,
 
 #### U/Win
 
@@ -9421,21 +9678,18 @@ uwin|U/Win 3.2 console,
        acsc=+\020\,\021-\030.^Y0\333`\004a\261f\370g\361h\260i
             \316j\331k\277l\332m\300n\305o~p\304q\304r\304s_t\303u
             \264v\301w\302x\263y\363z\362{\343|\330}\234~\376,
-       bel=^G, blink=\E[5m, bold=\E[1m, clear=\E[H\E[J, cr=\r,
-       cub1=^H, cud1=\n, cuf1=\E[C, cup=\E[%i%p1%d;%p2%dH,
-       cuu1=\E[A, dch=\E[%p1%dP, dch1=\E[P, dim=\E[2m,
-       ech=\E[%p1%dX, ed=\E[J, el=\E[K, el1=\E[1K, home=\E[H, ht=^I,
-       hts=\EH, ich=\E[%p1%d@, ich1=\E[@, kbs=^H, kcub1=\E[D,
-       kcud1=\E[B, kcuf1=\E[C, kcuu1=\E[A, kdch1=^?, kend=\E[Y,
-       kf1=\EOP, kf10=\EOY, kf11=\EOZ, kf12=\EOA, kf2=\EOQ,
-       kf3=\EOR, kf4=\EOS, kf5=\EOT, kf6=\EOU, kf7=\EOV, kf8=\EOW,
-       kf9=\EOX, khome=\E[H, kich1=\E[@, nel=\r\n, op=\E[39;49m,
-       rc=\E8, rev=\E[7m, rmacs=\E[10m, rmir=\E[4l, rmpch=\E[10m,
-       rmso=\E[27m, rmul=\E[m, rs1=\Ec\E]R, sc=\E7,
+       bel=^G, blink=\E[5m, bold=\E[1m, cr=\r, cub1=^H, cud1=\n,
+       cuf1=\E[C, cup=\E[%i%p1%d;%p2%dH, cuu1=\E[A, dim=\E[2m,
+       ech=\E[%p1%dX, el1=\E[1K, home=\E[H, ht=^I, hts=\EH,
+       kdch1=^?, kend=\E[Y, kf1=\EOP, kf10=\EOY, kf11=\EOZ,
+       kf12=\EOA, kf2=\EOQ, kf3=\EOR, kf4=\EOS, kf5=\EOT, kf6=\EOU,
+       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, smir=\E[4h, smpch=\E[11m, smso=\E[7m,
-       smul=\E[4m, tbc=\E[3g, u6=\E[%i%d;%dR, u7=\E[6n,
-       use=vt220+cvis,
+       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,
 
 #### Microsoft (miscellaneous)
 
@@ -9529,10 +9783,8 @@ interix|opennt|opennt-25|ntconsole|ntconsole-25|OpenNT-term compatible with colo
        bel=^G, bold=\E[1m, clear=\E[2J, cr=\r, cub=\E[%p1%dD,
        cub1=\E[D, 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, dl=\E[%p1%dM, dl1=\E[M, ed=\E[J, el=\E[K,
-       home=\E[H, ht=^I, il=\E[%p1%dL, il1=\E[L, ind=\E[S,
-       kLFT=\EF\^, kRIT=\EF$, kbs=^H, kcbt=\E[Z, kcub1=\E[D,
-       kcud1=\E[B, kcuf1=\E[C, kcuu1=\E[A, kdch1=^?, kend=\E[U,
+       cuu1=\E[A, ed=\E[J, el=\E[K, home=\E[H, ht=^I, ind=\E[S,
+       kLFT=\EF\^, kRIT=\EF$, kcbt=\E[Z, kdch1=^?, kend=\E[U,
        kf0=\EFA, kf1=\EF1, kf10=\EFA, kf11=\EFB, kf12=\EFC,
        kf13=\EFD, kf14=\EFE, kf15=\EFF, kf16=\EFG, kf17=\EFH,
        kf18=\EFI, kf19=\EFJ, kf2=\EF2, kf20=\EFK, kf21=\EFL,
@@ -9545,11 +9797,12 @@ interix|opennt|opennt-25|ntconsole|ntconsole-25|OpenNT-term compatible with colo
        kf5=\EF5, kf50=\EFp, kf51=\EFq, kf52=\EFr, kf53=\EFs,
        kf54=\EFt, kf55=\EFu, kf56=\EFv, kf57=\EFw, kf58=\EFx,
        kf59=\EFy, kf6=\EF6, kf60=\EFz, kf7=\EF7, kf8=\EF8, kf9=\EF9,
-       khome=\E[H, kich1=\E[L, kind=\EF+, kll=\E[U, knp=\E[T,
-       kpp=\E[S, kri=\EF-, ll=\E[U, nel=\r\n, op=\E[m, rc=\E[u,
-       rev=\E[7m, ri=\E[T, rmcup=\E[2b\E[u\r\E[K, rmso=\E[m,
-       rmul=\E[m, rs1=\Ec, sc=\E[s, sgr0=\E[0m, smcup=\E[s\E[1b,
-       smso=\E[7m, smul=\E[4m, use=ecma+index, use=klone+color,
+       kich1=\E[L, kind=\EF+, kll=\E[U, knp=\E[T, kpp=\E[S,
+       kri=\EF-, ll=\E[U, nel=\r\n, op=\E[m, rc=\E[u, rev=\E[7m,
+       ri=\E[T, rmcup=\E[2b\E[u\r\E[K, rmso=\E[m, rmul=\E[m,
+       rs1=\Ec, sc=\E[s, sgr0=\E[0m, smcup=\E[s\E[1b, smso=\E[7m,
+       smul=\E[4m, use=ansi+arrows, use=ansi+idl,
+       use=ecma+index, use=klone+color,
 
 opennt-35|ntconsole-35|OpenNT-term35 compatible with color,
        lines#35, use=opennt,
@@ -9631,15 +9884,15 @@ altos2|alt2|altos-2|Altos II,
        ed=\E[J, el=\E[K, home=\E[H, ht=^I, ich1=\E[@,
        if=/usr/share/tabset/vt100, il1=\E[L, ind=\n,
        is2=\E>\E[?3l\E[?4l\E[?5l\E[?7h\E[?8h, kDL=^Am\r,
-       kEOL=^An\r, kbs=^H, kcbt=^AK\r, kclr=^AL\r, kcub1=\E[D,
-       kcud1=\E[B, kcuf1=\E[C, kcuu1=\E[A, kdch1=^AM\r, kel=^AN\r,
+       kEOL=^An\r, kcbt=^AK\r, kclr=^AL\r, kdch1=^AM\r, kel=^AN\r,
        kf0=^AI\r, kf1=^A@\r, kf2=^AA\r, kf3=^AB\r, kf32=^A`\r,
        kf33=^Aa\r, kf34=^Ab\r, kf35=^Ac\r, kf36=^Ad\r, kf37=^Ae\r,
        kf38=^Af\r, kf39=^Ag\r, kf4=^AC\r, kf40=^Ah\r, kf41=^Ai\r,
        kf42=^Aj\r, kf43=^Ak\r, kf5=^AD\r, kf6=^AE\r, kf7=^AF\r,
        kf8=^AG\r, kf9=^AH\r, khome=\E[f, kil1=^AJ\r, kind=^AO\r,
        nel=\r\n, rmam=\E[?7l, rmso=\E[m, rmul=\E[m, sgr0=\E[m,
-       smam=\E[?7h, smso=\E[7m, smul=\E[4m,
+       smam=\E[?7h, smso=\E[7m, smul=\E[4m, use=ansi+arrows,
+
 # (altos3: had extension capabilities
 #      :c0=^A`\r:c1=^Aa\r:c2=^Ab\r:c3=^Ac\r:\
 #      :c4=^Ad\r:c5=^Ae\r:c6=^Af\r:c7=^Ag\r:\
@@ -9774,8 +10027,7 @@ hp2621-fl|HP 2621,
        xhp@, xon,
        pb#19200,
        cbt=\Ei, cup=\E&a%p2%dc%p1%dY, dch1=\EP$<2>, ht=\011$<2>,
-       ip=$<2>, is2=\E&j@\r, rmkx=\E&j@, rmso=\E&d@, rmul=\E&d@,
-       sgr0=\E&d@, smkx=\E&jB, smso=\E&dD, smul=\E&dD,
+       ip=$<2>, is2=\E&j@\r, rmkx=\E&j@, smkx=\E&jB, smso=\E&dD,
        use=hp+pfk+cr, use=hpgeneric,
 
 # To use hp2621p printer, setenv TERM=2621p, PRINTER=2612p
@@ -9902,21 +10154,20 @@ hp2626-12-s|Hewlett-Packard 2626 11 lines plus status,
 # hp2627 color tubes from University of Wisconsin
 #
 hp2627a-rev|HP 2627 with reverse video colors,
-       cr=\r, cud1=\n, ht=^I, ind=\n,
+       ht=^I,
        is2=\E&v0m1a0b0c1x1y1z1i0a0b1c1x1y1z0i0S\E&j@\r\E3
            \r,
-       kbs=^H, kcub1=^H, kcud1=\n, nel=\r\n, rmul=\E&v0S\E&d@,
+       kcub1=^H, kcud1=\n, nel=\r\n, rmul=\E&v0S\E&d@,
        smul=\E&dD\E&v1S, use=hp2621-nl,
 hp2627a|HP 2627 color terminal with no labels,
-       cr=\r, cud1=\n, ht=^I, ind=\n,
+       ht=^I,
        is2=\E&v0m1a1b0c1i0a1b1c2i1a0b0c0i0S\E&j@\r\E3\r,
-       kbs=^H, kcub1=^H, kcud1=\n, nel=\r\n, rmso=\E&v0S,
+       kcub1=^H, kcud1=\n, nel=\r\n, rmso=\E&v0S,
        rmul=\E&v0S\E&d@, smso=\E&v2S, smul=\E&dD\E&v1S,
        use=hp2621-nl,
 hp2627c|HP 2627 color (cyan) terminal with no labels,
-       cr=\r, cud1=\n, ht=^I, ind=\n,
        is2=\E&v0m1a0b0c2i1a1b0c1i0a1b1c0i0S\E&j@\r\E3\r,
-       kbs=^H, kcub1=^H, kcud1=\n, nel=\r\n, use=hp2627a,
+       use=hp2627a,
 
 # hp2640a doesn't have the Y cursor addressing feature, and C is
 # memory relative instead of screen relative, as we need.
@@ -9952,7 +10203,7 @@ hp2645|hp45|HP 2645 series,
        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, smul=\E&dD, use=hpgeneric,
+       sgr0=\E&d@, smkx=\E&s1A, use=hpgeneric,
 # 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>,
@@ -10132,15 +10383,14 @@ hpansi|hp700|Hewlett Packard 700/44 in HP-PCterm mode,
        dch1=\E[P, dl1=\E[M, ed=\E[J, el=\E[K, home=\E[H, ht=^I,
        ich1=\E[@, il1=\E[L, ind=\n,
        is2=\E[44"p\E[?7h\E[>10h\E[>12h\EP1;1|3/7F\E\\,
-       kbs=^H, kcbt=\E[Z, kcub1=\E[D, kcud1=\E[B, kcuf1=\E[C,
-       kcuu1=\E[A, kend=\E[4~, kf1=\E[17~, kf10=\E[28~,
-       kf2=\E[18~, kf3=\E[19~, kf4=\E[20~, kf5=\E[21~, kf6=\E[23~,
-       kf7=\E[24~, kf8=\E[25~, kf9=\E[26~, khome=\E[1~, knp=\E[6~,
-       kpp=\E[5~, rmam=\E[?7l,
-       rmsc=\E[>11l\EP1**x0/11;1/13\E[m\E\\, rmso=\E[m,
-       rmul=\E[m, sgr0=\E[m, smam=\E[?7h,
+       kcbt=\E[Z, kend=\E[4~, kf1=\E[17~, kf10=\E[28~, kf2=\E[18~,
+       kf3=\E[19~, kf4=\E[20~, kf5=\E[21~, kf6=\E[23~, kf7=\E[24~,
+       kf8=\E[25~, kf9=\E[26~, khome=\E[1~, knp=\E[6~, kpp=\E[5~,
+       rmam=\E[?7l, rmsc=\E[>11l\EP1**x0/11;1/13\E[m\E\\,
+       rmso=\E[m, rmul=\E[m, sgr0=\E[m, smam=\E[?7h,
        smsc=\E[>11h\EPO**x0/65;1/67\E\\$<250>, smso=\E[7m,
-       smul=\E[4m, xoffc=g, xonc=e, use=vt220+cvis,
+       smul=\E[4m, xoffc=g, xonc=e, use=ansi+arrows,
+       use=vt220+cvis,
 #
 # (hp2392: copied <rmir> here from hpex -- esr)
 hp2392|239x series,
@@ -10172,9 +10422,9 @@ hpsub|HP terminals -- capability subset,
 # (hpex: removed memory-lock capabilities ":ml=\El:mu=\Em:",
 # moved <rmir> here from hpsub -- esr)
 hpex|HP extended capabilities,
-       cr=\r, cud1=\n, cup=\E&a%p1%dy%p2%dC, ht=^I, ind=\n, kbs=^H,
-       kcub1=^H, kcud1=\n, nel=\r\n, rmir=\ER, rmul=\E&d@, smir=\EQ,
-       smul=\E&dD, vpa=\E&a%p1%dY, use=hpsub,
+       cud1=\n, cup=\E&a%p1%dy%p2%dC, kcub1=^H, kcud1=\n,
+       nel=\r\n, rmir=\ER, rmul=\E&d@, smir=\EQ, smul=\E&dD,
+       vpa=\E&a%p1%dY, use=hpsub,
 
 # From: Ville Sulko <Ville.Sulko@bip.atk.tpo.fi>, 05 Aug 1996
 hp2|hpex2|Hewlett-Packard extended capabilities newer version,
@@ -10247,30 +10497,31 @@ hp9845|HP 9845,
 # added empty <acsc> to avoid warnings re <smacs>/<rmacs> --esr)
 hp98550|hp98550a|HP 9000 Series 300 color console,
        OTbs, am, da, db, mir, xhp,
-       cols#128, it#8, lines#49, lm#0,
+       cols#128, lines#49, lm#0,
        acsc=, bel=^G, blink=\E&dA, bold=\E&dJ, cbt=\Ei, civis=\E*dR,
        clear=\EH\EJ, cnorm=\E*dQ, cr=\r, cub1=^H, cud1=\n, cuf1=\EC,
        cup=\E&a%p1%dy%p2%dC, cuu1=\EA, dch1=\EP, dim=\E&dH,
-       dl1=\EM, ed=\EJ, el=\EK, hpa=\E&a%p1%dC, ht=^I, hts=\E1,
+       dl1=\EM, ed=\EJ, el=\EK, hpa=\E&a%p1%dC, hts=\E1,
        if=/usr/share/tabset/std, il1=\EL, ind=\n, invis=\E&ds,
        kbs=^H, kclr=\EJ, kctab=\E2, kdch1=\EP, kdl1=\EM, ked=\EJ,
        kel=\EK, khts=\E1, kich1=\EQ, kil1=\EL, kll=\EF, knp=\EU,
        kpp=\EV, krmir=\ER, ktbc=\E3, rev=\E&dJ, rmacs=^O, rmir=\ER,
        rmkx=\E&s0A, rmso=\E&d@, rmul=\E&d@, sgr0=\E&d@, smacs=^N,
        smir=\EQ, smkx=\E&s1A, smso=\E&dJ, smul=\E&dD, tbc=\E3,
-       vpa=\E&a%p1%dY, use=hp+pfk-cr, use=hp+arrows,
+       vpa=\E&a%p1%dY, use=hp+pfk-cr, use=ansi+inittabs,
+       use=hp+arrows,
 
 # From: Martin Trusler
 hp98550-color|hp98550a-color|HP 9000 Series 300 color console (Trusler),
        OTbs, am, ccc, da, db, km, mir, xhp,
-       colors#8, cols#128, it#8, lh#2, lines#49, lm#0, lw#8, nlab#8,
-       pairs#8, xmc#0,
+       colors#8, cols#128, lh#2, lines#49, lm#0, lw#8, nlab#8, pairs#8,
+       xmc#0,
        acsc=+>\,<-\^.v0\374``a\374f\372g\376h\374j+k+l+m+n+o-q-s-t+
             u+v+w+x|y<z>{*|!}\273~\362,
        bel=^G, bold=\E&dD, cbt=\Ei, clear=\EH\EJ, cr=\r, cub1=^H,
        cud1=\EB, cuf1=\EC, cup=\E&a%p1%dy%p2%dC, cuu1=\EA,
        dch1=\EP, dl1=\EM, ed=\EJ, el=\EK, home=\E&a0y0C,
-       hpa=\E&a%p1%dC, ht=^I, hts=\E1, il1=\EL, ind=\ES,
+       hpa=\E&a%p1%dC, hts=\E1, il1=\EL, ind=\ES,
        initp=\E&v0m%?%p2%{1000}%=%t1%e.%p2%d%;a%?%p3%{1000}%=%t1%e.
              %p3%d%;b%?%p4%{1000}%=%t1%e.%p4%d%;c%?%p5%{1000}%=%t1
              %e.%p5%d%;x%?%p6%{1000}%=%t1%e.%p6%d%;y%?%p7%{1000}%=
@@ -10293,7 +10544,7 @@ hp98550-color|hp98550a-color|HP 9000 Series 300 color console (Trusler),
        smir=\EQ, smkx=\E&s1A, smln=\E&jB, smm=\E&k1I, smso=\E&dB,
        smul=\E&dD, tbc=\E3, u6=\Ea%dc%dR\r, u7=\Ea,
        u8=\E%[0123456789/], u9=\E*s1\^, vpa=\E&a%p1%dY,
-       use=hp+pfk-cr, use=hp+arrows,
+       use=hp+pfk-cr, use=ansi+inittabs, use=hp+arrows,
 
 # From: Victor Duchovni <vic@fine.princeton.edu>
 # (hp700-wy: removed obsolete ":nl=^J:";
@@ -10341,14 +10592,15 @@ gator-t|HP 9000 model 237 emulating extra-tall AAA,
 gator|HP 9000 model 237 emulating AAA,
        bw, km, mir, ul,
        cols#128, it#8, lines#47,
-       bel=^G, cbt=\E[Z, clear=\E[H\E[J, cr=\r, cub1=^H, cud1=\n,
-       cuf1=\E[C, cup=\E[%i%p1%d;%p2%dH, cuu1=\EM,
-       dch=\E[%p1%dP$<4/>, dch1=\E[P, dl=\E[%p1%dM$<1*/>,
-       dl1=\E[M, ed=\E[J, el=\E[K, home=\E[H, hpa=\E[%i%p1%d`,
-       ht=^I, ich=\E[%p1%d@$<4/>, ich1=\E[@, il=\E[%p1%dL$<1*/>,
-       il1=\E[L, kbs=^H, kcub1=^H, kcud1=\n, nel=\r\n,
-       rep=%p1%c\E[%p2%db$<1*/>, rev=\E[7m, rmso=\E[m,
+       bel=^G, cbt=\E[Z, cr=\r, cub1=^H, cud1=\n, cuf1=\E[C,
+       cup=\E[%i%p1%d;%p2%dH, cuu1=\EM, dch=\E[%p1%dP$<4/>,
+       dch1=\E[P, dl=\E[%p1%dM$<1*/>, dl1=\E[M, home=\E[H,
+       hpa=\E[%i%p1%d`, ht=^I, ich=\E[%p1%d@$<4/>, ich1=\E[@,
+       il=\E[%p1%dL$<1*/>, il1=\E[L, kbs=^H, kcub1=^H, kcud1=\n,
+       nel=\r\n, rep=%p1%c\E[%p2%db$<1*/>, rev=\E[7m, rmso=\E[m,
        rmul=\E[m, sgr0=\E[m, smso=\E[7m, smul=\E[4m,
+       use=ansi+erase,
+
 gator-52|HP 9000 model 237 emulating VT52,
        cols#128, lines#47, use=vt52-basic,
 gator-52t|HP 9000 model 237 emulating extra-tall VT52,
@@ -10432,8 +10684,7 @@ adm3a+|adm3a plus,
 # (adm5: removed obsolete ":ma=^Hh^Jj^Kk^Ll^^H:" & duplicate ":do=^J:" -- esr)
 adm5|LSI adm5,
        xmc#1,
-       bel=^G, cr=\r, cud1=\n, ed=\EY, el=\ET, kbs=^H, khome=^^,
-       rmso=\EG, smso=\EG, use=adm3a+,
+       ed=\EY, el=\ET, khome=^^, rmso=\EG, smso=\EG, use=adm3a+,
 # A lot of terminals other than adm11s use these.  Wherever you see
 # use=adm+sgr with some of its capabilities disabled, try the
 # disabled ones.  They may well work but not have been documented or
@@ -10527,10 +10778,9 @@ adm20|Lear Siegler adm20,
        sgr0=\E(, smso=\E),
 adm21|Lear Siegler adm21,
        xmc#1,
-       bel=^G, cr=\r, cud1=\n, dch1=\EW, dl1=\ER$<30*>, ed=\EY,
-       el=\ET, ich1=\EQ, il1=\EE$<30*>, ind=\n, invis@, kbs=^H,
-       kcub1=^H, kcud1=\n, kcuf1=^L, kcuu1=^K, khome=^^,
-       use=adm+sgr, use=adm3a,
+       dch1=\EW, dl1=\ER$<30*>, ed=\EY, el=\ET, ich1=\EQ,
+       il1=\EE$<30*>, invis@, kbs=^H, khome=^^, use=adm+sgr,
+       use=adm3a,
 # (adm22: ":em=:" was an obvious typo for ":ei=:"; also,
 # removed obsolete ":kn#7:ma=j^Jk^P^K^Pl ^R^L^L :";
 # removed bogus-looking \200 from before <cup>. -- esr)
@@ -10761,13 +11011,14 @@ pt100|pt200|wren|fenix|Prime pt100/pt200,
        cup=\E0%p1%{33}%+%c%p2%{33}%+%c, cuu=\E[%p1%dA,
        cuu1=\EM, dch=\E[%p1%dP, dch1=\E[P, dim=\E[2m, dl1=\E[M,
        ed=\E[J\E[r, el=\E[K\E[t, flash=\E$$<200/>\E$P,
-       home=\E$B, ht=^I, il1=\E[L\E[t, ind=\n, kbs=^H, kcub1=\E[D,
-       kcud1=\E[B, kcuf1=\E[C, kcuu1=\E[A, khome=\E$A, nel=\r\n,
+       home=\E$B, ht=^I, il1=\E[L\E[t, ind=\n, khome=\E$A, nel=\r\n,
        rmcup=, rmir=\E[4l, rmkx=\E[>13l, rmso=\E[m, rmul=\E[m,
        sgr0=\E[m,
        smcup=\E[>1l\E[>2l\E[>16l\E[4l\E[>9l\E[20l\E[>3l\E[>7h\E[>12
              l\E[1Q,
        smir=\E[4h, smkx=\E[>13h, smso=\E[2;7m, smul=\E[4m,
+       use=ansi+arrows,
+
 pt100w|pt200w|wrenw|fenixw|Prime pt100/pt200 in 132-column mode,
        cols#132,
        cup=\E[%i%p1%d;%p2%dH, use=pt100,
@@ -10842,20 +11093,20 @@ qvt103|Qume qvt 103,
        am, xenl, xon,
        cols#80, it#8, lines#24, vt#3,
        bel=^G, blink=\E[5m$<2>, bold=\E[1m$<2>,
-       clear=\E[H\E[2J$<50>, cr=\r, csr=\E[%i%p1%d;%p2%dr,
-       cub=\E[%p1%dD, cub1=^H, cud=\E[%p1%dB, cud1=\n,
-       cuf=\E[%p1%dC, cuf1=\E[C$<2>,
+       clear=\E[H\E[2J$<50>, cr=\r, cub=\E[%p1%dD, cub1=^H,
+       cud=\E[%p1%dB, cud1=\n, cuf=\E[%p1%dC, cuf1=\E[C$<2>,
        cup=\E[%i%p1%d;%p2%dH$<5>, cuu=\E[%p1%dA,
        cuu1=\E[A$<2>, ed=\E[J$<50>, el=\E[K$<3>, home=\E[H, ht=^I,
        hts=\EH, ind=\n, kbs=^H, kcub1=\EOD, kcud1=\EOB, kcuf1=\EOC,
-       kcuu1=\EOA, kf1=\EOP, kf2=\EOQ, kf3=\EOR, kf4=\EOS, rc=\E8,
+       kcuu1=\EOA, kf1=\EOP, kf2=\EOQ, kf3=\EOR, kf4=\EOS,
        rev=\E[7m$<2>, ri=\EM$<5>, rmam=\E[?7l, rmkx=\E[?1l\E>,
        rmso=\E[m$<2>, rmul=\E[m$<2>,
-       rs2=\E>\E[?3l\E[?4l\E[?5l\E[?7h\E[?8h, sc=\E7,
+       rs2=\E>\E[?3l\E[?4l\E[?5l\E[?7h\E[?8h,
        sgr=\E[%?%p1%t;7%;%?%p2%t;4%;%?%p3%t;7%;%?%p4%t;5%;%?%p6%t;1
            %;m$<2>,
        sgr0=\E[m$<2>, smam=\E[?7h, smkx=\E[?1h\E=,
-       smso=\E[7m$<2>, smul=\E[4m$<2>, tbc=\E[3g,
+       smso=\E[7m$<2>, smul=\E[4m$<2>, tbc=\E[3g, use=ansi+csr,
+
 qvt103-w|Qume qvt103 132 cols,
        cols#132, lines#24,
        rs2=\E>\E[?3h\E[?4l\E[?5l\E[?8h, use=qvt103,
@@ -11669,7 +11920,7 @@ tvi925|TeleVideo 925,
 # to avoid "magic cookie" standout glitch:
 tvi925-hi|TeleVideo Model 925 with half intensity standout mode,
        xmc@,
-       kbs=^H, kcub1=^H, kcud1=\n, rmso=\E(, smso=\E), use=tvi925,
+       kcud1=\n, rmso=\E(, smso=\E), use=tvi925,
 
 # From: Todd Litwin <litwin@litwin.jpl.nasa.gov> 28 May 1993
 # Originally Tim Curry, Univ. of Central Fla., <duke!ucf-cs!tim> 5/21/82
@@ -11867,8 +12118,8 @@ tvi950-rv-4p|TeleVideo 950 rev video w/4 pages,
 # If the BSD termcap file was right, <cup=\E=%p1%{32}%+%c%p2%{32}%+%c> would
 # also work.
 tvi955|TeleVideo 955,
-       OTbs, mc5i, msgr@,
-       it#8, xmc@,
+       mc5i, msgr@,
+       xmc@,
        acsc=0_`RjHkGlFmEnIoPqKsQtMuLvOwNxJ, blink=\EG2,
        civis=\E.0, cnorm=\E.2, cud1=^V, cup=\E[%i%p1%d;%p2%dH,
        cvvis=\E.1, dim=\E[=5h, ind@, invis=\EG1,
@@ -11877,8 +12128,7 @@ tvi955|TeleVideo 955,
        rmam=\E[=7l, rmxon=^N,
        rs1=\EDF\EC\Eg\Er\EO\E'\E(\Ew\EX\Ee\s\017\E0P\E6\0\E0p\E4\0
            \Ef\r,
-       sgr0=\EG0\E[=5l, smacs=\E$, smam=\E[=7h, smxon=^O,
-       use=tvi950,
+       sgr0=\EG0\E[=5l, smam=\E[=7h, smxon=^O, use=tvi950,
 tvi955-w|955-w|TeleVideo 955 w/132 cols,
        cols#132,
        is2=\E[=3h\EF1\Ed\EG0\E[=5l\E%\El, use=tvi955,
@@ -11901,13 +12151,13 @@ tvi970|TeleVideo 970,
        ed=\E[J, el=\E[K, flash=\E[5m$<200/>\E[m, home=\E[H,
        hpa=\E[%i%p1%dG, ht=^I, il1=\E[L,
        is2=\E<\E[?21l\E[19h\E[1Q\E[10l\E[7l\E[H\E[2J,
-       kbs=^H, kcub1=\E[D, kcud1=\E[B, kcuf1=\E[C, kcuu1=\E[A,
        kf1=\E?a, kf2=\E?b, kf3=\E?c, kf4=\E?d, kf5=\E?e, kf6=\E?f,
-       kf7=\E?g, kf8=\E?h, kf9=\E?i, khome=\E[H, ri=\EM, rmacs=\E(B,
+       kf7=\E?g, kf8=\E?h, kf9=\E?i, ri=\EM, rmacs=\E(B,
        rmam=\E[?7h, rmcup=, rmir=\E[4l, rmso=\E[m, rmul=\E[m,
        sgr0=\E[m, smacs=\E(B, smam=\E[?7l,
        smcup=\E[?20l\E[?7h\E[1Q, smir=\E[4h, smso=\E[7m,
-       smul=\E[4m, vpa=\E[%i%p1%dd,
+       smul=\E[4m, vpa=\E[%i%p1%dd, use=ansi+arrows,
+
 tvi970-vb|TeleVideo 970 with visual bell,
        flash=\E[?5h\0\0\0\0\0\0\0\0\0\0\0\0\0\E[?5l,
        use=tvi970,
@@ -12059,12 +12309,9 @@ vi200|Visual 200,
 # If your version of vi doesn't support function keys you may want
 # to use vi200-f.
 vi200-f|Visual 200 no function keys,
-       is2=\E3\Eb\Ej\E\\\El\EG\Ed\Ek, 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, rmkx=\E>, rmso@, smkx=\E=, smso@,
-       use=vi200,
+       is2=\E3\Eb\Ej\E\\\El\EG\Ed\Ek, rmso@, smso@, use=vi200,
 vi200-rv|Visual 200 reverse video,
-       cnorm@, cvvis@, ri@, rmso=\E3, smso=\E4, use=vi200,
+       cnorm@, cvvis@, ri@, use=vi200,
 
 # the function keys are programmable but we don't reprogram them to their
 # default values with <is2> because programming them is very verbose. maybe
@@ -12122,14 +12369,14 @@ vi550|Visual 550 ANSI x3.64,
 
 vi603|visual603|Visual 603,
        hs, mir,
-       bel=^G, blink=\E[5m, bold=\E[1m, clear=\E[H\E[J,
+       blink=\E[5m, bold=\E[1m, clear=\E[H\E[J,
        csr=\E[%i%p1%d;%p2%dr, cuf1=\E[C,
-       cup=\E[%i%p1%d;%p2%dH, cuu1=\E[A, dch1=\E[P, dl1=\E[M,
-       dsl=\EP2;1~\E\\, ed=\E[J, el=\E[K, fsl=\E\\, il1=\E[L,
-       ind=\ED, is1=\E>\E[?3l\E[?4l\E[?7h\E[?8h\E[1;24r,
-       rev=\E[7m, ri=\EM, rmir=\E[4l, rmso=\E[27m, rmul=\E[24m,
+       cup=\E[%i%p1%d;%p2%dH, cuu1=\E[A, dch1=\E[P,
+       dsl=\EP2;1~\E\\, ed=\E[J, el=\E[K, fsl=\E\\, ind=\ED,
+       is1=\E>\E[?3l\E[?4l\E[?7h\E[?8h\E[1;24r, rev=\E[7m,
+       ri=\EM, rmir=\E[4l, rmso=\E[27m, rmul=\E[24m,
        sgr0=\E[m\017$<2>, smir=\E[4h, smso=\E[7m, smul=\E[4m,
-       tsl=\EP2~, use=vt100+4bsd,
+       tsl=\EP2~, use=ansi+idl1, use=decid+cpr, use=vt100+4bsd,
 
 #### Wyse (wy)
 #
@@ -12499,9 +12746,9 @@ wy60-42|wyse60-42|Wyse 60 80-column 42-lines,
        ri=\Ej$<10>, rs3=\Ee*$<150>, use=wy60,
 wy60-42-w|wyse60-42-w|Wyse 60 132-column 42-lines,
        cols#132, lw#7, nlab#16, wsl#97,
-       clear=\E+$<260>, cup=\Ea%i%p1%dR%p2%dC$<2>,
-       dch1=\EW$<19>, ed=\Ey$<260>, home=\036$<2>, ip=$<6>,
-       nel=\r\n$<11>, rs2=\EeF$<150>\E`;$<150>, use=wy60-42,
+       cup=\Ea%i%p1%dR%p2%dC$<2>, dch1=\EW$<19>,
+       home=\036$<2>, ip=$<6>, nel=\r\n$<11>,
+       rs2=\EeF$<150>\E`;$<150>, use=wy60-42,
 #
 wy60-43|wyse60-43|Wyse 60 80-column 43-lines,
        lh@, lines#43, lw@, nlab@,
@@ -12533,8 +12780,7 @@ wy60-w-vb|wy60-wvb|wyse60-wvb|Wyse 60 132-column visible bell,
 wy99gt|wyse99gt|Wyse 99gt,
        msgr@,
        clear=\E+$<130>, dch1=\EW$<7>, dl1=\ER$<4>, ed=\Ey$<130>,
-       el=\Et$<5>, flash=\E`8$<100/>\E`9, ht=\011$<1>,
-       il1=\EE$<4>, ind=\n$<4>, ip=$<2>, is3=\Ew0$<20>, nel@,
+       el=\Et$<5>, ind=\n$<4>, ip=$<2>, is3=\Ew0$<20>, nel@,
        ri=\Ej$<3>, rmcup=\Ew0, rs2=\E`:$<150>, smcup=\Ew1,
        u0=\E~>\E8, u1=\E[42h, use=wy60,
 #
@@ -12546,7 +12792,7 @@ wy99gt-w|wyse99gt-w|Wyse 99gt 132-column,
 #
 wy99gt-25|wyse99gt-25|Wyse 99gt 80-column 25-lines,
        lh@, lines#25, lw@, nlab@,
-       pln@, rs2=\E`:$<150>, rs3=\EwG\Ee)$<200>, use=wy99gt,
+       pln@, rs3=\EwG\Ee)$<200>, use=wy99gt,
 #
 wy99gt-25-w|wyse99gt-25-w|Wyse 99gt 132-column 25-lines,
        lh@, lines#25, lw@, nlab@,
@@ -12578,15 +12824,13 @@ wy99-ansi|Wyse WY-99GT in ANSI mode (int'l PC keyboard),
        acsc=``aaffggjjkkllmmnnooqqssttuuvvwwxx{{||}}~~,
        bel=^G, blink=\E[5m, bold=\E[1m, cbt=\E[Z, civis=\E[?25l,
        clear=\E[H\E[J$<200>, cnorm=\E[34h\E[?25h, cr=\r,
-       csr=\E[%i%p1%d;%p2%dr, cub=\E[%p1%dD$<1>,
-       cub1=\010$<1>, cud=\E[%p1%dB, cud1=\ED,
-       cuf=\E[%p1%dC$<1>, cuf1=\E[C$<1>,
+       cub=\E[%p1%dD$<1>, cub1=\010$<1>, cud=\E[%p1%dB,
+       cud1=\ED, cuf=\E[%p1%dC$<1>, cuf1=\E[C$<1>,
        cup=\E[%i%p1%d;%p2%dH, cuu=\E[%p1%dA, cuu1=\EM,
-       cvvis=\E[34l\E[?25h, dim=\E[2m, dl=\E[%p1%dM, dl1=\E[M,
-       ech=\E[%p1%dX, ed=\E[J$<8*>, el=\E[K$<1>, el1=\E[1K$<1>,
-       enacs=\E)0, flash=\E[?5h$<30/>\E[?5l, home=\E[H,
-       hpa=\E[%i%p1%dG, ht=^I, ich=\E[%p1%d@, il=\E[%p1%dL,
-       il1=\E[L, ind=\n$<1>, invis=\E[8m,
+       cvvis=\E[34l\E[?25h, dim=\E[2m, ech=\E[%p1%dX,
+       ed=\E[J$<8*>, el=\E[K$<1>, el1=\E[1K$<1>, enacs=\E)0,
+       flash=\E[?5h$<30/>\E[?5l, home=\E[H, hpa=\E[%i%p1%dG,
+       ht=^I, ich=\E[%p1%d@, ind=\n$<1>, invis=\E[8m,
        is2=\E7\E[1r\E8\E[2;3;4;13;20;34;39;36l\E[12;16;34h\E[?1;3;4
            ;5;10;18l\E[?7;8;25h\E>\E[?5W\E(B\017\E[4i,
        kbs=^H, kcbt=\E[z, kcub1=\EOD, kcud1=\EOB, kcuf1=\EOC,
@@ -12595,17 +12839,17 @@ wy99-ansi|Wyse WY-99GT in ANSI mode (int'l PC keyboard),
        kf20=\E[33~, kf21=\E[34~, kf22=\E[35~, kf23=\E[1~,
        kf24=\E[2~, kf3=\EOR, kf4=\EOS, kf5=\E[M, kf6=\E[17~,
        kf7=\E[18~, kf8=\E[19~, kf9=\E[20~, ll=\E[24E, mc0=\E[?19h,
-       mc4=\E[4i, mc5=\E[5i, nel=\EE, prot=\E[1"q, rc=\E8,
-       rev=\E[7m, ri=\EM, rmacs=^O, rmam=\E[?7l, rmir=\E[4l,
-       rmkx=\E[?1l, rmso=\E[27m, rmul=\E[24m,
+       mc4=\E[4i, mc5=\E[5i, nel=\EE, prot=\E[1"q, rev=\E[7m,
+       ri=\EM, rmacs=^O, rmam=\E[?7l, rmir=\E[4l, rmkx=\E[?1l,
+       rmso=\E[27m, rmul=\E[24m,
        rs2=\E[61"p\E[40h\E[?6l\E[1r\E[2;3;4;13;20;34;39;36l\E[12;16
            ;34h\E[?1;3;4;5;10;18l\E[?7;8;25h\E>\E[?5W\E(B\017\E[24E
            \E[4i,
-       sc=\E7,
        sgr=\E[0%?%p6%t;1%;%?%p2%t;4%;%?%p1%p3%O%t;7%;%?%p4%t;5%;%?
            %p5%t;2%;%?%p7%t;8%;m\E[%?%p8%t1%;"q%?%p9%t\016%e\017%;,
        sgr0=\E[m\017\E["q, smacs=^N, smam=\E[?7h, smir=\E[4h,
        smkx=\E[?1h, smso=\E[7m, smul=\E[4m, vpa=\E[%i%p1%dd,
+       use=ansi+csr, use=ansi+idl,
 
 #   This is the american terminal. Here tabs work fine.
 # From: Francesco Potorti` <F.Potorti@cnuce.cnr.it>, 24 Aug 1998
@@ -12773,17 +13017,16 @@ wy75|wyse75|Wyse 75,
        hpa=\E[%i%p1%dG, ht=^I, hts=\EH, ich=\E[%p1%d@$<1*>,
        il=\E[%p1%dL$<2*>, il1=\E[L$<2>, ind=\n$<2>, ip=$<1>,
        is1=\E[2;4;20;30l\E[?1;10l\E[12h\E[?7;8;25h,
-       is2=\E>\E(B\E)0\017, is3=\E[m, kbs=^H, kcub1=\E[D,
-       kcud1=\E[B, kcuf1=\E[C, kcuu1=\E[A, kdl1=\E[M, kel=\E[K,
+       is2=\E>\E(B\E)0\017, is3=\E[m, kdl1=\E[M, kel=\E[K,
        kf1=\E[?5i, kf10=\E[21~, kf11=\E[23~, kf12=\E[24~,
        kf13=\E[25~, kf14=\E[26~, kf15=\E[28~, kf16=\E[29~,
        kf17=\E[31~, kf18=\E[32~, kf19=\E[33~, kf2=\E[?3i,
        kf20=\E[34~, kf21=\E[35~, kf3=\E[2i, kf4=\E[@, kf5=\E[M,
        kf6=\E[17~, kf7=\E[18~, kf8=\E[19~, kf9=\E[20~, kfnd=\E[1~,
-       khlp=\E[28~, khome=\E[H, kich1=\E[@, kil1=\E[L, knp=\E[6~,
-       kpp=\E[5~, kprt=\E[?5i, kslt=\E[4~, mc0=\E[0i, mc4=\E[4i,
-       mc5=\E[5i, rc=\E8, rev=\E[1t\E[7m, ri=\EM$<2>, rmacs=^O,
-       rmam=\E[?7l, rmir=\E[4l, rmkx=\E>, rmso=\E[m, rmul=\E[m,
+       khlp=\E[28~, kich1=\E[@, kil1=\E[L, knp=\E[6~, kpp=\E[5~,
+       kprt=\E[?5i, kslt=\E[4~, mc0=\E[0i, mc4=\E[4i, mc5=\E[5i,
+       rc=\E8, rev=\E[1t\E[7m, ri=\EM$<2>, rmacs=^O, rmam=\E[?7l,
+       rmir=\E[4l, rmkx=\E>, rmso=\E[m, rmul=\E[m,
        rs1=\E[13l\E[3l\E!p, rs2=\E[35h\E[?3l$<80>, rs3=\E[?5l,
        sc=\E7,
        sgr=%?%p5%t\E[0t%;%?%p3%p1%|%t\E[1t%;%?%p2%t\E[2t%;%?%p4%t
@@ -12791,8 +13034,8 @@ wy75|wyse75|Wyse 75,
            \016%e\017%;,
        sgr0=\E[m\017, smacs=^N, smam=\E[?7h, smir=\E[4h,
        smkx=\E[?1l\E[?7h\E=, smso=\E[1t\E[7m, smul=\E[2t\E[4m,
-       tbc=\E[3g, tsl=\E[>\,\001, use=vt220+cvis,
-       use=vt220+keypad,
+       tbc=\E[3g, tsl=\E[>\,\001, use=ansi+arrows,
+       use=decid+cpr, use=vt220+cvis, use=vt220+keypad,
 #
 #      This terminal description uses the non-hidden attribute mode
 #      (with magic cookie).
@@ -12831,37 +13074,36 @@ wy75-wvb|wyse75-wvb|Wyse 75 with visible bell 132 columns,
 #
 wy85|wyse85|Wyse 85,
        am, hs, mc5i, mir, msgr, xenl, xon,
-       cols#80, it#8, lines#24, wsl#80,
+       cols#80, lines#24, wsl#80,
        acsc=``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~,
-       bel=^G, blink=\E[5m, bold=\E[1m, cbt=\E[Z,
-       clear=\E[H\E[J$<110>, cr=\r, csr=\E[%i%p1%d;%p2%dr,
-       cub=\E[%p1%dD, cub1=^H, cud=\E[%p1%dB, cud1=\n,
+       bel=^G, blink=\E[5m, bold=\E[1m, clear=\E[H\E[J$<110>,
+       cr=\r, cub=\E[%p1%dD, cub1=^H, cud=\E[%p1%dB, cud1=\n,
        cuf=\E[%p1%dC, cuf1=\E[C, cup=\E[%i%p1%d;%p2%dH$<1>,
        cuu=\E[%p1%dA, cuu1=\E[A, dch=\E[%p1%dP$<3*>,
        dch1=\E[P$<3>, dim=\E[2m, dl=\E[%p1%dM$<3*>,
        dl1=\E[M$<3>, dsl=\E[40l, ech=\E[%p1%dX, ed=\E[J$<110>,
        el=\E[K$<1>, el1=\E[1K, enacs=\E)0,
        flash=\E[30h\E\,$<300/>\E[30l, fsl=\E[1;24r\E8,
-       home=\E[H, ht=\011$<1>, hts=\EH, ich=\E[%p1%d@$<4*>,
+       home=\E[H, ht=\011$<1>, ich=\E[%p1%d@$<4*>,
        il=\E[%p1%dL$<5*>, il1=\E[L$<5>, ind=\n$<3>, invis=\E[8m,
        ip=$<3>, is1=\E[62;1"p\E[?5W,
        is2=\E[2;4;20;30l\E[?1;4;10;16l\E[12h\E[?7;8;25h$<16>,
-       is3=\E>\E(B\E)0\017\E[m, kbs=^H, kcub1=\E[D, kcud1=\E[B,
-       kcuf1=\E[C, kcuu1=\E[A, kf10=\E[21~, kf11=\E[23~,
+       is3=\E>\E(B\E)0\017\E[m, kf10=\E[21~, kf11=\E[23~,
        kf12=\E[24~, kf13=\E[25~, kf14=\E[26~, kf15=\E[28~,
        kf16=\E[29~, kf17=\E[31~, kf18=\E[32~, kf19=\E[33~,
        kf20=\E[34~, kf6=\E[17~, kf7=\E[18~, kf8=\E[19~,
        kf9=\E[20~, khlp=\E[28~, khome=\E[26~, lf1=PF1, lf2=PF2,
-       lf3=PF3, lf4=PF4, mc0=\E[0i, mc4=\E[4i, mc5=\E[5i, rc=\E8,
-       rev=\E[7m, ri=\EM$<3>, rmacs=^O, rmam=\E[?7l, rmir=\E[4l,
-       rmkx=\E>, rmso=\E[m, rmul=\E[m, rs1=\E[13l\E[3l\E!p,
-       rs2=\E[35h\E[?3l$<70>, rs3=\E[?5l, sc=\E7,
+       lf3=PF3, lf4=PF4, mc0=\E[0i, mc4=\E[4i, mc5=\E[5i, rev=\E[7m,
+       ri=\EM$<3>, rmacs=^O, rmam=\E[?7l, rmir=\E[4l, rmkx=\E>,
+       rmso=\E[m, rmul=\E[m, rs1=\E[13l\E[3l\E!p,
+       rs2=\E[35h\E[?3l$<70>, rs3=\E[?5l,
        sgr=\E[0%?%p2%t;4%;%?%p3%p1%|%t;7%;%?%p4%t;5%;%?%p5%t;2%;%?
            %p6%t;1%;%?%p7%t;8%;m%?%p9%t\016%e\017%;,
        sgr0=\E[m\017, smacs=^N, smam=\E[?7h, smir=\E[4h,
-       smkx=\E[?1l\E=, smso=\E[7m, smul=\E[4m, tbc=\E[3g,
-       tsl=\E[40h\E7\E[25;%i%p1%dH, use=vt220+vtedit,
-       use=vt220+cvis, use=vt220+keypad,
+       smkx=\E[?1l\E=, smso=\E[7m, smul=\E[4m,
+       tsl=\E[40h\E7\E[25;%i%p1%dH, use=ansi+arrows,
+       use=ansi+csr, use=ansi+inittabs, use=decid+cpr,
+       use=vt220+vtedit, use=vt220+cvis, use=vt220+keypad,
 #
 #      Wyse 85 with visual bell.
 wy85-vb|wyse85-vb|Wyse 85 with visible bell,
@@ -12888,18 +13130,17 @@ wy85-wvb|wyse85-wvb|Wyse 85 with visible bell 132-columns,
 # or the actual."
 wy85-8bit|wyse85-8bit|Wyse 85 in 8-bit mode,
        am, hs, mc5i, mir, msgr, xenl, xon,
-       cols#80, it#8, lines#24, wsl#80,
+       cols#80, lines#24, wsl#80,
        acsc=``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~,
-       bel=^G, blink=\E[5m, bold=\E[1m, cbt=\E[Z,
-       clear=\E[H\E[J$<110>, cr=\r, csr=\E[%i%p1%d;%p2%dr,
-       cub=\E[%p1%dD, cub1=^H, cud=\E[%p1%dB, cud1=\n,
+       bel=^G, blink=\E[5m, bold=\E[1m, clear=\E[H\E[J$<110>,
+       cr=\r, cub=\E[%p1%dD, cub1=^H, cud=\E[%p1%dB, cud1=\n,
        cuf=\E[%p1%dC, cuf1=\E[C, cup=\E[%i%p1%d;%p2%dH$<1>,
        cuu=\E[%p1%dA, cuu1=\E[A, dch=\E[%p1%dP$<3*>,
        dch1=\E[P$<3>, dim=\E[2m, dl=\E[%p1%dM$<3*>,
        dl1=\E[M$<3>, dsl=\E[40l, ech=\E[%p1%dX, ed=\E[J$<110>,
        el=\E[K$<1>, el1=\E[1K, enacs=\E)0,
        flash=\E[30h\E\,$<300/>\E[30l, fsl=\E[1;24r\E8,
-       home=\E[H, ht=\011$<1>, hts=\EH, ich=\E[%p1%d@$<4*>,
+       home=\E[H, ht=\011$<1>, ich=\E[%p1%d@$<4*>,
        il=\E[%p1%dL$<5*>, il1=\E[L$<5>, ind=\n$<3>, invis=\E[8m,
        ip=$<3>, is1=\E[62;1"p\E[?5W,
        is2=\E[2;4;20;30l\E[?1;4;10;16l\E[12h\E[?7;8;25h$<16>,
@@ -12913,15 +13154,15 @@ wy85-8bit|wyse85-8bit|Wyse 85 in 8-bit mode,
        kf8=\23319~, kf9=\23320~, kfnd=\2331~, khlp=\23328~,
        khome=\23326~, kich1=\2332~, knp=\2336~, kpp=\2335~,
        kslt=\2334~, lf1=PF1, lf2=PF2, lf3=PF3, lf4=PF4, mc0=\E[0i,
-       mc4=\E[4i, mc5=\E[5i, rc=\E8, rev=\E[7m, ri=\EM$<3>,
-       rmacs=^O, rmam=\E[?7l, rmir=\E[4l, rmkx=\E>, rmso=\E[m,
-       rmul=\E[m, rs1=\E[13l\E[3l\E!p, rs2=\E[35h\E[?3l$<70>,
-       rs3=\E[?5l, sc=\E7,
+       mc4=\E[4i, mc5=\E[5i, rev=\E[7m, ri=\EM$<3>, rmacs=^O,
+       rmam=\E[?7l, rmir=\E[4l, rmkx=\E>, rmso=\E[m, rmul=\E[m,
+       rs1=\E[13l\E[3l\E!p, rs2=\E[35h\E[?3l$<70>, rs3=\E[?5l,
        sgr=\E[0%?%p2%t;4%;%?%p3%p1%|%t;7%;%?%p4%t;5%;%?%p5%t;2%;%?
            %p6%t;1%;%?%p7%t;8%;+m%?%p9%t\016%e\017%;,
        sgr0=\E[m\017, smacs=^N, smam=\E[?7h, smir=\E[4h,
-       smkx=\E[?1l\E=, smso=\E[7m, smul=\E[4m, tbc=\E[3g,
-       tsl=\E[40h\E7\E[25;%i%p1%dH, use=vt220+cvis,
+       smkx=\E[?1l\E=, smso=\E[7m, smul=\E[4m,
+       tsl=\E[40h\E7\E[25;%i%p1%dH, use=ansi+csr,
+       use=ansi+inittabs, use=decid+cpr, use=vt220+cvis,
 #
 #      Wyse 185 emulating a VT320 7 bit mode.
 #
@@ -12935,9 +13176,9 @@ wy85-8bit|wyse85-8bit|Wyse 85 in 8-bit mode,
 #
 wy185|wyse185|Wyse 185,
        am, hs, km, mc5i, mir, msgr, xenl, xon,
-       cols#80, it#8, lines#24, wsl#80,
+       cols#80, lines#24, wsl#80,
        acsc=``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~,
-       bel=^G, blink=\E[5m, bold=\E[1m, cbt=\E[Z, civis=\E[?25l,
+       bel=^G, blink=\E[5m, bold=\E[1m, civis=\E[?25l,
        clear=\E[H\E[J$<40>, cnorm=\E[34h\E[?25h, cr=\r,
        csr=\E[%i%p1%d;%p2%dr$<20>, cub=\E[%p1%dD, cub1=^H,
        cud=\E[%p1%dB, cud1=\n, cuf=\E[%p1%dC, cuf1=\E[C,
@@ -12947,27 +13188,26 @@ wy185|wyse185|Wyse 185,
        dsl=\E7\E[99;0H\E[K\E8, ech=\E[%p1%dX, ed=\E[J$<40>,
        el=\E[K, el1=\E[1K, enacs=\E)0,
        flash=\E[30h\E\,$<100/>\E[30l, fsl=\E[1;24r\E8,
-       home=\E[H, hpa=\E[%i%p1%d`, ht=^I, hts=\EH,
-       ich=\E[%p1%d@$<2>, il=\E[%p1%dL$<3*>, il1=\E[L$<3>,
-       ind=\n$<2>, invis=\E[8m, ip=$<4>, is1=\E[?5W,
+       home=\E[H, hpa=\E[%i%p1%d`, ich=\E[%p1%d@$<2>,
+       il=\E[%p1%dL$<3*>, il1=\E[L$<3>, ind=\n$<2>, invis=\E[8m,
+       ip=$<4>, is1=\E[?5W,
        is2=\E[2;4;20;30l\E[?1;4;10;16l\E[12h\E[?7;8;25h,
-       is3=\E>\E(B\E)0\017\E[m, kbs=^H, kcbt=\E[Z, kcub1=\E[D,
-       kcud1=\E[B, kcuf1=\E[C, kcuu1=\E[A, kf1=\EOP, kf10=\E[21~,
+       is3=\E>\E(B\E)0\017\E[m, kcbt=\E[Z, kf10=\E[21~,
        kf11=\E[23~, kf12=\E[24~, kf13=\E[25~, kf14=\E[26~,
        kf15=\E[28~, kf16=\E[29~, kf17=\E[31~, kf18=\E[32~,
-       kf19=\E[33~, kf2=\EOQ, kf20=\E[34~, kf3=\EOR, kf4=\EOS,
-       kf6=\E[17~, kf7=\E[18~, kf8=\E[19~, kf9=\E[20~,
-       khlp=\E[28~, khome=\E[26~, lf1=PF1, lf2=PF2, lf3=PF3,
-       lf4=PF4, mc0=\E[0i, mc4=\E[4i, mc5=\E[5i, rc=\E8, rev=\E[7m,
-       ri=\EM$<2>, rmacs=^O, rmam=\E[?7l, rmcup=\E[ R, rmir=\E[4l,
-       rmkx=\E>, rmso=\E[27m, rmul=\E[24m,
-       rs1=\E[13l\E[3l\E\\\E[63;1"p\E[!p, rs2=\E[35h\E[?3l,
-       rs3=\E[?5l\E[47h\E[40l\E[r, sc=\E7,
+       kf19=\E[33~, kf20=\E[34~, kf6=\E[17~, kf7=\E[18~,
+       kf8=\E[19~, kf9=\E[20~, khlp=\E[28~, khome=\E[26~, lf1=PF1,
+       lf2=PF2, lf3=PF3, lf4=PF4, mc0=\E[0i, mc4=\E[4i, mc5=\E[5i,
+       rc=\E8, rev=\E[7m, ri=\EM$<2>, rmacs=^O, rmam=\E[?7l,
+       rmcup=\E[ R, rmir=\E[4l, rmkx=\E>, rmso=\E[27m,
+       rmul=\E[24m, rs1=\E[13l\E[3l\E\\\E[63;1"p\E[!p,
+       rs2=\E[35h\E[?3l, rs3=\E[?5l\E[47h\E[40l\E[r, sc=\E7,
        sgr=\E[0%?%p2%t;4%;%?%p3%p1%|%t;7%;%?%p4%t;5%;%?%p5%t;2%;%?
            %p6%t;1%;%?%p7%t;8%;m%?%p9%t\016%e\017%;,
        sgr0=\E[m\017, smacs=^N, smam=\E[?7h, smcup=\E[ Q,
        smir=\E[4h, smkx=\E[?1l\E=, smso=\E[7m, smul=\E[4m,
-       tbc=\E[3g, tsl=\E7\E[99;%i%p1%dH, vpa=\E[%i%p1%dd,
+       tsl=\E7\E[99;%i%p1%dH, vpa=\E[%i%p1%dd,
+       use=ansi+arrows, use=ansi+inittabs, use=decid+cpr,
        use=vt220+vtedit, use=vt220+keypad,
 #
 #      Wyse 185 with 24 data lines and top status (terminal status)
@@ -13114,19 +13354,19 @@ wy325-43w-vb|wy325-43wvb|Wyse-325 43 lines wide mode visual bell,
 # Bug: The <op> capability resets attributes.
 wy370-nk|Wyse 370 without function keys,
        am, ccc, hs, mc5i, mir, msgr, xenl, xon,
-       colors#64, cols#80, it#8, lines#24, ncv#48, pairs#64, wsl#80,
+       colors#64, cols#80, lines#24, ncv#48, pairs#64, wsl#80,
        acsc=``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~,
-       bel=^G, blink=\E[5m, bold=\E[1m, cbt=\E[Z, civis=\E[?25l,
+       bel=^G, blink=\E[5m, bold=\E[1m, civis=\E[?25l,
        clear=\E[H\E[J$<40>, cnorm=\E[34h\E[?25h, cr=\r,
-       csr=\E[%i%p1%d;%p2%dr, cub=\E[%p1%dD, cub1=^H,
-       cud=\E[%p1%dB, cud1=\n, cuf=\E[%p1%dC, cuf1=\E[C,
-       cup=\E[%i%p1%d;%p2%dH$<1>, cuu=\E[%p1%dA, cuu1=\E[A,
-       cvvis=\E[?25h\E[34l, dch=\E[%p1%dP$<1*>, dch1=\E[P$<1>,
-       dclk=\E[31h, dim=\E[2m, dl=\E[%p1%dM$<2*>, dl1=\E[M$<2>,
-       dsl=\E[40l, ech=\E[%p1%dX$<.1*>, ed=\E[J$<40>,
-       el=\E[K$<10>, el1=\E[1K$<12>, enacs=\E)0,
+       cub=\E[%p1%dD, cub1=^H, cud=\E[%p1%dB, cud1=\n,
+       cuf=\E[%p1%dC, cuf1=\E[C, cup=\E[%i%p1%d;%p2%dH$<1>,
+       cuu=\E[%p1%dA, cuu1=\E[A, cvvis=\E[?25h\E[34l,
+       dch=\E[%p1%dP$<1*>, dch1=\E[P$<1>, dclk=\E[31h,
+       dim=\E[2m, dl=\E[%p1%dM$<2*>, dl1=\E[M$<2>, dsl=\E[40l,
+       ech=\E[%p1%dX$<.1*>, ed=\E[J$<40>, el=\E[K$<10>,
+       el1=\E[1K$<12>, enacs=\E)0,
        flash=\E[30h\E\,$<300/>\E[30l, fsl=\E[1;24r\E8,
-       home=\E[H, hpa=\E[%i%p1%d`, ht=\011$<1>, hts=\EH,
+       home=\E[H, hpa=\E[%i%p1%d`, ht=\011$<1>,
        ich=\E[%p1%d@$<1*>, il=\E[%p1%dL$<2*>, il1=\E[L$<2>,
        ind=\n$<2>,
        initc=\E[66;%p1%d;%?%p2%{250}%<%t%{0}%e%p2%{500}%<%t%{16}%e
@@ -13140,51 +13380,50 @@ wy370-nk|Wyse 370 without function keys,
        mc5=\E[5i,
        oc=\E[60w\E[63;0w\E[66;1;4w\E[66;2;13w\E[66;3;16w\E[66;4;49w
           \E[66;5;51w\E[66;6;61w\E[66;7;64w,
-       op=\E[m, rc=\E8, rev=\E[7m, ri=\EM$<2>, rmacs=^O,
-       rmam=\E[?7l, rmclk=\E[31l, rmcup=\E[ R, rmir=\E[4l,
-       rmkx=\E>, rmso=\E[27m, rmul=\E[24m,
-       rs1=\E[13l\E[3l\E!p\E[?4i, rs2=\E[35h\E[?3l$<8>,
-       rs3=\E[?5l, sc=\E7, setb=\E[62;%p1%dw, setf=\E[61;%p1%dw,
+       op=\E[m, rev=\E[7m, ri=\EM$<2>, rmacs=^O, rmam=\E[?7l,
+       rmclk=\E[31l, rmcup=\E[ R, rmir=\E[4l, rmkx=\E>,
+       rmso=\E[27m, rmul=\E[24m, rs1=\E[13l\E[3l\E!p\E[?4i,
+       rs2=\E[35h\E[?3l$<8>, rs3=\E[?5l, setb=\E[62;%p1%dw,
+       setf=\E[61;%p1%dw,
        sgr=\E[0%?%p2%t;4%;%?%p3%p1%|%t;7%;%?%p4%t;5%;%?%p5%t;2%;%?
            %p6%t;1%;%?%p7%t;8%;m%?%p9%t\016%e\017%;,
        sgr0=\E[m\017, smacs=^N, smam=\E[?7h, smcup=\E[ Q,
        smir=\E[4h, smkx=\E[?1l\E=, smso=\E[7m, smul=\E[4m,
-       tbc=\E[3g, tsl=\E[40l\E[40h\E7\E[99;%i%p1%dH,
-       u0=\E[?38h\E8, u1=\E[?38l\E)0, u2=\E[92;52"p, u3=\E~B,
-       u4=\E[92;76"p, u5=\E%!1\E[90;1"p, vpa=\E[%i%p1%dd,
+       tsl=\E[40l\E[40h\E7\E[99;%i%p1%dH, u0=\E[?38h\E8,
+       u1=\E[?38l\E)0, u2=\E[92;52"p, u3=\E~B, u4=\E[92;76"p,
+       u5=\E%!1\E[90;1"p, vpa=\E[%i%p1%dd, use=ansi+csr,
+       use=ansi+inittabs, use=decid+cpr,
 #
 #      Function key set for the ASCII (wy-50 compatible) keyboard
 #      This is the default 370.
 #
 wy370|wyse370|wy370-101k|Wyse 370 with 101 key keyboard,
-       kbs=^H, kcbt=\E[Z, kcub1=\E[D, kcud1=\E[B, kcuf1=\E[C,
-       kcuu1=\E[A, kdch1=\EOQ, kdl1=\EOQ, kent=\EOM, kf1=\E[?4i,
+       kcbt=\E[Z, kdch1=\EOQ, kdl1=\EOQ, kent=\EOM, kf1=\E[?4i,
        kf10=\E[21~, kf11=\E[23~, kf12=\E[24~, kf13=\E[25~,
        kf14=\E[26~, kf15=\E[28~, kf16=\E[29~, kf2=\E[?3i,
        kf3=\E[2i, kf4=\E[@, kf5=\E[M, kf6=\E[17~, kf7=\E[18~,
-       kf8=\E[19~, kf9=\E[20~, khome=\E[H, kich1=\EOP, kil1=\EOP,
-       knp=\E[U, kpp=\E[V, use=wy370-nk,
+       kf8=\E[19~, kf9=\E[20~, kich1=\EOP, kil1=\EOP, knp=\E[U,
+       kpp=\E[V, use=ansi+arrows, use=wy370-nk,
 #
 #      Function key set for the VT-320 (and wy85) compatible keyboard
 #
 wy370-105k|Wyse 370 with 105 key keyboard,
-       kbs=^H, kcub1=\E[D, kcud1=\E[B, kcuf1=\E[C, kcuu1=\E[A,
        kf10=\E[21~, kf11=\E[23~, kf12=\E[24~, kf13=\E[25~,
        kf14=\E[26~, kf15=\E[28~, kf16=\E[29~, kf17=\E[31~,
        kf18=\E[32~, kf19=\E[33~, kf20=\E[34~, kf6=\E[17~,
        kf7=\E[18~, kf8=\E[19~, kf9=\E[20~, kfnd=\E[1~,
        khlp=\E[28~, khome=\E[26~, lf1=PF1, lf2=PF2, lf3=PF3,
-       lf4=PF4, use=vt220+vtedit, use=wy370-nk,
+       lf4=PF4, use=ansi+arrows, use=vt220+vtedit, use=wy370-nk,
        use=vt220+keypad,
 #
 #      Function key set for the PC compatible keyboard
 #
 wy370-EPC|Wyse 370 with 102 key keyboard,
-       kbs=^H, kcbt=\E[Z, kcub1=\E[D, kcud1=\E[B, kcuf1=\E[C,
-       kcuu1=\E[A, kend=\E[1~, kent=\EOM, kf1=\EOP, kf10=\E[21~,
+       kcbt=\E[Z, kend=\E[1~, kent=\EOM, kf1=\EOP, kf10=\E[21~,
        kf11=\E[23~, kf12=\E[24~, kf2=\EOQ, kf3=\EOR, kf4=\EOS,
        kf5=\E[M, kf6=\E[17~, kf7=\E[18~, kf8=\E[19~, kf9=\E[20~,
-       khome=\E[H, kich1=\E[2~, knp=\E[U, kpp=\E[V, use=wy370-nk,
+       kich1=\E[2~, knp=\E[U, kpp=\E[V, use=ansi+arrows,
+       use=wy370-nk,
 #
 #      Wyse 370 with visual bell.
 wy370-vb|Wyse 370 with visible bell,
@@ -13281,34 +13520,34 @@ wy520|wyse520|Wyse 520,
        acsc=``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~,
        bel=^G, blink=\E[5m, bold=\E[1m, cbt=\E[Z, civis=\E[?25l,
        clear=\E[H\E[J$<40>, cnorm=\E[34h\E[?25h, cr=\r,
-       csr=\E[%i%p1%d;%p2%dr$<20>, cub=\E[%p1%dD, 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,
-       cvvis=\E[?25h\E[34l, dch=\E[%p1%dP$<3>, dch1=\E[P$<30>,
-       dim=\E[2m, dl=\E[%p1%dM$<2*>, dl1=\E[M$<2>, dsl=\E[0$~,
+       cub=\E[%p1%dD, 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, cvvis=\E[?25h\E[34l,
+       dch=\E[%p1%dP$<3>, dch1=\E[P$<30>, dim=\E[2m,
+       dl=\E[%p1%dM$<2*>, dl1=\E[M$<2>, dsl=\E[0$~,
        ech=\E[%p1%dX, ed=\E[J$<40>, el=\E[K, el1=\E[1K,
        enacs=\E)0, fsl=\E[0$}, home=\E[H, hpa=\E[%i%p1%d`, ht=^I,
        hts=\EH, ich=\E[%p1%d@$<2>, il=\E[%p1%dL$<3*>,
        il1=\E[L$<3>, ind=\n$<2>, invis=\E[8m, ip=$<4>, is1=\E[?5W,
        is2=\E[2;4;20;30l\E[?1;4;10;16l\E[12h\E[?7;8;25;67h,
-       is3=\E>\E(B\E)0\017\E[m, kbs=^H, kcbt=\E[Z, kcub1=\E[D,
-       kcud1=\E[B, kcuf1=\E[C, kcuu1=\E[A, ked=\E[1~, kel=\E[4~,
+       is3=\E>\E(B\E)0\017\E[m, kcbt=\E[Z, ked=\E[1~, kel=\E[4~,
        kent=\EOM, kf10=\E[21~, kf11=\E[23~, kf12=\E[24~,
        kf13=\E[25~, kf14=\E[26~, kf15=\E[28~, kf16=\E[29~,
        kf17=\E[31~, kf18=\E[32~, kf19=\E[33~, kf20=\E[34~,
        kf6=\E[17~, kf7=\E[18~, kf8=\E[19~, kf9=\E[20~,
        khlp=\E[28~, khome=\E[26~, lf1=PF1, lf2=PF2, lf3=PF3,
-       lf4=PF4, mc0=\E[0i, mc4=\E[4i, mc5=\E[5i, rc=\E8, rev=\E[7m,
+       lf4=PF4, mc0=\E[0i, mc4=\E[4i, mc5=\E[5i, rev=\E[7m,
        ri=\EM$<2>, rmacs=^O, rmam=\E[?7l, rmcup=\E[ R, rmir=\E[4l,
        rmso=\E[m, rmul=\E[24m,
        rs1=\E[13l\E[3l\E\\\E[63;1"p\E[!p, rs2=\E[35h\E[?3l,
-       rs3=\E[?5l\E[47h\E[40l\E[r, sc=\E7,
+       rs3=\E[?5l\E[47h\E[40l\E[r,
        sgr=\E[0%?%p2%t;4%;%?%p3%p1%|%t;7%;%?%p4%t;5%;%?%p5%t;2%;%?
            %p6%t;1%;%?%p7%t;8%;m%?%p9%t\016%e\017%;,
        sgr0=\E[m\017, smacs=^N, smam=\E[?7h,
        smcup=\E[ Q\E[?67;8h, smir=\E[4h, smso=\E[7m, smul=\E[4m,
        tbc=\E[3g, tsl=\E[2$~\E[1$}\E[%i%p1%d`,
-       vpa=\E[%i%p1%dd, use=vt220+vtedit, use=vt220+keypad,
+       vpa=\E[%i%p1%dd, use=ansi+arrows, use=ansi+csr,
+       use=decid+cpr, use=vt220+vtedit, use=vt220+keypad,
 #
 #       Wyse 520 with 24 data lines and status (terminal status)
 wy520-24|wyse520-24|Wyse 520 with 24 data lines,
@@ -13491,9 +13730,8 @@ pckermit|pckermit12|UCB IBMPC Kermit 1.2,
 # Does not use :am: because autowrap is lost when kermit dropped and restarted.
 # From: greg small <gts@populi.berkeley.edu> 12-19-84
 pckermit120|UCB IBMPC Kermit 1.20,
-       it#8, lines#24,
-       cud1=\EB, cvvis=\EO\Eq\EEK3, dch1=\EN, dl1=\EM, ht=^I,
-       il1=\EL,
+       it#8,
+       cvvis=\EO\Eq\EEK3, dch1=\EN, dl1=\EM, ht=^I, il1=\EL,
        is2=\EO\Eq\EJ\EY7\sK3\sUCB\sIBMPC\sKermit\s1.20\s\s12-19-84
            \n,
        rmir@, rmso=\Eq, smir@, smso=\Ep, use=kermit,
@@ -13545,28 +13783,28 @@ vt320-k3|MS-Kermit 3.00's VT320 emulation,
        am, eslok, hs, km, mir, msgr, xenl,
        cols#80, it#8, lines#49, pb#9600, vt#3,
        acsc=``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~,
-       bel=^G, blink=\E[5m, bold=\E[1m, clear=\E[H\E[J, cmdch=\E,
-       cr=\r, csr=\E[%i%p1%d;%p2%dr, cub=\E[%p1%dD, 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,
-       dch=\E[%p1%dP, dch1=\E[P, dl=\E[%p1%dM, dl1=\E[M,
-       dsl=\E[0$~, ech=\E[%p1%dX, ed=\E[J, el=\E[K,
+       bel=^G, blink=\E[5m, bold=\E[1m, cmdch=\E, cr=\r,
+       cub=\E[%p1%dD, 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, dch=\E[%p1%dP, dch1=\E[P,
+       dsl=\E[0$~, 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@, il=\E[%p1%dL, il1=\E[L, ind=\n,
+       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, rc=\E8,
+       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$~,
-       sc=\E7, sgr0=\E[m, smacs=\E(0, smam=\E[?7h, smir=\E[4h,
+       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=vt220+cvis,
+       tsl=\E[1$}\r\E[K, vpa=\E[%i%p1%dd, use=ansi+csr,
+       use=ansi+erase, use=ansi+idl, use=vt220+cvis,
 
 # From: Joseph Gil <yogi@cs.ubc.ca> 13 Dec 1991
 # ACS capabilities from Philippe De Muyter  <phdm@info.ucl.ac.be> 30 May 1996
@@ -13576,25 +13814,23 @@ vt320-k311|DEC VT320 series as defined by kermit 3.11,
        cols#80, it#8, lines#24, vt#3,
        acsc=``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~,
        bel=^G, blink=\E[5m, bold=\E[1m, clear=\E[;H\E[2J, cr=\r,
-       csr=\E[%i%p1%d;%p2%dr, cub=\E[%p1%dD, 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,
-       dch=\E[%p1%dP, dch1=\E[P, dl=\E[%p1%dM, dl1=\E[M,
+       cub=\E[%p1%dD, 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, dch=\E[%p1%dP, dch1=\E[P,
        dsl=\E[2$~\r\E[1$}\E[K\E[$}, ed=\E[J, el=\E[K,
        flash=\E[?5h$<100/>\E[?5l, fsl=\E[$}, home=\E[H, ht=^I,
-       hts=\EH, ich=\E[%p1%d@, il=\E[%p1%dL, il1=\E[L$<3/>,
-       ind=\ED,
+       hts=\EH, ich=\E[%p1%d@, ind=\ED,
        is2=\E>\E[?3l\E[?4l\E[?5l\E[?7h\E[?8h\E[1;24r\E[24;1H,
        kbs=^H, kcub1=\EOD, kcud1=\EOB, kcuf1=\EOC, kcuu1=\EOA,
        kf1=\EOP, kf2=\EOQ, kf3=\EOR, kf4=\EOS, kf6=\E[17~,
        kf7=\E[18~, kf8=\E[19~, kf9=\E[20~, lf1=pf1, lf2=pf2,
-       lf3=pf3, lf4=pf4, nel=\r\ED, rc=\E8, rev=\E[7m,
+       lf3=pf3, lf4=pf4, nel=\r\ED, rev=\E[7m,
        rf=/usr/share/tabset/vt100, ri=\EM, rmacs=^O,
        rmam=\E[?7l, rmir=\E[4l, rmkx=\E[?1l\E>, rmso=\E[27m,
-       rmul=\E[24m, rs1=\E[?3l, sc=\E7, sgr0=\E[m, smacs=^N,
-       smam=\E[?7h, smir=\E[4h, smkx=\E[?1h\E=, smso=\E[7m,
-       smul=\E[4m, tbc=\E[3g, tsl=\E[2$~\E[1$}\E[1;%dH,
-       use=vt220+cvis,
+       rmul=\E[24m, rs1=\E[?3l, sgr0=\E[m, smacs=^N, smam=\E[?7h,
+       smir=\E[4h, smkx=\E[?1h\E=, smso=\E[7m, smul=\E[4m,
+       tbc=\E[3g, tsl=\E[2$~\E[1$}\E[1;%dH, use=ansi+csr,
+       use=ansi+idl, use=vt220+cvis,
 
 ######## NON-ANSI TERMINAL EMULATIONS
 #
@@ -13689,27 +13925,28 @@ rbcomm|IBM PC with RBcomm and EMACS keybindings,
        am, bw, mir, msgr, xenl,
        cols#80, it#8, lines#25,
        bel=^G, blink=\E[5m, bold=\E[1m, cbt=\E[Z, clear=^L, cr=\r,
-       csr=\E[%i%p1%d;%p2%dr, cub1=^H, cud1=^C, cuf1=^B,
+       cub1=^H, cud1=^C, cuf1=^B,
        cup=\037%p2%{32}%+%c%p1%{32}%+%c, cuu1=^^, dch1=^W,
        dl=\E[%p1%dM, dl1=^Z, ech=\E[%p1%dX, ed=^F5, el=^P^P, ht=^I,
        il=\E[%p1%dL, il1=^K, ind=\ED, invis=\E[8m,
        is2=\017\035\E(B\E)0\E[?7h\E[?3l\E[>8g, kbs=^H,
        kcub1=^B, kcud1=^N, kcuf1=^F, kcuu1=^P, khome=^A, nel=\r\ED,
-       rc=\E8, rep=\030%p1%c%p2%c, rev=^R, ri=\EM, rmcup=, rmdc=,
-       rmir=^], rmkx=\E>, rmso=^U, rmul=^U,
-       rs1=\017\E(B\E)0\025\E[?3l\E[>8g, sc=\E7, sgr0=\E[m,
-       smcup=, smdc=, smir=^\, smkx=\E=, smso=^R, smul=^T,
+       rep=\030%p1%c%p2%c, rev=^R, ri=\EM, rmcup=, rmdc=, rmir=^],
+       rmkx=\E>, rmso=^U, rmul=^U,
+       rs1=\017\E(B\E)0\025\E[?3l\E[>8g, sgr0=\E[m, smcup=,
+       smdc=, smir=^\, smkx=\E=, smso=^R, smul=^T, use=ansi+csr,
        use=vt220+cvis,
+
 rbcomm-nam|IBM PC with RBcomm without autowrap,
        am@,
-       bel=^G, cr=\r, cud1=\n, ht=^I, ind=\n,
-       is2=\017\035\E(B\E)0\E[?7l\E[?3l\E[>8g, kbs=^H,
-       kcub1=^H, kcud1=\n, nel=\r\n, use=rbcomm,
+       cud1=\n, ind=\n,
+       is2=\017\035\E(B\E)0\E[?7l\E[?3l\E[>8g, kcub1=^H,
+       kcud1=\n, nel=\r\n, use=rbcomm,
 rbcomm-w|IBM PC with RBcomm in 132 column mode,
        cols#132,
-       bel=^G, cr=\r, cud1=\n, ht=^I, ind=\n,
-       is2=\017\035\E(B\E)0\E[?7h\E[?3h\E[>8g, kbs=^H,
-       kcub1=^H, kcud1=\n, nel=\r\n, use=rbcomm,
+       cud1=\n, ind=\n,
+       is2=\017\035\E(B\E)0\E[?7h\E[?3h\E[>8g, kcub1=^H,
+       kcud1=\n, nel=\r\n, use=rbcomm,
 
 ######## LCD DISPLAYS
 #
@@ -13768,20 +14005,19 @@ MtxOrb162|16x2 Matrix Orbital LCD display,
 att2300|sv80|AT&T 2300 Video Information Terminal 80 column mode,
        am, eo, mir, msgr, xon,
        cols#80, it#8, lines#24,
-       bel=^G, clear=\E[H\E[J, cr=\r, cub=\E[%p1%dD, 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,
-       dch=\E[%p1%dP, dch1=\E[P, dl=\E[%p1%dM, dl1=\E[M, ed=\E[J,
-       el=\E[K, el1=\E[1K, home=\E[H, ht=^I, ich=\E[%p1%d@,
-       il=\E[%p1%dL, il1=\E[L, ind=\n, kbs=^H, kcbt=\E[Z, kclr=\E[J,
-       kcub1=\E[D, kcud1=\E[B, kcuf1=\E[C, kcuu1=\E[A, kdch1=\E[P,
-       kdl1=\E[M, kf1=\E[1r, kf10=\E[10r, kf11=\E[11r,
-       kf12=\E[12r, kf13=\E[13r, kf14=\E[14r, kf15=\E[15r,
-       kf16=\E[16r, kf2=\E[2r, kf3=\E[3r, kf4=\E[4r, kf5=\E[5r,
-       kf6=\E[6r, kf7=\E[7r, kf8=\E[8r, kf9=\E[9r, khome=\E[H,
-       kich1=\E[@, kil1=\E[L, mc0=\E[0i, mc4=\E[4i, mc5=\E[5i,
-       rev=\E[7m, rmir=\E[4l, rmso=\E[m, sgr0=\E[m, smir=\E[4h,
-       smso=\E[7m,
+       bel=^G, cr=\r, cub=\E[%p1%dD, 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, dch=\E[%p1%dP, dch1=\E[P,
+       el1=\E[1K, home=\E[H, ht=^I, ich=\E[%p1%d@, ind=\n,
+       kcbt=\E[Z, kclr=\E[J, kdch1=\E[P, kdl1=\E[M, kf1=\E[1r,
+       kf10=\E[10r, kf11=\E[11r, kf12=\E[12r, kf13=\E[13r,
+       kf14=\E[14r, kf15=\E[15r, kf16=\E[16r, kf2=\E[2r,
+       kf3=\E[3r, kf4=\E[4r, kf5=\E[5r, kf6=\E[6r, kf7=\E[7r,
+       kf8=\E[8r, kf9=\E[9r, kich1=\E[@, kil1=\E[L, mc0=\E[0i,
+       mc4=\E[4i, mc5=\E[5i, rev=\E[7m, rmir=\E[4l, rmso=\E[m,
+       sgr0=\E[m, smir=\E[4h, smso=\E[7m, use=ansi+arrows,
+       use=ansi+cpr, use=ansi+erase, use=ansi+idl,
+
 att2350|AT&T 2350 Video Information Terminal 80 column mode,
        mc0@, mc4@, mc5@, use=att2300,
 
@@ -13801,11 +14037,10 @@ att5410v1|att4410v1|tty5410v1|AT&T 4410/5410 80 columns - version 1,
        cols#80, it#8, lh#2, lines#24, lw#8, nlab#8, wsl#80,
        acsc=++\,\,--..00``aaffgghhjjkkllmmnnooppqqrrssttuuvvwwxxyyz
             z{{||}}~~,
-       bel=^G, blink=\E[5m, bold=\E[2;7m, clear=\E[H\E[J, cr=\r,
-       csr=\E[%i%p1%d;%p2%dr, cub1=^H, cud1=\E[B, cuf1=\E[C,
-       cup=\E[%i%p1%d;%p2%dH, cuu1=\E[A, dch1=\E[P, dim=\E[2m,
-       dl1=\E[M, ed=\E[J, el=\E[K, fsl=\E8, home=\E[H, ht=^I,
-       ich1=\E[@, il1=\E[L, ind=\n, invis=\E[8m, is1=\E[?3l\E)0,
+       bel=^G, blink=\E[5m, bold=\E[2;7m, cr=\r, cub1=^H, cud1=\E[B,
+       cuf1=\E[C, cup=\E[%i%p1%d;%p2%dH, cuu1=\E[A, dch1=\E[P,
+       dim=\E[2m, dl1=\E[M, fsl=\E8, home=\E[H, ht=^I, ich1=\E[@,
+       il1=\E[L, ind=\n, invis=\E[8m, is1=\E[?3l\E)0,
        is3=\E[1;03q\s\s\sf1\s\s\s\s\s\s\s\s\s\s\s\EOP\E[2;03q\s\s
            \sf2\s\s\s\s\s\s\s\s\s\s\s\EOQ\E[3;03q\s\s\sf3\s\s\s\s
            \s\s\s\s\s\s\s\EOR\E[4;03q\s\s\sf4\s\s\s\s\s\s\s\s\s\s
@@ -13813,19 +14048,18 @@ att5410v1|att4410v1|tty5410v1|AT&T 4410/5410 80 columns - version 1,
            \s\s\sf6\s\s\s\s\s\s\s\s\s\s\s\EOU\E[7;03q\s\s\sf7\s\s
            \s\s\s\s\s\s\s\s\s\EOV\E[8;03q\s\s\sf8\s\s\s\s\s\s\s\s
            \s\s\s\EOW,
-       kbs=^H, kclr=\E[2J, kcub1=\E[D, kcud1=\E[B, kcuf1=\E[C,
-       kcuu1=\E[A, 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,
+       kclr=\E[2J, kf1=\EOP, kf2=\EOQ, kf3=\EOR, kf4=\EOS, kf5=\EOT,
+       kf6=\EOU, kf7=\EOV, kf8=\EOW, kll=\E[24;1H, ll=\E[24H,
+       nel=\r\n,
        pfx=\E[%p1%1d;%p2%l%2.2dq\s\s\sf%p1%1d\s\s\s\s\s\s\s\s\s\s
            \s%p2%s,
-       pln=\E[%p1%d;00q%p2%:-16s, rc=\E8, rev=\E[7m, ri=\EM,
-       rmacs=^O, rmso=\E[m, rmul=\E[m, rs2=\Ec\E[?3l\E[2;0y,
-       sc=\E7,
+       pln=\E[%p1%d;00q%p2%:-16s, rev=\E[7m, ri=\EM, rmacs=^O,
+       rmso=\E[m, rmul=\E[m, rs2=\Ec\E[?3l\E[2;0y,
        sgr=\E[0%?%p1%p5%|%p6%|%t;2%;%?%p2%t;4%;%?%p4%t;5%;%?%p3%p1
            %|%p6%|%t;7%;%?%p7%t;8%;m%?%p9%t\016%e\017%;,
        sgr0=\E[m\017, smacs=^N, smso=\E[7m, smul=\E[4m,
-       tsl=\E7\E[25;%p1%{1}%+%dH,
+       tsl=\E7\E[25;%p1%{1}%+%dH, use=ansi+arrows,
+       use=ansi+csr, use=ansi+erase,
 
 att4410v1-w|att5410v1-w|tty5410v1-w|AT&T 4410/5410 132 columns - version 1,
        cols#132, wsl#132,
@@ -13847,21 +14081,20 @@ v5410|att5410 in terms of a VT100,
        cols#80, it#8, lines#24, vt#3,
        acsc=``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~,
        bel=^G, blink=\E[5m$<2>, bold=\E[1m$<2>,
-       clear=\E[H\E[J$<50>, cr=\r, csr=\E[%i%p1%d;%p2%dr,
-       cub1=^H, cud1=\n, cuf1=\E[C$<2>,
-       cup=\E[%i%p1%d;%p2%dH$<5>, cuu1=\E[A$<2>, dch1=\E[P,
-       dl1=\E[M, ed=\E[J$<50>, el=\E[K$<3>, el1=\E[1K$<3>,
-       enacs=\E(B\E)0, home=\E[H, ht=^I, hts=\EH, ich1=\E[@,
-       il1=\E[L, ind=\n, kbs=^H, kcub1=\EOD, kcud1=\EOB, kcuf1=\EOC,
-       kcuu1=\EOA, rc=\E8, rev=\E[7m$<2>, ri=\EM$<5>, rmacs=^O,
-       rmam=\E[?7l, rmkx=\E[?1l\E>, rmso=\E[m$<2>,
-       rmul=\E[m$<2>, rs2=\E>\E[?3l\E[?4l\E[?5l\E[?7h\E[?8h,
-       sc=\E7,
+       clear=\E[H\E[J$<50>, cr=\r, cub1=^H, cud1=\n,
+       cuf1=\E[C$<2>, cup=\E[%i%p1%d;%p2%dH$<5>,
+       cuu1=\E[A$<2>, dch1=\E[P, dl1=\E[M, ed=\E[J$<50>,
+       el=\E[K$<3>, el1=\E[1K$<3>, enacs=\E(B\E)0, home=\E[H,
+       ht=^I, hts=\EH, ich1=\E[@, il1=\E[L, ind=\n, kbs=^H,
+       kcub1=\EOD, kcud1=\EOB, kcuf1=\EOC, kcuu1=\EOA,
+       rev=\E[7m$<2>, ri=\EM$<5>, rmacs=^O, rmam=\E[?7l,
+       rmkx=\E[?1l\E>, rmso=\E[m$<2>, rmul=\E[m$<2>,
+       rs2=\E>\E[?3l\E[?4l\E[?5l\E[?7h\E[?8h,
        sgr=\E[0%?%p1%p6%|%t;1%;%?%p2%t;4%;%?%p1%p3%|%t;7%;%?%p4%t;5
            %;m%?%p9%t\016%e\017%;$<2>,
        sgr0=\E[m\017$<2>, smacs=^N, smam=\E[?7h, smkx=\E[?1h\E=,
        smso=\E[1;7m$<2>, smul=\E[4m$<2>, tbc=\E[3g,
-       use=vt100+fnkeys,
+       use=ansi+csr, use=decid+cpr, use=vt100+fnkeys,
 
 #
 # Teletype Model 5420 -- A souped up 5410, with multiple windows,
@@ -13901,15 +14134,14 @@ v5410|att5410 in terms of a VT100,
 # when pressed in SYS PF mode.
 # (att4415: I added <rmam>/<smam> based on the init string -- esr)
 att4415|tty5420|att5420|AT&T 4415/5420 80 cols,
-       OTbs, db, mir, xon,
-       lh#2, lm#78, lw#8, nlab#8, wsl#55,
-       cbt=\E[Z, clear=\E[x\E[J, cnorm=\E[11;0j, cub=\E[%p1%dD,
+       db,
+       lm#78, wsl#55,
+       clear=\E[x\E[J, cnorm=\E[11;0j, cub=\E[%p1%dD,
        cud=\E[%p1%dB, cuf=\E[%p1%dC, cup=\E[%i%p1%d;%p2%dx,
-       cuu=\E[%p1%dA, cvvis=\E[11;1j, dch=\E[%p1%dP,
-       dl=\E[%p1%dM, ech=\E[%p1%ds\E[%p1%dD,
+       cuu=\E[%p1%dA, cvvis=\E[11;1j, ech=\E[%p1%ds\E[%p1%dD,
        flash=\E[?5h$<200>\E[?5l, home=\E[x,
-       hpa=\E[%p1%{1}%+%dG, hts=\EH, ich=\E[%p1%d@, ich1@,
-       il=\E[%p1%dL, indn=\E[%p1%dE, is1=\E[?3l$<100>,
+       hpa=\E[%p1%{1}%+%dG, ich1@, indn=\E[%p1%dE,
+       is1=\E[?3l$<100>,
        is2=\E[m\017\E[1;2;3;4;6l\E[12;13;14;20l\E[?6;97;99l\E[?7h
            \E[4i\Ex\E[21;1j\212,
        is3=\E[?5l, kbeg=\Et, kcbt=\E[Z, kdch1=\E[P, kdl1=\E[M,
@@ -13921,14 +14153,14 @@ att4415|tty5420|att5420|AT&T 4415/5420 80 cols,
        mc5=\E[?4i, mrcup=\E[%i%p1%d;%p2%dt,
        pfx=\E[%p1%d;%p2%l%02dq   F%p1%d           %p2%s,
        pln=\E[%p1%d;0;0;0q%p2%:-16.16s, prot=\EV,
-       rin=\E[%p1%dF, rmam=\E[?7l, rmir=\E[4l,
-       rmkx=\E[19;0j\E[21;1j\212, rmln=\E|,
+       rin=\E[%p1%dF, rmam=\E[?7l, rmkx=\E[19;0j\E[21;1j\212,
+       rmln=\E|,
        sgr=\E[0%?%p1%p5%|%p6%|%t;2%;%?%p2%t;4%;%?%p4%t;5%;%?%p3%p1
            %|%p6%|%t;7%;%?%p7%t;8%;m%?%p8%t\EV%;%?%p9%t\016%e\017%;,
-       sgr0=\E[m\017, smam=\E[?7h, smir=\E[4h,
-       smkx=\E[19;1j\E[21;4j\Eent, smln=\E~, tbc=\E[3g,
-       tsl=\E7\E[25;%p1%{8}%+%dH, vpa=\E[%p1%{1}%+%dd,
-       use=att4410,
+       sgr0=\E[m\017, smam=\E[?7h, smkx=\E[19;1j\E[21;4j\Eent,
+       smln=\E~, tsl=\E7\E[25;%p1%{8}%+%dH,
+       vpa=\E[%p1%{1}%+%dd, use=ansi+idc, use=ansi+idl,
+       use=ansi+inittabs, use=att4410,
 
 att4415-w|tty5420-w|att5420-w|AT&T 4415/5420 132 cols,
        cols#132, lm#54, wsl#97,
@@ -13969,40 +14201,38 @@ att4415-w-rv-n|tty5420-w-rv-n|att5420-w-rv-n|AT&T 4415/5420 132 cols reverse wit
 
 att5420_2|AT&T 5420 model 2 80 cols,
        am, db, hs, mir, msgr, xon,
-       cols#80, it#8, lh#2, lines#24, lm#78, lw#8, nlab#8, wsl#55,
+       cols#80, lh#2, lines#24, lm#78, lw#8, nlab#8, wsl#55,
        acsc=``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~,
        blink=\E[5m, cbt=\E[1Z, clear=\EH\EJ, cnorm=\E[11;0j,
-       cr=\EG, csr=\E[%i%p1%d;%p2%dr, cub=\E[%p1%dD, cub1=^H,
-       cud=\E[%p1%dB, cud1=\E[1B, cuf=\E[%p1%dC, cuf1=\E[1C,
-       cup=\E[%i%p1%d;%p2%dH, cuu=\E[%p1%dA, cuu1=\E[1A,
-       cvvis=\E[11;1j, dch=\E[%p1%dP, dch1=\E[P, dim=\E[2m,
-       dl=\E[%p1%dM, dl1=\E[M, ech=\E[%p1%ds\E[%p1%dD, ed=\E[0J,
+       cr=\EG, cub=\E[%p1%dD, cub1=^H, cud=\E[%p1%dB, cud1=\E[1B,
+       cuf=\E[%p1%dC, cuf1=\E[1C, cup=\E[%i%p1%d;%p2%dH,
+       cuu=\E[%p1%dA, cuu1=\E[1A, cvvis=\E[11;1j, dch=\E[%p1%dP,
+       dch1=\E[P, dim=\E[2m, ech=\E[%p1%ds\E[%p1%dD, ed=\E[0J,
        el=\E[0K, el1=\E[1K, flash=\E[?5h$<200>\E[?5l, fsl=\E8,
-       home=\E[H, hpa=\E[%p1%{1}%+%dG, ht=^I, hts=\EH,
-       ich=\E[%p1%d@, ich1=\E[@, il=\E[%p1%dL, il1=\E[L, ind=\n,
-       indn=\E[%p1%dE, invis=\E[8m,
+       home=\E[H, hpa=\E[%p1%{1}%+%dG, ich=\E[%p1%d@, ich1=\E[@,
+       ind=\n, indn=\E[%p1%dE, invis=\E[8m,
        is1=\E[0;23r\Ex\Ey\E[2;0j\E[3;3j\E[4;0j\E[5;0j\E[6;0j\E[7;0j
            \E[8;0j\E[9;1j\E[10;0j\E[15;0j\E[16;1j\E[19;0j\E[20;1j
            \E[29;0j\E[1;24r,
-       kbeg=\Et, kbs=^H, kcbt=\E[Z, kclr=\E[2J, kcub1=\E[D,
-       kcud1=\E[B, kcuf1=\E[C, kcuu1=\E[A, kdch1=\E[P, kdl1=\E[M,
+       kbeg=\Et, kcbt=\E[Z, kclr=\E[2J, kdch1=\E[P, kdl1=\E[M,
        kel=\E[2K, kend=\Ez, kent=\n, kf1=\EOc, kf2=\EOd, kf3=\EOe,
-       kf4=\EOf, kf5=\EOg, kf6=\EOh, kf7=\EOi, kf8=\EOj, khome=\E[H,
+       kf4=\EOf, kf5=\EOg, kf6=\EOh, kf7=\EOi, kf8=\EOj,
        kich1=\E[4h, kil1=\E[L, kind=\E[T, kll=\Eu, knp=\E[U,
        kpp=\E[V, kri=\E[S, lf1=F1, lf2=F2, lf3=F3, lf4=F4, lf5=F5,
        lf6=F6, lf7=F7, lf8=F8, ll=\Ew, mc0=\E[?;2i, mc4=\E[4i,
        mc5=\E[5i, mrcup=\E[%i%p1%d;%p2%dt, nel=\r\n,
        pfx=\E[%p1%d;%p2%l%02dq\s\s\sF%p1%d\s\s\s\s\s\s\s\s\s\s\s%p2
            %s\E~,
-       pln=\E[%p1%d;0;0;0q%p2%:-16.16s\E~, prot=\EV, rc=\E8,
+       pln=\E[%p1%d;0;0;0q%p2%:-16.16s\E~, prot=\EV,
        rev=\E[7m, ri=\EM, rin=\E[%p1%dF, rmacs=^O, rmkx=\E[19;0j,
        rmln=\E|, rmso=\E[m, rmul=\E[m, rs2=\Ec\E[?3l\E[2;0y,
-       sc=\E7,
        sgr=\E[0%?%p1%p5%|%t;2%;%?%p2%p6%|%t;4%;%?%p4%t;5%;%?%p3%p1
            %|%p6%|%t;7%;%?%p7%t;8%;m%?%p9%t\016%e\017%;%?%p8%t\EV%;,
        sgr0=\E[m\017, smacs=^N, smkx=\E[19;1j, smln=\E~,
-       smso=\E[7m, smul=\E[4m, tbc=\E[3g,
-       tsl=\E7\E[25;%p1%{8}%+%dH, vpa=\E[%p1%{1}%+%dd,
+       smso=\E[7m, smul=\E[4m, tsl=\E7\E[25;%p1%{8}%+%dH,
+       vpa=\E[%p1%{1}%+%dd, use=ansi+arrows, use=ansi+csr,
+       use=ansi+idl, use=ansi+inittabs, use=decid+cpr,
+
 att5420_2-w|AT&T 5420 model 2 in 132 column mode,
        cols#132,
        is1=\E[0;23r\Ex\Ey\E[2;0j\E[3;3j\E[4;0j\E[5;1j\E[6;0j\E[7;0j
@@ -14017,17 +14247,18 @@ att4418|att5418|AT&T 5418 80 cols,
        bel=^G, blink=\E[5m, clear=\E[H\E[2J, cr=\r, cub=\E[%p1%dD,
        cub1=\E[D, cud=\E[%p1%dB, cud1=\E[B, cuf=\E[%p1%dC,
        cuf1=\E[C, cup=\E[%i%p1%d;%p2%dH, cuu=\E[%p1%dA,
-       cuu1=\E[A, dch=\E[%p1%dP, dch1=\E[1P, dim=\E[2m,
-       dl=\E[%p1%dM, dl1=\E[M, ed=\E[0J, el=\E[0K, home=\E[H,
-       ich=\E[%p1%d@, ich1=\E[1@, il=\E[%p1%dL, il1=\E[1L, ind=\n,
-       is1=\E[?3l, is2=\E)0\E?6l\E?5l, kclr=\E[%%, kcub1=\E@,
-       kcud1=\EU, kcuf1=\EA, kcuu1=\ES, kent=\E[, kf1=\E[h,
-       kf10=\E[m, kf11=\E[n, kf12=\E[o, kf13=\E[H, kf14=\E[I,
-       kf15=\E[J, kf18=\E[K, kf19=\E[L, kf2=\E[i, kf20=\E[E,
-       kf21=\E[_, kf22=\E[M, kf23=\E[N, kf24=\E[O, kf3=\E[j,
-       kf6=\E[k, kf7=\E[l, kf8=\E[f, kf9=\E[w, khome=\Ec, rc=\E8,
-       rev=\E[7m, rmacs=^O, rmso=\E[m, rmul=\E[m, sc=\E7,
+       cuu1=\E[A, dch=\E[%p1%dP, dch1=\E[1P, dim=\E[2m, ed=\E[0J,
+       el=\E[0K, home=\E[H, ich=\E[%p1%d@, ich1=\E[1@, il1=\E[1L,
+       ind=\n, is1=\E[?3l, is2=\E)0\E?6l\E?5l, kclr=\E[%%,
+       kcub1=\E@, kcud1=\EU, kcuf1=\EA, kcuu1=\ES, kent=\E[,
+       kf1=\E[h, kf10=\E[m, kf11=\E[n, kf12=\E[o, kf13=\E[H,
+       kf14=\E[I, kf15=\E[J, kf18=\E[K, kf19=\E[L, kf2=\E[i,
+       kf20=\E[E, kf21=\E[_, kf22=\E[M, kf23=\E[N, kf24=\E[O,
+       kf3=\E[j, kf6=\E[k, kf7=\E[l, kf8=\E[f, kf9=\E[w, khome=\Ec,
+       rc=\E8, rev=\E[7m, rmacs=^O, rmso=\E[m, rmul=\E[m, sc=\E7,
        sgr0=\E[m\017, smacs=^N, smso=\E[7m, smul=\E[4m,
+       use=ansi+idl,
+
 att4418-w|att5418-w|AT&T 5418 132 cols,
        cols#132,
        is1=\E[?3h, use=att5418,
@@ -14070,14 +14301,12 @@ att4424|tty4424|Teletype 4424,
        dch=\E[%p1%dP, dch1=\EP, dim=\EW, dl=\E[%p1%dM, dl1=\EM,
        ed=\EJ, el=\Ez, home=\E[H, ht=^I, hts=\EH, ich=\E[%p1%d@,
        ich1=\E\^, il=\E[%p1%dL, il1=\EL, ind=\n, is2=\E[20l\E[?7h,
-       kbs=^H, kclr=\EJ, kcub1=\E[D, kcud1=\E[B, kcuf1=\E[C,
-       kcuu1=\E[A, kf1=\EOP, kf2=\EOQ, kf3=\EOR, kf4=\EOS,
-       khome=\E[H, nel=\EE, rev=\E}, ri=\ET, rmacs=\E(B, rmso=\E~,
-       rmul=\EZ,
+       kclr=\EJ, kf1=\EOP, kf2=\EOQ, kf3=\EOR, kf4=\EOS, nel=\EE,
+       rev=\E}, ri=\ET, rmacs=\E(B, rmso=\E~, rmul=\EZ,
        sgr=\EX\E~\EZ\E4\E(B%?%p1%p3%|%t\E}%;%?%p2%t\E\\%;%?%p4%p6%|
            %t\E3%;%?%p5%t\EW%;%?%p9%t\E(0%;,
        sgr0=\EX\E~\EZ\E4\E(B, smacs=\E(0, smso=\E}, smul=\E\\,
-       tbc=\EF,
+       tbc=\EF, use=ansi+arrows,
 
 att4424-1|tty4424-1|Teletype 4424 in display function group I,
        kclr@, kcub1=\ED, kcud1=\EB, kcuf1=\EC, kcuu1=\EA, khome@,
@@ -14095,10 +14324,9 @@ att4424m|tty4424m|Teletype 4424M,
        bel=^G, clear=\E[2;H\E[J, cr=\r, cub1=^H, cud1=\n, cuf1=\E[C,
        cup=\E[%i%p1%2d;%p2%2dH\E[B, cuu1=\E[A, dch1=\EP,
        dl1=\EM, el=\E[K, ht=^I, ich1=\E\^, il1=\EL, ind=\n, ip=$<2/>,
-       is2=\E[m\E[2;24r, kbs=^H, kcub1=\E[D, kcud1=\E[B,
-       kcuf1=\E[C, kcuu1=\E[A, kf1=\EOP, kf2=\EOQ, kf3=\EOR,
-       kf4=\EOS, khome=\E[H, nel=\r\n, ri=\ET, rmso=\E[m, rmul=\E[m,
-       sgr0=\E[m, smso=\E[7m, smul=\E[4m,
+       is2=\E[m\E[2;24r, kf1=\EOP, kf2=\EOQ, kf3=\EOR, kf4=\EOS,
+       nel=\r\n, ri=\ET, rmso=\E[m, rmul=\E[m, sgr0=\E[m,
+       smso=\E[7m, smul=\E[4m, use=ansi+arrows,
 
 # The Teletype 5425 is really version 2 of the Teletype 5420. It
 # is quite similar, except for some minor differences. No page
@@ -14111,40 +14339,36 @@ att4424m|tty4424m|Teletype 4424M,
 # (att5425: added <rmam>/<smam> based on the init string -- esr)
 att5425|tty5425|att4425|AT&T 4425/5425,
        am, da, db, hs, mir, msgr, xenl, xon,
-       cols#80, it#8, lh#2, lines#24, lm#78, lw#8, nlab#8, wsl#55,
+       cols#80, lh#2, lines#24, lm#78, lw#8, nlab#8, wsl#55,
        acsc=``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~,
-       bel=^G, blink=\E[5m, bold=\E[2;7m, cbt=\E[Z,
-       clear=\E[H\E[J, cnorm=\E[12;0j, cr=\r,
-       csr=\E[%i%p1%d;%p2%dr, cub=\E[%p1%dD, 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,
-       cvvis=\E[12;1j, dch=\E[%p1%dP, dch1=\E[P, dim=\E[2m,
-       dl=\E[%p1%dM, dl1=\E[M, ech=\E[%p1%ds\E[%p1%dD, ed=\E[J,
-       el=\E[K, el1=\E[1K, enacs=\E(B\E)0,
-       flash=\E[?5h$<200>\E[?5l, fsl=\E8, home=\E[H,
-       hpa=\E[%p1%{1}%+%dG, ht=^I, hts=\EH, ich=\E[%p1%d@,
-       il=\E[%p1%dL, il1=\E[L, ind=\n, indn=\E[%p1%dE,
-       invis=\E[8m, is1=\E<\E[?3l$<100>,
+       bel=^G, blink=\E[5m, bold=\E[2;7m, cnorm=\E[12;0j, cr=\r,
+       cub=\E[%p1%dD, 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, cvvis=\E[12;1j, dch=\E[%p1%dP,
+       dch1=\E[P, dim=\E[2m, ech=\E[%p1%ds\E[%p1%dD, el1=\E[1K,
+       enacs=\E(B\E)0, flash=\E[?5h$<200>\E[?5l, fsl=\E8,
+       home=\E[H, hpa=\E[%p1%{1}%+%dG, ich=\E[%p1%d@, ind=\n,
+       indn=\E[%p1%dE, invis=\E[8m, is1=\E<\E[?3l$<100>,
        is2=\E[m\017\E[1;2;3;4;6l\E[12;13;14;20l\E[?6;97;99l\E[?7h
            \E[4i\Ex\E[25;1j\212,
-       is3=\E[?5l, kbeg=\Et, kbs=^H, kcbt=\E[Z, kclr=\E[J,
-       kcub1=\E[D, kcud1=\E[B, kcuf1=\E[C, kcuu1=\E[A, kdch1=\E[P,
+       is3=\E[?5l, kbeg=\Et, kcbt=\E[Z, kclr=\E[J, kdch1=\E[P,
        kdl1=\E[M, kel=\E[2K, kend=\Ez, kent=\Eent, kf1=\EOc,
        kf2=\EOd, kf3=\EOe, kf4=\EOf, kf5=\EOg, kf6=\EOh, kf7=\EOi,
-       kf8=\EOj, khome=\E[H, kich1=\E[4h, kil1=\E[L, kind=\E[T,
-       kri=\E[S, ll=\E[24H, mc0=\E[?2i, mc4=\E[?9i, mc5=\E[?4i,
-       nel=\r\n,
+       kf8=\EOj, kich1=\E[4h, kil1=\E[L, kind=\E[T, kri=\E[S,
+       ll=\E[24H, mc0=\E[?2i, mc4=\E[?9i, mc5=\E[?4i, nel=\r\n,
        pfx=\E[%p1%d;%p2%l%02dq   F%p1%1d           %p2%s,
-       pln=\E[%p1%d;0;0;0q%p2%:-16.16s, prot=\EV, rc=\E8,
-       rev=\E[7m, ri=\EM, rin=\E[%p1%dF, rmacs=^O, rmam=\E[?7l,
-       rmir=\E[4l, rmkx=\E[21;0j\E[25;1j\212, rmln=\E|,
-       rmso=\E[m, rmul=\E[m, rs2=\Ec\E[?3l\E[2;0y, sc=\E7,
+       pln=\E[%p1%d;0;0;0q%p2%:-16.16s, prot=\EV, rev=\E[7m,
+       ri=\EM, rin=\E[%p1%dF, rmacs=^O, rmam=\E[?7l, rmir=\E[4l,
+       rmkx=\E[21;0j\E[25;1j\212, rmln=\E|, rmso=\E[m,
+       rmul=\E[m, rs2=\Ec\E[?3l\E[2;0y,
        sgr=\E[0%?%p5%p6%|%t;2%;%?%p2%t;4%;%?%p4%t;5%;%?%p3%p1%|%p6
            %|%t;7%;%?%p7%t;8%;m%?%p8%t\EV%;%?%p9%t\016%e\017%;,
        sgr0=\E[m\017, smacs=^N, smam=\E[?7h, smir=\E[4h,
        smkx=\E[21;1j\E[25;4j\Eent\E~, smln=\E~, smso=\E[7m,
-       smul=\E[4m, tbc=\E[3g, tsl=\E7\E[25;%p1%{8}%+%dH,
-       vpa=\E[%p1%{1}%+%dd,
+       smul=\E[4m, tsl=\E7\E[25;%p1%{8}%+%dH,
+       vpa=\E[%p1%{1}%+%dd, use=ansi+arrows, use=ansi+csr,
+       use=ansi+erase, use=ansi+idl, use=ansi+inittabs,
+       use=decid+cpr,
 
 att5425-nl|tty5425-nl|att4425-nl|AT&T 4425/5425 80 columns no labels,
        smkx=\E[21;1j\E[25;4j\Eent, use=att4425,
@@ -14162,10 +14386,9 @@ att4426|tty4426|Teletype 4426S,
        bel=^G, bold=\E[5m, clear=\E[H\E[2J\E[1U\E[H\E[2J\E[1V,
        cr=\r, cub=\E[%p1%dD, cub1=\E[D, cud=\E[%p1%dB, cud1=\E[B,
        cuf=\E[%p1%dC, cuf1=\E[C, cup=\E[%i%p1%d;%p2%dH,
-       cuu=\E[%p1%dA, cuu1=\E[A, dch=\E[%p1%dP, dch1=\EP,
-       dl=\E[%p1%dM, dl1=\E[M, ed=\E[J, el=\E[0K, home=\E[H,
-       hpa=\E[%p1%dG, ht=^I, hts=\E1, ich=\E[%p1%d@, ich1=\E\^,
-       il=\E[%p1%dL, il1=\EL, ind=\n, is1=\Ec\E[?7h,
+       cuu=\E[%p1%dA, cuu1=\E[A, 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,
@@ -14173,7 +14396,7 @@ att4426|tty4426|Teletype 4426S,
        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=ecma+index,
+       vpa=\E[%p1%dd, use=ansi+idl, use=ecma+index,
 
 # Terminfo entry for the AT&T 510 A Personal Terminal
 # Function keys 9 - 16 are available only after the
@@ -14192,21 +14415,21 @@ att510a|bct510a|AT&T 510A Personal Terminal,
        cub=\E[%p1%dD, cub1=^H, cud=\E[%p1%dB, cud1=\E[B,
        cuf=\E[%p1%dC, cuf1=\E[C, cup=\E[%i%p1%d;%p2%dH,
        cuu=\E[%p1%dA, cuu1=\E[A, cvvis=\E[11;2|, dch=\E[%p1%dP,
-       dch1=\E[P, dim=\E[2m, dl=\E[%p1%dM, dl1=\E[M, ed=\E[0J,
-       el=\E[0K, el1=\E[1K, enacs=\E(B\E)1, ff=^L, home=\E[H, ht=^I,
-       hts=\EH, il=\E[%p1%dL, il1=\E[L, ind=\n, is1=\E(B\E)1\E[2l,
-       is3=\E[21;1|\212, kLFT=\E[u, kRIT=\E[v, kbs=^H, kcbt=\E[Z,
-       kcub1=\E[D, kcud1=\E[B, kcuf1=\E[C, kcuu1=\E[A, kf1=\EOm,
-       kf10=\EOd, kf11=\EOe, kf12=\EOf, kf13=\EOg, kf14=\EOh,
-       kf15=\EOi, kf16=\EOj, kf2=\EOV, kf3=\EOu, kf4=\ENj, kf5=\ENe,
-       kf6=\ENf, kf7=\ENh, kf8=\E[H, kf9=\EOc, kind=\E[S, kri=\E[T,
-       mc0=\E[0i, mc4=\E[?8i, mc5=\E[?4i, nel=\EE,
-       pln=\E[%p1%dp%p2%:-16s, rc=\E8, rev=\E[7m, ri=\EM,
-       rmacs=^O, rmkx=\E[19;0|, rmso=\E[m, rmul=\E[m, sc=\E7,
+       dch1=\E[P, dim=\E[2m, ed=\E[0J, el=\E[0K, el1=\E[1K,
+       enacs=\E(B\E)1, ff=^L, home=\E[H, ht=^I, hts=\EH, ind=\n,
+       is1=\E(B\E)1\E[2l, is3=\E[21;1|\212, kLFT=\E[u,
+       kRIT=\E[v, kbs=^H, kcbt=\E[Z, kcub1=\E[D, kcud1=\E[B,
+       kcuf1=\E[C, kcuu1=\E[A, kf1=\EOm, kf10=\EOd, kf11=\EOe,
+       kf12=\EOf, kf13=\EOg, kf14=\EOh, kf15=\EOi, kf16=\EOj,
+       kf2=\EOV, kf3=\EOu, kf4=\ENj, kf5=\ENe, kf6=\ENf, kf7=\ENh,
+       kf8=\E[H, kf9=\EOc, kind=\E[S, kri=\E[T, mc0=\E[0i,
+       mc4=\E[?8i, mc5=\E[?4i, nel=\EE, pln=\E[%p1%dp%p2%:-16s,
+       rc=\E8, rev=\E[7m, ri=\EM, rmacs=^O, rmkx=\E[19;0|,
+       rmso=\E[m, rmul=\E[m, sc=\E7,
        sgr=\E[0%?%p5%p6%|%t;2%;%?%p2%t;4%;%?%p4%t;5%;%?%p3%p1%|%p6
            %|%t;7%;m%?%p9%t\016%e\017%;,
        sgr0=\E[m\017, smacs=^N, smkx=\E[19;1|, smso=\E[7m,
-       smul=\E[4m, tbc=\E[3g,
+       smul=\E[4m, tbc=\E[3g, use=ansi+cpr, use=ansi+idl,
 
 # Terminfo entry for the AT&T 510 D Personal Terminal
 # Function keys 9 through 16 are accessed by bringing up the
@@ -14226,17 +14449,15 @@ att510d|bct510d|AT&T 510D Personal Terminal,
        cub1=^H, cud=\E[%p1%dB, cud1=\E[B, cuf=\E[%p1%dC,
        cuf1=\E[C, cup=\E[%i%p1%d;%p2%dH, cuu=\E[%p1%dA,
        cuu1=\E[A, cvvis=\E[11;2|, dch=\E[%p1%dP, dch1=\E[P,
-       dim=\E[2m, dl=\E[%p1%dM, dl1=\E[M, ed=\E[0J, el=\E[0K,
-       el1=\E[1K, enacs=\E(B\E)1, ff=^L, home=\E[H,
-       hpa=\E[%p1%{1}%+%dG, ht=^I, hts=\EH, ich=\E[%p1%d@,
-       il=\E[%p1%dL, il1=\E[L, ind=\n, invis=\E[8m,
-       is1=\E(B\E)1\E[5;0|, is3=\E[21;1|\212, kLFT=\E[u,
-       kRIT=\E[v, kbs=^H, kcbt=\E[Z, kcub1=\E[D, kcud1=\E[B,
-       kcuf1=\E[C, kcuu1=\E[A, kf1=\EOm, kf10=\EOd, kf11=\EOe,
-       kf12=\EOf, kf13=\EOg, kf14=\EOh, kf15=\EOi, kf16=\EOj,
-       kf2=\EOV, kf3=\EOu, kf4=\ENj, kf5=\ENe, kf6=\ENf, kf7=\ENh,
-       kf8=\E[H, kf9=\EOc, kind=\E[S, kri=\E[T, ll=\E#2, mc0=\E[0i,
-       mc4=\E[?8i, mc5=\E[?4i, mgc=\E:, nel=\EE,
+       dim=\E[2m, ed=\E[0J, el=\E[0K, el1=\E[1K, enacs=\E(B\E)1,
+       ff=^L, home=\E[H, hpa=\E[%p1%{1}%+%dG, ht=^I, hts=\EH,
+       ich=\E[%p1%d@, ind=\n, invis=\E[8m, is1=\E(B\E)1\E[5;0|,
+       is3=\E[21;1|\212, kLFT=\E[u, kRIT=\E[v, kbs=^H, kcbt=\E[Z,
+       kcub1=\E[D, kcud1=\E[B, kcuf1=\E[C, kcuu1=\E[A, kf1=\EOm,
+       kf10=\EOd, kf11=\EOe, kf12=\EOf, kf13=\EOg, kf14=\EOh,
+       kf15=\EOi, kf16=\EOj, kf2=\EOV, kf3=\EOu, kf4=\ENj, kf5=\ENe,
+       kf6=\ENf, kf7=\ENh, kf8=\E[H, kf9=\EOc, kind=\E[S, kri=\E[T,
+       ll=\E#2, mc0=\E[0i, mc4=\E[?8i, mc5=\E[?4i, mgc=\E:, nel=\EE,
        pln=\E[%p1%dp%p2%:-16s, rc=\E8, rev=\E[7m, ri=\EM,
        rmacs=^O, rmir=\E[4l, rmkx=\E[19;0|, rmln=\E<, rmso=\E[m,
        rmul=\E[m, rmxon=\E[29;1|, rs2=\E[5;0|, sc=\E7,
@@ -14245,7 +14466,7 @@ att510d|bct510d|AT&T 510D Personal Terminal,
        sgr0=\E[m\017, smacs=^N, smgl=\E4, smgr=\E5, smir=\E[4h,
        smkx=\E[19;1|, smln=\E?, smso=\E[7m, smul=\E[4m,
        smxon=\E[29;0|, tbc=\E[3g, vpa=\E[%p1%{1}%+%dd,
-       use=ansi+rep, use=ecma+index,
+       use=ansi+cpr, use=ansi+idl, use=ansi+rep, use=ecma+index,
 
 # (att500: I merged this with the att513 entry, att500 just used att513 -- esr)
 att500|att513|AT&T 513 using page mode,
@@ -14253,28 +14474,25 @@ att500|att513|AT&T 513 using page mode,
        cols#80, lh#2, lines#24, lw#8, nlab#8,
        acsc=+g\,h-f.e`bhrisjjkkllmmnnqqttuuvvwwxx{{||}}~~,
        bel=^G, blink=\E[5m, bold=\E[2;7m, cbt=\E[Z,
-       clear=\E[H\E[J, cnorm=\E[11;0|, cr=\r,
-       csr=%i\E[%p1%d;%p2%dr, cub=\E[%p1%dD, 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,
-       cvvis=\E[11;1|, dch=\E[%p1%dP, dch1=\E[P$<1>, dim=\E[2m,
-       dl=\E[%p1%dM, dl1=\E[M, ed=\E[J, el=\E[K, el1=\E[1K,
-       enacs=\E(B\E)1, home=\E[H, hpa=\E[%p1%{1}%+%dG, ht=^I,
-       hts=\EH, ich=\E[%p1%d@, il=\E[%p1%dL, il1=\E[L, ind=\n,
-       indn=\E[%p1%dE, invis=\E[8m,
+       cnorm=\E[11;0|, cr=\r, csr=%i\E[%p1%d;%p2%dr,
+       cub=\E[%p1%dD, 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, cvvis=\E[11;1|, dch=\E[%p1%dP,
+       dch1=\E[P$<1>, dim=\E[2m, el1=\E[1K, enacs=\E(B\E)1,
+       home=\E[H, hpa=\E[%p1%{1}%+%dG, ht=^I, hts=\EH,
+       ich=\E[%p1%d@, ind=\n, indn=\E[%p1%dE, invis=\E[8m,
        is1=\E?\E[3;3|\E[10;0|\E[21;1|\212\E[6;1|\E[1{\E[?99l,
        kBEG=\ENB, kCAN=\EOW, kCMD=\EOU, kCPY=\END, kCRT=\EON,
        kDC=\ENF, kDL=\ENE, kEND=\ENN, kEOL=\EOA, kEXT=\EOK,
        kFND=\EOX, kHLP=\EOM, kHOM=\ENM, kIC=\ENJ, kLFT=\ENK,
        kMOV=\ENC, kMSG=\EOL, kNXT=\ENH, kOPT=\EOR, kPRT=\EOZ,
        kPRV=\ENG, kRDO=\EOT, kRES=\EOQ, kRIT=\ENL, kRPL=\EOY,
-       kSAV=\EOO, kSPD=\EOP, kUND=\EOS, kbeg=\E9, kbs=^H, kcan=\EOw,
+       kSAV=\EOO, kSPD=\EOP, kUND=\EOS, kbeg=\E9, kcan=\EOw,
        kcbt=\E[Z, kclo=\EOV, kclr=\E[J, kcmd=\EOu, kcpy=\ENd,
-       kcrt=\EOn, kcub1=\E[D, kcud1=\E[B, kcuf1=\E[C, kcuu1=\E[A,
-       kdch1=\ENf, kdl1=\ENe, kel=\EOa, kend=\E0, kent=\Eent,
-       kext=\EOk, kf1=\EOc, kf2=\EOd, kf3=\EOe, kf4=\EOf, kf5=\EOg,
-       kf6=\EOh, kf7=\EOi, kf8=\EOj, kfnd=\EOx, khlp=\EOm,
-       khome=\E[H, kich1=\ENj, kind=\E[S, kmov=\ENc, kmrk=\ENi,
+       kcrt=\EOn, kdch1=\ENf, kdl1=\ENe, kel=\EOa, kend=\E0,
+       kent=\Eent, kext=\EOk, kf1=\EOc, kf2=\EOd, kf3=\EOe,
+       kf4=\EOf, kf5=\EOg, kf6=\EOh, kf7=\EOi, kf8=\EOj, kfnd=\EOx,
+       khlp=\EOm, kich1=\ENj, kind=\E[S, kmov=\ENc, kmrk=\ENi,
        kmsg=\EOl, knp=\E[U, knxt=\ENh, kopn=\EOv, kopt=\EOr,
        kpp=\E[V, kprt=\EOz, kprv=\ENg, krdo=\EOt, kref=\EOb,
        kres=\EOq, krfr=\ENa, kri=\E[T, krpl=\EOy, krst=\EOB,
@@ -14297,7 +14515,9 @@ att500|att513|AT&T 513 using page mode,
            %|%p6%|%t;7%;%?%p7%t;8%;m%?%p9%t\016%e\017%;,
        sgr0=\E[m\017, smacs=^N, smir=\E[4h,
        smkx=\E[19;1|\E[21;4|\Eent, smln=\E?, smso=\E[7m,
-       smul=\E[4m, tbc=\E[3g, vpa=\E[%p1%{1}%+%dd, use=ansi+rep,
+       smul=\E[4m, tbc=\E[3g, vpa=\E[%p1%{1}%+%dd,
+       use=ansi+arrows, use=ansi+erase, use=ansi+idl,
+       use=ansi+rep, use=decid+cpr,
 
 # 01-07-88:
 # printer must be set to EMUL ANSI to accept ESC codes
@@ -14347,13 +14567,12 @@ att5310|att5320|AT&T Model 53210 or 5320 matrix printer,
 att5620-1|tty5620-1|dmd1|Teletype 5620 with old ROMs,
        am, xon,
        cols#88, it#8, lines#70, vt#3,
-       bel=^G, clear=\E[H\E[J, cr=\r, cub1=^H, cud1=\n, cuf1=\E[C,
+       bel=^G, cr=\r, cub1=^H, cud1=\n, cuf1=\E[C,
        cup=\E[%i%p1%d;%p2%dH, cuu1=\E[A, dch=\E[%p1%dP,
-       dch1=\E[P, dl=\E[%p1%dM, dl1=\E[M, ed=\E[J, el=\E[K,
-       home=\E[H, ht=^I, ich=\E[%p1%d@, ich1=\E[@, il=\E[%p1%dL,
-       il1=\E[L, ind=\n, kbs=^H, kclr=\E[2J, kcub1=\E[D, kcud1=\E[B,
-       kcuf1=\E[C, kcuu1=\E[A, khome=\E[H, kll=\E[70;1H, nel=\r\n,
-       rc=\E8, ri=\E[T, rs1=\Ec, sc=\E7, use=ecma+index,
+       dch1=\E[P, home=\E[H, ht=^I, ich=\E[%p1%d@, ich1=\E[@,
+       ind=\n, kclr=\E[2J, kll=\E[70;1H, nel=\r\n, rc=\E8, ri=\E[T,
+       rs1=\Ec, sc=\E7, use=ansi+arrows, use=ansi+erase,
+       use=ansi+idl, use=ecma+index,
 
 # 5620 terminfo  (2.0 or later ROMS with char attributes)
 # The following SET-UP modes are assumed for normal operation:
@@ -14370,16 +14589,15 @@ att5620-1|tty5620-1|dmd1|Teletype 5620 with old ROMs,
 att5620|dmd|tty5620|ttydmd|5620|AT&T 5620 terminal 88 columns,
        OTbs, am, msgr, npc, xon,
        cols#88, it#8, lines#70,
-       bel=^G, bold=\E[2m, clear=\E[H\E[J, cr=\r, cub1=^H,
-       cud1=\E[B, cuf1=\E[C, cup=\E[%i%p1%d;%p2%dH, cuu1=\E[A,
-       dch=\E[%p1%dP, dch1=\E[P, dim=\E[2m, dl=\E[%p1%dM,
-       dl1=\E[M, ed=\E[J, el=\E[K, home=\E[H, ht=^I, ich=\E[%p1%d@,
-       ich1=\E[@, il=\E[%p1%dL, il1=\E[L, ind=\E[S, kbs=^H,
-       kclr=\E[2J, kcub1=\E[D, kcud1=\E[B, kcuf1=\E[C, kcuu1=\E[A,
-       khome=\E[H, kll=\E[70;1H, nel=\n,
+       bel=^G, bold=\E[2m, cr=\r, cub1=^H, cud1=\E[B, cuf1=\E[C,
+       cup=\E[%i%p1%d;%p2%dH, cuu1=\E[A, dch=\E[%p1%dP,
+       dch1=\E[P, dim=\E[2m, home=\E[H, ht=^I, ich=\E[%p1%d@,
+       ich1=\E[@, ind=\E[S, kclr=\E[2J, kll=\E[70;1H, nel=\n,
        pfx=\E[%p1%d;%p2%l%dq%p2%s, rc=\E8, rev=\E[7m, ri=\E[T,
        rmso=\E[0m, rmul=\E[0m, rs1=\Ec, sc=\E7, sgr0=\E[0m,
-       smso=\E[7m, smul=\E[4m, use=ecma+index,
+       smso=\E[7m, smul=\E[4m, use=ansi+arrows, use=ansi+erase,
+       use=ansi+idl, use=ecma+index,
+
 att5620-24|tty5620-24|dmd-24|Teletype dmd 5620 in a 24x80 layer,
        lines#24, use=att5620,
 att5620-34|tty5620-34|dmd-34|Teletype dmd 5620 in a 34x80 layer,
@@ -14390,9 +14608,8 @@ att5620-s|tty5620-s|layer|vitty|AT&T 5620 S layer,
        cols#80, it#8, lines#72,
        bel=^G, clear=^L, cr=\r, cub1=^H, cud1=\n,
        cup=\EY%p2%{32}%+%c%p1%{32}%+%c, cuu1=^K, dl1=\ED,
-       el=\EK, flash=\E^G, ht=^I, il1=\EI, ind=\n, kbs=^H, kclr=\E[2J,
-       kcub1=\E[D, kcud1=\E[B, kcuf1=\E[C, kcuu1=\E[A, khome=\E[H,
-       kll=\E[70;1H,
+       el=\EK, flash=\E^G, ht=^I, il1=\EI, ind=\n, kclr=\E[2J,
+       khome=\E[H, kll=\E[70;1H, use=ansi+arrows,
 
 # Entries for <kf15> thru <kf28> refer to the shifted system pf keys.
 #
@@ -14402,15 +14619,12 @@ att605|AT&T 605 80 column 102key keyboard,
        am, eo, xon,
        cols#80, lines#24, lw#8, nlab#8, wsl#80,
        acsc=``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~,
-       bel=^G, blink=\E[5m, bold=\E[1m, cbt=\E[Z, clear=\E[H\E[J,
-       cr=\r, cub1=^H, cud1=\E[B, cuf1=\E[C,
-       cup=\E[%i%p1%d;%p2%dH, cuu1=\E[A, dch=\E[%p1%dP,
-       dch1=\E[P, dim=\E[2m, dl=\E[%p1%dM, dl1=\E[M, ed=\E[J,
-       el=\E[K, el1=\E[1K, fsl=\E8, ht=^I, ich=\E[%p1%d@, ich1=\E[@,
+       bel=^G, blink=\E[5m, bold=\E[1m, cbt=\E[Z, cr=\r, cub1=^H,
+       cud1=\E[B, cuf1=\E[C, cup=\E[%i%p1%d;%p2%dH, cuu1=\E[A,
+       dim=\E[2m, dl=\E[%p1%dM, dl1=\E[M, el1=\E[1K, fsl=\E8, ht=^I,
        il1=\E[L, ind=\n, invis=\E[8m,
        is1=\E[8;0|\E[?\E[13;20l\E[?\E[12h, is2=\E[m\017,
-       kLFT=\E[ A, kRIT=\E[ @, kbs=^H, kcbt=\E[Z, kclr=\E[2J,
-       kcub1=\E[D, kcud1=\E[B, kcuf1=\E[C, kcuu1=\E[A, kdch1=\E[P,
+       kLFT=\E[ A, kRIT=\E[ @, kcbt=\E[Z, kclr=\E[2J, kdch1=\E[P,
        kdl1=\E[M, kend=\E[24;1H, kf1=\EOc, kf10=\ENp, kf11=\ENq,
        kf12=\ENr, kf13=\ENs, kf14=\ENt, kf15=\EOC, kf16=\EOD,
        kf17=\EOE, kf18=\EOF, kf19=\EOG, kf2=\EOd, kf20=\EOH,
@@ -14420,26 +14634,24 @@ att605|AT&T 605 80 column 102key keyboard,
        kf35=\EOy, kf36=\EOm, kf37=\EOt, kf38=\EOu, kf39=\EOv,
        kf4=\EOf, kf40=\EOl, kf41=\EOq, kf42=\EOr, kf43=\EOs,
        kf44=\EOp, kf45=\EOn, kf46=\EOM, kf5=\EOg, kf6=\EOh,
-       kf7=\EOi, kf8=\EOj, kf9=\ENo, khome=\E[H, kich1=\E[@,
-       kil1=\E[L, kind=\E[S, knp=\E[U, kpp=\E[V, ll=\E[24H,
-       mc4=\E[?4i, mc5=\E[?5i, nel=\EE,
+       kf7=\EOi, kf8=\EOj, kf9=\ENo, kich1=\E[@, kil1=\E[L,
+       kind=\E[S, knp=\E[U, kpp=\E[V, ll=\E[24H, mc4=\E[?4i,
+       mc5=\E[?5i, nel=\EE,
        pfx=\E[%p1%d;%p2%l%02dq   F%p1%1d           %p2%s,
        pln=\E[%p1%d;0;0;0q%p2%:-16.16s, rc=\E8, rev=\E[7m,
-       rmacs=^O, rmir=\E[4l, rmln=\E[2p, rmso=\E[m, rmul=\E[m,
-       rs2=\Ec\E[?3l, sc=\E7, sgr0=\E[m\017, smacs=\E)0\016,
-       smir=\E[4h, smln=\E[p, smso=\E[7m, smul=\E[4m,
-       tsl=\E7\E[25;%i%p1%dx,
+       rmacs=^O, rmln=\E[2p, rmso=\E[m, rmul=\E[m, rs2=\Ec\E[?3l,
+       sc=\E7, sgr0=\E[m\017, smacs=\E)0\016, smln=\E[p,
+       smso=\E[7m, smul=\E[4m, tsl=\E7\E[25;%i%p1%dx,
+       use=ansi+arrows, use=ansi+cpr, use=ansi+erase,
+       use=ansi+idc,
+
 att605-pc|AT&T 605 in pc term mode,
        acsc=j\331k\277l\332m\300n\305q\304t\303u\264v\301w\302x
             \263,
-       cbt=\E[Z, cub1=\E[D, cud1=\E[B, cuf1=\E[C, cuu1=\E[A,
-       dch1=\E[P, dl1=\E[M, ich1=\E[@, il1=\E[L, kcbt=\E[Z,
-       kcub1=\E[D, kcud1=\E[B, kcuf1=\E[C, kcuu1=\E[A, kdch1=\E[P,
-       kdl1=\E[M, kend=\E[F, kf1=\E[M, kf10=\E[V, kf2=\E[N,
+       cub1=\E[D, kend=\E[F, kf1=\E[M, kf10=\E[V, kf2=\E[N,
        kf3=\E[O, kf4=\E[P, kf5=\E[Q, kf6=\E[R, kf7=\E[S, kf8=\E[T,
-       kf9=\E[U, khome=\E[H, kich1=\E[@, knp=\E[G, kpp=\E[I,
-       rmsc=\E[50;0|$<400>, smsc=\E[?11l\E[50;1|$<250>,
-       xoffc=g, xonc=e, use=att605,
+       kf9=\E[U, knp=\E[G, kpp=\E[I, rmsc=\E[50;0|$<400>,
+       smsc=\E[?11l\E[50;1|$<250>, xoffc=g, xonc=e, use=att605,
 att605-w|AT&T 605-w 132 column 102 key keyboard,
        cols#132, wsl#132,
        is1=\E[8;0|\E[?4;5;13;15l\E[13;20l\E[?3;7h\E[12h\E(B\E)0, use=att605,
@@ -14451,32 +14663,31 @@ att610|AT&T 610; 80 column; 98key keyboard,
        am, eslok, hs, mir, msgr, xenl, xon,
        cols#80, it#8, lh#2, lines#24, lw#8, nlab#8, wsl#80,
        acsc=``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~,
-       bel=^G, blink=\E[5m, bold=\E[1m, cbt=\E[Z, clear=\E[H\E[J,
-       cr=\r, csr=\E[%i%p1%d;%p2%dr, cub=\E[%p1%dD, cub1=^H,
-       cud=\E[%p1%dB, cud1=\E[B, cuf=\E[%p1%dC, cuf1=\E[C,
-       cup=\E[%i%p1%d;%p2%dH, cuu=\E[%p1%dA, cuu1=\E[A,
+       bel=^G, blink=\E[5m, bold=\E[1m, cbt=\E[Z, cr=\r,
+       cub=\E[%p1%dD, cub1=^H, cud=\E[%p1%dB, cud1=\E[B,
+       cuf=\E[%p1%dC, cuf1=\E[C, cuu=\E[%p1%dA, cuu1=\E[A,
        cvvis=\E[?12;25h, dch=\E[%p1%dP, dch1=\E[P, dim=\E[2m,
-       dl=\E[%p1%dM, dl1=\E[M, ed=\E[J, el=\E[K, el1=\E[1K,
-       flash=\E[?5h$<200>\E[?5l, fsl=\E8, home=\E[H, ht=^I,
-       ich=\E[%p1%d@, il=\E[%p1%dL, il1=\E[L, ind=\ED,
-       invis=\E[8m,
+       el1=\E[1K, flash=\E[?5h$<200>\E[?5l, fsl=\E8, ht=^I,
+       ich=\E[%p1%d@, ind=\ED, invis=\E[8m,
        is1=\E[8;0|\E[?3;4;5;13;15l\E[13;20l\E[?7h\E[12h\E(B\E)0,
-       is2=\E[m\017, is3=\E(B\E)0, kLFT=\E[ @, kRIT=\E[ A, kbs=^H,
-       kcbt=\E[Z, kclr=\E[2J, kcub1=\E[D, kcud1=\E[B, kcuf1=\E[C,
-       kcuu1=\E[A, kf1=\EOc, kf10=\ENp, kf11=\ENq, kf12=\ENr,
-       kf13=\ENs, kf14=\ENt, kf2=\EOd, kf3=\EOe, kf4=\EOf, kf5=\EOg,
-       kf6=\EOh, kf7=\EOi, kf8=\EOj, kf9=\ENo, khome=\E[H,
+       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,
+       kf12=\ENr, kf13=\ENs, kf14=\ENt, kf2=\EOd, kf3=\EOe,
+       kf4=\EOf, kf5=\EOg, kf6=\EOh, kf7=\EOi, kf8=\EOj, kf9=\ENo,
        kind=\E[S, kri=\E[T, ll=\E[24H, mc4=\E[?4i, mc5=\E[?5i,
        nel=\EE,
        pfx=\E[%p1%d;%p2%l%02dq   F%p1%1d           %p2%s,
-       pln=\E[%p1%d;0;0;0q%p2%:-16.16s, rc=\E8, rev=\E[7m,
-       ri=\EM, rmacs=^O, rmam=\E[?7l, rmir=\E[4l, rmln=\E[2p,
-       rmso=\E[m, rmul=\E[m, rs2=\Ec\E[?3l, sc=\E7,
+       pln=\E[%p1%d;0;0;0q%p2%:-16.16s, rev=\E[7m, ri=\EM,
+       rmacs=^O, rmam=\E[?7l, rmir=\E[4l, rmln=\E[2p, rmso=\E[m,
+       rmul=\E[m, rs2=\Ec\E[?3l,
        sgr=\E[0%?%p6%t;1%;%?%p5%t;2%;%?%p2%t;4%;%?%p4%t;5%;%?%p3%p1
            %|%t;7%;%?%p7%t;8%;m%?%p9%t\016%e\017%;,
        sgr0=\E[m\017, smacs=^N, smam=\E[?7h, smir=\E[4h,
        smln=\E[p, smso=\E[7m, smul=\E[4m, tsl=\E7\E[25;%i%p1%dx,
+       use=ansi+arrows, use=ansi+csr, use=ansi+cup,
+       use=ansi+erase, use=ansi+idl, use=decid+cpr,
        use=ecma+index, use=att610+cvis,
+
 att610-w|AT&T 610; 132 column; 98key keyboard,
        cols#132, wsl#132,
        is1=\E[8;0|\E[?4;5;13;15l\E[13;20l\E[?3;7h\E[12h,
@@ -14526,38 +14737,37 @@ att620|AT&T 620; 80 column; 98key keyboard,
        am, eslok, hs, mir, msgr, xenl, xon,
        cols#80, it#8, lh#2, lines#24, lw#8, nlab#8, wsl#80,
        acsc=``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~,
-       bel=^G, blink=\E[5m, bold=\E[1m, cbt=\E[Z, clear=\E[H\E[J,
-       cr=\r, csr=\E[%i%p1%d;%p2%dr, cub=\E[%p1%dD, cub1=^H,
-       cud=\E[%p1%dB, cud1=\E[B, cuf=\E[%p1%dC, cuf1=\E[C,
-       cup=\E[%i%p1%d;%p2%dH, cuu=\E[%p1%dA, cuu1=\E[A,
+       bel=^G, blink=\E[5m, bold=\E[1m, cbt=\E[Z, cr=\r,
+       cub=\E[%p1%dD, cub1=^H, cud=\E[%p1%dB, cud1=\E[B,
+       cuf=\E[%p1%dC, cuf1=\E[C, cuu=\E[%p1%dA, cuu1=\E[A,
        cvvis=\E[?12;25h, dch=\E[%p1%dP, dch1=\E[P, dim=\E[2m,
-       dl=\E[%p1%dM, dl1=\E[M, ed=\E[J, el=\E[K, el1=\E[1K,
-       flash=\E[?5h$<200>\E[?5l, fsl=\E8, home=\E[H, ht=^I,
-       ich=\E[%p1%d@, il=\E[%p1%dL, il1=\E[L, ind=\ED,
-       invis=\E[8m,
+       el1=\E[1K, flash=\E[?5h$<200>\E[?5l, fsl=\E8, ht=^I,
+       ich=\E[%p1%d@, ind=\ED, invis=\E[8m,
        is1=\E[8;0|\E[?3;4;5;13;15l\E[13;20l\E[?7h\E[12h,
-       is2=\E[m\017, is3=\E(B\E)0, kLFT=\E[ A, kRIT=\E[ @, kbs=^H,
-       kcbt=\E[Z, kclr=\E[2J, kcub1=\E[D, kcud1=\E[B, kcuf1=\E[C,
-       kcuu1=\E[A, kf1=\EOc, kf10=\ENp, kf11=\ENq, kf12=\ENr,
-       kf13=\ENs, kf14=\ENt, kf15=\EOC, kf16=\EOD, kf17=\EOE,
-       kf18=\EOF, kf19=\EOG, kf2=\EOd, kf20=\EOH, kf21=\EOI,
-       kf22=\EOJ, kf23=\ENO, kf24=\ENP, kf25=\ENQ, kf26=\ENR,
-       kf27=\ENS, kf28=\ENT, kf29=\EOP, kf3=\EOe, kf30=\EOQ,
-       kf31=\EOR, kf32=\EOS, kf33=\EOw, kf34=\EOx, kf35=\EOy,
-       kf36=\EOm, kf37=\EOt, kf38=\EOu, kf39=\EOv, kf4=\EOf,
-       kf40=\EOl, kf41=\EOq, kf42=\EOr, kf43=\EOs, kf44=\EOp,
-       kf45=\EOn, kf46=\EOM, kf5=\EOg, kf6=\EOh, kf7=\EOi, kf8=\EOj,
-       kf9=\ENo, khome=\E[H, kind=\E[S, kri=\E[T, ll=\E[24H,
+       is2=\E[m\017, is3=\E(B\E)0, kLFT=\E[ A, kRIT=\E[ @,
+       kcbt=\E[Z, kclr=\E[2J, kf1=\EOc, kf10=\ENp, kf11=\ENq,
+       kf12=\ENr, kf13=\ENs, kf14=\ENt, kf15=\EOC, kf16=\EOD,
+       kf17=\EOE, kf18=\EOF, kf19=\EOG, kf2=\EOd, kf20=\EOH,
+       kf21=\EOI, kf22=\EOJ, kf23=\ENO, kf24=\ENP, kf25=\ENQ,
+       kf26=\ENR, kf27=\ENS, kf28=\ENT, kf29=\EOP, kf3=\EOe,
+       kf30=\EOQ, kf31=\EOR, kf32=\EOS, kf33=\EOw, kf34=\EOx,
+       kf35=\EOy, kf36=\EOm, kf37=\EOt, 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, kind=\E[S, kri=\E[T, ll=\E[24H,
        mc4=\E[?4i, mc5=\E[?5i, nel=\EE,
        pfx=\E[%p1%d;%p2%l%02dq   F%p1%1d           %p2%s,
-       pln=\E[%p1%d;0;0;0q%p2%:-16.16s, rc=\E8, rev=\E[7m,
-       ri=\EM, rmacs=\E(B\017, rmam=\E[?7l, rmir=\E[4l,
-       rmln=\E[2p, rmso=\E[m, rmul=\E[m, rs2=\Ec\E[?3l, sc=\E7,
+       pln=\E[%p1%d;0;0;0q%p2%:-16.16s, rev=\E[7m, ri=\EM,
+       rmacs=\E(B\017, rmam=\E[?7l, rmir=\E[4l, rmln=\E[2p,
+       rmso=\E[m, rmul=\E[m, rs2=\Ec\E[?3l,
        sgr=\E[0%?%p6%t;1%;%?%p5%t;2%;%?%p2%t;4%;%?%p4%t;5%;%?%p3%p1
            %|%t;7%;%?%p7%t;8%;m%?%p9%t\E)0\016%e\E(B\017%;,
        sgr0=\E[m\E(B\017, smacs=\E)0\016, smam=\E[?7h,
        smir=\E[4h, smln=\E[p, smso=\E[7m, smul=\E[4m,
-       tsl=\E7\E[25;%i%p1%dx, use=ecma+index, use=att610+cvis,
+       tsl=\E7\E[25;%i%p1%dx, use=ansi+arrows, use=ansi+csr,
+       use=ansi+cup, use=ansi+erase, use=ansi+idl,
+       use=decid+cpr, use=ecma+index, use=att610+cvis,
+
 att620-w|AT&T 620; 132 column; 98key keyboard,
        cols#132, wsl#132,
        is1=\E[8;0|\E[?4;5;13;15l\E[13;20l\E[?3;7h\E[12h,
@@ -14598,25 +14808,23 @@ att620-103k-w|AT&T 620; 132 column; 103key keyboard,
 att630|AT&T 630 windowing terminal,
        OTbs, am, da, db, mir, msgr, npc, xon,
        cols#80, it#8, lines#60, lm#0,
-       bel=^G, blink=\E[5m, cbt=\E[Z, clear=\E[H\E[J, cr=\r,
-       cub=\E[%p1%dD, cub1=^H, cud=\E[%p1%dB, cud1=\E[B,
-       cuf=\E[%p1%dC, cuf1=\E[C, cup=\E[%i%p1%d;%p2%dH,
-       cuu=\E[%p1%dA, cuu1=\E[A, dch=\E[%p1%dP, dch1=\E[P,
-       dim=\E[2m, dl=\E[%p1%dM, dl1=\E[M, ed=\E[J, el=\E[K,
-       el1=\E[1K, home=\E[H, ht=^I, ich=\E[%p1%d@, ich1=\E[@,
-       il=\E[%p1%dL, il1=\E[L, ind=\ED, is2=\E[m, kbs=^H, kcbt=\E[Z,
-       kclr=\E[2J, kcub1=\E[D, kcud1=\E[B, kcuf1=\E[C, kcuu1=\E[A,
-       kdch1=\E[P, kdl1=\E[M, kent=\r, kf10=\ENp, kf11=\ENq,
-       kf12=\ENr, kf13=\ENs, kf14=\ENt, kf15=\ENu, kf16=\ENv,
-       kf17=\ENw, kf18=\ENx, kf19=\ENy, kf20=\ENz, kf21=\EN{,
-       kf22=\EN|, kf23=\EN}, kf24=\EN~, kf9=\ENo, khome=\E[H,
-       kich1=\E[@, kil1=\E[L, mc4=\E[?4i, mc5=\E[?5i, nel=\r\n,
-       pfx=\E[%p1%d;%p2%l%dq%p2%s, rc=\E8, rev=\E[7m, ri=\EM,
-       rmir=\E[4l, rmso=\E[m, rmul=\E[m, rs2=\Ec, sc=\E7,
+       bel=^G, blink=\E[5m, cbt=\E[Z, cr=\r, cub=\E[%p1%dD, cub1=^H,
+       cud=\E[%p1%dB, cud1=\E[B, cuf=\E[%p1%dC, cuf1=\E[C,
+       cup=\E[%i%p1%d;%p2%dH, cuu=\E[%p1%dA, cuu1=\E[A,
+       dim=\E[2m, el1=\E[1K, home=\E[H, ht=^I, ind=\ED, is2=\E[m,
+       kcbt=\E[Z, kclr=\E[2J, kdch1=\E[P, kdl1=\E[M, kent=\r,
+       kf10=\ENp, kf11=\ENq, kf12=\ENr, kf13=\ENs, kf14=\ENt,
+       kf15=\ENu, kf16=\ENv, kf17=\ENw, kf18=\ENx, kf19=\ENy,
+       kf20=\ENz, kf21=\EN{, kf22=\EN|, kf23=\EN}, kf24=\EN~,
+       kf9=\ENo, kich1=\E[@, kil1=\E[L, mc4=\E[?4i, mc5=\E[?5i,
+       nel=\r\n, pfx=\E[%p1%d;%p2%l%dq%p2%s, rc=\E8, rev=\E[7m,
+       ri=\EM, rmso=\E[m, rmul=\E[m, rs2=\Ec, sc=\E7,
        sgr=\E[0%?%p5%t;2%;%?%p2%t;4%;%?%p4%t;5%;%?%p1%p3%|%p4%|%t;7
            %;m,
-       sgr0=\E[m, smir=\E[4h, smso=\E[7m, smul=\E[4m,
+       sgr0=\E[m, smso=\E[7m, smul=\E[4m, use=ansi+arrows,
+       use=ansi+cpr, use=ansi+erase, use=ansi+idc, use=ansi+idl,
        use=ecma+index,
+
 att630-24|5630-24|5630DMD-24|630MTG-24|AT&T 630 windowing terminal 24 lines,
        lines#24, use=att630,
 
@@ -14699,44 +14907,42 @@ att630-24|5630-24|5630DMD-24|630MTG-24|AT&T 630 windowing terminal 24 lines,
 #
 att700|AT&T 700 24x80 column display w/102key keyboard,
        am, eslok, hs, mir, msgr, xenl, xon,
-       cols#80, it#8, lh#2, lines#24, lw#8, nlab#8, wsl#80,
+       cols#80, lh#2, lines#24, lw#8, nlab#8, wsl#80,
        acsc=``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~,
-       bel=^G, blink=\E[5m, bold=\E[1m, cbt=\E[Z, clear=\E[H\E[J,
-       cr=\r, csr=\E[%i%p1%d;%p2%dr, cub=\E[%p1%dD, cub1=^H,
-       cud=\E[%p1%dB, cud1=\E[B, cuf=\E[%p1%dC, cuf1=\E[C,
-       cup=\E[%i%p1%d;%p2%dH, cuu=\E[%p1%dA, cuu1=\E[A,
-       cvvis=\E[?12;25h, dch=\E[%p1%dP, dch1=\E[P, dim=\E[2m,
-       dl=\E[%p1%dM, dl1=\E[M, ed=\E[J, el=\E[K, el1=\E[1K,
-       enacs=\E(B\E)0, flash=\E[?5h$<200>\E[?5l, fln=4\,4,
-       fsl=\E8, home=\E[H, ht=^I, hts=\EH, ich=\E[%p1%d@,
-       il=\E[%p1%dL, il1=\E[L, ind=\ED, invis=\E[8m,
+       bel=^G, blink=\E[5m, bold=\E[1m, cr=\r, cub=\E[%p1%dD,
+       cub1=^H, cud=\E[%p1%dB, cud1=\E[B, cuf=\E[%p1%dC,
+       cuf1=\E[C, cup=\E[%i%p1%d;%p2%dH, cuu=\E[%p1%dA,
+       cuu1=\E[A, cvvis=\E[?12;25h, dch=\E[%p1%dP, dch1=\E[P,
+       dim=\E[2m, el1=\E[1K, enacs=\E(B\E)0,
+       flash=\E[?5h$<200>\E[?5l, fln=4\,4, fsl=\E8, home=\E[H,
+       ich=\E[%p1%d@, ind=\ED, invis=\E[8m,
        is2=\E[50;4|\E[53;0|\E[8;0|\E[?4;13;15l\E[13;20l\E[?7h\E[12h
            \E(B\E)0\E[?31l\E[0m\017,
-       is3=\E(B\E)0, kLFT=\E[ A, kRIT=\E[ @, kbs=^H, kcbt=\E[Z,
-       kclr=\E[2J, kcub1=\E[D, kcud1=\E[B, kcuf1=\E[C, kcuu1=\E[A,
-       kdch1=\E[P, kdl1=\E[M, kend=\E[24;1H, kf1=\EOc, kf10=\ENp,
-       kf11=\ENq, kf12=\ENr, kf13=\ENs, kf14=\ENt, kf15=\EOC,
-       kf16=\EOD, kf17=\EOE, kf18=\EOF, kf19=\EOG, kf2=\EOd,
-       kf20=\EOH, kf21=\EOI, kf22=\EOJ, kf23=\ENO, kf24=\ENP,
-       kf25=\ENQ, kf26=\ENR, kf27=\ENS, kf28=\ENT, kf29=\EOq,
-       kf3=\EOe, kf30=\EOr, kf31=\EOs, kf32=\EOt, kf33=\EOu,
-       kf34=\EOv, kf35=\EOw, kf36=\EOx, kf37=\EOy, kf38=\EOu,
-       kf39=\EOv, kf4=\EOf, kf40=\EOl, kf41=\EOq, kf42=\EOr,
-       kf43=\EOs, kf44=\EOp, kf45=\EOn, kf46=\EOM, kf5=\EOg,
-       kf6=\EOh, kf7=\EOi, kf8=\EOj, kf9=\ENo, khome=\E[H,
-       kich1=\E[@, kil1=\E[L, knp=\E[U, kpp=\E[V, ll=\E[24H,
-       mc0=\E[i, mc4=\E[?4i, mc5=\E[?5i, nel=\EE,
+       is3=\E(B\E)0, kLFT=\E[ A, kRIT=\E[ @, kcbt=\E[Z,
+       kclr=\E[2J, kdch1=\E[P, kdl1=\E[M, kend=\E[24;1H, kf1=\EOc,
+       kf10=\ENp, kf11=\ENq, kf12=\ENr, kf13=\ENs, kf14=\ENt,
+       kf15=\EOC, kf16=\EOD, kf17=\EOE, kf18=\EOF, kf19=\EOG,
+       kf2=\EOd, kf20=\EOH, kf21=\EOI, kf22=\EOJ, kf23=\ENO,
+       kf24=\ENP, kf25=\ENQ, kf26=\ENR, kf27=\ENS, kf28=\ENT,
+       kf29=\EOq, kf3=\EOe, kf30=\EOr, kf31=\EOs, kf32=\EOt,
+       kf33=\EOu, kf34=\EOv, kf35=\EOw, kf36=\EOx, kf37=\EOy,
+       kf38=\EOu, kf39=\EOv, kf4=\EOf, kf40=\EOl, kf41=\EOq,
+       kf42=\EOr, kf43=\EOs, kf44=\EOp, kf45=\EOn, kf46=\EOM,
+       kf5=\EOg, kf6=\EOh, kf7=\EOi, kf8=\EOj, kf9=\ENo, kich1=\E[@,
+       kil1=\E[L, knp=\E[U, kpp=\E[V, ll=\E[24H, mc0=\E[i,
+       mc4=\E[?4i, mc5=\E[?5i, nel=\EE,
        pfx=\E[%p1%d;%p2%l%02dq%?%p1%{9}%<%t\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, rc=\E8, rev=\E[7m,
-       ri=\EM, rmacs=^O, rmir=\E[4l, rmln=\E[2p, rmso=\E[27m,
-       rmul=\E[24m, rmxon=\E[53;3|, rs1=\Ec\E[?3;5l\E[56;0|,
-       sc=\E7,
+       pln=\E[%p1%d;0;0;0q%p2%:-16.16s, rev=\E[7m, ri=\EM,
+       rmacs=^O, rmir=\E[4l, rmln=\E[2p, rmso=\E[27m, rmul=\E[24m,
+       rmxon=\E[53;3|, rs1=\Ec\E[?3;5l\E[56;0|,
        sgr=\E[0%?%p6%t;1%;%?%p5%t;2%;%?%p2%t;4%;%?%p4%t;5%;%?%p3%p1
            %|%t;7%;%?%p7%t;8%;m%?%p9%t\016%e\017%;,
        sgr0=\E[m\017, smacs=^N, smir=\E[4h, smln=\E[p, smso=\E[7m,
-       smul=\E[4m, smxon=\E[53;0|, tbc=\E[3g,
-       tsl=\E7\E[99;%i%p1%dx, use=ansi+rep, use=att610+cvis0,
+       smul=\E[4m, 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+rep,
+       use=decid+cpr, use=att610+cvis0,
 
 # This entry was modified 3/13/90 by JWE.
 # fixes include additions of <enacs>, correcting <rep>, and modification
@@ -14755,43 +14961,40 @@ 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, blink=\E[5m, bold=\E[1m, cbt=\E[Z, clear=\E[H\E[J,
-       cr=\r, csr=\E[%i%p1%d;%p2%dr, cub=\E[%p1%dD, cub1=^H,
-       cud=\E[%p1%dB, cud1=\E[B, cuf=\E[%p1%dC, cuf1=\E[C,
-       cup=\E[%i%p1%d;%p2%dH, cuu=\E[%p1%dA, cuu1=\E[A,
+       bel=^G, blink=\E[5m, bold=\E[1m, cbt=\E[Z, cr=\r,
+       cub=\E[%p1%dD, cub1=^H, cud=\E[%p1%dB, cud1=\E[B,
+       cuf=\E[%p1%dC, cuf1=\E[C, cuu=\E[%p1%dA, cuu1=\E[A,
        cvvis=\E[?12;25h, dch=\E[%p1%dP, dch1=\E[P, dim=\E[2m,
-       dl=\E[%p1%dM, dl1=\E[M, ed=\E[J, el=\E[K, el1=\E[1K,
-       enacs=\E(B\E)0, flash=\E[?5h$<200>\E[?5l, fsl=\E8,
-       home=\E[H, ht=^I, ich=\E[%p1%d@, il=\E[%p1%dL, il1=\E[L,
-       ind=\ED, invis=\E[8m,
+       el1=\E[1K, enacs=\E(B\E)0, flash=\E[?5h$<200>\E[?5l,
+       fsl=\E8, ht=^I, ich=\E[%p1%d@, ind=\ED, invis=\E[8m,
        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, kbs=^H,
-       kcbt=\E[Z, kclr=\E[2J, kcub1=\E[D, kcud1=\E[B, kcuf1=\E[C,
-       kcuu1=\E[A, kf1=\EOc, kf10=\ENp, kf11=\ENq, kf12=\ENr,
-       kf13=\ENs, kf14=\ENt, kf15=\ENu, kf16=\ENv, kf17=\ENw,
-       kf18=\ENx, kf19=\ENy, kf2=\EOd, kf20=\ENz, kf21=\EN{,
-       kf22=\EN|, kf23=\EN}, kf24=\EN~, kf25=\EOC, kf26=\EOD,
-       kf27=\EOE, kf28=\EOF, kf29=\EOG, kf3=\EOe, kf30=\EOH,
-       kf31=\EOI, kf32=\EOJ, kf33=\ENO, kf34=\ENP, kf35=\ENQ,
-       kf36=\ENR, kf37=\ENS, kf38=\ENT, kf39=\EOU, 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, khome=\E[H,
-       kich1=\E[@, kil1=\E[L, kind=\E[S, kri=\E[T,
-       mc0=\E[?19h\E[0i, mc4=\E[?4i, mc5=\E[?5i, nel=\EE,
+       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,
+       kf12=\ENr, kf13=\ENs, kf14=\ENt, kf15=\ENu, kf16=\ENv,
+       kf17=\ENw, kf18=\ENx, kf19=\ENy, kf2=\EOd, kf20=\ENz,
+       kf21=\EN{, kf22=\EN|, kf23=\EN}, kf24=\EN~, kf25=\EOC,
+       kf26=\EOD, kf27=\EOE, kf28=\EOF, kf29=\EOG, kf3=\EOe,
+       kf30=\EOH, kf31=\EOI, kf32=\EOJ, kf33=\ENO, kf34=\ENP,
+       kf35=\ENQ, kf36=\ENR, kf37=\ENS, kf38=\ENT, kf39=\EOU,
+       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,
        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,
-       pln=\E[%p1%d;0;0;0q%p2%:-16.16s, rc=\E8, rev=\E[7m,
-       ri=\EM, rmacs=^O, rmam=\E[?7l, rmir=\E[4l, rmln=\E[?13h,
+       pln=\E[%p1%d;0;0;0q%p2%:-16.16s, rev=\E[7m, ri=\EM,
+       rmacs=^O, rmam=\E[?7l, rmir=\E[4l, rmln=\E[?13h,
        rmso=\E[27m, rmul=\E[24m, rmxon=\E[?21l, rs2=\Ec\E[?3l,
-       sc=\E7,
        sgr=\E[0%?%p6%t;1%;%?%p5%t;2%;%?%p2%t;4%;%?%p4%t;5%;%?%p3%p1
            %|%t;7%;%?%p7%t;8%;m%?%p9%t\016%e\017%;,
        sgr0=\E[m\017, smacs=^N, smam=\E[?7h, smir=\E[4h,
        smln=\E[?13l, smso=\E[7m, smul=\E[4m, smxon=\E[?21h,
-       swidm=\E#6, tsl=\E7\E[;%i%p1%dx, use=ansi+rep,
-       use=att610+cvis,
+       swidm=\E#6, tsl=\E7\E[;%i%p1%dx, use=ansi+arrows,
+       use=ansi+csr, use=ansi+cup, use=ansi+erase, use=ansi+idl,
+       use=ansi+rep, use=decid+cpr, use=att610+cvis,
+
 # "MGT" is "Multi-Tasking Graphics Terminal"
 att730-41|730MTG-41|AT&T 730-41 windowing terminal,
        lines#41, use=att730,
@@ -14975,9 +15178,8 @@ att505|pt505|att5430|gs5430|AT&T Personal Terminal 505 or 5430 GETSET terminal,
        cnorm=\E[>l, cr=\r, cub=\E[%p1%dD, cub1=\E[D,
        cud=\E[%p1%dB, cud1=\E[B, cuf=\E[%p1%dC, cuf1=\E[C,
        cup=\E[%p1%d;%p2%dH, cuu=\E[%p1%dA, cuu1=\E[A,
-       cvvis=\E[>h, dch=\E[%p1%dP, dch1=\E[P, dl=\E[%p1%dM,
-       dl1=\E[M, ed=\E[0J, el=\E[0K, el1=\E[2K, home=\E[H, ht=^I,
-       il=\E[%p1%dL, il1=\E[L, ind=\n,
+       cvvis=\E[>h, dch=\E[%p1%dP, dch1=\E[P, ed=\E[0J, el=\E[0K,
+       el1=\E[2K, home=\E[H, ht=^I, ind=\n,
        is1=\EPr\\E[0u\E[2J\E[0;0H\E[m\E[3l\E[<l\E[4l\E[>l\E[=l\E[?l,
        kbs=^H, kcmd=\E!, kcub1=\E[D, kcud1=\E[B, kcuf1=\E[C,
        kcuu1=\E[A, kf0=\E[00s, kf1=\E[01s, kf18=\E[18s,
@@ -14988,6 +15190,7 @@ att505|pt505|att5430|gs5430|AT&T Personal Terminal 505 or 5430 GETSET terminal,
        rmacs=\E[10m, rmam=\E[11;1j, rmir=\E[4l, rmso=\E[m,
        rmul=\E[m, rs1=\Ec, sc=\E7, sgr0=\E[m, smacs=\E[11m,
        smam=\E[11;0j, smir=\E[4h, smso=\E[1m, smul=\E[4m,
+       use=ansi+cpr, use=ansi+idl,
 
 # The following Terminfo entry describes functions which are supported by
 # the AT&T 5430/pt505 terminal software version 1.
@@ -15073,9 +15276,9 @@ ampex219|ampex-219|amp219|Ampex with automargins,
        rmso=\E[m$<2>, rmul=\E[m$<2>, sgr0=\E[m$<2>, smam=\E[?7h,
        smkx=\E=, smso=\E[7m$<2>, smul=\E[4m$<2>,
 ampex219w|ampex-219w|amp219w|Ampex 132 cols,
-       cols#132, lines#24,
-       bel=^G, cr=\r, cud1=\n, ind=\n,
-       is2=\E>\E[?3h\E[?4l\E[?5l\E[?7h\E[?8h, use=ampex219,
+       cols#132,
+       cud1=\n, is2=\E>\E[?3h\E[?4l\E[?5l\E[?7h\E[?8h,
+       use=ampex219,
 # (ampex232: removed <if=/usr/share/tabset/ampex>, no file and no <hts> --esr)
 ampex232|ampex-232|Ampex Model 232,
        am,
@@ -15090,7 +15293,7 @@ ampex232|ampex-232|Ampex Model 232,
        kf9=^AI\r, khome=^^, use=adm+sgr,
 # (ampex: removed <if=/usr/share/tabset/amp-132>, no file and no <hts> -- esr)
 ampex232w|Ampex Model 232 / 132 columns,
-       cols#132, lines#24,
+       cols#132,
        is2=\E\034Eg\El, use=ampex232,
 
 #### Ann Arbor (aa)
@@ -15249,24 +15452,22 @@ aas1901|Ann Arbor K4080 w/S1901 mod,
 # The generic Ann Arbor entry is the only one that uses this.
 aaa+unk|aaa-unk|Ann Arbor Ambassador (internal - don't use this directly),
        OTbs, am, km, mc5i, mir, xon,
-       cols#80, it#8,
-       bel=^G, blink=\E[5m, bold=\E[1m, cbt=\E[Z,
-       clear=\E[H\E[J$<156>, cr=\r, cub=\E[%p1%dD, cub1=^H,
-       cud=\E[%p1%dB, cud1=^K, cuf=\E[%p1%dC, cuf1=\E[C,
-       cup=\E[%i%p1%d;%p2%dH, cuu=\E[%p1%dA, cuu1=\E[A,
-       dch=\E[%p1%dP, dch1=\E[P, dl=\E[%p1%dM, dl1=\E[M, ed=\E[J,
-       el=\E[K$<5>, home=\E[H, hpa=\E[%p1%{1}%+%dG, ht=^I,
-       hts=\EH, ich=\E[%p1%d@$<4*>, ich1=\E[@$<4>, il=\E[%p1%dL,
-       il1=\E[L$<3>, ind=^K, invis=\E[8m, is1=\E[m\E7\E[H\E9\E8,
-       is3=\E[1Q\E[>20;30l\EP`+x~M\E\\, kbs=^H, kcbt=\E[Z,
-       kclr=\E[J, kcub1=\E[D, kcud1=\E[B, kcuf1=\E[C, kcuu1=\E[A,
+       cols#80,
+       bel=^G, blink=\E[5m, bold=\E[1m, clear=\E[H\E[J$<156>,
+       cr=\r, cub=\E[%p1%dD, cub1=^H, cud=\E[%p1%dB, cud1=^K,
+       cuf=\E[%p1%dC, cuf1=\E[C, cup=\E[%i%p1%d;%p2%dH,
+       cuu=\E[%p1%dA, cuu1=\E[A, dch=\E[%p1%dP, dch1=\E[P,
+       ed=\E[J, el=\E[K$<5>, home=\E[H, hpa=\E[%p1%{1}%+%dG,
+       ich=\E[%p1%d@$<4*>, ich1=\E[@$<4>, il1=\E[L$<3>, ind=^K,
+       invis=\E[8m, is1=\E[m\E7\E[H\E9\E8,
+       is3=\E[1Q\E[>20;30l\EP`+x~M\E\\, kcbt=\E[Z, kclr=\E[J,
        kdch1=\E[P, kdl1=\E[M, kf1=\EOA, kf10=\EOJ, kf11=\EOK,
        kf12=\EOL, kf13=\EOM, kf14=\EON, kf15=\EOO, kf16=\EOP,
        kf17=\EOQ, kf18=\EOR, kf19=\EOS, kf2=\EOB, kf20=\EOT,
        kf21=\EOU, kf22=\EOV, kf23=\EOW, kf24=\EOX, kf3=\EOC,
        kf4=\EOD, kf5=\EOE, kf6=\EOF, kf7=\EOG, kf8=\EOH, kf9=\EOI,
-       khome=\E[H, kich1=\E[@, kil1=\E[L, krmir=\E6, mc0=\E[0i,
-       mc4=^C, mc5=\E[v, mc5p=\E[%p1%dv, rc=\E8, rev=\E[7m,
+       kich1=\E[@, kil1=\E[L, krmir=\E6, mc0=\E[0i, mc4=^C,
+       mc5=\E[v, mc5p=\E[%p1%dv, rc=\E8, rev=\E[7m,
        rmkx=\EP`>y~[[J`8xy~[[A`4xy~[[D`6xy~[[C`2xy~[[B\E
             \\,
        rmm=\E[>52l, rmso=\E[m, rmul=\E[m, sc=\E7,
@@ -15275,8 +15476,9 @@ aaa+unk|aaa-unk|Ann Arbor Ambassador (internal - don't use this directly),
        sgr0=\E[m,
        smkx=\EP`>z~[[J`8xz~[[A`4xz~[[D`6xz~[[C`2xz~[[B\E
             \\,
-       smm=\E[>52h, smso=\E[7m, smul=\E[4m, tbc=\E[3g,
-       vpa=\E[%p1%{1}%+%dd, use=ansi+rep,
+       smm=\E[>52h, smso=\E[7m, smul=\E[4m, vpa=\E[%p1%{1}%+%dd,
+       use=ansi+arrows, use=ansi+idl, use=ansi+inittabs,
+       use=ansi+rep,
 
 aaa+rv|Ann Arbor Ambassador in reverse video,
        blink=\E[5;7m, bold=\E[1;7m, invis=\E[7;8m,
@@ -15682,15 +15884,16 @@ cit101|citc|C. Itoh fast VT100,
 cit101e|C. Itoh CIT-101e,
        OTbs, OTpt, am, mir, msgr,
        cols#80, it#8, lines#24,
-       acsc=, clear=\E[H\E[J, cnorm=, csr=\E[%i%p1%2d;%p2%2dr,
-       cub1=\E[D, cud1=\E[B, cuf1=\E[C, cup=\E[%i%p1%2d;%p2%2dH,
-       cuu1=\E[A, cvvis=\E[?1l\E[?4l\E[?7h, dch1=\E[P, dl1=\E[M,
-       ed=\E[J, el=\E[K, if=/usr/share/tabset/vt100, il1=\E[L,
-       kcub1=\E[D, kcud1=\E[B, kcuf1=\E[C, kcuu1=\E[A, kf0=\EOT,
-       kf1=\EOP, kf2=\EOQ, kf3=\EOR, kf4=\EOS, kf5=\EOm, kf6=\EOl,
-       kf7=\EOM, kf8=\EOn, rc=\E8, ri=\EM, rmacs=^O, rmir=\E[4l,
-       rmkx=\E>, rmso=\E[m, rmul=\E[m, sc=\E7, smacs=^N, smir=\E[4h,
-       smkx=\E=, smso=\E[7m, smul=\E[4m,
+       acsc=, cnorm=, csr=\E[%i%p1%2d;%p2%2dr, cub1=\E[D,
+       cud1=\E[B, cuf1=\E[C, cup=\E[%i%p1%2d;%p2%2dH, cuu1=\E[A,
+       cvvis=\E[?1l\E[?4l\E[?7h, dch1=\E[P, dl1=\E[M,
+       if=/usr/share/tabset/vt100, il1=\E[L, kcub1=\E[D,
+       kcud1=\E[B, kcuf1=\E[C, kcuu1=\E[A, kf0=\EOT, kf1=\EOP,
+       kf2=\EOQ, kf3=\EOR, kf4=\EOS, kf5=\EOm, kf6=\EOl, kf7=\EOM,
+       kf8=\EOn, rc=\E8, ri=\EM, rmacs=^O, rmir=\E[4l, rmkx=\E>,
+       rmso=\E[m, rmul=\E[m, sc=\E7, smacs=^N, smir=\E[4h, smkx=\E=,
+       smso=\E[7m, smul=\E[4m, use=ansi+erase,
+
 # From: David S. Lawyer, June 1997:
 # The CIT 101-e was made in Japan in 1983-4 and imported by CIE
 # Terminals in Irvine, CA.  It was part of CITOH Electronics.  In the
@@ -15710,25 +15913,23 @@ cit101e|C. Itoh CIT-101e,
 # (cit101e-rv: added empty <rmcup> to suppress a tic warning. --esr)
 cit101e-rv|C. Itoh CIT-101e (sets reverse video),
        am, eo, mir, msgr, xenl, xon,
-       cols#80, it#8, lines#24,
-       OTnl=\EM, bel=^G, blink=\E[5m, bold=\E[1m, cbt=\E[Z,
-       civis=\E[1v, clear=\E[H\E[J, cnorm=\E[0;3;4v, cr=\r,
-       csr=\E[%i%p1%d;%p2%dr, cub=\E[%p1%dD, cub1=^H,
+       cols#80, lines#24,
+       OTnl=\EM, bel=^G, blink=\E[5m, bold=\E[1m, civis=\E[1v,
+       cnorm=\E[0;3;4v, cr=\r, cub=\E[%p1%dD, cub1=^H,
        cud=\E[%p1%dB, cud1=\E[B, cuf=\E[%p1%dC, cuf1=\E[C,
        cup=\E[%i%p1%d;%p2%dH, cuu=\E[%p1%dA, cuu1=\E[A,
-       cvvis=\E[3;5v, dch=\E[%p1%dP, dch1=\E[P, dl=\E[%p1%dM,
-       dl1=\E[M, ed=\E[J, el=\E[K, flash=\E[?5l$<200/>\E[?5h,
-       home=\E[H, hpa=\E[%i%p1%dG, ht=^I, hts=\EH, ich=\E[%p1%d@,
-       ich1=\E[@, il=\E[%p1%dL, il1=\E[L, ind=\n,
+       cvvis=\E[3;5v, flash=\E[?5l$<200/>\E[?5h, home=\E[H,
+       hpa=\E[%i%p1%dG, ind=\n,
        is2=\E<\E>\E[?1l\E[?3l\E[?4l\E[?5h\E[?7h\E[?8h\E[3g\E[>5g\E(
            B\E[m\E[20l\E[1;24r\E[24;1H,
        kbs=^?, kcub1=\E[D, kcud1=\E[B, kcuf1=\E[C, kcuu1=\E[A,
-       kf1=\EOP, kf2=\EOQ, kf3=\EOR, kf4=\EOS, nel=\EE, rc=\E8,
-       rev=\E[7m, ri=\EM, rmcup=, rmir=\E[4l, rmso=\E[m, rmul=\E[m,
-       rs1=\Ec\E[?7h\E[>5g, sc=\E7, sgr0=\E[m,
-       smcup=\E[>5g\E[?7h\E[?5h, smir=\E[4h, smso=\E[7m,
-       smul=\E[4m, tbc=\E[3g, u6=\E[%i%p1%d;%p2%dR, u7=\E[6n,
-       u8=\E[?6c, u9=\E[c, use=ecma+index,
+       kf1=\EOP, kf2=\EOQ, kf3=\EOR, kf4=\EOS, nel=\EE, rev=\E[7m,
+       ri=\EM, rmcup=, rmso=\E[m, rmul=\E[m, rs1=\Ec\E[?7h\E[>5g,
+       sgr0=\E[m, smcup=\E[>5g\E[?7h\E[?5h, smso=\E[7m,
+       smul=\E[4m, u6=\E[%i%p1%d;%p2%dR, u8=\E[?6c,
+       use=ansi+enq, use=ansi+csr, use=ansi+erase, use=ansi+idc,
+       use=ansi+idl, use=ansi+inittabs, use=ecma+index,
+
 cit101e-n|CIT-101e w/o am,
        am@,
        cvvis=\E[?1l\E[?4l\E[?7l, kbs=^H, kcub1=^H, kcud1=\n,
@@ -15754,25 +15955,24 @@ cit101e-n132|CIT-101e with 132 cols w/o am,
 # (cit500: I added <rmam>/<smam> based on the init string -- esr)
 cit500|CIE Terminals CIT-500,
        OTbs, OTpt, mir, msgr, xon,
-       OTkn#10, cols#80, it#8, lines#64, vt#3,
-       acsc=, bel=^G, blink=\E[5m, bold=\E[1m, cbt=\E[Z,
-       clear=\E[H\E[J, cr=\r, csr=\E[%i%p1%d;%p2%dr,
-       cub=\E[%p1%dD, cub1=^H, cud=\E[%p1%dB, cud1=\n,
+       OTkn#10, cols#80, lines#64, vt#3,
+       acsc=, bel=^G, blink=\E[5m, bold=\E[1m, clear=\E[H\E[J,
+       cr=\r, cub=\E[%p1%dD, 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=\EM, dch1=\E[P, dl=\E[%p1%dM, dl1=\E[M,
-       ed=\EJ, el=\EK, home=\E[H, ht=^I, hts=\EH, il=\E[%p1%dL,
-       il1=\E[L, ind=\n, is2=\E<\E)0, kbs=^H, kcbt=\E[Z, kcub1=\EOD,
-       kcud1=\EOB, kcuf1=\EOC, kcuu1=\EOA, kdch1=\E[P, kdl1=\E[M,
-       ked=\EJ, kel=\EK, kf0=\EOP, kf1=\EOQ, kf2=\EOR, kf3=\EOS,
-       kf4=\EOU, kf5=\EOV, kf6=\EOW, kf7=\EOX, kf8=\EOY, kf9=\EOZ,
-       khome=\E[H, kich1=\E[4h, kil1=\E[L, krmir=\E[4l, lf0=PF1,
-       lf1=PF2, lf2=PF3, lf3=PF4, lf4=F15, lf5=F16, lf6=F17, lf7=F18,
-       lf8=F19, lf9=F20, ll=\E[64H, nel=\EE, rc=\E8, rev=\E[7m,
+       cuu=\E[%p1%dA, cuu1=\EM, dch1=\E[P, ed=\EJ, el=\EK,
+       home=\E[H, ind=\n, is2=\E<\E)0, kcbt=\E[Z, kdch1=\E[P,
+       kdl1=\E[M, ked=\EJ, kel=\EK, kf0=\EOP, kf1=\EOQ, kf2=\EOR,
+       kf3=\EOS, kf4=\EOU, kf5=\EOV, kf6=\EOW, kf7=\EOX, kf8=\EOY,
+       kf9=\EOZ, khome=\E[H, kich1=\E[4h, kil1=\E[L, krmir=\E[4l,
+       lf0=PF1, lf1=PF2, lf2=PF3, lf3=PF4, lf4=F15, lf5=F16, lf6=F17,
+       lf7=F18, lf8=F19, lf9=F20, ll=\E[64H, nel=\EE, rev=\E[7m,
        ri=\EM, rmacs=^O, rmam=\E[?7l, rmir=\E[4l, rmkx=\E[?1l\E>,
        rmso=\E[m, rmul=\E[m,
        rs1=\E<\E2\E[20l\E[?6l\E[r\E[m\E[q\E(B\017\E)0\E>,
-       sc=\E7, sgr0=\E[m, smacs=^N, smam=\E[?7h, smir=\E[4h,
-       smkx=\E[?1h\E=, smso=\E[7m, smul=\E[4m, tbc=\E[3g,
+       sgr0=\E[m, smacs=^N, smam=\E[?7h, smir=\E[4h,
+       smkx=\E[?1h\E=, smso=\E[7m, smul=\E[4m,
+       use=ansi+apparrows, use=ansi+csr, use=ansi+idl,
+       use=ansi+inittabs,
 
 # C. Itoh printers begin here
 citoh|ci8510|8510|C. Itoh 8510a,
@@ -15913,23 +16113,21 @@ visa50|Geveke VISA 50 terminal in ANSI 80 character mode,
        csr=\E[%i%p1%d;%p2%dr, cub=\E[%p1%dD, cub1=\E[D,
        cud=\E[%p1%dB, cud1=\E[B, cuf=\E[%p1%dC, cuf1=\E[C,
        cup=\E[%i%p1%d;%p2%dH, cuu=\E[%p1%dA, cuu1=\E[A,
-       dch=\E[%p1%dX, dch1=\E[X, dim=\E[2m, dl=\E[%p1%dM,
-       dl1=\E[M, ed=\E[J, el=\E[K, flash=\E[?5h$<100/>\E[?5l,
-       home=\E[H, hpa=\E[%i%p1%dG, ht=^I, ich=\E[%p1%d@,
-       ich1=\E[@, il=\E[%p1%dL, il1=\E[L, ind=\n, invis=\E[8m,
+       dch=\E[%p1%dX, dch1=\E[X, dim=\E[2m, ed=\E[J, el=\E[K,
+       flash=\E[?5h$<100/>\E[?5l, home=\E[H, hpa=\E[%i%p1%dG,
+       ht=^I, ind=\n, invis=\E[8m,
        is2=\E0;2m\E[1;25r\E[25;1H\E[?3l\E[?7h\E[?8h,
-       ka1=\E[f, ka3=\EOQ, kb2=\EOP, kbs=^H, kc1=\EOR, kc3=\EOS,
-       kcub1=\E[D, kcud1=\E[A, kcuf1=\E[C, kcuu1=\E[A, kdch1=^?,
+       ka1=\E[f, ka3=\EOQ, kb2=\EOP, kc1=\EOR, kc3=\EOS, kdch1=^?,
        kdl1=\EOS, kf0=\E010, kf1=\E001, kf10=\E011, kf2=\E002,
        kf3=\E003, kf4=\E004, kf5=\E005, kf6=\E006, kf7=\E007,
        kf8=\E008, kf9=\E009, khome=\E[f, lf2=A delete char,
        lf3=A insert line, lf4=A delete line, lf5=A clear,
        lf6=A ce of/cf gn, lf7=A print, lf8=A on-line,
        lf9=A funcl0=A send, nel=\r\n, rev=\E[7m, rmacs=\E[3l,
-       rmam=\E[?7l, rmir=\E[4l, rmkx=\E>, rmso=\E[0;2m,
-       rmul=\E[0m, sgr0=\E[0;2m, smacs=\E3h, smam=\E?7h,
-       smir=\E[4h, smkx=\E=, smso=\E[2;7m, smul=\E[4m, tbc=\E[3g,
-       vpa=\E[%i%p1%dd,
+       rmam=\E[?7l, rmkx=\E>, rmso=\E[0;2m, rmul=\E[0m,
+       sgr0=\E[0;2m, smacs=\E3h, smam=\E?7h, smkx=\E=,
+       smso=\E[2;7m, smul=\E[4m, tbc=\E[3g, vpa=\E[%i%p1%dd,
+       use=ansi+arrows, use=ansi+idc, use=ansi+idl,
 
 #### Human Designed Systems (Concept)
 #
@@ -15984,13 +16182,13 @@ c108|concept108|c108-8p|concept108-8p|Concept 108 w/8 pages,
            \Ep\n,
        rmcup=\Ev  \001\177p\Ep\r\n, use=c108-4p,
 c108-4p|concept108-4p|Concept 108 w/4 pages,
-       OTbs, eslok, hs, xon,
+       eslok, hs, xon,
        pb@,
        acsc=jEkTl\\mMqLxU, cnorm=\Ew, cr=\r,
        cup=\Ea%p1%?%p1%{95}%>%t\001%{96}%-%;%{32}%+%c%p2%?%p2%{95}
            %>%t\001%{96}%-%;%{32}%+%c,
        cvvis=\EW, dch1=\E 1$<16*>, dsl=\E ;\177, fsl=\Ee\E z\s,
-       ind=\n, is1=\EK\E!\E F,
+       is1=\EK\E!\E F,
        is3=\EU\E z"\Ev\177 !p\E ;"\E z \Ev  \001 p\Ep\n,
        rmacs=\Ej\s, rmcup=\Ev  \001 p\Ep\r\n, smacs=\Ej!,
        smcup=\EU\Ev  8p\Ep\r\E\025,
@@ -16315,27 +16513,22 @@ oc100|oconcept|c100-1p|old 1-page Concept 100,
 #       and mc5= should use the \E[?4i and \E[?5i strings instead).
 
 hds200|Human Designed Systems HDS200,
-       am, bw, eslok, hs, km, mir, msgr, xenl, xon,
-       cols#80, it#8, lines#24, lm#0,
+       am, bw, eslok, hs, km, mir, msgr, xenl, xon, NQ,
+       cols#80, lines#24, lm#0,
        acsc=``aaffggjjkkllmmnnooqqssttuuvvwwxx~~, bel=^G,
-       blink=\E[0;5m, bold=\E[0;1m, cbt=\E[Z, civis=\E[6+{,
-       clear=\E[H\E[J, cnorm=\E[+{, cr=\r,
-       csr=\E[%i%p1%d;%p2%dr, cub=\E[%p1%dD, cub1=\E[D,
-       cud=\E[%p1%dB, cud1=\E[B, cuf=\E[%p1%dC, cuf1=\E[C,
-       cup=\E[%i%p1%d;%p2%dH, cuu=\E[%p1%dA, cuu1=\E[A,
-       dch=\E[%p1%dP, dch1=\E[P, dl=\E[%p1%dM, dl1=\E[M,
-       dsl=\E[2!w\r\n\E[!w, ed=\E[J, el=\E[K, el1=\E[1K,
-       fsl=\E[!w, home=\E[H, hpa=\E[%i%p1%dG, ht=^I, hts=\EH,
-       ich=\E[%p1%d@, il=\E[%p1%dL, il1=\E[L, ind=\ED,
-       invis=\E[0;8m,
+       blink=\E[0;5m, bold=\E[0;1m, civis=\E[6+{, cnorm=\E[+{,
+       cr=\r, cub=\E[%p1%dD, cub1=\E[D, cud=\E[%p1%dB, cud1=\E[B,
+       cuf=\E[%p1%dC, cuf1=\E[C, cup=\E[%i%p1%d;%p2%dH,
+       cuu=\E[%p1%dA, cuu1=\E[A, dch=\E[%p1%dP, dch1=\E[P,
+       dsl=\E[2!w\r\n\E[!w, el1=\E[1K, fsl=\E[!w, home=\E[H,
+       hpa=\E[%i%p1%dG, ich=\E[%p1%d@, ind=\ED, invis=\E[0;8m,
        is2=\E)0\017\E[m\E[=107;207h\E[90;3u\E[92;3u\E[43;1u\177\E$P
            \177\E[44;1u\177\E$Q\177\E[45;1u\177\E$R\177\E[46;1u
            \177\E$S\177\E[200;1u\177\E$A\177\E[201;1u\177\E$B\177
            \E[202;1u\177\E$C\177\E[203;1u\177\E$D\177\E[204;1u\177
            \E$H\177\E[212;1u\177\E$I\177\E[213;1u\177\E$\010\177\E[
            214;1u"\E$\177"\E[2!w\E[25;25w\E[!w\E[2*w\E[2+x\E[;3+},
-       kDC=\E$^?, kHOM=\E$H, kLFT=\E$D, kRIT=\E$C, kbs=^H,
-       kcbt=\E$I, kcub1=\E[D, kcud1=\E[B, kcuf1=\E[C, kcuu1=\E[A,
+       kDC=\E$^?, kHOM=\E$H, kLFT=\E$D, kRIT=\E$C, kcbt=\E$I,
        kdch1=^?, kent=\r, kf1=^\001\r, kf10=^\010\r, kf11=^\011\r,
        kf12=^\012\r, kf13=\EOP, kf14=\EOQ, kf15=\EOR, kf16=\EOS,
        kf17=^\017\r, kf18=^\018\r, kf19=^\019\r, kf2=^\002\r,
@@ -16347,49 +16540,49 @@ hds200|Human Designed Systems HDS200,
        kf45=\E$R, kf46=\E$S, kf47=^\047\r, kf48=^\048\r,
        kf49=^\049\r, kf5=^\005\r, kf50=^\050\r, kf51=^\051\r,
        kf52=^\052\r, kf53=^\053\r, kf6=^\006\r, kf7=^\007\r,
-       kf8=^\008\r, kf9=^\009\r, khome=\E[H, kind=\E[T, knp=\E[U,
-       kpp=\E[V, kri=\E[S, ll=\E[H\E[A, nel=\E[E, rc=\E8,
-       rev=\E[0;7m, ri=\EM, rmacs=^O, rmir=\E[4l, rmso=\E[m\017,
-       rmul=\E[m\017, sc=\E7,
+       kf8=^\008\r, kf9=^\009\r, kind=\E[T, knp=\E[U, kpp=\E[V,
+       kri=\E[S, ll=\E[H\E[A, nel=\E[E, rev=\E[0;7m, ri=\EM,
+       rmacs=^O, rmir=\E[4l, rmso=\E[m\017, rmul=\E[m\017,
        sgr=\E[0%?%p1%p6%O%t;1%;%?%p2%t;4%;%?%p4%t;5%;%?%p1%p3%O%t;7
            %;%?%p7%t;8%;m%?%p9%t\016%e\017%;,
        sgr0=\E[m\017, smacs=^N, smir=\E[4h, smso=\E[0;1;7m,
-       smul=\E[0;4m, tbc=\E[3g, tsl=\E[2!w\E[%i%p1%dG,
-       vpa=\E[%i%p1%dd, use=ansi+pp,
+       smul=\E[0;4m, tsl=\E[2!w\E[%i%p1%dG, vpa=\E[%i%p1%dd,
+       use=ansi+arrows, use=ansi+csr, use=ansi+erase,
+       use=ansi+idl, use=ansi+inittabs, use=ansi+pp,
 
 # <ht> through <el> included to specify padding needed in raw mode.
 # (avt-ns: added empty <acsc> to suppress a tic warning --esr)
 avt-ns|Concept AVT no status line,
        OTbs, am, eo, mir, ul, xenl, xon,
-       cols#80, it#8, lines#24, lm#192,
-       acsc=, bel=^G, blink=\E[5m, bold=\E[1m, cbt=\E[Z,
+       cols#80, lines#24, lm#192,
+       acsc=, bel=^G, blink=\E[5m, bold=\E[1m,
        clear=\E[H\E[J$<38>, cnorm=\E[=119l, cr=\r,
-       csr=\E[%i%p1%d;%p2%dr, cub=\E[%p1%dD, 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,
-       cvvis=\E[=119h, dch1=\E[P, dim=\E[1!{, dl=\E[%p1%dM$<4*>,
-       dl1=\E[M$<4>, ed=\E[J$<96>, el=\E[K$<6>, home=\E[H,
-       hpa=\E[%p1%{1}%+%dG, ht=\011$<4>, hts=\EH, ich=\E[%p1%d@,
-       ich1=\E[@, il=\E[%p1%dL$<4*>, il1=\E[L$<4>, ind=\n$<8>,
-       invis=\E[8m, ip=$<4>, is1=\E[=103l\E[=205l,
+       cub=\E[%p1%dD, 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, cvvis=\E[=119h, dim=\E[1!{,
+       dl=\E[%p1%dM$<4*>, dl1=\E[M$<4>, ed=\E[J$<96>,
+       el=\E[K$<6>, home=\E[H, hpa=\E[%p1%{1}%+%dG, ht=\011$<4>,
+       ich=\E[%p1%d@, il=\E[%p1%dL$<4*>, il1=\E[L$<4>,
+       ind=\n$<8>, invis=\E[8m, ip=$<4>, is1=\E[=103l\E[=205l,
        is2=\E[1*q\E[2!t\E[7!t\E[=4;101;119;122l\E[=107;118;207h\E)1
            \E[1Q\EW\E[!y\E[!z\E>\E[0:0:32!r\E[0*w\E[w\E2\r\n\E[2;27
            !t,
-       kbs=^H, kcub1=\E[D, kcud1=\E[B, kcuf1=\E[C, kcuu1=\E[A,
        kdch1=\E\002\r, ked=\E\004\r, kf1=\EOP, kf2=\EOQ, kf3=\EOR,
-       kf4=\EOS, khome=\E[H, kich1=\E\001\r, kil1=\E\003\r,
-       ll=\E[24H, mc0=\E[0i, mc4=\E[4i, mc5=\E[5i,
+       kf4=\EOS, kich1=\E\001\r, kil1=\E\003\r, ll=\E[24H,
+       mc0=\E[0i, mc4=\E[4i, mc5=\E[5i,
        pfloc=\E[%p1%d;0u#%p2%s#, pfx=\E[%p1%d;1u#%p2%s#,
-       prot=\E[99m, rc=\E8, rev=\E[7m, ri=\EM$<4>, rmacs=\016$<1>,
-       rmcup=\E[w\E2\r\n, rmir=\E[4l, rmkx=\E[!z\E[0;2u,
-       rmso=\E[7!{, rmul=\E[4!{, sc=\E7,
+       prot=\E[99m, rev=\E[7m, ri=\EM$<4>, rmacs=\016$<1>,
+       rmcup=\E[w\E2\r\n, rmkx=\E[!z\E[0;2u, rmso=\E[7!{,
+       rmul=\E[4!{,
        sgr=\E[%?%p1%t7;%;%?%p2%t4;%;%?%p3%t7;%;%?%p4%t5;%;%?%p6%t1;
            %;%?%p7%t8;%;%?%p8%t99;%;m%?%p5%t\E[1!{%;%?%p9%t\017%e
            \016%;$<1>,
        sgr0=\E[m\016$<1>, smacs=\017$<1>,
-       smcup=\E[=4l\E[1;24w\E2\r, smir=\E[4h,
-       smkx=\E[1!z\E[0;3u, smso=\E[7m, smul=\E[4m, tbc=\E[3g,
-       vpa=\E[%p1%{1}%+%dd, use=ansi+rep,
+       smcup=\E[=4l\E[1;24w\E2\r, smkx=\E[1!z\E[0;3u,
+       smso=\E[7m, smul=\E[4m, vpa=\E[%p1%{1}%+%dd,
+       use=ansi+arrows, use=ansi+csr, use=ansi+idc1,
+       use=ansi+inittabs, use=ansi+rep,
+
 avt-rv-ns|Concept AVT in reverse video mode/no status line,
        flash=\E[=205l$<200>\E[=205h, is1=\E[=103l\E[=205h,
        use=avt-ns,
@@ -16706,16 +16899,16 @@ dg460-ansi|Data General Dasher 460 in ANSI-mode,
        cuf1=\E[C, cup=\E[%i%p1%2d;%p2%2dH, cuu1=\E[A, dch1=\E[P,
        dim=\E[2m, dl1=\E[M, ed=\E[J, el=\E[K, home=\E[H, ht=^I,
        ich1=\E[@, il1=\E[L, ind=\E[S, is2=^^F@, kbs=\E[D,
-       kcub1=\E[D, kcud1=\E[B, kcuf1=\E[C, kcuu1=\E[A,
        kf0=\E[001z, kf1=\E[002z, kf2=\E[003z, kf3=\E[004z,
        kf4=\E[005z, kf5=\E[006z, kf6=\E[007z, kf7=\E[008z,
-       kf8=\E[009z, kf9=\E[00:z, khome=\E[H, lf0=f1, lf1=f2, lf2=f3,
-       lf3=f4, lf4=f5, lf5=f6, lf6=f7, lf7=f8, lf9=f10, mc0=\E[i,
-       rev=\E[7m, ri=\E[T, rmso=\E[m, rmul=\E[05,
+       kf8=\E[009z, kf9=\E[00:z, lf0=f1, lf1=f2, lf2=f3, lf3=f4,
+       lf4=f5, lf5=f6, lf6=f7, lf7=f8, lf9=f10, mc0=\E[i, rev=\E[7m,
+       ri=\E[T, rmso=\E[m, rmul=\E[05,
        sgr=%?%p9%t\E(0%e\E(B%;\E[0%?%p5%t;2%;%?%p2%t;4%;%?%p4%t;5%;
            %?%p1%p3%|%t;7%;m,
-       sgr0=\E(B\E[m, smso=\E[7m, smul=\E[4m, u6=\E[%d;%dR,
-       u7=\E[6n, u8=\E[5n, u9=\E[0n,
+       sgr0=\E(B\E[m, smso=\E[7m, smul=\E[4m, u8=\E[5n, u9=\E[0n,
+       use=ansi+arrows, use=ansi+cpr,
+
 # From: Wayne Throop <mcnc!rti-sel!rtp47!throopw> (not official)
 # Data General 605x
 # Ought to work for a Model 6242, Type D210 as well as a 605x.
@@ -16964,8 +17157,8 @@ d400|d400-dg|d450|d450-dg|Data General DASHER D400/D450 series,
 d410|d411|d460|d461|Data General DASHER D410/D460 series,
        mc5i,
        acsc=j$k"l!m#n)q+t'u&v(w%x*, civis=\E[3;0v,
-       cnorm=\E[3;2v, dch=\E[%p1%dP, dch1=\E[P, dl=\E[%p1%dM,
-       dl1=\E[M, ich=\E[%p1%d@, ich1=\E[@, il=\E[%p1%dL, il1=\E[L,
+       cnorm=\E[3;2v, dch=\E[%p1%dP, dch1=\E[P, ich=\E[%p1%d@,
+       ich1=\E[@,
        is1=\E[<0;<1;<2;<4l\E[5;0v\E[1;1;80w\E[1;6;<2h,
        is2=\E[3;2;2;1;1;1v\E(B\E)4\017, mc4=\E[4i, mc5=\E[5i,
        ri=\EM, rmacs=\E)4\017, rs1=\Ec\E[<2h,
@@ -16973,6 +17166,7 @@ d410|d411|d460|d461|Data General DASHER D410/D460 series,
        sgr=\E[%?%p1%t2;7%;%?%p3%t7;%;%?%p4%t5;%;%?%p2%t4;%;%?%p1%p5
            %|%t2;%;%?%p6%t4;7;%;m\E)%?%p9%t6\016%e4\017%;,
        sgr0=\E[m\E)4\017, smacs=\E)6\016, use=d211,
+       use=ansi+idl,
 
 # Initialization string 2 sets:
 #      \E[3;2;2;0;1;0v
@@ -17235,11 +17429,12 @@ d578-7b|Data General DASHER D578 in 7-bit mode,
 cs10|colorscan|Datamedia Color Scan 10,
        msgr,
        cols#80, lines#24,
-       bel=^G, clear=\E[H\E[J, cr=\r, cub1=^H, cud1=\n, cuf1=\E[C,
-       cup=\E[%i%p1%02d;%p2%02dH, cuu1=\E[A, ed=\E[J, el=\E[K,
-       ind=\n, kcub1=\E[D, kcud1=\E[B, kcuf1=\E[C, kcuu1=\E[A,
-       kf1=\EOP, kf2=\EOQ, kf3=\EOR, kf4=\EOS, rmso=\E[m, rmul=\E[m,
-       sgr0=\E[m, smso=\E[7m, smul=\E[4m,
+       bel=^G, cr=\r, cub1=^H, cud1=\n, cuf1=\E[C,
+       cup=\E[%i%p1%02d;%p2%02dH, cuu1=\E[A, ind=\n, kcub1=\E[D,
+       kcud1=\E[B, kcuf1=\E[C, kcuu1=\E[A, kf1=\EOP, kf2=\EOQ,
+       kf3=\EOR, kf4=\EOS, rmso=\E[m, rmul=\E[m, sgr0=\E[m,
+       smso=\E[7m, smul=\E[4m, use=ansi+erase,
+
 cs10-w|Datamedia Color Scan 10 with 132 columns,
        cols#132,
        cup=\E[%i%p1%02d;%p2%03dH, use=cs10,
@@ -17284,7 +17479,7 @@ dm3025|Datamedia 3025a,
        is2=\EQ\EU\EV, rmdc=\EQ, rmir=\EQ, rmso=\EO0, smdc=\EP,
        smir=\EP, smso=\EO1,
 dm3045|Datamedia 3045a,
-       OTbs, am, eo, km@, ul, xenl,
+       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,
@@ -17322,11 +17517,10 @@ dm3045|Datamedia 3045a,
 #      CRT Saver       0=Off  1=On
 # dm80/1 is a VT100 lookalike, but it doesn't seem to need any padding.
 dm80|dmdt80|dt80|Datamedia dt80/1,
-       clear=\E[2J\E[H, cud1=\n, cuf1=\E[C,
-       cup=%i\E[%p1%d;%p2%dH, cuu1=\E[A, ed=\E[J, el=\E[K,
-       home=\E[H, mc0=\E[0i, mc4=\E[4i, mc5=\E[5i, ri=\EM,
-       rmso=\E[m, rmul=\E[m, sgr0=\E[m\017$<2>, smso=\E[7m,
-       smul=\E[4m, use=vt100+4bsd,
+       clear=\E[2J\E[H, cuf1=\E[C, cup=%i\E[%p1%d;%p2%dH,
+       cuu1=\E[A, ed=\E[J, el=\E[K, mc0=\E[0i, mc4=\E[4i, mc5=\E[5i,
+       ri=\EM, rmso=\E[m, rmul=\E[m, sgr0=\E[m\017$<2>,
+       smso=\E[7m, smul=\E[4m, use=vt100+4bsd,
 # except in 132 column mode, where it needs a little padding.
 # This is still less padding than the VT100, and you can always turn on
 # the ^S/^Q handshaking, so you can use VT100 flavors for things like
@@ -17413,22 +17607,22 @@ ts100|ts100-sp|Falco ts100-sp,
        cols#80, it#8, lines#24, vt#3,
        acsc=``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~,
        bel=^G, blink=\E[5m$<2>, bold=\E[1m$<2>,
-       clear=\E[H\E[J$<50>, cr=\r, csr=\E[%i%p1%d;%p2%dr,
-       cub=\E[%p1%dD, cub1=^H, cud=\E[%p1%dB, cud1=\n,
-       cuf=\E[%p1%dC, cuf1=\E[C$<2>,
+       clear=\E[H\E[J$<50>, cr=\r, cub=\E[%p1%dD, cub1=^H,
+       cud=\E[%p1%dB, cud1=\n, cuf=\E[%p1%dC, cuf1=\E[C$<2>,
        cup=\E[%i%p1%d;%p2%dH$<5>, cuu=\E[%p1%dA,
        cuu1=\E[A$<2>, dch1=\E~W, dl1=\E~R, ed=\E[J$<50>,
        el=\E[K$<3>, el1=\E[1K$<3>, enacs=\E(B\E)0, home=\E[H,
        ht=^I, hts=\EH, ich1=\E~Q, il1=\E~E, ind=\n, is1=\E~)\E~ea,
        kbs=^H, kcub1=\EOD, kcud1=\EOB, kcuf1=\EOC, kcuu1=\EOA,
-       rc=\E8, rev=\E[7m$<2>, ri=\EM$<5>, rmacs=^O, rmam=\E[?7l,
+       rev=\E[7m$<2>, ri=\EM$<5>, rmacs=^O, rmam=\E[?7l,
        rmkx=\E[?1l\E>, rmso=\E[m$<2>, rmul=\E[m$<2>,
-       rs2=\E>\E[?3l\E[?4l\E[?5l\E[?7h\E[?8h, sc=\E7,
+       rs2=\E>\E[?3l\E[?4l\E[?5l\E[?7h\E[?8h,
        sgr=\E[0%?%p1%p6%|%t;1%;%?%p2%t;4%;%?%p1%p3%|%t;7%;%?%p4%t;5
            %;m%?%p9%t\016%e\017%;$<2>,
        sgr0=\E[m\017$<2>, smacs=^N, smam=\E[?7h, smkx=\E[?1h\E=,
        smso=\E[1;7m$<2>, smul=\E[4m$<2>, tbc=\E[3g,
-       use=vt100+fnkeys,
+       use=ansi+csr, use=decid+cpr, use=vt100+fnkeys,
+
 ts100-ctxt|Falco ts-100 saving context,
        rmcup=\E~_b, smcup=\E~_d\E[2J, use=ts100,
 
@@ -17592,18 +17786,17 @@ go140w|graphon go-140 in 132 column mode,
 go225|go-225|Graphon 225,
        OTbs, am, mir, xenl,
        cols#80, it#8, lines#25, vt#3,
-       blink=\E[5m, bold=\E[1m, clear=\E[H\E[J,
-       csr=\E[%i%p1%d;%p2%dr, cub1=^H, cud1=\n, cuf1=\E[C,
+       blink=\E[5m, bold=\E[1m, cub1=^H, cud1=\n, cuf1=\E[C,
        cup=\E[%i%p1%d;%p2%dH, cuu1=\E[A, dch1=\E[P, dl1=\E[M,
-       ed=\E[J, el=\E[K, home=\E[H, ht=^I, il1=\E[L, ind=\ED,
-       is2=\E>\E[?3l\E[?4l\E[?5l\E[?7h\E[?8h, kbs=^H,
-       kcub1=\E[D, kcud1=\E[B, kcuf1=\E[C, kcuu1=\E[A, kf1=\EOP,
-       kf2=\EOQ, kf3=\EOR, kf4=\EOS, khome=\E[H, rc=\E8, rev=\E[7m,
+       home=\E[H, ht=^I, il1=\E[L, ind=\ED,
+       is2=\E>\E[?3l\E[?4l\E[?5l\E[?7h\E[?8h, kf1=\EOP,
+       kf2=\EOQ, kf3=\EOR, kf4=\EOS, rev=\E[7m,
        rf=/usr/share/tabset/vt100, ri=\EM, rmam=\E[?7l,
        rmcup=\E[!p\E[?7h\E[2;1;1#w, rmir=\E[4l, rmkx=\E>,
        rmso=\E[27m, rmul=\E[24m, rs1=\E[!p\E[?7h\E[2;1;1#w,
-       sc=\E7, sgr0=\E[m, smam=\E[?7h, smcup=\E[2;0#w\E[1;25r,
+       sgr0=\E[m, smam=\E[?7h, smcup=\E[2;0#w\E[1;25r,
        smir=\E[4h, smkx=\E=, smso=\E[7m, smul=\E[4m,
+       use=ansi+arrows, use=ansi+csr, use=ansi+erase,
 
 #### Harris (Beehive)
 #
@@ -17930,18 +18123,17 @@ hazel|exec80|h80|he80|Hazeltine Executive 80,
        OTbs, OTpt, am,
        cols#80, it#8, lines#24, vt#3,
        OTnl=\n, bel=^G, blink=\E[5m$<2/>, bold=\E[1m$<2/>,
-       clear=\E[;H\E[2J$<50/>, cr=\r, csr=\E[%i%p1%d;%p2%dr,
-       cub1=^H, cud1=\n, cuf1=\E[C$<2/>,
-       cup=\E[%i%p1%d;%p2%dH$<5/>, cuu1=\E[A$<2/>,
-       ed=\E[J$<50/>, el=\E[K$<3/>, home=\E[H, ht=^I,
-       is2=\E[1;24r\E[24;1H, kbs=^H, kcub1=\EOD, kcud1=\EOB,
-       kcuf1=\EOC, kcuu1=\EOA, kf1=\EOP, kf2=\EOQ, kf3=\EOR,
-       kf4=\EOS, rc=\E8, rev=\E[7m$<2/>,
+       clear=\E[;H\E[2J$<50/>, cr=\r, cub1=^H, cud1=\n,
+       cuf1=\E[C$<2/>, cup=\E[%i%p1%d;%p2%dH$<5/>,
+       cuu1=\E[A$<2/>, ed=\E[J$<50/>, el=\E[K$<3/>, home=\E[H,
+       ht=^I, is2=\E[1;24r\E[24;1H, kbs=^H, kcub1=\EOD,
+       kcud1=\EOB, kcuf1=\EOC, kcuu1=\EOA, kf1=\EOP, kf2=\EOQ,
+       kf3=\EOR, kf4=\EOS, rev=\E[7m$<2/>,
        rf=/usr/share/tabset/vt100, ri=\EM$<5/>,
        rmkx=\E[?1l\E>, rmso=\E[m$<2/>, rmul=\E[m$<2/>,
-       rs1=\E>\E[?3l\E[?4l\E[?5l\E[?7h\E[?8h, sc=\E7,
+       rs1=\E>\E[?3l\E[?4l\E[?5l\E[?7h\E[?8h,
        sgr0=\E[m$<2/>, smkx=\E[?1h\E=, smso=\E[7m$<2/>,
-       smul=\E[4m$<2/>,
+       smul=\E[4m$<2/>, use=ansi+csr,
 
 #### IBM
 #
@@ -17958,11 +18150,11 @@ ibm3101|i3101|IBM 3101-10,
        el=\EI, home=\EH, hts=\E0, ind=\n, kcub1=\ED, kcud1=\EB,
        kcuf1=\EC, kcuu1=\EA, nel=\r\n, tbc=\EH,
 ibm3151|IBM 3151 display,
-       is2=\E S, rmacs=\E>B, rmcup=\E>B, rs2=\E S, s0ds=\E>B,
+       is2=\E S, rmacs=\E>B, rs2=\E S,
        sgr=\E4%{64}%?%p1%t%{65}%|%;%?%p2%t%{66}%|%;%?%p3%t%{65}%|%;
            %?%p4%t%{68}%|%;%?%p5%t%{64}%|%;%?%p6%t%{72}%|%;%?%p7%t
            %{80}%|%;%c%?%p9%t\E>A%e\E>B%;,
-       sgr0=\E4@\E>B, smacs=\E>A, smcup=\E>B, use=ibm3162,
+       sgr0=\E4@\E>B, smacs=\E>A, use=ibm3162,
 # From: Mark Easter <marke@fsi-ssd.csg.ssd.fsi.com> 29 Oct 1992
 # removed kend, knp, kpp -TD
 #
@@ -18022,30 +18214,28 @@ ibm5151|wy60-AT|wyse60-AT|IBM 5151 Monochrome display,
        cols#80, it#8, lines#25,
        acsc=j\331k\277l\332m\300n\305q\304t\303u\264v\301w\302x
             \263,
-       bel=^G, blink=\E[5m, bold=\E[1m, clear=\E[H\E[J, cr=\r,
-       cub=\E[%p1%dD, 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, dch1=\E[P, dl=\E[%p1%dM,
-       dl1=\E[M, ech=\E[%p1%dX, ed=\E[J, el=\E[K, home=\E[H,
-       hpa=\E[%i%p1%dG, il=\E[%p1%dL, il1=\E[L, ind=\E[S,
-       invis=\E[8m, is2=\Ec, kbs=^H, kcbt=\E[Z, kclr=\E[144q,
-       kcub1=\E[D, kcud1=\E[B, kcuf1=\E[C, kcuu1=\E[A, kdch1=\E[P,
-       ked=\E[148q, kel=\E[142q, kend=\E[146q, kf1=\E[001q,
-       kf10=\E[010q, kf11=\E[011q, kf12=\E[012q, kf13=\E[013q,
-       kf14=\E[014q, kf15=\E[015q, kf16=\E[016q, kf17=\E[017q,
-       kf18=\E[018q, kf19=\E[019q, kf2=\E[002q, kf20=\E[020q,
-       kf21=\E[021q, kf22=\E[022q, kf23=\E[023q, kf24=\E[024q,
-       kf25=\E[025q, kf26=\E[026q, kf27=\E[027q, kf28=\E[028q,
-       kf29=\E[029q, kf3=\E[003q, kf30=\E[030q, kf31=\E[031q,
-       kf32=\E[032q, kf33=\E[033q, kf34=\E[034q, kf35=\E[035q,
-       kf36=\E[036q, kf4=\E[004q, kf5=\E[005q, kf6=\E[006q,
-       kf7=\E[007q, kf8=\E[008q, kf9=\E[009q, khome=\E[H,
+       bel=^G, blink=\E[5m, bold=\E[1m, cr=\r, cub=\E[%p1%dD,
+       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,
+       dch1=\E[P, ech=\E[%p1%dX, home=\E[H, hpa=\E[%i%p1%dG,
+       ind=\E[S, invis=\E[8m, is2=\Ec, kcbt=\E[Z, kclr=\E[144q,
+       kdch1=\E[P, ked=\E[148q, kel=\E[142q, kend=\E[146q,
+       kf1=\E[001q, kf10=\E[010q, kf11=\E[011q, kf12=\E[012q,
+       kf13=\E[013q, kf14=\E[014q, kf15=\E[015q, kf16=\E[016q,
+       kf17=\E[017q, kf18=\E[018q, kf19=\E[019q, kf2=\E[002q,
+       kf20=\E[020q, kf21=\E[021q, kf22=\E[022q, kf23=\E[023q,
+       kf24=\E[024q, kf25=\E[025q, kf26=\E[026q, kf27=\E[027q,
+       kf28=\E[028q, kf29=\E[029q, kf3=\E[003q, kf30=\E[030q,
+       kf31=\E[031q, kf32=\E[032q, kf33=\E[033q, kf34=\E[034q,
+       kf35=\E[035q, kf36=\E[036q, kf4=\E[004q, kf5=\E[005q,
+       kf6=\E[006q, kf7=\E[007q, kf8=\E[008q, kf9=\E[009q,
        kich1=\E[139q, kil1=\E[140q, kind=\E[151q, knp=\E[154q,
        kpp=\E[150q, kri=\E[155q, krmir=\E[4l, rev=\E[7m, ri=\E[T,
        rmir=\E[4l, rmso=\E[m, rmul=\E[m, rs2=\Ec,
        sgr=\E[%?%p1%t;7%;%?%p2%t;4%;%?%p3%t;7%;%?%p4%t;5%;%?%p6%t;1
            %;%?%p7%t;8%;m,
        sgr0=\E[0m, smir=\E[4h, smso=\E[7m, smul=\E[4m,
+       use=ansi+arrows, use=ansi+erase, use=ansi+idl,
        use=ecma+index,
 
 ibmaed|IBM Experimental display,
@@ -18070,8 +18260,7 @@ ibmmono|IBM workstation monochrome,
        sgr0=\Ew\Eq\Ez\EB, smso=\EZ, smul=\EW, tsl=\Ej\EY8%+ \Eo,
        use=ibm3101,
 ibmega|IBM Enhanced Color Display,
-       cr=\r, cud1=\n, ht=^I, ind=\n, kbs=^H, kcub1=^H, kcud1=\n,
-       nel=\r\n, use=ibmmono,
+       ht=^I, kcub1=^H, kcud1=\n, use=ibmmono,
 # This color scheme is assumed in some recent IBM terminal descriptions
 # (green on black, emulated on a 16-color terminal).
 ibm+color|IBM color definitions,
@@ -18092,18 +18281,16 @@ ibm+16color|IBM aixterm color definitions,
        setf=%p1%{8}%/%{6}%*%{3}%+\E[%d%p1%{8}%m%Pa%?%ga%{1}%=%t4%e
             %ga%{3}%=%t6%e%ga%{4}%=%t1%e%ga%{6}%=%t3%e%ga%d%;m,
 ibm5154|IBM 5154 Color display,
-       colors#8, ncv@, pairs#64,
+       ncv@,
        bold@, setab=\E[4%p1%dm, setaf=\E[3%p1%dm, use=ibm5151,
        use=ibm+color,
 ibmega-c|ibm5154-c|IBM Enhanced Color Display with standout and underline,
        rmso=\EB, rmul=\EB, smso=\EF\Ef3;, smul=\EF\Ef2;,
        use=ibmmono,
 ibmvga-c|IBM VGA display color termcap,
-       cr=\r, cud1=\n, ht=^I, ind=\n, kbs=^H, kcub1=^H, kcud1=\n,
-       nel=\r\n, use=ibmega-c,
+       ht=^I, kcub1=^H, kcud1=\n, use=ibmega-c,
 ibmvga|IBM VGA display,
-       cr=\r, cud1=\n, ht=^I, ind=\n, kbs=^H, kcub1=^H, kcud1=\n,
-       nel=\r\n, use=ibmega,
+       use=ibmega,
 # ibmapa* and ibmmono entries come from ACIS 4.3 distribution
 rtpc|ibmapa16|IBM 6155 Extended Monochrome Graphics Display,
        lines#32,
@@ -18134,44 +18321,32 @@ ibm6153-90|IBM 6153 Black & White display (36-line),
 ibm6153-40|IBM 6153 Black & White display (12-line),
        cols#40, lines#12, use=ibm6153-90,
 ibm8512|ibm8513|IBM color VGA Terminal,
-       am, mir, msgr,
-       cols#80, it#8, lines#25,
-       acsc=jjkkllmmnnqqttuuvvwwxx, blink=\E[5m, bold=\E[1m,
-       clear=\E[H\E[J, cub1=\E[D, cud1=\n, cuf1=\E[C,
-       cup=\E[%i%p1%d;%p2%dH, cuu1=\E[A, dl=\E[%p1%dM, dl1=\E[M,
-       ech=\E[%p1%dX, ed=\E[J, el=\E[K, home=\E[H, il=\E[%p1%dL,
-       il1=\E[L, is2=\Eb\E[m\017\E[?7h, kcud1=\E[B, kcuu1=\E[A,
-       kf0=\E[010q, kf1=\E[001q, kf2=\E[002q, kf3=\E[003q,
-       kf4=\E[004q, kf5=\E[005q, kf6=\E[006q, kf7=\E[007q,
-       kf8=\E[008q, kf9=\E[009q, khome=\E[H, rc=\E[u, rev=\E[7m,
+       mir,
+       cub1=\E[D, is2=\Eb\E[m\017\E[?7h, kf0=\E[010q, rc=\E[u,
        rmacs=^O, rmam=\E[?7l, rmcup=\E[20h, rmdc=\E[4l,
-       rmir=\E[4l, rmso=\E[m, rmul=\E[m,
        rs1=\Eb\E[m\017\E[?7h\E[H\E[J, sc=\E[s, sgr0=\E[m,
        smacs=^N, smam=\E[?7h, smcup=\E[20;4l\E[?7h\Eb,
-       smdc=\E[4h, smir=\E[4h, smso=\E[7m, smul=\E[4m,
-       use=ibm8503,
+       smdc=\E[4h, use=ibm8503,
 hft-c|HFT with Color,
-       colors#8, pairs#64,
        acsc=jjkkllmmnnqqttuuvvwwxx, s0ds=\E(B, s1ds=\E(0,
        setab=\E[4%p1%dm, setaf=\E[3%p1%dm, sgr0=\E[0m\E(B,
        use=ibm5151, use=ibm+color,
 hft-c-old|HFT with Color PC850,
-       colors#8, pairs#64,
        setab=\E[4%p1%dm, setaf=\E[3%p1%dm, use=ibm5151,
        use=ibm+color,
 hft-old|AIWS High Function Terminal,
        am, xon,
        cols#80, lines#25,
-       bel=^G, blink=\E[5m, bold=\E[1m, clear=\E[H\E[J, cr=\r,
-       cub1=^H, cud1=\n, cuf1=\E[C, cup=\E[%i%p1%d;%p2%dH,
-       cuu1=\E[A, dch1=\E[P, dl1=\E[M, ed=\E[J, el=\E[K, home=\E[H,
-       ht=^I, ich1=\E[@, il1=\E[L, ind=\n, invis=\E[8m, kbs=^H,
-       kcub1=\E[D, kcud1=\E[B, kcuf1=\E[C, kcuu1=\E[A,
-       kf1=\E[001q, kf2=\E[002q, kf3=\E[003q, kf4=\E[004q,
-       kf5=\E[005q, kf6=\E[006q, kf7=\E[007q, kf8=\E[008q,
-       kf9=\E[009q, khome=\E[H, knp=\E[153q, kpp=\E[159q,
+       bel=^G, blink=\E[5m, bold=\E[1m, cr=\r, cub1=^H, cud1=\n,
+       cuf1=\E[C, cup=\E[%i%p1%d;%p2%dH, cuu1=\E[A, dch1=\E[P,
+       dl1=\E[M, home=\E[H, ht=^I, ich1=\E[@, il1=\E[L, ind=\n,
+       invis=\E[8m, kf1=\E[001q, kf2=\E[002q, kf3=\E[003q,
+       kf4=\E[004q, kf5=\E[005q, kf6=\E[006q, kf7=\E[007q,
+       kf8=\E[008q, kf9=\E[009q, knp=\E[153q, kpp=\E[159q,
        ktbc=\E[010q, rev=\E[7m, rmir=\E6, rmso=\E[m, rmul=\E[m,
-       sgr0=\E[m, smir=\E6, smso=\E[7m, smul=\E[4m, use=ibm+color,
+       sgr0=\E[m, smir=\E6, smso=\E[7m, smul=\E[4m,
+       use=ansi+arrows, use=ansi+erase, use=ibm+color,
+
 ibm-system1|system1|IBM system/1 computer,
        am, xt,
        cols#80, lines#24,
@@ -18191,49 +18366,44 @@ lft|lft-pc850|LFT-PC850|IBM LFT PC850 Device,
        cr=\r, cub=\E[%p1%dD, 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, dch=\E[%p1%dP, dch1=\E[P,
-       dl=\E[%p1%dM, dl1=\E[M, ech=\E[%p1%dX, ed=\E[2J, el=\E[0K,
-       home=\E[H, hpa=\E[%i%p1%dG, ich=\E[%p1%d@, il=\E[%p1%dL,
-       il1=\E[L, ind=\ED, invis=\E[8m, is2=\Ec, kbs=^H, kcbt=\E[Z,
-       kclr=\E[144q, kcub1=\E[D, kcud1=\E[B, kcuf1=\E[C,
-       kcuu1=\E[A, kdch1=\E[P, ked=\E[148q, kel=\E[142q,
-       kend=\E[146q, kf1=\E[001q, kf10=\E[010q, kf11=\E[011q,
-       kf12=\E[012q, kf13=\E[013q, kf14=\E[014q, kf15=\E[015q,
-       kf16=\E[016q, kf17=\E[017q, kf18=\E[018q, kf19=\E[019q,
-       kf2=\E[002q, kf20=\E[020q, kf21=\E[021q, kf22=\E[022q,
-       kf23=\E[023q, kf24=\E[024q, kf25=\E[025q, kf26=\E[026q,
-       kf27=\E[027q, kf28=\E[028q, kf29=\E[029q, kf3=\E[003q,
-       kf30=\E[030q, kf31=\E[031q, kf32=\E[032q, kf33=\E[033q,
-       kf34=\E[034q, kf35=\E[035q, kf36=\E[036q, kf4=\E[004q,
-       kf5=\E[005q, kf6=\E[006q, kf7=\E[007q, kf8=\E[008q,
-       kf9=\E[009q, khome=\E[H, kich1=\E[139q, kil1=\E[140q,
+       ech=\E[%p1%dX, ed=\E[2J, el=\E[0K, home=\E[H,
+       hpa=\E[%i%p1%dG, ich=\E[%p1%d@, ind=\ED, invis=\E[8m,
+       is2=\Ec, kcbt=\E[Z, kclr=\E[144q, kdch1=\E[P, ked=\E[148q,
+       kel=\E[142q, kend=\E[146q, kf1=\E[001q, kf10=\E[010q,
+       kf11=\E[011q, kf12=\E[012q, kf13=\E[013q, kf14=\E[014q,
+       kf15=\E[015q, kf16=\E[016q, kf17=\E[017q, kf18=\E[018q,
+       kf19=\E[019q, kf2=\E[002q, kf20=\E[020q, kf21=\E[021q,
+       kf22=\E[022q, kf23=\E[023q, kf24=\E[024q, kf25=\E[025q,
+       kf26=\E[026q, kf27=\E[027q, kf28=\E[028q, kf29=\E[029q,
+       kf3=\E[003q, kf30=\E[030q, kf31=\E[031q, kf32=\E[032q,
+       kf33=\E[033q, kf34=\E[034q, kf35=\E[035q, kf36=\E[036q,
+       kf4=\E[004q, kf5=\E[005q, kf6=\E[006q, kf7=\E[007q,
+       kf8=\E[008q, kf9=\E[009q, kich1=\E[139q, kil1=\E[140q,
        kind=\E[151q, knp=\E[154q, kpp=\E[150q, kri=\E[155q,
        krmir=\E[4l, rev=\E[7m, ri=\EL, rmacs=\E(B, rmir=\E[4l,
        rmso=\E[0m, rmul=\E[0m, rs2=\Ec,
        sgr=\E[%?%p1%t;7%;%?%p2%t;4%;%?%p3%t;7%;%?%p4%t;5%;%?%p6%t;1
            %;%?%p7%t;8%;m%?%p9%t\E(0%e\E(B%;,
        sgr0=\E[0m, smacs=\E(0, smir=\E[4h, smso=\E[7m, smul=\E[4m,
-       tbc=\E[3g, use=ecma+index,
+       tbc=\E[3g, use=ansi+arrows, use=ansi+idl, use=ecma+index,
+
 # "Megapel" refers to the display adapter, which was used with the IBM RT
 # aka IBM 6150.
 ibm5081|hft|IBM Megapel Color display,
        acsc=jjkkllmmnnqqttuuvvwwxx, blink@, bold@, s0ds=\E(B,
        s1ds=\E(0, sgr0=\E[0m\E(B, use=ibm5154,
 ibm5081-c|ibmmpel-c|IBM 5081 1024x1024 256/4096 Megapel enhanced color display,
-       eslok, hs,
        lines#33,
-       dsl=\Ej\EYA \EI\Ek, fsl=\Ek, tsl=\Ej\EYA%+ \Eo,
-       use=ibmega-c,
+       dsl=\Ej\EYA \EI\Ek, tsl=\Ej\EYA%+ \Eo, use=ibmega-c,
 ibm8503|ibm8507|ibm8604|IBM 8503 B & W VGA display,
        use=hft-c,
 ibm8514|IBM 8514/a color VGA display,
        eslok, hs,
        dsl=\Ej\EYI \EI\Ek, fsl=\Ek, tsl=\Ej\EYI%+ \Eo, use=hft,
 ibm8514-c|IBM 8514 color display with standout and underline,
-       eslok, hs,
        lines#41,
-       cr=\r, cud1=\n, dsl=\Ej\EYI \EI\Ek, fsl=\Ek, ht=^I, ind=\n,
-       kbs=^H, kcub1=^H, kcud1=\n, nel=\r\n, tsl=\Ej\EYI%+ \Eo,
-       use=ibmega-c,
+       dsl=\Ej\EYI \EI\Ek, ht=^I, kcub1=^H, kcud1=\n,
+       tsl=\Ej\EYI%+ \Eo, use=ibmega-c,
 
 #
 # AIX entries.  IBM ships these with AIX 3.2.5.
@@ -18732,13 +18902,13 @@ kt7ix|kimtron model kt-7 or 70 in IX mode,
        cuf1=^L, cup=\E=%p1%{32}%+%c%p2%{32}%+%c, cuu1=^K,
        dch1=\EW, dim=\EG@, dl1=\ER, dsl=\Ef\r, ed=\EY, el=\ET, fsl=\r,
        home=^^, ht=^I, ich1=\EQ, il1=\EE, ind=\n,
-       is2=\EG0\E s\017\E~, kbs=^H, kcbt=\EI, kclr=\E*,
-       kcub1=\E[D, kcud1=\E[B, kcuf1=\E[C, kcuu1=\E[A, kdl1=\ER,
-       ked=\EY, kel=\ET, kend=\EY, kf0=^AI\r, kf1=^A@\r, kf2=^AA\r,
+       is2=\EG0\E s\017\E~, kcbt=\EI, kclr=\E*, kdl1=\ER, ked=\EY,
+       kel=\ET, kend=\EY, kf0=^AI\r, kf1=^A@\r, kf2=^AA\r,
        kf3=^AB\r, kf4=^AC\r, kf5=^AD\r, kf6=^AE\r, kf7=^AF\r,
        kf8=^AG\r, kf9=^AH\r, khome=^^, kich1=\EQ, kil1=\EE, knp=\EJ,
        nel=\r\n, pulse=\EK, rmacs=\E%%, rmir=, rmso=\EG0, rmul=\EG0,
        sgr0=\EG0, smacs=\E$, smir=, smso=\EG4, smul=\EG8, tsl=\Ef,
+       use=ansi+arrows,
 
 #### Microdata/MDIS
 #
@@ -18915,32 +19085,29 @@ prism8-w|p8-w|P8-W|MDC Prism-8 in 132 column mode,
 #
 prism9|p9|P9|MDC Prism-9 in ANSI mode,
        am, bw, hs, msgr, xenl, xon,
-       cols#80, it#8, lines#24, vt#3, wsl#72,
-       bel=^G, blink=\E[5m, bold=\E[1m, cbt=\E[Z, civis=\E[<4l,
-       clear=^L, cnorm=\E[<4h, cr=\r, csr=\E[%i%p1%d;%p2%d%%v,
+       cols#80, lines#24, vt#3, wsl#72,
+       bel=^G, blink=\E[5m, bold=\E[1m, civis=\E[<4l, clear=^L,
+       cnorm=\E[<4h, cr=\r, csr=\E[%i%p1%d;%p2%d%%v,
        cub=\E[%p1%dD, 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, dch=\E[%p1%dP, dch1=\E[P,
-       dl=\E[%p1%dM, dl1=\E[M, dsl=\E[%}\024, ech=\E[%p1%dX,
-       ed=\E[J$<10>, el=\E[K, fsl=^T, home=\E[H, hpa=\E[%i%p1%d`,
-       ht=^I, hts=\EH, il=\E[%p1%dL, il1=\E[L, ind=\n,
-       is2=\E[&p\E[<12l\E F, kbs=^H, kclr=^L, kcub1=\E[D,
-       kcud1=\E[B, kcuf1=\E[C, kcuu1=\E[A, kf1=\E[11~,
-       kf10=\E[21~, kf11=\E[23~, kf12=\E[24~, kf13=\E[25~,
-       kf14=\E[26~, kf15=\E[28~, kf16=\E[29~, kf17=\E[31~,
-       kf18=\E[32~, kf2=\E[12~, kf3=\E[13~, kf4=\E[14~,
-       kf5=\E[15~, kf6=\E[17~, kf7=\E[18~, kf8=\E[19~, kf9=\E[20~,
-       khome=\E[H, nel=\r\n, prot=\E[32%{, rc=\E[%z,
-       rep=\E[%p2%db%p1%c, rev=\E[7m, ri=\E[L, rmir=\E[4l,
-       rmso=\E[27m, rmul=\E[24m,
+       dsl=\E[%}\024, ech=\E[%p1%dX, ed=\E[J$<10>, el=\E[K,
+       fsl=^T, home=\E[H, hpa=\E[%i%p1%d`, ind=\n,
+       is2=\E[&p\E[<12l\E F, kclr=^L, kf1=\E[11~, kf10=\E[21~,
+       kf11=\E[23~, kf12=\E[24~, kf13=\E[25~, kf14=\E[26~,
+       kf15=\E[28~, kf16=\E[29~, kf17=\E[31~, kf18=\E[32~,
+       kf2=\E[12~, kf3=\E[13~, kf4=\E[14~, kf5=\E[15~, kf6=\E[17~,
+       kf7=\E[18~, kf8=\E[19~, kf9=\E[20~, nel=\r\n, prot=\E[32%{,
+       rc=\E[%z, rep=\E[%p2%db%p1%c, rev=\E[7m, ri=\E[L,
+       rmir=\E[4l, rmso=\E[27m, rmul=\E[24m,
        rs2=\E[&p\E[<12l\E\sF\E[3g\E[9;17;25;33;41;49;57;65;73
            \sN,
        sc=\E[%y,
        sgr=\E[0%?%p1%p3%|%t;7%;%?%p2%t;4%;%?%p4%t;5%;%?%p6%t;1%;m%?
            %p8%t\E[32%%{%;%?%p9%t\016%e\017%;,
        sgr0=\E[0m\017, smir=\E[4h, smso=\E[7m, smul=\E[4m,
-       tbc=\E[3g, tsl=\E[%i%p1%d%%}, vpa=\E[%i%p1%dd,
-       use=ansi+pp,
+       tsl=\E[%i%p1%d%%}, vpa=\E[%i%p1%dd, use=ansi+arrows,
+       use=ansi+idl, use=ansi+inittabs, use=ansi+pp,
 
 # p9-w: Prism-9 in 132 column mode
 # --------------------------------
@@ -18960,8 +19127,8 @@ prism9-w|p9-w|P9-W|MDC Prism-9 in 132 column mode,
 # Insertion and deletion operations possible.
 #
 prism9-8|p9-8|P9-8|MDC Prism-9 in P8 mode,
-       dch=\E[%p1%dP, dch1=\E[P, dl=\E[%p1%dM, dl1=\E[M,
-       ich=\E[%p1%d@, ich1=\E[@, il=\E[%p1%dL, il1=\E[L, use=p8,
+       dch=\E[%p1%dP, dch1=\E[P, ich=\E[%p1%d@, ich1=\E[@,
+       use=ansi+idl, use=p8,
 
 # p9-8-w: Prism-9 in P8 and 132 column modes
 # ------------------------------------------
@@ -18969,8 +19136,8 @@ prism9-8|p9-8|P9-8|MDC Prism-9 in P8 mode,
 # P9 terminal in P8 emulation mode and 132 column mode.
 #
 prism9-8-w|p9-8-w|P9-8-W|MDC Prism-9 in Prism 8 emulation and 132 column mode,
-       dch=\E[%p1%dP, dch1=\E[P, dl=\E[%p1%dM, dl1=\E[M,
-       ich=\E[%p1%d@, ich1=\E[@, il=\E[%p1%dL, il1=\E[L, use=p8-w,
+       dch=\E[%p1%dP, dch1=\E[P, ich=\E[%p1%d@, ich1=\E[@,
+       use=ansi+idl, use=p8-w,
 
 # p12: Prism-12 in ANSI mode
 # ---------------------------
@@ -19083,8 +19250,7 @@ act4|microterm|microterm act iv,
 # The act 5 has hardware tabs, but they are in columns 8, 16, 24, 32, 41 (!)...
 # (microterm5: removed obsolete ":ma==^Z^P^Xl^Kj:" -- esr)
 act5|microterm5|microterm act v,
-       kcub1=^H, kcud1=^K, kcuf1=^X, kcuu1=^Z, ri=\EH$<3>, uc=^H\EA,
-       use=act4,
+       ri=\EH$<3>, uc=^H\EA, use=act4,
 # Mimes using brightness for standout.  Half bright is really dim unless
 # you turn up the brightness so far that lines show up on the screen.
 mime-fb|full bright mime1,
@@ -19126,7 +19292,7 @@ mime2a|mime2a-v|microterm mime2a (emulating an enhanced VT52),
 # (mime3a: removed obsolete ":ma=^X ^K^J^Z^P:" -- esr)
 mime3a|mime1 emulating 3a,
        am@,
-       kcub1=^H, kcud1=^K, kcuf1=^X, kcuu1=^Z, use=adm3a,
+       kcud1=^K, kcuf1=^X, kcuu1=^Z, use=adm3a,
 mime3ax|mime-3ax|mime1 emulating enhanced 3a,
        it#8,
        dl1=\027$<80>, ed=^_, el=^X, ht=\011$<3>, il1=\001$<80>,
@@ -19159,23 +19325,21 @@ mm340|mime340|mime 340,
 mt4520-rv|micro-term 4520 reverse video,
        am, hs, msgr, xenl, xon,
        cols#80, it#8, lines#24, wsl#80,
-       bel=^G, clear=\E[H\E[J, cnorm=\E[0V\E8, cr=\r,
-       csr=\E[%i%p1%d;%p2%dr, cub=\E[%p1%dD, cub1=\E[D,
+       bel=^G, cnorm=\E[0V\E8, cr=\r, cub=\E[%p1%dD, cub1=\E[D,
        cud=\E[%p1%dB, cud1=\E[B, cuf=\E[%p1%dC, cuf1=\E[C,
        cup=\E[%i%p1%d;%p2%dH, cuu=\E[%p1%dA, cuu1=\E[A,
-       cvvis=\E7\E[0U, dch=\E[%p1%dP, dch1=\E[P, dl=\E[%p1%dM,
-       dl1=\E[M, ed=\E[J, el=\E[K, flash=\E[?5l$<200/>\E[?5h,
-       fsl=\E[?5l\E[?5h, home=\E[H, ht=^I, hts=\EH, ich=\E[%p1%d@,
-       ich1=\E[@, il=\E[%p1%dL, il1=\E[L, ind=\ED,
+       cvvis=\E7\E[0U, dch=\E[%p1%dP, dch1=\E[P,
+       flash=\E[?5l$<200/>\E[?5h, fsl=\E[?5l\E[?5h, home=\E[H,
+       ht=^I, hts=\EH, ich=\E[%p1%d@, ich1=\E[@, ind=\ED,
        is2=\E(B\E[2l\E>\E[20l\E[?3l\E[?5h\E[?7h\E[1;24r\E[24;1H\E[H
            \E[J,
-       kbs=^H, kcub1=\E[D, kcud1=\E[B, kcuf1=\E[C, kcuu1=\E[A,
-       kf1=\EOP, kf2=\EOQ, kf3=\EOR, kf4=\EOS, khome=\E[H,
-       ll=\E[24;1H, nel=\EE, rc=\E8, rf=/usr/share/tabset/vt100,
-       ri=\EM, rmam=\E[?7l, rmso=\E[0m, rmul=\E[24m,
+       kf1=\EOP, kf2=\EOQ, kf3=\EOR, kf4=\EOS, ll=\E[24;1H, nel=\EE,
+       rf=/usr/share/tabset/vt100, ri=\EM, rmam=\E[?7l,
+       rmso=\E[0m, rmul=\E[24m,
        rs1=\E(B\E[2l\E>\E[20l\E[?3l\E[?5h\E[?7h\E[H\E[J,
-       sc=\E7, sgr0=\E[m, smam=\E[?7h, smso=\E[7m, smul=\E[4m,
-       tbc=\E[g, tsl=\E[25;1H,
+       sgr0=\E[m, smam=\E[?7h, smso=\E[7m, smul=\E[4m, tbc=\E[g,
+       tsl=\E[25;1H, use=ansi+arrows, use=ansi+csr,
+       use=ansi+erase, use=ansi+idl,
 
 # Fri Aug  5 08:11:57 1983
 # This entry works for the ergo 4000 with the following setups:
@@ -19219,13 +19383,13 @@ ergo4000|microterm ergo 4000,
 ncr260intan|NCR Intecolor emulation of the 2900/260C with an ANSI keyboard,
        colors#8, pairs#64,
        op=\E[0m, setab=\E[4%p1%dm, setaf=\E[3%p1%dm,
-       use=ncr260vt300an,
+       use=decid+cpr, use=ncr260vt300an,
 # The Intecolor emulation of the NCR 2900/260C color terminal is basically a
 # DEC VT200/300 with color capabilities added.
 ncr260intwan|NCR Intecolor emulation of the 2900/260C with an ANSI keyboard (132 column),
        colors#8, pairs#64,
        op=\E[0m, setab=\E[4%p1%dm, setaf=\E[3%p1%dm,
-       use=ncr260vt300wan,
+       use=decid+cpr, use=ncr260vt300wan,
 # The Intecolor emulation of the NCR 2900/260C color terminal is basically a
 # DEC VT200/300 with color capabilities added.
 ncr260intpp|NCR Intecolor emulation of the 2900/260C with a PC+ keyboard,
@@ -19295,31 +19459,31 @@ ncr260vt100an|NCR 2900/260 VT100 with ANSI keyboard,
        cols#80, lines#24, nlab#32,
        acsc=``aaffggjjkkllmmnnooqqssttuuvvwwxx~~, bel=^G,
        blink=\E[5m, bold=\E[1m, clear=\E[2J\E[1;1H$<20>,
-       cr=\r$<1>, csr=\E[%i%p1%d;%p2%dr, cub=\E[%p1%dD$<5>,
-       cub1=\E[D$<5>, cud=\E[%p1%dB$<5>, cud1=\E[B$<5>,
-       cuf=\E[%p1%dC$<5>, cuf1=\E[C$<5>,
-       cup=\E[%i%p1%d;%p2%dH$<10>, cuu=\E[%p1%dA$<5>,
-       cuu1=\E[A$<5>, dch=\E[%p1%dP$<5>, dch1=\E[1P$<5>,
-       dl=\E[%p1%dM$<5>, dl1=\E[M$<5>, ech=\E[%p1%dX,
-       ed=\E[0J$<5>, el=\E[0K$<3>, el1=\E[1K$<3>, home=\E[H$<1>,
-       hpa=\E[%p1%dG$<40>, ht=^I, hts=\EH, ich=\E[%p1%d@$<5>,
-       il=\E[%p1%dL$<5>, il1=\E[L$<5>, ind=\ED$<5>,
-       indn=\E[%p1%dE$<5>, invis=\E[8m,
+       cr=\r$<1>, cub=\E[%p1%dD$<5>, cub1=\E[D$<5>,
+       cud=\E[%p1%dB$<5>, cud1=\E[B$<5>, cuf=\E[%p1%dC$<5>,
+       cuf1=\E[C$<5>, cup=\E[%i%p1%d;%p2%dH$<10>,
+       cuu=\E[%p1%dA$<5>, cuu1=\E[A$<5>, dch=\E[%p1%dP$<5>,
+       dch1=\E[1P$<5>, dl=\E[%p1%dM$<5>, dl1=\E[M$<5>,
+       ech=\E[%p1%dX, ed=\E[0J$<5>, el=\E[0K$<3>, el1=\E[1K$<3>,
+       home=\E[H$<1>, hpa=\E[%p1%dG$<40>, ht=^I, hts=\EH,
+       ich=\E[%p1%d@$<5>, il=\E[%p1%dL$<5>, il1=\E[L$<5>,
+       ind=\ED$<5>, indn=\E[%p1%dE$<5>, invis=\E[8m,
        is2=\E[!p\E[?7;19;67h\E[?1;3;4l\E(B\E)0\017\E[2J\E[1;1H\E>$<
            200>,
        kbs=^H, kcub1=\EOD, kcud1=\EOB, kcuf1=\EOC, kcuu1=\EOA,
-       khlp=\E[28~, kich1=\E[2~, krdo=\E[29~, nel=\EE$<5>, rc=\E8,
+       khlp=\E[28~, kich1=\E[2~, krdo=\E[29~, nel=\EE$<5>,
        rev=\E[7m, ri=\EM$<5>, rmacs=^O, rmir=\E[4l,
        rmkx=\E[?1l\E>, rmso=\E[0m, rmul=\E[0m,
        rs2=\E[!p\E[?7;19;67h\E[?1;3;4l\E(B\E)0\017\E[2J\E[1;1H\E>$<
            200>,
-       sc=\E7,
        sgr=\E[0%?%p1%p6%|%t;1%;%?%p2%t;4%;%?%p1%p3%|%t;7%;%?%p4%t;5
            %;%?%p7%t;8%;m%?%p9%t\016%e\017%;$<20>,
        sgr0=\E[0m\017$<20>, smacs=^N, smir=\E[4h,
        smkx=\E[?1h\E=, smso=\E[1;7m, smul=\E[4m, tbc=\E[3g,
-       vpa=\E[%p1%dd$<40>, use=vt220+vtedit, use=vt220+cvis,
-       use=vt220+keypad, use=ncr260vt+sl,
+       vpa=\E[%p1%dd$<40>, use=ansi+csr, use=decid+cpr,
+       use=vt220+vtedit, use=vt220+cvis, use=vt220+keypad,
+       use=ncr260vt+sl,
+
 ncr260vt+sl|NCR 2900/260 VT100 status line,
        hs,
        dsl=\E[0$~\E[1$~, fsl=\E[0$}, tsl=\E[2$~\E[1$},
@@ -19332,15 +19496,11 @@ ncr260vt100wan|NCR 2900/260 VT100 wide mode ANSI keyboard,
            200>,
        use=ncr260vt100an,
 ncr260vt100pp|NCR 2900/260 VT100 with PC+ keyboard,
-       is2=\E[!p\E[?7;19;67h\E[?1;3;4l\E(B\E)0\017\E[2J\E[1;1H\E>$<
-           200>,
        ka1=\E[H, ka3=\EOu, kb2=\E[V, kc3=\E[U, kcub1=\E[D,
        kcud1=\E[B, kcuf1=\E[C, kcuu1=\E[A, kdch1=\E[4~,
-       kend=\E[5~, khome=\E[2~, kich1=\E[1~, knp=\E[6~, kpp=\E[3~,
-       lf1=pf1, lf2=pf2, lf3=pf3, lf4=pf4, rmkx=\E>,
-       rs2=\E[!p\E[?7;19;67h\E[?1;3;4l\E(B\E)0\017\E[2J\E[1;1H\E>$<
-           200>,
-       smkx=\E=, use=ncr260vt100an,
+       kend=\E[5~, khome=\E[2~, kich1=\E[1~, kpp=\E[3~, lf1=pf1,
+       lf2=pf2, lf3=pf3, lf4=pf4, rmkx=\E>, smkx=\E=,
+       use=ncr260vt100an,
 ncr260vt100wpp|NCR 2900/260 VT100 wide mode PC+  keyboard,
        cols#132,
        cup=\E[%i%p1%d;%p2%dH$<30>,
@@ -19369,16 +19529,15 @@ ncr260vt200an|NCR 2900/260 VT200 with ANSI keyboard,
        kbs=^H, kcub1=\EOD, kcud1=\EOB, kcuf1=\EOC, kcuu1=\EOA,
        kf0=\EOy, kf10=\E[21~, kf11=\E[23~, kf12=\E[24~,
        kf13=\E[25~, kf14=\E[26~, kf15=\E[28~, kf16=\E[29~,
-       kf17=\E[31~, kf18=\E[32~, kf19=\E[33~, kf2=\EOQ,
-       kf20=\E[34~, kf21=\E[31~, kf22=\E[32~, kf23=\E[33~,
-       kf24=\E[34~, kf25=\E[35~, kf26=\E[1~, kf27=\E[2~,
-       kf28=\E[3~, kf29=\E[4~, kf3=\EOR, kf30=\E[5~, kf31=\E[6~,
-       kf32=\E[7~, kf33=\E[8~, kf34=\E[9~, kf35=\E[10~, kf4=\EOS,
-       kf5=\E[M, kf6=\E[17~, kf7=\E[18~, kf8=\E[19~, kf9=\E[20~,
-       khlp=\E[28~, krdo=\E[29~, mc0=\E[i, mc4=\E[4i, mc5=\E[5i,
-       nel=\EE, rc=\E8, rev=\E[7m, ri=\EM$<5>, rmacs=\017$<20>,
-       rmam=\E[?7l, rmir=\E[4l, rmkx=\E[?1l\E>, rmso=\E[27m,
-       rmul=\E[24m,
+       kf17=\E[31~, kf18=\E[32~, kf19=\E[33~, kf20=\E[34~,
+       kf21=\E[31~, kf22=\E[32~, kf23=\E[33~, kf24=\E[34~,
+       kf25=\E[35~, kf26=\E[1~, kf27=\E[2~, kf28=\E[3~,
+       kf29=\E[4~, kf30=\E[5~, kf31=\E[6~, kf32=\E[7~, kf33=\E[8~,
+       kf34=\E[9~, kf35=\E[10~, kf5=\E[M, kf6=\E[17~, kf7=\E[18~,
+       kf8=\E[19~, kf9=\E[20~, khlp=\E[28~, krdo=\E[29~, mc0=\E[i,
+       mc4=\E[4i, mc5=\E[5i, nel=\EE, rc=\E8, rev=\E[7m, ri=\EM$<5>,
+       rmacs=\017$<20>, rmam=\E[?7l, rmir=\E[4l, rmkx=\E[?1l\E>,
+       rmso=\E[27m, rmul=\E[24m,
        rs2=\E[!p\E[?7;19;67h\E[?1;3;4l\E(B\E)0\017\E[2J\E[1;1H\E>$<
            200>,
        sc=\E7,
@@ -19386,8 +19545,9 @@ ncr260vt200an|NCR 2900/260 VT200 with ANSI keyboard,
            %;%?%p7%t;8%;m%?%p9%t\016%e\017%;$<20>,
        sgr0=\E[0m\017$<20>, smacs=\016$<20>, smam=\E[?7h,
        smir=\E[4h, smkx=\E[?1h\E=, smso=\E[7m, smul=\E[4m,
-       tbc=\E[3g, vpa=\E[%p1%dd$<40>, use=vt220+vtedit,
-       use=vt220+cvis, use=vt220+keypad, use=ncr260vt+sl,
+       tbc=\E[3g, vpa=\E[%p1%dd$<40>, use=decid+cpr,
+       use=vt220+vtedit, use=vt220+cvis, use=vt220+keypad,
+       use=ncr260vt+sl,
 ncr260vt200wan|NCR 2900/260 VT200 wide mode ANSI keyboard,
        cols#132,
        cup=\E[%i%p1%d;%p2%dH$<30>,
@@ -19396,9 +19556,8 @@ ncr260vt200wan|NCR 2900/260 VT200 wide mode ANSI keyboard,
 ncr260vt200pp|NCR 2900/260 VT200 with PC+ keyboard,
        ka1=\E[H, ka3=\EOu, kb2=\E[V, kc3=\E[U, kcub1=\E[D,
        kcud1=\E[B, kcuf1=\E[C, kcuu1=\E[A, kdch1=\E[4~,
-       kend=\E[1~, khome=\E[H, kich1=\E[2~, knp=\E[6~, kpp=\E[5~,
-       lf1=pf1, lf2=pf2, lf3=pf3, lf4=pf4, rmkx=\E>, smkx=\E=,
-       use=ncr260vt200an,
+       kend=\E[1~, khome=\E[H, lf1=pf1, lf2=pf2, lf3=pf3, lf4=pf4,
+       rmkx=\E>, smkx=\E=, use=ncr260vt200an,
 ncr260vt200wpp|NCR 2900/260 VT200 wide mode PC+  keyboard,
        cols#132,
        cup=\E[%i%p1%d;%p2%dH$<30>,
@@ -19443,8 +19602,9 @@ ncr260vt300an|NCR 2900/260 VT300 with ANSI keyboard,
            %;%?%p7%t;8%;m%?%p9%t\016%e\017%;$<20>,
        sgr0=\E[0m\017$<20>, smacs=\016$<20>, smam=\E[?7h,
        smir=\E[4h, smkx=\E[?1h\E=, smso=\E[7m, smul=\E[4m,
-       tbc=\E[3g, vpa=\E[%p1%dd$<40>, use=vt220+vtedit,
-       use=vt220+cvis, use=vt220+keypad, use=ncr260vt+sl,
+       tbc=\E[3g, vpa=\E[%p1%dd$<40>, use=decid+cpr,
+       use=vt220+vtedit, use=vt220+cvis, use=vt220+keypad,
+       use=ncr260vt+sl,
 ncr260vt300wan|NCR 2900/260 VT300 wide mode ANSI keyboard,
        cols#132,
        cup=\E[%i%p1%d;%p2%dH$<30>,
@@ -19456,9 +19616,8 @@ ncr260vt300wan|NCR 2900/260 VT300 wide mode ANSI keyboard,
 ncr260vt300pp|NCR 2900/260 VT300 with PC+ keyboard,
        ka1=\E[H, ka3=\EOu, kb2=\E[V, kc3=\E[U, kcub1=\E[D,
        kcud1=\E[B, kcuf1=\E[C, kcuu1=\E[A, kdch1=\E[4~,
-       kend=\E[1~, khome=\E[H, kich1=\E[2~, knp=\E[6~, kpp=\E[5~,
-       lf1=pf1, lf2=pf2, lf3=pf3, lf4=pf4, rmkx=\E>, smkx=\E=,
-       use=ncr260vt300an,
+       kend=\E[1~, khome=\E[H, lf1=pf1, lf2=pf2, lf3=pf3, lf4=pf4,
+       rmkx=\E>, smkx=\E=, use=ncr260vt300an,
 ncr260vt300wpp|NCR260VT300WPP|NCR 2900/260 VT300 wide mode PC+  keyboard,
        cols#132,
        cup=\E[%i%p1%d;%p2%dH$<30>,
@@ -19742,7 +19901,7 @@ ncrvt100an|ncrvt100pp|NCR VT100 for the 2900 terminal,
            %p3%|%t;7%;%?%p4%t;5%;m$<120>,
        sgr0=\017\E[0m$<120>, smacs=\016$<90>, smir=\E[4h$<80>,
        smso=\E[7m$<30>, smul=\E[4m$<30>, tbc=\E[3g$<40>,
-       tsl=\E[>+1$<70>,
+       tsl=\E[>+1$<70>, use=decid+cpr,
 ncrvt100wan|NCRVT100WPP|ncrvt100wpp|NCR VT100 emulation of the 2900 terminal,
        cols#132,
        is2=\E[12h\E[?10l\E%/0n\E[P\031\E[?3h\E(B\E)0$<200>,
@@ -19909,7 +20068,7 @@ ndr9500-mc|NDR 9500 with magic cookies (enables underline inverse video invisibl
        blink=\EG2, invis=\EG1, rev=\EG4, rmso=\EG0, rmul=\EG0,
        sgr=\E%%\E(%?%p5%p8%|%t\E)%;%?%p9%t\E$%;\EG%{48}%?%p7%t%{1}
            %+%;%?%p4%t%{2}%+%;%?%p3%p1%|%t%{4}%+%;%?%p2%t%{8}%+%;%c,
-       sgr0=\EG0\E%%\E(, smso=\EG4, smul=\EG8, use=ndr9500,
+       smso=\EG4, smul=\EG8, use=ndr9500,
 
 ndr9500-25-mc|NDR 500 with 25 lines and magic cookies,
        lines#25, use=ndr9500-mc,
@@ -19997,13 +20156,12 @@ uts30|Sperry UTS30 with cp/m@1R1,
        cuu=\E[%p1%dA, cuu1=\E[A, dch=\E[%p1%dP, dch1=\EM,
        dl=\E[%p1%dM, dl1=\EL, ed=\E[J, el=\E[K, fsl=\r, home=\E[H,
        ht=^I, ich=\E[%p1%d@, ich1=\EO, il=\E[%p1%dL, il1=\EN,
-       ind=\n, indn=\E[%p1%dB, is2=\E[U 7\E[24;1H, kbs=^H,
-       kcub1=\EOD, kcud1=\EOB, kcuf1=\EOC, kcuu1=\EOA, khome=\E[H,
+       ind=\n, indn=\E[%p1%dB, is2=\E[U 7\E[24;1H, khome=\E[H,
        rc=\EX, rev=\E[7m, rf=/usr/share/tabset/vt100, ri=\EI,
        rin=\E[%p1%dA, rmacs=\Ed, rmam=\E[?7l, rmso=\E[m,
        rmul=\E[m, rs2=\E>\E[?3l\E[?4l\E[?5l\E[?7h\E[?8h,
        sc=\EW, sgr0=\E[m, smacs=\EF, smam=\E[?7m, smso=\E[7m,
-       smul=\E[4m, tsl=\E], uc=\EPB,
+       smul=\E[4m, tsl=\E], uc=\EPB, use=ansi+apparrows,
 
 #### Tandem
 #
@@ -20244,21 +20402,20 @@ tek4105-30|Tektronix 4015 emulating 30 line VT100,
        cols#80, it#8, lines#30, vt#3,
        acsc=``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~,
        bel=^G, blink=\E[5m$<2>, bold=\E[1m$<2>,
-       clear=\E[H\E[J$<50>, cr=\r, csr=\E[%i%p1%d;%p2%dr,
-       cub=\E[%p1%dD, cub1=^H, cud=\E[%p1%dB, cud1=\n,
-       cuf=\E[%p1%dC, cuf1=\E[C$<2>,
+       clear=\E[H\E[J$<50>, cr=\r, cub=\E[%p1%dD, cub1=^H,
+       cud=\E[%p1%dB, cud1=\n, cuf=\E[%p1%dC, cuf1=\E[C$<2>,
        cup=\E[%i%p1%d;%p2%dH$<5>, cuu=\E[%p1%dA,
        cuu1=\E[A$<2>, ed=\E[J$<50>, el=\E[K$<3>, el1=\E[1K$<3>,
        enacs=\E(B\E)0, home=\E[H, ht=^I, hts=\EH, ind=\n, kbs=^H,
-       kcub1=\EOD, kcud1=\EOB, kcuf1=\EOC, kcuu1=\EOA, rc=\E8,
+       kcub1=\EOD, kcud1=\EOB, kcuf1=\EOC, kcuu1=\EOA,
        rev=\E[7m$<2>, ri=\EM$<5>, rmacs=^O, rmam=\E[?7l,
        rmkx=\E[?1l\E>, rmso=\E[m$<2>, rmul=\E[m$<2>,
-       rs2=\E>\E[?3l\E[?4l\E[?5l\E[?7h\E[?8h, sc=\E7,
+       rs2=\E>\E[?3l\E[?4l\E[?5l\E[?7h\E[?8h,
        sgr=\E[0%?%p1%p6%|%t;1%;%?%p2%t;4%;%?%p1%p3%|%t;7%;%?%p4%t;5
            %;m%?%p9%t\016%e\017%;$<2>,
        sgr0=\E[m\017$<2>, smacs=^N, smam=\E[?7h, smkx=\E[?1h\E=,
        smso=\E[1;7m$<2>, smul=\E[4m$<2>, tbc=\E[3g,
-       use=vt100+fnkeys,
+       use=ansi+csr, use=vt100+fnkeys,
 
 # Tektronix 4105 from BRL
 # The following setup modes are assumed for normal operation:
@@ -20283,30 +20440,27 @@ tek4105-30|Tektronix 4015 emulating 30 line VT100,
 # "tek4105a" is just a guess:
 tek4105a|Tektronix 4105 (BRL),
        OTbs, OTpt, msgr, xon,
-       OTkn#8, cols#80, it#8, lines#30, vt#3,
-       acsc=, bel=^G, blink=\E[5m, bold=\E[1m, cbt=\E[Z,
-       civis=\E%!0\ETD00\E%!1, clear=\E[H\E[J,
-       cnorm=\E%!0\ETD10\E%!1, cr=\r, csr=\E[%i%p1%d;%p2%dr,
+       OTkn#8, cols#80, lines#30, vt#3,
+       acsc=, bel=^G, blink=\E[5m, bold=\E[1m,
+       civis=\E%!0\ETD00\E%!1, cnorm=\E%!0\ETD10\E%!1, cr=\r,
        cub=\E[%p1%dD, 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=\EM, cvvis=\E%!0\ETD70\E%!1,
-       dch=\E[%p1%dP, dch1=\E[P, dl=\E[%p1%dM, dl1=\E[M,
-       ech=\E[%p1%dX, ed=\E[J, el=\E[K, home=\E[H, ht=^I, hts=\EH,
-       il=\E[%p1%dL, il1=\E[L, ind=\n, is2=\E%!1, kbs=^H,
-       kcub1=\EOD, kcud1=\EOB, kcuf1=\EOC, kcuu1=\EOA, kf0=\EOA,
-       kf1=\EOB, kf2=\EOC, kf3=\EOD, kf4=\EOP, kf5=\EOQ, kf6=\EOR,
-       kf7=\EOS, lf0=F1, lf1=F2, lf2=F3, lf3=F4, lf4=F5, lf5=F6, lf6=F8,
-       ll=\E[30;H, nel=\EE, rc=\E8, rev=\E[7m, ri=\EM, rmacs=^O,
-       rmcup=\E%!0\ELBH=\E%!1, rmir=\E[4l, rmkx=\E[?1l\E>,
-       rmso=\E[m, rmul=\E[m,
+       dch=\E[%p1%dP, dch1=\E[P, ech=\E[%p1%dX, home=\E[H, ind=\n,
+       is2=\E%!1, kbs=^H, kcub1=\EOD, kcud1=\EOB, kcuf1=\EOC,
+       kcuu1=\EOA, kf0=\EOA, kf1=\EOB, kf2=\EOC, kf3=\EOD, kf4=\EOP,
+       kf5=\EOQ, kf6=\EOR, kf7=\EOS, lf0=F1, lf1=F2, lf2=F3, lf3=F4,
+       lf4=F5, lf5=F6, lf6=F8, ll=\E[30;H, nel=\EE, rev=\E[7m, ri=\EM,
+       rmacs=^O, rmcup=\E%!0\ELBH=\E%!1, rmir=\E[4l,
+       rmkx=\E[?1l\E>, rmso=\E[m, rmul=\E[m,
        rs2=\030\E%!0\EKC\E\014\EKR0\EKF0\ENM0\ELBH=\ETF8000010F40
            \ELI100\ELLA>\ELM0\EKE0\ENF1\EKS0\END0\E%!1\Ec\E[?3;5l
            \E[?7;8h\E[r\E[m\E>,
-       sc=\E7, sgr0=\E[m, smacs=^N, smcup=\E[?6l, smir=\E[4h,
-       smkx=\E[?1h\E=, smso=\E[7m, smul=\E[4m, tbc=\E[3g,
+       sgr0=\E[m, smacs=^N, smcup=\E[?6l, smir=\E[4h,
+       smkx=\E[?1h\E=, smso=\E[7m, smul=\E[4m, use=ansi+csr,
+       use=ansi+erase, use=ansi+idl, use=ansi+inittabs,
        use=ecma+index,
 
-#
 # Tektronix 4106/4107/4109 from BRL
 # The following setup modes are assumed for normal operation:
 #      CODE ansi               COLUMNMODE 80           CRLF no
@@ -20330,27 +20484,25 @@ tek4105a|Tektronix 4105 (BRL),
 # "IC" cannot be used in combination with "im" & "ei".
 tek4106brl|tek4107brl|tek4109brl|Tektronix 4106 4107 or 4109,
        msgr, xon,
-       cols#80, it#8, lines#32, vt#3,
-       acsc=, bel=^G, blink=\E[5m, bold=\E[1m, cbt=\E[Z,
-       civis=\E%!0\ETD00\E%!1, clear=\E[H\E[J,
-       cnorm=\E%!0\ETD10\E%!1, cr=\r, csr=\E[%i%p1%d;%p2%dr,
+       cols#80, lines#32, vt#3,
+       acsc=, bel=^G, blink=\E[5m, bold=\E[1m,
+       civis=\E%!0\ETD00\E%!1, cnorm=\E%!0\ETD10\E%!1, cr=\r,
        cub=\E[%p1%dD, 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=\EM, cvvis=\E%!0\ETD70\E%!1,
-       dch=\E[%p1%dP, dch1=\E[P, dl=\E[%p1%dM, dl1=\E[M,
-       ech=\E[%p1%dX, ed=\E[J, el=\E[K, home=\E[H, ht=^I, hts=\EH,
-       il=\E[%p1%dL, il1=\E[L, ind=\n, is2=\E%!1, kbs=^H,
-       kcub1=\EOD, kcud1=\EOB, kcuf1=\EOC, kcuu1=\EOA, kf0=\EOA,
-       kf1=\EOB, kf2=\EOC, kf3=\EOD, kf4=\EOP, kf5=\EOQ, kf6=\EOR,
-       kf7=\EOS, lf0=F1, lf1=F2, lf2=F3, lf3=F4, lf4=F5, lf5=F6, lf6=F8,
-       ll=\E[32;H, nel=\EE, rc=\E8, rev=\E[7m, ri=\EM, rmacs=^O,
-       rmcup=\E%!0\ELBH=\E%!1, rmir=\E[4l, rmkx=\E[?1l\E>,
-       rmso=\E[m, rmul=\E[m,
+       dch=\E[%p1%dP, dch1=\E[P, ech=\E[%p1%dX, home=\E[H, ind=\n,
+       is2=\E%!1, kbs=^H, kcub1=\EOD, kcud1=\EOB, kcuf1=\EOC,
+       kcuu1=\EOA, kf0=\EOA, kf1=\EOB, kf2=\EOC, kf3=\EOD, kf4=\EOP,
+       kf5=\EOQ, kf6=\EOR, kf7=\EOS, lf0=F1, lf1=F2, lf2=F3, lf3=F4,
+       lf4=F5, lf5=F6, lf6=F8, ll=\E[32;H, nel=\EE, rev=\E[7m, ri=\EM,
+       rmacs=^O, rmcup=\E%!0\ELBH=\E%!1, rmir=\E[4l,
+       rmkx=\E[?1l\E>, rmso=\E[m, rmul=\E[m,
        rs1=\030\E%!0\EKC\E\014\EKR0\EKF0\ENM0\ELBH=\ETF8000010F40
            \ELI100\ELLB0\ELM0\EKE0\ENF1\EKS0\END0\ERE0\E%!1\Ec\E[?3
            ;5l\E[?7;8h\E[r\E[m\E>,
-       sc=\E7, sgr0=\E[m, smacs=^N, smcup=\E[?6l, smir=\E[4h,
-       smkx=\E[?1h\E=, smso=\E[7;42m, smul=\E[4m, tbc=\E[3g,
+       sgr0=\E[m, smacs=^N, smcup=\E[?6l, smir=\E[4h,
+       smkx=\E[?1h\E=, smso=\E[7;42m, smul=\E[4m, use=ansi+csr,
+       use=ansi+erase, use=ansi+idl, use=ansi+inittabs,
        use=ecma+index,
 
 # Refer to:
@@ -20477,19 +20629,18 @@ otek4115|Tektronix 4115 (old),
 tek4115|Tektronix 4115 entry with more ANSI capabilities (new),
        am, xon,
        cols#80, lines#34,
-       bel=^G, blink=\E[5m, bold=\E[1m, cbt=\E[Z, clear=\E[H\E[J,
-       cr=\r, cub=\E[%p1%dD, 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, dch1=\E[P, dl=\E[%p1%dM,
-       dl1=\E[M, ed=\E[J, el=\E[K, home=\E[H, hpa=\E[%p1%{1}%+%dG,
-       ht=^I, hts=\EH, ich=\E[%p1%d@, ich1=\E[@, il=\E[%p1%dL,
-       il1=\E[L, ind=\n, invis=\E[8m, kbs=^H, kcub1=\E[D,
-       kcud1=\E[B, kcuf1=\E[C, kcuu1=\E[A, khome=\E[H, rev=\E[7m,
-       rmam=\E[?7l, rmso=\E[m, rmul=\E[m,
+       bel=^G, blink=\E[5m, bold=\E[1m, cbt=\E[Z, cr=\r,
+       cub=\E[%p1%dD, cub1=^H, cud=\E[%p1%dB, cud1=\n,
+       cuf=\E[%p1%dC, cuf1=\E[C, cuu=\E[%p1%dA, cuu1=\E[A,
+       dch1=\E[P, hpa=\E[%p1%{1}%+%dG, ht=^I, hts=\EH,
+       ich=\E[%p1%d@, ich1=\E[@, ind=\n, invis=\E[8m, kcuu1=\E[A,
+       rev=\E[7m, rmam=\E[?7l, rmso=\E[m, rmul=\E[m,
        sgr=\E[%?%p1%t7;%;%?%p2%t4;%;%?%p3%t7;%;%?%p4%t5;%;%?%p6%t1;
            %;%?%p7%t8;%;m,
        sgr0=\E[m, smam=\E[?7h, smso=\E[7m, smul=\E[4m, tbc=\E[3g,
-       vpa=\E[%p1%{1}%+%dd, use=ansi+rep,
+       vpa=\E[%p1%{1}%+%dd, use=ansi+arrows, use=ansi+cup,
+       use=ansi+erase, use=ansi+idl, use=ansi+rep,
+
 # The tek4125 emulates a VT100 incorrectly - the scrolling region
 # command is ignored.  The following entry replaces <csr> with the needed
 # <il>, <il>, and <smir>; removes some cursor pad commands that the tek4125
@@ -20533,15 +20684,15 @@ tek4207|Tektronix 4207 graphics terminal with memory,
 tek4404|Tektronix 4404,
        OTbs,
        cols#80, it#8, lines#32,
-       blink=\E[5m, bold=\E[1m, clear=\E[H\E[2J,
-       csr=\E[%i%p1%d;%p2%dr, cub1=^H, cud1=\n, cuf1=\E[C,
-       cup=\E[%i%p1%d;%p2%dH, cuu1=\E[A, dch1=\E[P, dl1=\E[1M,
-       ed=\E[J, el=\E[K, home=\E[H, ht=^I, hts=\E[2I, il1=\E[1L,
-       kcub1=\E[D, kcud1=\E[B, kcuf1=\E[C, kcuu1=\E[A, rc=\E8,
+       blink=\E[5m, bold=\E[1m, clear=\E[H\E[2J, cub1=^H, cud1=\n,
+       cuf1=\E[C, cup=\E[%i%p1%d;%p2%dH, cuu1=\E[A, dch1=\E[P,
+       dl1=\E[1M, ed=\E[J, el=\E[K, home=\E[H, ht=^I, hts=\E[2I,
+       il1=\E[1L, kcub1=\E[D, kcud1=\E[B, kcuf1=\E[C, kcuu1=\E[A,
        rmcup=\E[1;1H\E[0J\E[?6h\E[?1l, rmir=\E[4l,
-       rmkx=\E[?1h, rmso=\E[27m, rmul=\E[m, sc=\E7, sgr0=\E[m,
+       rmkx=\E[?1h, rmso=\E[27m, rmul=\E[m, sgr0=\E[m,
        smcup=\E%\E!1\E[1;32r\E[?6l\E>, smir=\E[4h,
-       smkx=\E[?1l, smso=\E[7m, smul=\E[4m,
+       smkx=\E[?1l, smso=\E[7m, smul=\E[4m, use=ansi+csr,
+
 # Some unknown person wrote:
 # I added the is string - straight Unix has ESC ; in the login
 # string which sets a ct8500 into monitor mode (aka 4025 snoopy
@@ -20759,16 +20910,15 @@ ibmpc|wy60-PC|wyse60-PC|IBM PC/XT running PC/IX,
        cuf=\E[%p1%dC, cuf1=\E[C, cup=\E[%i%p1%d;%p2%dH,
        cuu=\E[%p1%dA, cuu1=\E[A, ech=\E[%p1%dX, ed=\E[J, el=\E[K,
        home=\E[H, hpa=\E[%i%p1%dG, ind=\E[S\E[B,
-       indn=\E[%p1%dS\E[%p1%dB, invis=\E[30;40m, kbs=^H,
-       kcbt=^], kcub1=\E[D, kcud1=\E[B, kcuf1=\E[C, kcuu1=\E[A,
+       indn=\E[%p1%dS\E[%p1%dB, invis=\E[30;40m, kcbt=^],
        kdch1=^?, kend=\E[Y, kf1=\240, kf10=\251, kf2=\241, kf3=\242,
        kf4=\243, kf5=\244, kf6=\245, kf7=\246, kf8=\247, kf9=\250,
-       khome=\E[H, kich1=\E[^H, knp=\E[U, kpp=\E[V, ll=\E[24;1H,
-       nel=\r, rev=\E[7m, ri=\E[T\E[A, rin=\E[%p1%dT\E[%p1%dA,
+       kich1=\E[^H, knp=\E[U, kpp=\E[V, ll=\E[24;1H, nel=\r,
+       rev=\E[7m, ri=\E[T\E[A, rin=\E[%p1%dT\E[%p1%dA,
        rmso=\E[m, rmul=\E[m,
        sgr=\E[%?%p1%t;7%;%?%p2%t;4%;%?%p3%t;7%;%?%p4%t;5%;%?%p6%t;1
            %;%?%p7%t30;40%;m,
-       sgr0=\E[m, smso=\E[7m, smul=\E[4m,
+       sgr0=\E[m, smso=\E[7m, smul=\E[4m, use=ansi+arrows,
 
 #### Apple II
 #
@@ -20809,8 +20959,7 @@ apple2e|Apple //e,
 # mcvax!vu44!vu45!wilcke uses the "ap" entry together with Ascii Express Pro
 # 4.20, with incoming and outgoing terminals both on 0, emulation On.
 apple2e-p|Apple //e via Pascal,
-       cup=\036%p2%{32}%+%c%p1%{32}%+%c, kbs=^H, kcub1=^H,
-       kcud1=\n, use=apple2e,
+       cup=\036%p2%{32}%+%c%p1%{32}%+%c, use=apple2e,
 # (ASCII Express) MouseTalk "Standard Apple //" emulation from BRL
 # Enable DC3/DC1 flow control with "stty ixon -ixany".
 apple-ae|ASCII Express,
@@ -20966,16 +21115,17 @@ lisaterm|Apple Lisa or Lisa/2 running LisaTerm VT100 emulation,
        OTbs, OTpt, am, xenl, xon,
        OTkn#4, cols#80, it#8, lines#24, vt#3,
        bel=^G, blink=\E[5m, bold=\E[1m, clear=\E[H\E[2J, cr=\r,
-       csr=\E[%i%p1%d;%p2%dr, cub=\E[%p1%dD, 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, ed=\E[J,
-       el=\E[K, home=\E[H, ht=^I, hts=\EH, ind=\n, kbs=^H, kcub1=\EOD,
-       kcud1=\EOB, kcuf1=\EOC, kcuu1=\EOA, kf0=\EOP, kf1=\EOQ,
-       kf2=\EOR, kf3=\EOS, lf0=F1, lf1=F2, lf2=F3, lf3=F4, rc=\E8,
-       rev=\E[7m, ri=\EM, rmkx=\E[?1l\E>, rmso=\E[m, rmul=\E[m,
+       cub=\E[%p1%dD, 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, ed=\E[J, el=\E[K, home=\E[H, ht=^I,
+       hts=\EH, ind=\n, kbs=^H, kcub1=\EOD, kcud1=\EOB, kcuf1=\EOC,
+       kcuu1=\EOA, kf0=\EOP, kf1=\EOQ, kf2=\EOR, kf3=\EOS, lf0=F1,
+       lf1=F2, lf2=F3, lf3=F4, rev=\E[7m, ri=\EM, rmkx=\E[?1l\E>,
+       rmso=\E[m, rmul=\E[m,
        rs1=\E>\E[?1l\E[?3l\E[?4l\E[?5l\E[?7h\E[?8h\E[1;24r,
-       sc=\E7, sgr0=\E[m, smkx=\E[?1h\E=, smso=\E[7m, smul=\E[4m,
-       tbc=\E[3g,
+       sgr0=\E[m, smkx=\E[?1h\E=, smso=\E[7m, smul=\E[4m,
+       tbc=\E[3g, use=ansi+csr,
+
 # Lisaterm in 132 column ("wide") mode.
 lisaterm-w|Apple Lisa with Lisaterm in 132 column mode,
        cols#132,
@@ -21066,18 +21216,17 @@ amiga|Amiga ANSI,
        OTbs, am, bw, xenl,
        cols#80, lines#24,
        acsc=, bel=^G, blink=\E[7;2m, bold=\E[1m, cbt=\E[Z,
-       civis=\E[0 p, clear=\E[H\E[J, cnorm=\E[ p, cub=\E[%p1%dD,
-       cub1=\E[D, cud=\E[%p1%dB, cud1=\E[B, cuf=\E[%p1%dC,
-       cuf1=\E[C, cup=\E[%i%p1%d;%p2%dH, cuu=\E[%p1%dA,
-       cuu1=\E[A, dch=\E[%p1%dP, dch1=\E[P, dim=\E[2m,
-       dl=\E[%p1%dM, dl1=\E[M, ed=\E[J, el=\E[K, home=\E[H,
-       ich=\E[%p1%d@, ich1=\E[@, il=\E[%p1%dL, il1=\E[L, ind=\E[S,
-       invis=\E[8m, is2=\E[20l, kbs=^H, kcub1=\E[D, kcud1=\E[B,
-       kcuf1=\E[C, kcuu1=\E[A, kf0=\E[9~, kf1=\E[0~, kf2=\E[1~,
-       kf3=\E[2~, kf4=\E[3~, kf5=\E[4~, kf6=\E[5~, kf7=\E[6~,
-       kf8=\E[7~, kf9=\E[8~, rev=\E[7m, ri=\E[T, rmacs=^O,
-       rmso=\E[m, rmul=\E[m, rs1=\Ec, sgr0=\E[m, smacs=^N,
-       smso=\E[7m, smul=\E[4m, use=ecma+index,
+       civis=\E[0 p, cnorm=\E[ p, cub=\E[%p1%dD, cub1=\E[D,
+       cud=\E[%p1%dB, cud1=\E[B, cuf=\E[%p1%dC, cuf1=\E[C,
+       cup=\E[%i%p1%d;%p2%dH, cuu=\E[%p1%dA, cuu1=\E[A,
+       dch=\E[%p1%dP, dch1=\E[P, dim=\E[2m, home=\E[H,
+       ich=\E[%p1%d@, ich1=\E[@, ind=\E[S, invis=\E[8m,
+       is2=\E[20l, kbs=^H, kcub1=\E[D, kcud1=\E[B, kcuf1=\E[C,
+       kcuu1=\E[A, kf0=\E[9~, kf1=\E[0~, kf2=\E[1~, kf3=\E[2~,
+       kf4=\E[3~, kf5=\E[4~, kf6=\E[5~, kf7=\E[6~, kf8=\E[7~,
+       kf9=\E[8~, rev=\E[7m, ri=\E[T, rmacs=^O, rmso=\E[m,
+       rmul=\E[m, rs1=\Ec, sgr0=\E[m, smacs=^N, smso=\E[7m,
+       smul=\E[4m, use=ansi+erase, use=ansi+idl, use=ecma+index,
 
 # From: Hans Verkuil <hans@wyst.hobby.nl>, 4 Dec 1995
 # (amiga: added empty <acsc> to suppress a warning.
@@ -21120,17 +21269,15 @@ amiga-vnc|Amiga using VNC console (black on light gray),
        am, da, db, msgr, ndscr,
        btns#1, colors#16, cols#80, lines#24, lm#0, ncv#0, pairs#0x100,
        bel=^G, blink=\E[7;2m, bold=\E[1m, civis=\E[0p,
-       clear=\E[H\E[J, cnorm=\E[p\E[>?6l, cr=\r,
-       csr=\E[%i%p1%d;%p2%dr, cub=\E[%p1%dD, cub1=\E[D,
-       cud=\E[%p1%dB, cud1=\E[B, cuf=\E[%p1%dC, cuf1=\E[C,
-       cup=\E[%i%p1%d;%p2%dH, cuu=\E[%p1%dA, cuu1=\E[A,
-       cvvis=\E[>?6h, dch=\E[%p1%dP, dch1=\E[P, dim=\E[2m,
-       dl=\E[%p1%dM, dl1=\E[1M, ed=\E[J, el=\E[K, flash=^G,
+       cnorm=\E[p\E[>?6l, cr=\r, csr=\E[%i%p1%d;%p2%dr,
+       cub=\E[%p1%dD, cub1=\E[D, cud=\E[%p1%dB, cud1=\E[B,
+       cuf=\E[%p1%dC, cuf1=\E[C, cup=\E[%i%p1%d;%p2%dH,
+       cuu=\E[%p1%dA, cuu1=\E[A, cvvis=\E[>?6h, dch=\E[%p1%dP,
+       dch1=\E[P, dim=\E[2m, dl=\E[%p1%dM, dl1=\E[1M, flash=^G,
        ich=\E[%p1%d@, ich1=\E[@, il=\E[%p1%dL, il1=\E[1L, ind=\ED,
        invis=\E8m,
        is2=\E[>?2;18l\E[>?26;?6;20;>?15;?7;>?22;>?8h,
-       kbs=^H, kcbt=\233Z, kcub1=\E[D, kcud1=\E[B, kcuf1=\E[C,
-       kcuu1=\E[A, kdch1=^?, kf0=\E[9~, kf1=\E[0~, kf2=\E[1~,
+       kcbt=\233Z, kdch1=^?, kf0=\E[9~, kf1=\E[0~, kf2=\E[1~,
        kf3=\E[2~, kf4=\E[3~, kf5=\E[4~, kf6=\E[5~, kf7=\E[6~,
        kf8=\E[7~, kf9=\E[8~, khlp=\E[?~, khome=\E[44~, kll=\E[45~,
        kmous=\E[M, knp=\E[42~, kpp=\E[41~, nel=\EE, oc=\E[0m,
@@ -21140,7 +21287,8 @@ amiga-vnc|Amiga using VNC console (black on light gray),
        setab=\E[%?%p1%{8}%>%t%'F'%p1%+%d%e4%p1%d%;m,
        setaf=\E[%?%p1%{8}%>%t%'2'%p1%+%d%e3%p1%d%;m,
        sgr0=\E[0m\017\E[30;85;>15m, smcup=\E[?7h, smkx=\E[?1h,
-       smso=\E[1m, smul=\E[4m, use=ecma+index,
+       smso=\E[1m, smul=\E[4m, use=ansi+arrows, use=ansi+erase,
+       use=ecma+index,
 
 # MorphOS on Genesi Pegasos
 # By Pavel Fedin <sonic_amiga@rambler.ru>
@@ -21245,6 +21393,7 @@ osexec|Osborne executive,
 # See
 #      https://web.archive.org/web/20120703021949/http://www.minix3.org/manpages/html4/console.html
 minix|minix console (v3),
+       NQ,
        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,
@@ -21268,36 +21417,25 @@ minix-3.0|minix console (v3.0),
 
 # See
 #      https://web.archive.org/web/20030914201935/http://www.minix-vmd.org/pub/Minix-vmd/1.7.0/wwwman/man4/console.4.html
-# This is the entry provided with minix 1.7.4, with bogus :ri: removed.
+# This matches the entry provided with minix 1.7.4, with bogus :ri: removed.
 minix-1.7|minix console (v1.7),
-       am, xenl,
-       cols#80, it#8, lines#25,
-       bel=^G, blink=\E[5m, bold=\E[1m, clear=\E[H\E[0J, cr=\r,
-       cub=\E[%p1%dD, cub1=^H, cud=\E[%p1%dB, cud1=\E[B,
-       cuf=\E[%p1%dC, cuf1=\E[C, cup=\E[%i%p1%d;%p2%dH,
-       cuu=\E[%p1%dA, cuu1=\E[A, dch=\E[%p1%dP, dch1=\E[P,
-       dl=\E[%p1%dM, dl1=\E[M, ed=\E[0J, el=\E[K, el1=\E[2K,
-       home=\E[H, ht=^I, ich=\E[%p1%d@, ich1=\E[@, il=\E[%p1%dL,
-       il1=\E[L, ind=\n, is2=\E[0m, kbs=^H, kcub1=\E[D, kcud1=\E[B,
-       kcuf1=\E[C, kcuu1=\E[A, kf0=\E[Y, kf1=\E[V, kf2=\E[U,
-       kf3=\E[T, kf4=\E[S, kf5=\E[G, khome=\E[H, lf0=End, lf1=PgUp,
-       lf2=PgDn, lf3=Num +, lf4=Num -, lf5=Num 5, nel=\r\n,
-       rev=\E[7m, ri=\EM, rmso=\E[0m, rmul=\E[0m, sgr0=\E[0m,
-       smso=\E[7m, smul=\E[4m,
+       am, xenl, xon@,
+       el1=\E[2K, is2=\E[0m, lf0=End, lf1=PgUp, lf2=PgDn, lf3=Num +,
+       lf4=Num -, lf5=Num 5, use=minix-1.5,
 # Corrected Jan 14, 1997 by Vincent Broman <broman@nosc.mil>
 minix-old|minix-1.5|minix console (v1.5),
-       xon,
+       xon, NQ,
        cols#80, it#8, lines#25,
        bel=^G, blink=\E[5m, bold=\E[1m, clear=\E[H\E[0J, cr=\r,
        cub=\E[%p1%dD, cub1=^H, cud=\E[%p1%dB, cud1=\E[B,
        cuf=\E[%p1%dC, cuf1=\E[C, cup=\E[%i%p1%d;%p2%dH,
        cuu=\E[%p1%dA, cuu1=\E[A, dch=\E[%p1%dP, dch1=\E[P,
-       dl=\E[%p1%dM, dl1=\E[M, ed=\E[0J, el=\E[K, home=\E[H, ht=^I,
-       ich=\E[%p1%d@, ich1=\E[@, il=\E[%p1%dL, il1=\E[L, ind=\n,
-       kbs=^H, kcub1=\E[D, kcud1=\E[B, kcuf1=\E[C, kcuu1=\E[A,
-       kf0=\E[Y, kf1=\E[V, kf2=\E[U, kf3=\E[T, kf4=\E[S, kf5=\E[G,
-       khome=\E[H, nel=\r\n, rev=\E[7m, ri=\EM, rmso=\E[0m,
+       ed=\E[0J, el=\E[K, home=\E[H, ht=^I, ich=\E[%p1%d@,
+       ich1=\E[@, ind=\n, kf0=\E[Y, kf1=\E[V, kf2=\E[U, kf3=\E[T,
+       kf4=\E[S, kf5=\E[G, nel=\r\n, rev=\E[7m, ri=\EM, rmso=\E[0m,
        rmul=\E[0m, sgr0=\E[0m, smso=\E[7m, smul=\E[4m,
+       use=ansi+arrows, use=ansi+idl,
+
 # The linewrap option can be specified by editing /usr/include/minix/config.h
 # before recompiling the minix 1.5 kernel.
 minix-old-am|minix console with linewrap,
@@ -21349,16 +21487,17 @@ mai|basic4|MAI Basic Four in ANSI mode,
        am, da, db, mir, msgr,
        cols#82, it#8, lines#25,
        bel=^G, blink=\E[5m, bold=\E[1m, clear=^]^_, cnorm=\E[?7h,
-       cr=\r, csr=\E[%i%p1%d;%p2%dr, cub1=^H, cud1=\n, cuf1=^X,
-       cup=\E[%i%p1%d;%p2%dH, cuu1=^Z, cvvis=\E[?7l, dch1=\E[1P,
-       dl1=\E[M, ed=^_, el=^^, home=^], ht=^I,
-       if=/usr/share/tabset/vt100, il1=\E[L, ind=\ED,
+       cr=\r, cub1=^H, cud1=\n, cuf1=^X, cup=\E[%i%p1%d;%p2%dH,
+       cuu1=^Z, cvvis=\E[?7l, dch1=\E[1P, dl1=\E[M, ed=^_, el=^^,
+       home=^], ht=^I, if=/usr/share/tabset/vt100, il1=\E[L,
+       ind=\ED,
        is2=\E>\E[?1h\E[?7h\E[?5l\017\E(B\E[m\E[20l\E[1;24r\E[24;1H,
        kbs=^H, kcub1=\EOD, kcud1=\EOB, kcuf1=\EOC, kcuu1=\EOA,
        kf1=\EOP, kf2=\EOQ, kf3=\EOR, kf4=\EOS, kf5=\EOT, kf6=\EOU,
-       kf7=\EOV, kf8=\EOW, nel=\r\ED, rc=\E8, rev=\E[7m, ri=\E[T,
-       rmir=\E[4l, rmso=\E[m, rmul=\E[m, sc=\E7, sgr0=\E[m,
-       smir=\E[4h, smso=\E[7m, smul=\E[4m,
+       kf7=\EOV, kf8=\EOW, nel=\r\ED, rev=\E[7m, ri=\E[T,
+       rmir=\E[4l, rmso=\E[m, rmul=\E[m, sgr0=\E[m, smir=\E[4h,
+       smso=\E[7m, smul=\E[4m, use=ansi+csr,
+
 # basis from Peter Harrison, Computer Graphics Lab, San Francisco
 #   ucbvax!ucsfmis!harrison ...uucp / ucbvax!ucsfmis!harrison@BERKELEY ...ARPA
 #
@@ -21377,8 +21516,7 @@ mai|basic4|MAI Basic Four in ANSI mode,
 # (basis: removed obsolete ":ma=^K^P^R^L^L :nl=5000*^J:" -- esr)
 basis|BASIS108 computer with terminal translation table active,
        clear=\E*$<300/>, cud1=\n$<5000/>, ed=\EY, el=\ET, kbs=^H,
-       kcub1=^H, kcud1=\n, kcuf1=^L, kcuu1=^K, rmso=\E), sgr0=\E),
-       smso=\E(, use=adm3a,
+       rmso=\E), sgr0=\E), smso=\E(, use=adm3a,
 # luna's BMC terminal emulator
 luna|luna68k|LUNA68K Bitmap console,
        cols#88, lines#46, use=ansi-mini,
@@ -21409,24 +21547,21 @@ m2-nam|minitel|minitel-2|minitel-2-nam|France Telecom Minitel 2 mode te'le'infor
        OTbs, eslok, hs, xenl,
        cols#80, it#8, lines#24, wsl#72, xmc#0,
        acsc=aaffggjjkkllmmnnooqqssttuuvvwwxx, bel=^G,
-       blink=\E[5m, bold=\E[1m, civis=\E[<1h, clear=\E[H\E[J,
-       cnorm=\E[<1l, cr=\r, csr=\E[%i%p1%d;%p2%dr,
+       blink=\E[5m, bold=\E[1m, civis=\E[<1h, cnorm=\E[<1l, cr=\r,
        cub=\E[%p1%dD, cub1=\E[D, cud=\E[%p1%dB, cud1=\E[B,
        cuf=\E[%p1%dC, cuf1=\E[C, cup=\E[%i%p1%d;%p2%dH,
        cuu=\E[%p1%dA, cuu1=\E[A, dch=\E[%p1%dP, dch1=\E[P,
-       dl=\E[%p1%dM, dl1=\E[M, ed=\E[J, el=\E[K, flash=^G, fsl=\n,
-       home=\E[H, ht=^I, il=\E[%p1%dL, il1=\E[L, ind=\n, ip=$<7/>,
+       flash=^G, fsl=\n, home=\E[H, ht=^I, ind=\n, ip=$<7/>,
        is1=\E:1}\Ec\E[?4l\E[12h, is2=\Ec\E[12h\E)0,
-       is3=\E[?3l, kbs=^H, kclr=\E[2J, kcub1=\E[D, kcud1=\E[B,
-       kcuf1=\E[C, kcuu1=\E[A, kdch1=\E[P, kdl1=\E[M, kf0=\EOp,
+       is3=\E[?3l, kclr=\E[2J, kdch1=\E[P, kdl1=\E[M, kf0=\EOp,
        kf1=\EOq, kf10=\EOp, kf2=\EOr, kf3=\EOs, kf4=\EOt, kf5=\EOu,
-       kf6=\EOv, kf7=\EOw, kf8=\EOx, kf9=\EOy, khome=\E[H,
-       kich1=\E[4h, kil1=\E[4l, knp=\EOn, kpp=\EOR, ll=\E[24;80H,
-       mc0=\E[i, nel=\r\n, rc=\E8, rev=\E[7m, ri=\EM, rmacs=^O,
-       rmir=\E[4l, rmso=\E[27m, rmul=\E[24m,
-       rs1=\Ec\E[?4l\E[12h, rs2=\Ec\E)0, sc=\E7, sgr0=\E[m,
-       smacs=^N, smir=\E[4h, smso=\E[7m, smul=\E[4m, tsl=^_@A,
-       u6=\E[%i%d;%dR, u7=\E[6n,
+       kf6=\EOv, kf7=\EOw, kf8=\EOx, kf9=\EOy, kich1=\E[4h,
+       kil1=\E[4l, knp=\EOn, kpp=\EOR, ll=\E[24;80H, mc0=\E[i,
+       nel=\r\n, rev=\E[7m, ri=\EM, rmacs=^O, rmir=\E[4l,
+       rmso=\E[27m, rmul=\E[24m, rs1=\Ec\E[?4l\E[12h,
+       rs2=\Ec\E)0, sgr0=\E[m, smacs=^N, smir=\E[4h, smso=\E[7m,
+       smul=\E[4m, tsl=^_@A, use=ansi+arrows, use=ansi+cpr,
+       use=ansi+csr, use=ansi+erase, use=ansi+idl,
 
 # From: Alexandre Montaron <canal@mygale.org>, 18 Jun 1998, updated 19 Sep 2016
 #
@@ -21473,26 +21608,25 @@ minitel1|minitel 1,
 minitel1b|minitel 1-bistandard (in 40cols mode),
        mir,
        cub=\E[%p1%dD, cud=\E[%p1%dB, cuf=\E[%p1%dC,
-       cuu=\E[%p1%dA, dch=\E[%p1%dP, dch1=\E[P, dl=\E[%p1%dM,
-       dl1=\E[M, ed=\E[J, el1=\E[1K, il=\E[%p1%dL, il1=\E[L,
-       is1=\E;iYA\E;jYC, kbs@, kcan@, kclr=\E[2J, kctab=^I,
-       kcub1=\E[D, kcud1=\E[B, kcuf1=\E[C, kcuu1=\E[A, kdch1=\E[P,
-       kdl1=\E[M, kent@, kf1=^SD, kf10=^Y0, kf11=^Y1, kf12=^Y/,
-       kf13=^Y{1, kf14=^Y{2, kf15=^Y{3, kf16=^Y{4, kf17=^Y{5,
-       kf18=^Y{6, kf19=^Y{7, kf2=^SC, kf20=^Y{8, kf21=^Y{9,
-       kf22=^Y{0, kf23=^Y{*, kf24=^Y{#, kf3=^SF, kf4=^SA, kf5=^SG,
-       kf6=^SE, kf7=^Y8, kf8=^Y\,, kf9=^Y., khlp@, khome=\E[H,
-       kich1=\E[4h, kil1=\E[L, krfr@, lf1=Guide, lf2=Repetition,
-       lf3=Sommaire, lf4=Envoi, lf5=Correction, lf6=Annulation,
-       rmir=\E[4l, smir=\E[4h,
+       cuu=\E[%p1%dA, dch=\E[%p1%dP, dch1=\E[P, ed=\E[J,
+       el1=\E[1K, is1=\E;iYA\E;jYC, kbs@, kcan@, kclr=\E[2J,
+       kctab=^I, kdch1=\E[P, kdl1=\E[M, kent@, kf1=^SD, kf10=^Y0,
+       kf11=^Y1, kf12=^Y/, kf13=^Y{1, kf14=^Y{2, kf15=^Y{3,
+       kf16=^Y{4, kf17=^Y{5, kf18=^Y{6, kf19=^Y{7, kf2=^SC,
+       kf20=^Y{8, kf21=^Y{9, kf22=^Y{0, kf23=^Y{*, kf24=^Y{#,
+       kf3=^SF, kf4=^SA, kf5=^SG, kf6=^SE, kf7=^Y8, kf8=^Y\,, kf9=^Y.,
+       khlp@, kich1=\E[4h, kil1=\E[L, krfr@, lf1=Guide,
+       lf2=Repetition, lf3=Sommaire, lf4=Envoi, lf5=Correction,
+       lf6=Annulation, rmir=\E[4l, smir=\E[4h,
        u8=\001%[ABCPtuvwxyz0123456789:;<=>?]\004,
        .ich=\E[%p1%d@, .ich1=\E[@, .kLFT=\E[P, .kRIT=\E[4h,
        .kb2=^Y{g, .kcbt=^Y{i, .kel=^X, .mc0=\E:|k, .rmkx=\E;jYA,
        .rs1=\E[4l\E[2l, .smkx=\E;iYA\E;jYC, .u8=^ACu<^D,
-       use=minitel1,
+       use=ansi+arrows, use=ansi+idl, use=minitel1,
+
 # rmkx posait des problemes (logout en sortant de vi).
 minitel1b-80|minitel 1-bistandard (standard teleinformatique),
-       am@, bw@, eslok@, hz@, msgr, G0,
+       am@, bw@, eslok@, hz@, msgr,
        colors@, cols#80, it#8, pairs@,
        acsc@, blink=\E[5m, bold=\E[1m, civis=\037@A\024\n,
        clear=\E[H\E[J, cnorm=\037@A\021\n, cuf1=\E[C,
@@ -21523,7 +21657,6 @@ minitel1b-80|minitel 1-bistandard (standard teleinformatique),
        .sgr=\E[%?%p1%t7;%;%?%p2%t4;%;%?%p3%t7;%;%?%p4%t5;%;%?%p6%t1
             ;%;m,
        .smacs=^N, C0=}#f[j+k+l+m+n+o~q=s_t+u+v+w+x!0\032,
-       E0=^O, S0=^N,
        XC=B\016%\017\,\243#\,\247]\,\260[\,\340@\,\347\\\\\,\351{\,
           \350}\,\371|\,\300A\,\301A\,\302A\,\303A\,\304A\,\305A\,
           \306E\,\307C\,\310E\,\311E\,\312E\,\313E\,\314I\,\315I\,
@@ -21575,10 +21708,9 @@ minitel1b-nb|minitel 1b (40cols) noir & blanc sans couleurs avec bold et dim ...
 # Fonctionne par exemple avec Midnight Commander (mc).
 
 minitel2-80|minitel 2 (80cols) avec filets VT100 (DEC),
-       G0,
        acsc=ffggjjkkllmmnnooqqssttuuvvwwxxyyzz||}},
        enacs=\E)0, rmacs=^O, smacs=^N, u6=\E[%i%d;%dR,
-       C0=ffggjjkkllmmnnooqqssttuuvvwwxxyyzz||}}, E0=^O,
+       C0=ffggjjkkllmmnnooqqssttuuvvwwxxyyzz||}},
        S0=\E)0\016,
        XC=B%\E(B\,\243\E(3}\,\247\E(R[\,\257\E(3v\,\260\E(3f\,\261
           \E(3g\,\265\E(3Y\,\267\E(3~\,\274\E(3O\,\275\E(3P\,\276
@@ -21596,7 +21728,6 @@ minitel2-80|minitel 2 (80cols) avec filets VT100 (DEC),
        use=minitel12-80,
 
 minitel12-80|minitel 12 (80cols),
-       G0,
        civis=\E[<1h, cnorm=\E[<1l, is2=\E[12h, u6=\E[%i%d;%dH,
        u7=\E[6n,
        .acsc=ffggj+k+l+m+n+ovq-swt+u+v+w+xx}}\,m+k.l-j0
@@ -21604,7 +21735,7 @@ minitel12-80|minitel 12 (80cols),
        .enacs=\E)3, .rmacs=^O, .rs3=\E[?4l, .scs=\E(%p1%c,
        .smacs=^N,
        C0=ffggj+k+l+m+n+ovq-swt+u+v+w+xx}}\,m+k.l-j0\177,
-       E0=^O, S0=\E)3\016,
+       S0=\E)3\016,
        XC=B%\E(B\,\243\E(3}\,\247\E(R[\,\257\E(3v\,\260\E(3f\,\261
           \E(3g\,\267\E(3~\,\274\E(3O\,\275\E(3P\,\276\E(3Q\,\300A
           \,\301A\,\302A\,\303A\,\304A\,\305A\,\306E\,\307C\,\310E
@@ -21640,8 +21771,8 @@ screen.minitel1|Screen specific for minitel1,
        acsc=++\,\,--..00``aaffgghhiijjkkllmmnnooppqqrrssttuuvvwwxxy
             yzz||}}~~,
        bel=\007\E\^ \E\\, bold@, csr@, flash=\Eg\E\^ \E\\, kmous@,
-       rmul@, smul@, u6=\E[%i%d;%dR, u7=\E[6n, u8=\E[?1;2c, u9=\EZ,
-       use=xterm+x11mouse, use=screen4,
+       rmul@, smul@, u8=\E[?1;2c, use=decid+cpr,
+       use=xterm+x11mouse, use=screen,
 
 screen.minitel1b|Screen specific for minitel1b,
        kclr=\E[2J, kdl1=\E[M, kf13=^Y{1, kf14=^Y{2, kf15=^Y{3,
@@ -21658,7 +21789,7 @@ screen.minitel1b-80|screen.minitel2-80|screen.minitel12-80|Screen specific for m
 
 screen.minitel1-nb|Screen specific for minitel1-nb,
        colors@, ncv@, pairs@,
-       bold=\E[1m, dim=\E[2m, op@, setab@, setaf@, setb@, setf@,
+       bold=\E[1m, op@, setab@, setaf@, setb@, setf@,
        use=screen.minitel1,
 
 screen.minitel1b-nb|Screen specific for minitel1b-nb,
@@ -21673,31 +21804,29 @@ linux-m1|Linux Minitel 1 "like" Couleurs,
        colors#8, it#8, ncv#16, pairs#64,
        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, clear=\E[H\E[J, cr=\r,
-       csr=\E[%i%p1%d;%p2%dr, cub1=^H, cud1=\n, cuf1=\E[C,
-       cup=\E[%i%p1%d;%p2%dH, cuu1=\E[A, dch=\E[%p1%dP,
-       dch1=\E[P, dim=\E[2m, dl=\E[%p1%dM, dl1=\E[M,
-       ech=\E[%p1%dX, ed=\E[J, el=\E[K, el1=\E[1K, enacs=\E)U,
-       flash=\E[?5h$<100/>\E[?5l, home=\E[H, hpa=\E[%i%p1%d`,
-       ht=^I, hts=\EH, il=\E[%p1%dL, il1=\E[L, ind=\n,
+       bel=^G, blink=\E[5m, bold=\E[1m, cr=\r, cub1=^H, cud1=\n,
+       cuf1=\E[C, cuu1=\E[A, dch=\E[%p1%dP, dch1=\E[P, dim=\E[2m,
+       ech=\E[%p1%dX, el1=\E[1K, enacs=\E)U,
+       flash=\E[?5h$<100/>\E[?5l, hpa=\E[%i%p1%d`, ht=^I,
+       hts=\EH, ind=\n,
        initc=\E]P%p1%{15}%&%X%p2%{255}%&%02X%p3%{255}%&%02X%p4
              %{255}%&%02X,
        is2=\E]R\E]P3FFFF80\E[?8c, ka1=\EOw, ka3=\EOy, kb2=\E[G,
-       kbs=^?, kc1=\EOq, kc3=\EOs, kcbt=\E^I, kclr=\E\r, kcub1=\E[D,
-       kcud1=\E[B, kcuf1=\E[C, kcuu1=\E[A, kdl1=\E\E[A, kent=\EOM,
-       kf1=\E[[A, kf10=\E[21~, kf11=\E[23~, kf12=\E[24~,
-       kf13=\E[25~, kf14=\E[26~, kf15=\E[28~, kf16=\E[29~,
-       kf17=\E[31~, kf18=\E[32~, kf19=\E[33~, kf2=\E[[B,
-       kf20=\E[34~, kf3=\E[[C, kf4=\E[[D, kf5=\E[[E, kf6=\E[17~,
-       kf7=\E[18~, kf8=\E[19~, kf9=\E[20~, kil1=\E\E[B,
-       kmous=\E[M, nel=\EE, oc=\E]R\E]P3FFFF80, op=\E[39;49m,
-       rc=\E8, 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],
-       sc=\E7, 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,
+       kbs=^?, kc1=\EOq, kc3=\EOs, kcbt=\E^I, kclr=\E\r,
+       kdl1=\E\E[A, kent=\EOM, kf1=\E[[A, kf10=\E[21~,
+       kf11=\E[23~, kf12=\E[24~, kf13=\E[25~, kf14=\E[26~,
+       kf15=\E[28~, kf16=\E[29~, kf17=\E[31~, kf18=\E[32~,
+       kf19=\E[33~, kf2=\E[[B, kf20=\E[34~, kf3=\E[[C, kf4=\E[[D,
+       kf5=\E[[E, kf6=\E[17~, kf7=\E[18~, kf8=\E[19~, kf9=\E[20~,
+       khome=\E[1~, 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,
        .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
@@ -21707,7 +21836,9 @@ linux-m1|Linux Minitel 1 "like" Couleurs,
           \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\n\n\n\n\n\n
           \n\n\n\n\n\n\n\n\n\n,
-       use=vt220+pcedit, use=vt220+cvis, use=linux+decid,
+       use=ansi+arrows, use=ansi+csr, use=ansi+cup,
+       use=ansi+erase, use=ansi+idl, 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.
@@ -21742,8 +21873,7 @@ linux-m2|Linux Minitel 2 "like" Couleurs (Vert/Blanc/Noir+Bleu),
            900\E]P600A900\E]P700A900\E]P80000FF\E]P9FFFFFF\E]PAFFFF
            FF\E]PBFFFFFF\E]PCFFFFFF\E]PDFFFFFF\E]PEFFFFFF\E]PFFFFFF
            F\E[;37m,
-       oc@, op@, rmacs=^O, setab=^A, setaf=^A, sgr0=\E[;37m, smacs=^N,
-       .setab@, .setaf@,
+       oc@, op@, setab=^A, setaf=^A, sgr0=\E[;37m, .setab@, .setaf@,
        .smcup=\E]R\E]P100A900\E]P200A900\E]P3FFFFFF\E]P400A900\E]P5
               00A900\E]P600A900\E]P700A900\E]P80000FF\E]P9FFFFFF\E]
               PAFFFFFF\E]PBFFFFFF\E]PCFFFFFF\E]PDFFFFFF\E]PEFFFFFF
@@ -21765,10 +21895,10 @@ linux-s|Linux console with added status line at bottom,
 
 screen.linux-m1|Linux m1 specific for screen,
        ncv@,
-       dim=\E[2m, kbs=^?, kclr=\E\r, kdl1=\E\E[A, kf13=\E[25~,
-       kf14=\E[26~, kf15=\E[28~, kf16=\E[29~, kf17=\E[31~,
-       kf18=\E[32~, kf19=\E[33~, kf20=\E[34~, kil1=\E\E[B, rmul@,
-       smul@, u6=\E[%i%d;%dR, u7=\E[6n, u8=\E[?1;2c, u9=\EZ,
+       kclr=\E\r, kdl1=\E\E[A, kf13=\E[25~, kf14=\E[26~,
+       kf15=\E[28~, kf16=\E[29~, kf17=\E[31~, kf18=\E[32~,
+       kf19=\E[33~, kf20=\E[34~, kil1=\E\E[B, rmul@, smul@,
+       u8=\E[?1;2c,
        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
           \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
@@ -21777,7 +21907,7 @@ screen.linux-m1|Linux m1 specific for screen,
           \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\n\n\n\n\n\n
           \n\n\n\n\n\n\n\n\n\n,
-       use=xterm+x11mouse, use=screen4,
+       use=decid+cpr, use=xterm+x11mouse, use=screen,
 
 screen.linux-m1b|Linux m1b specific for screen,
        colors@, pairs@,
@@ -21791,30 +21921,24 @@ screen.linux-m2|Linux m2 specific for screen,
 # Putty :
 
 putty-m1|Putty Minitel 1 "like" Couleurs,
-       hs,
        dim@, kf1=\E[11~, kf2=\E[12~, kf3=\E[13~, kf4=\E[14~,
-       kf5=\E[15~, rmcup=\E[2J\E[?47l\E8, rmul=\E[24m,
-       smcup=\E7\E[?47h, smul=\E[4m, .E3=\E[300S,
-       use=putty+screen, use=xterm+sl-twm, use=ecma+index,
-       use=linux-m1,
+       kf5=\E[15~, rmul=\E[24m, smul=\E[4m, .E3=\E[300S,
+       use=xterm+alt47, use=putty+screen, use=xterm+sl-twm,
+       use=ecma+index, use=linux-m1,
 
 putty-m1b|Putty Minitel 1B "like" Monochrome (Gris/Blanc/Noir),
-       hs,
        dim@, kf1=\E[11~, kf2=\E[12~, kf3=\E[13~, kf4=\E[14~,
-       kf5=\E[15~, rmcup=\E[2J\E[?47l\E8, rmul=\E[24m,
-       smcup=\E7\E[?47h, smul=\E[4m, .E3=\E[300S,
-       use=putty+screen, use=xterm+sl-twm, use=ecma+index,
-       use=linux-m1b,
+       kf5=\E[15~, rmul=\E[24m, smul=\E[4m, .E3=\E[300S,
+       use=xterm+alt47, use=putty+screen, use=xterm+sl-twm,
+       use=ecma+index, use=linux-m1b,
 
 putty-m2|Putty Minitel 2 "like" Couleurs (Vert/Blanc/Noir),
-       hs,
        acsc=``aabbccddeeffgghhiijjkkllmmnnooppqqrrssttuuvvwwxxyyzz{
             {||}}~~,
        dim@, kf1=\E[11~, kf2=\E[12~, kf3=\E[13~, kf4=\E[14~,
-       kf5=\E[15~, rmcup=\E[2J\E[?47l\E8, rmul=\E[24m,
-       smcup=\E7\E[?47h, smul=\E[4m, .E3=\E[300S,
-       use=putty+screen, use=xterm+sl-twm, use=ecma+index,
-       use=linux-m2,
+       kf5=\E[15~, rmul=\E[24m, smul=\E[4m, .E3=\E[300S,
+       use=xterm+alt47, use=putty+screen, use=xterm+sl-twm,
+       use=ecma+index, use=linux-m2,
 
 putty+screen|PuTTY with screen resizing extensions (building-block),
        .WS=\E[8;%p1%d;%p2%dt, Z0=\E[?3h, Z1=\E[?3l,
@@ -21982,14 +22106,13 @@ bg2.0rv|bg3.10rv|BBn BitGraph 2.0 (reverse video),
 bg2.0|bg3.10|BBN BitGraph 2.0 or later (no init),
        OTbs, xenl,
        cols#85, lines#64,
-       bel=^G, clear=\E[H\E[J$<150>, cr=\r,
-       csr=\E[%i%p1%d;%p2%dr, cub1=^H, cud1=\E[B, cuf1=\E[C,
-       cup=%i\E[%p1%d;%p2%dH, cuu1=\E[A, dl1=\E[M$<2*>,
-       ed=\E[J$<150>, el=\E[K$<2>, ht=^I, il1=\E[L$<2*>,
-       ind=\n$<280>, kcub1=\E[D, kcud1=\E[B, kcuf1=\E[C,
-       kcuu1=\E[A, kf1=\EOP, kf2=\EOQ, kf3=\EOR, kf4=\EOS, lf1=PF1,
-       lf2=PF2, lf3=PF3, lf4=PF4, rc=\E8, rmkx=\E>, rmso=\E[m, sc=\E7,
-       sgr0=\E[m, smkx=\E=, smso=\E[7m,
+       bel=^G, clear=\E[H\E[J$<150>, cr=\r, cub1=^H, cud1=\E[B,
+       cuf1=\E[C, cup=%i\E[%p1%d;%p2%dH, cuu1=\E[A,
+       dl1=\E[M$<2*>, ed=\E[J$<150>, el=\E[K$<2>, ht=^I,
+       il1=\E[L$<2*>, ind=\n$<280>, kcub1=\E[D, kcud1=\E[B,
+       kcuf1=\E[C, kcuu1=\E[A, kf1=\EOP, kf2=\EOQ, kf3=\EOR,
+       kf4=\EOS, lf1=PF1, lf2=PF2, lf3=PF3, lf4=PF4, rmkx=\E>,
+       rmso=\E[m, sgr0=\E[m, smkx=\E=, smso=\E[7m, use=ansi+csr,
 
 bg1.25rv|BBN BitGraph 1.25 (reverse video),
        flash=\E[?5l$<200/>\E[?5h, is2=\E>\E[?5h\E[?7h,
@@ -22078,32 +22201,32 @@ bg1.25|BBN BitGraph 1.25,
 # dku7102, tws2102, and tws models 2105 to 2112
 tws-generic|dku7102|Bull Questar tws terminals,
        am, eslok, hs, mir, msgr, xenl, xhp@, xon,
-       cols#80, it#8, lines#24, wsl#80,
+       cols#80, lines#24, wsl#80,
        acsc=``aaffggj)k\,l&m#n/ooppq*rrsst'u-v+w.x%yyzz{{||}}~~,
-       bel=^G, blink=\E[0;5m, cbt=\E[Z, civis=\E[1r, clear=\E[2J,
+       bel=^G, blink=\E[0;5m, civis=\E[1r, clear=\E[2J,
        cnorm=\E[r, cr=\r, cub=\E[%p1%dD, cub1=^H, cud=\E[%p1%dB,
        cud1=\n, cuf=\E[%p1%dC, cuf1=\E[C, cup=\E[%i%p1%d;%p2%df,
        cuu=\E[%p1%dA, cuu1=\E[A, dch=\E[%p1%dP, dch1=\E[P,
-       dim=\E[0;2m, dl=\E[%p1%dM, dl1=\E[M,
-       dsl=\EPY99:98\E\\\E[0;98v\E[2J\E[v, ed=\E[J, el=\E[K,
-       fsl=\E[v, home=\E[H, ht=\E[I, hts=\EH, il=\E[%p1%dL,
-       il1=\E[L, ind=\n, invis=\E[0;8m,
+       dim=\E[0;2m, dsl=\EPY99:98\E\\\E[0;98v\E[2J\E[v,
+       fsl=\E[v, home=\E[H, ht=\E[I, ind=\n, invis=\E[0;8m,
        is1=\E[?=h\Ec\E`\E[?>h\EPY99:98\E\\,
        is2=\E[5;>;12;18;?<l\E[=h\EP1s\E\\\E[\027p,
-       is3=\Eb\E[?<h, kbs=^H, kcbt=\E[Z, kctab=\E[g, kcub1=\E[D,
-       kcud1=\E[B, kcuf1=\E[C, kcuu1=\E[A, kdch1=\E[P, kdl1=\E[M,
-       ked=\E[J, kel=\E[K, kf1=\E[1u\027, kf2=\E[2u\027,
-       kf3=\E[3u\027, kf4=\E[4u\027, kf5=\E[5u\027,
-       kf6=\E[6u\027, kf7=\E[7u\027, kf8=\E[8u\027, khome=\E[H,
-       khts=\EH, kil1=\E[L, krmir=\E[4l, ll=\E[H\E[A, mc0=\E[0i,
-       mc4=\r\E[4i, mc5=\E[5i, rev=\E[0;7m, rmacs=^O,
-       rmcup=\E[0;98v\E[2J\E[v, rmir=\E[4l, rmso=\E[m,
-       rmul=\E[m, rs2=\E[?=h\Ec, s0ds=^O, s1ds=^N,
+       is3=\Eb\E[?<h, kcbt=\E[Z, kctab=\E[g, kdch1=\E[P,
+       kdl1=\E[M, ked=\E[J, kel=\E[K, kf1=\E[1u\027,
+       kf2=\E[2u\027, kf3=\E[3u\027, kf4=\E[4u\027,
+       kf5=\E[5u\027, kf6=\E[6u\027, kf7=\E[7u\027,
+       kf8=\E[8u\027, khts=\EH, kil1=\E[L, krmir=\E[4l,
+       ll=\E[H\E[A, mc0=\E[0i, mc4=\r\E[4i, mc5=\E[5i,
+       rev=\E[0;7m, rmacs=^O, rmcup=\E[0;98v\E[2J\E[v,
+       rmir=\E[4l, rmso=\E[m, rmul=\E[m, rs2=\E[?=h\Ec, s0ds=^O,
+       s1ds=^N,
        sgr=\E[0%?%p1%p3%|%t;7%;%?%p2%t;4%;%?%p4%t;5%;%?%p5%t;2%;%?
            %p7%t;8%;m%?%p9%t\016%e\017%;,
        sgr0=\E[m\017, smacs=^N, smcup=\E[?>h\EPY99:98\E\\,
-       smir=\E[4h, smso=\E[0;7m, smul=\E[0;4m, tbc=\E[3g,
-       tsl=\EPY99:98\E\\\E[0;98v\E[2;7m,
+       smir=\E[4h, smso=\E[0;7m, smul=\E[0;4m,
+       tsl=\EPY99:98\E\\\E[0;98v\E[2;7m, use=ansi+arrows,
+       use=ansi+erase, use=ansi+idl, use=ansi+inittabs,
+
 tws2102-sna|dku7102-sna|Bull Questar tws2102 for SNA,
        dsl=\E[0;98v\E[2J\E[v, fsl=\E[v, is3=\Eb, tsl=\E[0;98v,
        use=tws-generic,
@@ -22202,15 +22325,13 @@ bq300|Bull VT320 ISO Latin 1 80 columns terminal,
        am, eo, eslok, hs, km, mir, msgr, xenl, xon,
        cols#80, it#8, lines#24, vt#3, wsl#80,
        acsc=``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~,
-       bel=^G, blink=\E[5m, bold=\E[1m, clear=\E[H\E[J, cr=\r,
-       csr=\E[%i%p1%d;%p2%dr, cub=\E[%p1%dD, cub1=\E[D,
-       cud=\E[%p1%dB, cud1=\E[B, cuf=\E[%p1%dC, cuf1=\E[C,
-       cup=\E[%i%p1%d;%p2%dH, cuu=\E[%p1%dA, cuu1=\E[A,
-       dch=\E[%p1%dP, dch1=\E[P, dl=\E[%p1%dM, dl1=\E[M,
-       dsl=\E[1$}\E[2$~\n\E[0$}, ech=\E[%p1%dX, ed=\E[J,
-       el=\E[K, el1=\E[1K, enacs=\E(B\E)0,
-       flash=\E[?5h$<50>\E[?5l, fsl=\E[0$}, home=\E[H, ht=^I,
-       hts=\EH, ich=\E[%p1%d@, il=\E[%p1%dL, il1=\E[L, ind=\ED,
+       bel=^G, blink=\E[5m, bold=\E[1m, cr=\r, cub=\E[%p1%dD,
+       cub1=\E[D, cud=\E[%p1%dB, cud1=\E[B, cuf=\E[%p1%dC,
+       cuf1=\E[C, cup=\E[%i%p1%d;%p2%dH, cuu=\E[%p1%dA,
+       cuu1=\E[A, dch=\E[%p1%dP, dch1=\E[P,
+       dsl=\E[1$}\E[2$~\n\E[0$}, ech=\E[%p1%dX, el1=\E[1K,
+       enacs=\E(B\E)0, flash=\E[?5h$<50>\E[?5l, fsl=\E[0$},
+       home=\E[H, ht=^I, hts=\EH, 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,
@@ -22222,16 +22343,17 @@ bq300|Bull VT320 ISO Latin 1 80 columns terminal,
        kf2=\EOQ, kf20=\E[34~, kf3=\EOR, kf4=\EOS, kf6=\E[17~,
        kf7=\E[18~, kf8=\E[19~, kf9=\E[20~, khlp=\E[28~,
        krdo=\E[29~, lf1=pf1, lf2=pf2, lf3=pf3, lf4=pf4, nel=\EE,
-       rc=\E8, rev=\E[7m, ri=\EM, rmacs=\E(B, rmam=\E[?7l,
-       rmcup=\E[?7h, rmir=\E[4l, rmkx=\E[?1l\E>, rmso=\E[27m,
-       rmul=\E[24m, rs1=\E[!p, rs2=\E[?3l, s0ds=\E(B, s1ds=\E(0,
-       sc=\E7,
+       rev=\E[7m, ri=\EM, rmacs=\E(B, rmam=\E[?7l, rmcup=\E[?7h,
+       rmir=\E[4l, rmkx=\E[?1l\E>, rmso=\E[27m, rmul=\E[24m,
+       rs1=\E[!p, rs2=\E[?3l, s0ds=\E(B, s1ds=\E(0,
        sgr=\E[%?%p1%t;7%;%?%p2%t;4%;%?%p3%t;7%;%?%p4%t;5%;%?%p6%t;1
            %;m%?%p9%t\E(0%e\E(B%;,
        sgr0=\E[0m\E(B, smacs=\E(0, smam=\E[?7h,
        smcup=\E[?7l\E[?1l\E(B, smir=\E[4h, smso=\E[7m,
-       smul=\E[4m, tbc=\E[3g, tsl=\E[1$}\E[2$~,
-       use=vt220+vtedit, use=ansi+pp, use=vt220+cvis,
+       smul=\E[4m, tbc=\E[3g, tsl=\E[1$}\E[2$~, use=ansi+enq,
+       use=ansi+csr, use=ansi+erase, use=ansi+idl, use=ansi+pp,
+       use=vt220+cvis, use=vt220+vtedit,
+
 bq300-rv|Bull VT320 reverse 80 columns,
        flash=\E[?5l$<50>\E[?5h,
        is2=\E[?2h\E[?3l\E[?5h\E[?7h\E[?8h\E>\E[?1l\E\sF\E[?42l\E[?4
@@ -22388,13 +22510,12 @@ bq300-pc-w-rv|Questar 303 with PC keyboard reverse mode 132 columns,
 #    8 bit Control Characters,
 #    80 columns screen.
 bq300-8-pc|Q306-8-pc|Questar 303 with PC keyboard in full 8 bits 80 columns,
-       kbs=^H, kdch1=\2333~, kend=\2334~, kf1=\23317~,
-       kf10=\23328~, kf11=\23329~, kf12=\23331~, kf13@, kf14@,
-       kf15@, kf16@, kf17@, kf18@, kf19@, kf2=\23318~, kf20@,
-       kf3=\23319~, kf4=\23320~, kf5=\23321~, kf6=\23323~,
-       kf7=\23324~, kf8=\23325~, kf9=\23326~, kfnd@, khlp@,
-       khome=\2331~, kich1=\2332~, knp=\2336~, kpp=\2335~, krdo@,
-       kslt@, lf1@, lf2@, lf3@, lf4@, use=bq300-8,
+       kend=\2334~, kf1=\23317~, kf10=\23328~, kf11=\23329~,
+       kf12=\23331~, kf13@, kf14@, kf15@, kf16@, kf17@, kf18@, kf19@,
+       kf2=\23318~, kf20@, kf3=\23319~, kf4=\23320~, kf5=\23321~,
+       kf6=\23323~, kf7=\23324~, kf8=\23325~, kf9=\23326~, kfnd@,
+       khlp@, khome=\2331~, krdo@, kslt@, lf1@, lf2@, lf3@, lf4@,
+       use=bq300-8,
 bq300-8-pc-rv|Questar 303 with PC keyboard full 8 bits reverse mode 80 columns,
        flash=\E[?5l$<50>\E[?5h,
        is2=\E[?2h\E[?3l\E[?5h\E[?7h\E[?8h\E>\E[?1l\E\sG\E[?42l\E[?4
@@ -22467,13 +22588,13 @@ 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, it#8, lines#24, vt#3, wsl#80,
+       cols#80, lines#24, vt#3, wsl#80,
        acsc=0pjdkblamcnkqitgufvhwexj, bel=^G, blink=\EsB,
-       cbt=\E[Z, clear=\E`, cr=\r, cub1=^H, cud1=\n, cuf1=\EC,
+       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, ht=^I,
-       hts=\Ep, ich1=\E[I, ind=\n, invis=\EsH,
+       flash=\007$<80>\007$<80>\007, fsl=\EO, home=\EH, hts=\Ep,
+       ich1=\E[I, ind=\n, 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,
@@ -22490,7 +22611,7 @@ vip|Bull Questar 3155-7800,
        ri=\EA\EJ\EH\E[L$<10>, rmacs=\EF, rmir=\E[J, rmso=\EsR,
        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,
+       smul=\Es_, tbc=\E[N, tsl=\Ew, use=ansi+inittabs,
 # 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,
@@ -22760,8 +22881,7 @@ ln03|DEC ln03 laser printer,
        smul=\E[4m,
 ln03-w|DEC ln03 laser printer 132 cols,
        cols#132,
-       bel=^G, cr=\r, cud1=\n, ht=^I, ind=\n, kbs=^H, kcub1=^H,
-       kcud1=\n, nel=\r\n, use=ln03,
+       kbs=^H, kcub1=^H, kcud1=\n, use=ln03,
 
 #### Delta Data (dd)
 #
@@ -22786,17 +22906,17 @@ ddr|rebus3180|ddr3180|Rebus/DDR 3180 VT100 emulator,
        OTbs, am, xenl,
        cols#80, it#8, lines#24, vt#3,
        blink=\E[5m$<2/>, bold=\E[1m$<2/>,
-       clear=\E[H\E[2J$<50/>, csr=\E[%i%p1%d;%p2%dr, cub1=^H,
-       cud1=\n, cuf1=\E[C$<2/>, cup=\E[%i%p1%d;%p2%dH$<5/>,
-       cuu1=\E[A$<2/>, ed=\E[J$<50/>, el=\E[K$<3/>, home=\E[H,
-       ht=^I, ind=\ED$<5/>, is2=\E[1;24r\E[24;1H, kbs=^H,
-       kcub1=\E[D, kcud1=\E[B, kcuf1=\E[C, kcuu1=\E[A, kf1=\EOP,
-       kf2=\EOQ, kf3=\EOR, kf4=\EOS, rc=\E8, rev=\E[7m$<2/>,
+       clear=\E[H\E[2J$<50/>, cub1=^H, cud1=\n, cuf1=\E[C$<2/>,
+       cup=\E[%i%p1%d;%p2%dH$<5/>, cuu1=\E[A$<2/>,
+       ed=\E[J$<50/>, el=\E[K$<3/>, home=\E[H, ht=^I,
+       ind=\ED$<5/>, is2=\E[1;24r\E[24;1H, kbs=^H, kcub1=\E[D,
+       kcud1=\E[B, kcuf1=\E[C, kcuu1=\E[A, kf1=\EOP, kf2=\EOQ,
+       kf3=\EOR, kf4=\EOS, rev=\E[7m$<2/>,
        rf=/usr/share/tabset/vt100, ri=\EM$<5/>, rmam=\E[7l,
        rmkx=\E[?1l\E>, rmso=\E[m, rmul=\E[m$<2/>,
-       rs1=\E>\E[?3l\E[?4l\E[?5l\E[?7h\E[?8h, sc=\E7,
+       rs1=\E>\E[?3l\E[?4l\E[?5l\E[?7h\E[?8h,
        sgr0=\E[m$<2/>, smam=\E[7l, smkx=\E[?1h\E=, smso=\E[7m,
-       smul=\E[4m$<2/>,
+       smul=\E[4m$<2/>, use=ansi+csr,
 
 #### Evans & Sutherland
 #
@@ -22984,11 +23104,9 @@ z29a|z29a-kc-bc|h29a-kc-bc|Heath/Zenith 29 in ANSI mode,
        cr=\r, csr=\E[%i%p1%d;%p2%dr, cub=\E[%p1%dD, 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,
-       dch=\E[%p1%dP, dch1=\E[1P, dim=\E[2m, dl=\E[%p1%dM,
-       dl1=\E[M, dsl=\E[>1l, ed=\E[J, el=\E[K, fsl=\E[u\E[>5l,
-       home=\E[H, ht=^I, hts=\EH, if=/usr/share/tabset/vt100,
-       il=\E[%p1%dL, il1=\E[L, ind=\ED, kbs=^H, kclr=\E[J,
-       kcub1=\EOD, kcud1=\EOB, kcuf1=\EOC, kcuu1=\EOA, ked=\E[J,
+       dch=\E[%p1%dP, dch1=\E[1P, dim=\E[2m, dsl=\E[>1l, ed=\E[J,
+       el=\E[K, fsl=\E[u\E[>5l, home=\E[H, ht=^I, hts=\EH,
+       if=/usr/share/tabset/vt100, ind=\ED, kclr=\E[J, ked=\E[J,
        kf0=\E[~, kf1=\EOS, kf2=\EOT, kf3=\EOU, kf4=\EOV, kf5=\EOW,
        kf6=\EOP, kf7=\EOQ, kf8=\EOR, kf9=\EOX, khome=\E[H, lf0=help,
        mc0=\E#7, nel=\r\ED, rc=\E[r, rev=\E[7m, ri=\EM,
@@ -22997,6 +23115,8 @@ z29a|z29a-kc-bc|h29a-kc-bc|Heath/Zenith 29 in ANSI mode,
            \E[11m,
        sc=\E[s, sgr0=\E[m, smcup=\E[?7l, smso=\E[7;2m, smul=\E[4m,
        tbc=\E[3g, tsl=\E[s\E[>5;1h\E[25;%i%dH\E[1K,
+       use=ansi+apparrows, use=ansi+idl,
+
 z29a-kc-uc|h29a-kc-uc|Zenith z29 ANSI mode with keyclick and underscore cursor,
        rs1=\E<\E[1;24r\E[24;1H\E[?7h\E[>1;2;3;4;5;6;7;8;9l\E[m\E[11
            m,
@@ -23023,15 +23143,14 @@ z39-a|z39a|zenith39-a|zenith39-ansi|Zenith 39 in ANSI mode,
        dl1=\E[1M, dsl=\E[>1l, ed=\E[0J, el=\E[0K, el1=\E[1K,
        fsl=\E[u, home=\E[H, ht=^I, hts=\EH, 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, kbs=^H, kc1=\EOq, kc3=\EOs, kcub1=\E[D,
-       kcud1=\E[B, kcuf1=\E[C, kcuu1=\E[A, ked=\E[J, kf1=\EOS,
+       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[~, khome=\E[H, ll=\E[24;1H,
+       kf8=\EOR, kf9=\EOX, khlp=\E[~, ll=\E[24;1H,
        mc0=\E[?19h\E[i, mc4=\E[4i, mc5=\E[5i, rc=\E[u, rev=\E[7m,
        rmacs=\E(B, rmir=\E[4l, rmkx=\E[>7l, rmso=\E[0m,
        rmul=\E[0m, rs2=\E<\Ec\0, sc=\E[s, sgr0=\E[0m, smacs=\E(0,
        smir=\E[4h, smkx=\E[>7h, smso=\E[7m, smul=\E[4m, tbc=\E[3g,
-       tsl=\E[s\E[>1h\E[25;%i%p1%dH,
+       tsl=\E[s\E[>1h\E[25;%i%p1%dH, use=ansi+arrows,
 
 # From: Brad Brahms <Brahms@USC-ECLC>
 z100|h100|z110|z-100|h-100|Heath/Zenith z-100 pc with color monitor,
@@ -23155,13 +23274,12 @@ graphos|graphos III,
        cr=\r, cub=\E[%p1%dD, cub1=^H, cud=\E[%p1%dB, cud1=\E[B,
        cuf=\E[%p1%dC, cuf1=\E[C, cup=\E[%i%p1%d;%p2%dH,
        cuu=\E[%p1%dA, cuu1=\E[A,
-       cvvis=\Ez4;2;1z\Ez56;2;80;24z, dch1=\E[P, dl=\E[%p1%dM,
-       dl1=\E[M, ed=\E[J, el=\E[K, home=\E[H, ht=^I, il=\E[%p1%dL,
-       il1=\E[L, ind=\ED, kbs=^H, kcub1=\E[D, kcud1=\E[B,
-       kcuf1=\E[C, kcuu1=\E[A, kf1=\EOP, kf2=\EOQ, kf3=\EOR,
-       kf4=\EOS, khome=\E[H, nel=\r\ED, rc=\E8, ri=\EM, rmdc=\E[4l,
+       cvvis=\Ez4;2;1z\Ez56;2;80;24z, dch1=\E[P, ed=\E[J,
+       el=\E[K, home=\E[H, ht=^I, ind=\ED, kf1=\EOP, kf2=\EOQ,
+       kf3=\EOR, kf4=\EOS, nel=\r\ED, rc=\E8, ri=\EM, rmdc=\E[4l,
        rmir=\E[4l, rmso=\E[m, sc=\E7, sgr0=\E[m, smdc=\E[4h,
-       smir=\E[4h, smso=\E[7m,
+       smir=\E[4h, smso=\E[7m, use=ansi+arrows, use=ansi+idl,
+
 graphos-30|graphos III with 30 lines,
        lines#30,
        cvvis=\Ez4;2;1z\Ez56;2;80;30z, use=graphos,
@@ -23191,7 +23309,6 @@ graphos-30|graphos III with 30 lines,
 
 modgraph|mod24|modgraph terminal emulating VT100,
        xenl@,
-       cols#80, lines#24,
        cvvis=\E\^9;0s\E\^7;1s,
        is2=\E\^9;0s\E\^7;1s\E[3g\E\^11;9s\E\^11;17s\E\^11;25s\E\^11
            ;33s\E\^11;41s\E\^11;49s\E\^11;57s\E\^11;65s\E\^11;73s
@@ -23226,15 +23343,15 @@ modgraph48|mod|Modgraph w/48 lines,
        OTbs, OTpt, am, xenl,
        cols#80, it#8, lines#48, vt#3,
        OTnl=\n, bel=^G, blink=\E[5m, bold=\E[1m, clear=\E[;H\E[2J,
-       cr=\r, csr=\E[%i%p1%d;%p2%dr, cub1=^H, cud1=\n, cuf1=\E[C,
-       cup=\E[%i%p1%d;%p2%dH, cuu1=\E[A, ed=\E[J, el=\E[K,
+       cr=\r, cub1=^H, cud1=\n, cuf1=\E[C, cup=\E[%i%p1%d;%p2%dH,
+       cuu1=\E[A, ed=\E[J, el=\E[K,
        flash=\E[?5h\E[0q\E[1;2q\E[?5l\E[0q\E[4;3q,
        home=\E[H, ht=^I, is2=\E<\E[1;48r\E[0q\E[3;4q\E=\E[?1h,
        kbs=^H, kcub1=\EOD, kcud1=\EOB, kcuf1=\EOC, kcuu1=\EOA,
-       kf1=\EOP, kf2=\EOQ, kf3=\EOR, kf4=\EOS, rc=\E8, rev=\E[7m,
-       ri=\EM, rmkx=\E[?1l\E>, rmso=\E[m, rmul=\E[m,
-       rs1=\E=\E[0q\E>, sc=\E7, sgr0=\E[m, smkx=\E[?1h\E=,
-       smso=\E[7m, smul=\E[4m,
+       kf1=\EOP, kf2=\EOQ, kf3=\EOR, kf4=\EOS, rev=\E[7m, ri=\EM,
+       rmkx=\E[?1l\E>, rmso=\E[m, rmul=\E[m, rs1=\E=\E[0q\E>,
+       sgr0=\E[m, smkx=\E[?1h\E=, smso=\E[7m, smul=\E[4m,
+       use=ansi+csr,
 
 #### Morrow Designs
 #
@@ -23316,20 +23433,20 @@ rt6221|Ramtek 6221 80x24,
        OTkn#4, cols#80, it#8, lines#24, vt#3,
        acsc=, bel=^G, blink=\E[5m, bold=\E[1m, civis=\E[>5l,
        clear=\E[1;1H\E[J, cnorm=\E[>5h\E[>9h, cr=\r,
-       csr=\E[%i%p1%d;%p2%dr, cub=\E[%p1%dD, cub1=^H,
-       cud=\E[%p1%dB, cud1=^K, cuf=\E[%p1%dC, cuf1=\E[C,
-       cup=\E[%i%p1%d;%p2%dH, cuu=\E[%p1%dA, cuu1=\EM,
-       cvvis=\E[>7h\E[>9l, ed=\E[J, el=\E[K, home=\E[1;1H, ht=^I,
-       hts=\EH, ind=\n, is2=\E)0, kbs=^H, kcub1=\E[D, kcud1=\E[B,
-       kcuf1=\E[C, kcuu1=\E[A, kf0=\EOP, kf1=\EOQ, kf2=\EOR,
-       kf3=\EOS, lf0=PF1, lf1=PF2, lf2=PF3, lf3=PF4, ll=\E[24;1H,
-       nel=\EE, rc=\E8, rev=\E[7m, ri=\EM, rmacs=^O, rmkx=\E>,
-       rmso=\E[m, rmul=\E[m,
+       cub=\E[%p1%dD, cub1=^H, cud=\E[%p1%dB, cud1=^K,
+       cuf=\E[%p1%dC, cuf1=\E[C, cup=\E[%i%p1%d;%p2%dH,
+       cuu=\E[%p1%dA, cuu1=\EM, cvvis=\E[>7h\E[>9l, ed=\E[J,
+       el=\E[K, home=\E[1;1H, ht=^I, hts=\EH, ind=\n, is2=\E)0,
+       kbs=^H, kcub1=\E[D, kcud1=\E[B, kcuf1=\E[C, kcuu1=\E[A,
+       kf0=\EOP, kf1=\EOQ, kf2=\EOR, kf3=\EOS, lf0=PF1, lf1=PF2,
+       lf2=PF3, lf3=PF4, ll=\E[24;1H, nel=\EE, rev=\E[7m, ri=\EM,
+       rmacs=^O, rmkx=\E>, rmso=\E[m, rmul=\E[m,
        rs1=\E[1w\E[>37m\E[>39m\E[1v\E[20l\E[?3l\E[?6l\E[>5h\E[>6h
            \E[>7h\E[>8l\E[>9h\E[>10l\E[1;24r\E[m\E[q\E(B\017\E)0\E#
            5\E>,
-       sc=\E7, sgr0=\E[m, smacs=^N, smkx=\E=, smso=\E[7m,
-       smul=\E[4m, tbc=\E[3g,
+       sgr0=\E[m, smacs=^N, smkx=\E=, smso=\E[7m, smul=\E[4m,
+       tbc=\E[3g, use=ansi+csr,
+
 # [TO DO: Check out: short forms of ho/cl and ll; reset (\Ec)].
 rt6221-w|Ramtek 6221 160x48,
        cols#160, lines#48,
@@ -23364,21 +23481,20 @@ rca|RCA vp3301/vp3501,
 hirez100|Selanar HiREZ-100,
        OTbs, OTpt, mir, msgr, xon,
        OTkn#4, cols#80, it#8, lines#48, vt#3,
-       acsc=, bel=^G, blink=\E[5m, bold=\E[1m, clear=\E[H\E[J,
-       cr=\r, cub=\E[%p1%dD, 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=\EM, dch=\E[%p1%dP, dch1=\E[P,
-       dl=\E[%p1%dM, dl1=\E[M, ed=\E[J, el=\E[K, home=\E[H, ht=^I,
-       hts=\EH, il=\E[%p1%dL, il1=\E[L, is2=\E<\E)0, kbs=^H,
-       kcub1=\EOD, kcud1=\EOB, kcuf1=\EOC, kcuu1=\EOA, kf0=\EOP,
-       kf1=\EOQ, kf2=\EOR, kf3=\EOS, lf0=PF1, lf1=PF2, lf2=PF3,
-       lf3=PF4, ll=\E[48H, mc0=\E[i, mc4=\E[4i\E[?4i,
-       mc5=\E[?5i\E[5i, nel=\EE, rc=\E8, rev=\E[7m, rmacs=^O,
-       rmkx=\E[?1l\E>, rmso=\E[m, rmul=\E[m,
+       acsc=, bel=^G, blink=\E[5m, bold=\E[1m, cr=\r, cub=\E[%p1%dD,
+       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=\EM,
+       dch=\E[%p1%dP, dch1=\E[P, home=\E[H, ht=^I, hts=\EH,
+       is2=\E<\E)0, kbs=^H, kcub1=\EOD, kcud1=\EOB, kcuf1=\EOC,
+       kcuu1=\EOA, kf0=\EOP, kf1=\EOQ, kf2=\EOR, kf3=\EOS, lf0=PF1,
+       lf1=PF2, lf2=PF3, lf3=PF4, ll=\E[48H, mc0=\E[i,
+       mc4=\E[4i\E[?4i, mc5=\E[?5i\E[5i, nel=\EE, rc=\E8,
+       rev=\E[7m, rmacs=^O, rmkx=\E[?1l\E>, rmso=\E[m, rmul=\E[m,
        rs1=\030\E2\E<\E[4i\E[?4i\E[12h\E[2;4;20l\E[?0;7h\E[?1;3;6;1
            9l\E[r\E[m\E(B\017\E)0\E>,
        sc=\E7, sgr0=\E[m, smacs=^N, smkx=\E[?1h\E=, smso=\E[7m,
-       smul=\E[4m, tbc=\E[3g,
+       smul=\E[4m, tbc=\E[3g, use=ansi+erase, use=ansi+idl,
+
 hirez100-w|Selanar HiREZ-100 in 132-column mode,
        cols#132, use=hirez100,
 
@@ -23417,8 +23533,7 @@ vsc|Signetics Vsc Video driver by RMC,
 
 # (soroc120: removed obsolete ":ma=^K^P^R^L^L :" -- esr)
 soroc120|iq120|soroc|Soroc iq120,
-       clear=\E*$<2>, cud1=\n, ed=\EY, el=\ET, kcub1=^H, kcud1=\n,
-       kcuf1=^L, kcuu1=^K, use=adm3a,
+       clear=\E*$<2>, ed=\EY, el=\ET, use=adm3a,
 soroc140|iq140|Soroc iq140,
        OTbs, am, mir,
        cols#80, lines#24,
@@ -23509,14 +23624,20 @@ synertek|ktm|synertek380|Synertek KTM 3/80 tubeless terminal,
 # <is2> sets 80 col mode, normal video, autowrap on (for <am>).
 # Seems to be no way to get rid of status line.
 # The manual for this puppy was dated June 1981.  It claims to be VT52-
-# compatible but looks more VT100-like.
+# compatible but looks more VT100-like -esr
+#
+# According to
+# https://ub.fnwi.uva.nl/computermuseum/tab13215g.html
+#      This monochrome graphics terminal of TAB Products, California, is a DEC
+#      VT52/VT100/VT132 compatible alphanumeric terminal (TAB 132/15),
+#      factory-fitted with additional hardware for Tektronix 4010 emulation. 
+#      Also the terminal understands a selection of Tektronix 4027 commands. 
 tab132|tab|tab132-15|tab 132/15,
        da, db,
-       OTdN@, cols#80, lines#24, lm#96,
-       cud1=\n, cup=\E[%i%p1%d;%p2%dH, dch1=\E[P, dl1=\E[M,
-       il1=\E[L, is2=\E[?7h\E[?3l\E[?5l, kcub1=\E[D, kcud1=\E[B,
-       kcuu1=\E[A, rmir=\E[4l, rmkx@, smir=\E[4h, smkx@,
-       use=vt100+4bsd,
+       OTdN@, lm#96,
+       cup=\E[%i%p1%d;%p2%dH, dch1=\E[P, dl1=\E[M, il1=\E[L,
+       is2=\E[?7h\E[?3l\E[?5l, rmir=\E[4l, rmkx@, smir=\E[4h,
+       smkx@, use=decid+cpr, use=vt100+4bsd,
 tab132-w|tab132 in wide mode,
        cols#132,
        is2=\E[?7h\E[?3h\E[?5l, use=tab132,
@@ -23638,12 +23759,10 @@ ti703-w|ti707-w|Texas Instruments Silent 703/707 (132 column),
 # Texas Instruments 916 VDT 7 bit control mode
 #
 ti916|ti916-220-7|Texas Instruments 916 VDT 8859/1 VT220 mode 7 bit CTRL,
-       da, db, in, msgr,
-       cbt=\E[Z, clear=\E[H\E[2J$<6>, cub=\E[%p1%dD,
-       cud=\E[%p1%dB, cuf=\E[%p1%dC, cup=\E[%i%p1%d;%p2%dH,
-       cuu=\E[%p1%dA, dch=\E[%p1%dP$<250>, dch1=\E[P,
-       dl=\E[%p1%dM, ech=\E[%p1%dX$<20>, ed=\E[J$<6>, el=\E[0K,
-       el1=\E[1K, enacs=\E(B\E)0, ff=^L, flash=\E[?5h\E[?5l$<6>,
+       da, db, in,
+       cbt=\E[Z, clear=\E[H\E[2J$<6>, dch=\E[%p1%dP$<250>,
+       ech=\E[%p1%dX$<20>, ed=\E[J$<6>, el=\E[0K,
+       enacs=\E(B\E)0, ff=^L, flash=\E[?5h\E[?5l$<6>,
        hpa=\E[%p1%{1}%+%dG, hts=\E[0W, ich=\E[%p1%d@$<250>,
        il=\E[%p1%dL$<36>, ip=$<10>, is2=\E[1;24r\E[24;1H,
        kcmd=\E[29~, kdch1=\E[P, kent=\n, kf1=\E[17~, kf10=\E[28~,
@@ -23651,18 +23770,17 @@ ti916|ti916-220-7|Texas Instruments 916 VDT 8859/1 VT220 mode 7 bit CTRL,
        kf4=\E[20~, kf5=\E[21~, kf6=\E[23~, kf7=\E[24~, kf8=\E[25~,
        kf9=\E[26~, khome=\E[H, kich1=\E[@, knp=\E[S, kpp=\E[T,
        kprt=^X, prot=\E&, rmacs=\017$<2>, rs2=\E[!p, sgr@,
-       smacs=\016$<2>, tbc=\E[3g, vpa=\E[%p1%{1}%+%dd,
-       use=vt220,
+       smacs=\016$<2>, vpa=\E[%p1%{1}%+%dd, use=vt220,
 #
 # Texas Instruments 916 VDT 8 bit control mode
 #
 ti916-8|ti916-220-8|Texas Instruments 916 VDT 8859/1 8 VT220 mode bit CTRL,
        kcmd=\23329~, kcub1=\233D, kcud1=\233B, kcuf1=\233C,
-       kcuu1=\233A, kdch1=\233P, kent=\n, kf1=\23317~,
-       kf10=\23328~, kf11=\23329~, kf12=\23331~, kf2=\23318~,
-       kf3=\23319~, kf4=\23320~, kf5=\23321~, kf6=\23323~,
-       kf7=\23324~, kf8=\23325~, kf9=\23326~, khome=\233H,
-       kich1=\233@, knp=\233S, kpp=\233T, kprt=^X, use=ti916,
+       kcuu1=\233A, kdch1=\233P, kf1=\23317~, kf10=\23328~,
+       kf11=\23329~, kf12=\23331~, kf2=\23318~, kf3=\23319~,
+       kf4=\23320~, kf5=\23321~, kf6=\23323~, kf7=\23324~,
+       kf8=\23325~, kf9=\23326~, khome=\233H, kich1=\233@,
+       knp=\233S, kpp=\233T, use=ti916,
 #
 # Texas Instruments 916 VDT 8859/1 7 bit control 132 column mode
 #
@@ -23727,13 +23845,11 @@ ti_ansi|basic entry for ti928,
        cr=\r, csr=\E[%i%p1%d;%p2%dr, cub1=^H, cud1=\E[B,
        cuf1=\E[C, cup=\E[%i%p1%d;%p2%dH, cuu1=\E[A, dch1=\E[P,
        dl1=\E[M, ed=\E[J, el=\E[K, home=\E[H, ht=^I, ich1=\E[@,
-       il1=\E[L, ind=\E[S, kbs=^H, kcub1=\E[D, kcud1=\E[B,
-       kcuf1=\E[C, kcuu1=\E[A, kend=\E[F, kf0=\E[V, kf1=\E[M,
-       kf2=\E[N, kf3=\E[O, kf4=\E[P, kf5=\E[Q, kf6=\E[R, kf7=\E[S,
-       kf8=\E[T, kf9=\E[U, khome=\E[H, knp=\E[G, kpp=\E[I,
-       op=\E[37;40m, ri=\E[T, rmso=\E[m, rmul=\E[m,
-       setab=\E[4%p1%dm, setaf=\E[3%p1%dm, sgr0=\E[m,
-       smso=\E[7m, smul=\E[4m,
+       il1=\E[L, ind=\E[S, kend=\E[F, kf0=\E[V, kf1=\E[M, kf2=\E[N,
+       kf3=\E[O, kf4=\E[P, kf5=\E[Q, kf6=\E[R, kf7=\E[S, kf8=\E[T,
+       kf9=\E[U, knp=\E[G, kpp=\E[I, op=\E[37;40m, ri=\E[T,
+       rmso=\E[m, rmul=\E[m, setab=\E[4%p1%dm, setaf=\E[3%p1%dm,
+       sgr0=\E[m, smso=\E[7m, smul=\E[4m, use=ansi+arrows,
 #
 #       928 VDT 7 bit control mode
 #
@@ -23817,12 +23933,15 @@ apollo|Apollo console,
 # We don't know whether or not the apollo guys replicated DEC's firmware bug
 # in the VT132 that reversed <rmir>/<smir>.  To be on the safe side, disable
 # both these capabilities.
-apollo_15P|Apollo 15 inch display,
+apollo+vt132|Apollo console emulating VT132,
        rmir@, smir@, use=vt132,
+
+apollo_15P|Apollo 15 inch display,
+       use=apollo+vt132,
 apollo_19L|Apollo 19 inch display,
-       rmir@, smir@, use=vt132,
+       use=apollo+vt132,
 apollo_color|Apollo color display,
-       rmir@, smir@, use=vt132,
+       use=apollo+vt132,
 
 #### AT&T consoles
 
@@ -23831,28 +23950,28 @@ apollo_color|Apollo color display,
 # From: Eric Raymond <esr@snark.thyrsus.com> Mon Nov 27 19:00:53 EST 1995
 att6386|at386|386at|AT&T WGS 6386 console,
        am, bw, eo, xon,
-       cols#80, it#8, lines#25,
+       cols#80, lines#25,
        acsc=``a1fxgqh0jYk?lZm@nEooppqDrrsstCu4vAwBx3yyzz{{||}}~~,
-       bel=^G, blink=\E[5m, bold=\E[1m, cbt=\E[Z, civis=\E[=C,
+       bel=^G, blink=\E[5m, bold=\E[1m, civis=\E[=C,
        clear=\E[2J\E[H, cnorm=\E[=1C, cr=\r, cub=\E[%p1%dD,
        cub1=\E[D, cud=\E[%p1%dB, cud1=\E[B, cuf=\E[%p1%dC,
        cuf1=\E[C, cup=\E[%i%p1%d;%p2%dH, cuu=\E[%p1%dA,
        cuu1=\E[A, dch=\E[%p1%dP, dch1=\E[P, dim=\E[2m,
        dl=\E[%p1%dM, dl1=\E[1M, ech=\E[%p1%dX, ed=\E[J, el=\E[K,
-       home=\E[H, hpa=\E[%i%p1%dG, ht=^I, hts=\EH, ich=\E[%p1%d@,
-       ich1=\E[1@, il=\E[%p1%dL, il1=\E[1L, ind=\E[S, invis=\E[9m,
-       is2=\E[0;10;39m, kbs=^H, kcbt=^], kcub1=\E[D, kcud1=\E[B,
-       kcuf1=\E[C, kcuu1=\E[A, kdch1=\E[P, kend=\E[Y, kf1=\EOP,
+       home=\E[H, hpa=\E[%i%p1%dG, ich=\E[%p1%d@, ich1=\E[1@,
+       il=\E[%p1%dL, il1=\E[1L, ind=\E[S, invis=\E[9m,
+       is2=\E[0;10;39m, kcbt=^], kdch1=\E[P, kend=\E[Y, kf1=\EOP,
        kf10=\EOY, kf11=\EOZ, kf12=\EOA, kf2=\EOQ, kf3=\EOR,
        kf4=\EOS, kf5=\EOT, kf6=\EOU, kf7=\EOV, kf8=\EOW, kf9=\EOX,
-       khome=\E[H, kich1=\E[@, knp=\E[U, kpp=\E[V, krmir=\E0,
-       nel=\r\E[S, rc=\E8, rev=\E[7m, ri=\E[T, rmacs=\E[10m,
-       rmso=\E[m, rmul=\E[m, sc=\E7,
+       kich1=\E[@, knp=\E[U, kpp=\E[V, krmir=\E0, nel=\r\E[S,
+       rc=\E8, rev=\E[7m, ri=\E[T, rmacs=\E[10m, rmso=\E[m,
+       rmul=\E[m, sc=\E7,
        sgr=\E[10m\E[0%?%p1%p3%|%t;7%;%?%p2%t;4%;%?%p4%t;5%;%?%p5%t;
            2%;%?%p6%t;1%;%?%p9%t;12%e;10%;%?%p7%t;9%;m,
        sgr0=\E[0;10m, smacs=\E[12m, smso=\E[7m, smul=\E[4m,
-       tbc=\E[3g, vpa=\E[%i%p1%dd, use=ecma+index,
-       use=klone+color,
+       vpa=\E[%i%p1%dd, use=ansi+arrows, use=ansi+inittabs,
+       use=ecma+index, use=klone+color,
+
 # (pc6300plus: removed ":KM=/usr/lib/ua/kmap.s5:"; renamed BO/EE/CI/CV -- esr)
 pc6300plus|AT&T 6300 plus,
        OTbs, am, xon,
@@ -23992,25 +24111,23 @@ att7300|unixpc|pc7300|3b1|s4|AT&T UNIX PC Model 7300,
        clear=\E[2J\E[H, cnorm=\E[=0C, cr=\r, cub=\E[%p1%dD,
        cub1=^H, cud=\E[%p1%dB, cud1=\E[B, cuf=\E[%p1%dC,
        cuf1=\E[C, cup=\E[%i%p1%d;%p2%dH, cuu=\E[%p1%dA,
-       cuu1=\E[A, dch1=\E[P, dim=\E[2m, dl=\E[%p1%dM, dl1=\E[M,
-       ed=\E[0J, el=\E[0K, home=\E[H, ich1=\E[@, il=\E[%p1%dL,
-       il1=\E[L, ind=\n, invis=\E[9m, is1=\017\E[=1w, kBEG=\ENB,
-       kCAN=\EOW, kCPY=\END, kCRT=\EON, kDC=\ENF, kDL=\ENE,
-       kEND=\ENN, kEOL=\EOA, kFND=\EOX, kHLP=\EOM, kHOM=\ENM,
-       kIC=\ENJ, kLFT=\ENK, kMOV=\ENC, kNXT=\ENH, kOPT=\EOR,
-       kPRV=\ENG, kRDO=\EOT, kRIT=\ENL, kRPL=\EOY, kSAV=\EOO,
-       kUND=\EOS, kbeg=\ENb, kbs=^H, kcan=\EOw, kcbt=\E[Z,
+       cuu1=\E[A, dch1=\E[P, dim=\E[2m, ed=\E[0J, el=\E[0K,
+       home=\E[H, ich1=\E[@, ind=\n, invis=\E[9m, is1=\017\E[=1w,
+       kBEG=\ENB, kCAN=\EOW, kCPY=\END, kCRT=\EON, kDC=\ENF,
+       kDL=\ENE, kEND=\ENN, kEOL=\EOA, kFND=\EOX, kHLP=\EOM,
+       kHOM=\ENM, kIC=\ENJ, kLFT=\ENK, kMOV=\ENC, kNXT=\ENH,
+       kOPT=\EOR, kPRV=\ENG, kRDO=\EOT, kRIT=\ENL, kRPL=\EOY,
+       kSAV=\EOO, kUND=\EOS, kbeg=\ENb, kcan=\EOw, kcbt=\E[Z,
        kclo=\EOV, kclr=\E[J, kcmd=\EOu, kcpy=\ENd, kcrt=\EOn,
-       kcub1=\E[D, kcud1=\E[B, kcuf1=\E[C, kcuu1=\E[A, kdch1=\ENf,
-       ked=\E[J, kel=\EOa, kend=\E0, kext=\EOk, kf1=\EOc, kf2=\EOd,
-       kf3=\EOe, kf4=\EOf, kf5=\EOg, kf6=\EOh, kf7=\EOi, kf8=\EOj,
-       kfnd=\EOx, khlp=\EOm, khome=\E[H, kich1=\ENj, kind=\E[B,
-       kmov=\ENc, kmrk=\ENi, knp=\E[U, knxt=\ENh, kopn=\EOv,
-       kopt=\EOr, kpp=\E[V, kprt=\EOz, kprv=\ENg, krdo=\EOt,
-       kref=\EOb, krfr=\ENa, kri=\E[A, krpl=\EOy, krst=\EOB,
-       ksav=\EOo, kslt=\ENI, kund=\EOs, nel=\EE, rev=\E[7m, ri=\EM,
-       rmso=\E[m, rmul=\E[m, sgr0=\E[0;10m, smso=\E[7m,
-       smul=\E[4m,
+       kdch1=\ENf, ked=\E[J, kel=\EOa, kend=\E0, kext=\EOk,
+       kf1=\EOc, kf2=\EOd, kf3=\EOe, kf4=\EOf, kf5=\EOg, kf6=\EOh,
+       kf7=\EOi, kf8=\EOj, kfnd=\EOx, khlp=\EOm, kich1=\ENj,
+       kind=\E[B, kmov=\ENc, kmrk=\ENi, knp=\E[U, knxt=\ENh,
+       kopn=\EOv, kopt=\EOr, kpp=\E[V, kprt=\EOz, kprv=\ENg,
+       krdo=\EOt, kref=\EOb, krfr=\ENa, kri=\E[A, krpl=\EOy,
+       krst=\EOB, ksav=\EOo, kslt=\ENI, kund=\EOs, nel=\EE,
+       rev=\E[7m, ri=\EM, rmso=\E[m, rmul=\E[m, sgr0=\E[0;10m,
+       smso=\E[7m, smul=\E[4m, use=ansi+arrows, use=ansi+idl,
 
 #### Convergent Technology
 #
@@ -24159,10 +24276,9 @@ ibmpcx|xenix|ibmx|IBM PC xenix console display,
        cols#80, lines#25,
        clear=^L, cub1=^H, cud1=\E[B, cuf1=\E[C,
        cup=\E[%p1%d;%p2%dH, cuu1=\E[A, dch1=\E[P, dl1=\E[M,
-       ed=\E[J, el=\E[K, home=\E[H, ich1=\E[@, il1=\E[L, kbs=^H,
-       kcub1=\E[D, kcud1=\E[B, kcuf1=\E[C, kcuu1=\E[A, kend=\E[d,
+       ed=\E[J, el=\E[K, home=\E[H, ich1=\E[@, il1=\E[L, kend=\E[d,
        kf1=\E[K, kf2=\E[L, kf3=\E[M, kf4=\E[N, khome=\E[Y, knp=\E[e,
-       kpp=\E[Z, use=klone+acs, use=klone+sgr8,
+       kpp=\E[Z, use=ansi+arrows, use=klone+acs, use=klone+sgr8,
 
 ######## OTHER OBSOLETE TYPES
 #
@@ -24239,19 +24355,18 @@ gs6300|emots|AT&T PC6300 with EMOTS terminal emulator,
        colors#8, cols#80, it#8, lines#24, pairs#63,
        acsc=++\,\,--..``aaffgghhiijjkkllmmnnooppqqrrssttuuvvwwxxyyz
             z{{||}}~~,
-       bel=^G, blink=\E[5m, bold=\E[1m, clear=\E[H\E[J, cr=\r,
-       cub=\E[%p1%dD, 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, dch=\E[%p1%dP, dch1=\E[P,
-       dl=\E[%p1%dM, dl1=\E[M, ed=\E[J, el=\E[K, home=\E[H, ht=^I,
-       ich=\E[%p1%d@, ich1=\E[@, il=\E[%p1%dL, il1=\E[L, ind=\n,
-       is2=\E[m, kbs=^H, kcbt=^R^I, kcub1=\E[D, kcud1=\E[B,
-       kcuf1=\E[C, kcuu1=\E[A, kf1=\E[0s, kf2=\E[24s, kf3=\E[1s,
-       kf4=\E[23s, kf5=\E[2s, kf6=\E[22s, kf7=\E[3s, kf8=\E[21s,
-       khome=\E[H, mc4=\E[4i, mc5=\E[5i, op=\E[?;m, rev=\E[7m,
-       ri=\E[L, rmacs=\E[10m, rs1=\Ec, setb=\E[?;%p1%dm,
+       bel=^G, blink=\E[5m, bold=\E[1m, cr=\r, cub=\E[%p1%dD,
+       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,
+       dch=\E[%p1%dP, dch1=\E[P, home=\E[H, ht=^I, ich=\E[%p1%d@,
+       ich1=\E[@, ind=\n, is2=\E[m, kcbt=^R^I, kf1=\E[0s,
+       kf2=\E[24s, kf3=\E[1s, kf4=\E[23s, kf5=\E[2s, kf6=\E[22s,
+       kf7=\E[3s, kf8=\E[21s, mc4=\E[4i, mc5=\E[5i, op=\E[?;m,
+       rev=\E[7m, ri=\E[L, rmacs=\E[10m, rs1=\Ec,
+       setb=\E[?;%p1%dm,
        setf=\E[?%?%p1%{0}%=%t0%e%p1%{1}%=%t2%e%p1%{1}%-%d%;m,
        sgr0=\E[m\E[10m, smacs=\E[11m, smso=\E[1m, smul=\E[4m,
+       use=ansi+arrows, use=ansi+erase, use=ansi+idl,
 
 # From: <earle@smeagol.UUCP> 29 Oct 85 05:40:18 GMT
 # MS-Kermit with Heath-19 emulation mode enabled
@@ -24269,18 +24384,17 @@ versaterm|VersaTerm VT100 emulator for the Macintosh,
        am, xenl,
        cols#80, it#8, lines#24,
        bel=^G, blink=\E[5m$<2/>, bold=\E[1m$<2/>,
-       clear=\E[;H\E[2J$<50/>, cr=\r, csr=\E[%i%p1%d;%p2%dr,
-       cub1=^H, cud1=\n, cuf1=\E[C$<2/>,
-       cup=\E[%i%p1%d;%p2%dH$<5/>, cuu1=\E[A$<2/>,
-       dch1=\E[1P$<7/>, dl1=\E[1M$<9/>, ed=\E[J$<50/>,
-       el=\E[K$<3/>, home=\E[H, ht=^I, ich1=\E[1@$<7/>,
-       il1=\E[1L$<9/>, is2=\E[1;24r\E[24;1H, kbs=^H, kcub1=\EOD,
-       kcud1=\EOB, kcuf1=\EOC, kcuu1=\EOA, kf1=\EOP, kf2=\EOQ,
-       kf3=\EOR, kf4=\EOS, nel=\r\n, rc=\E8, rev=\E[7m$<2/>,
-       rf=/usr/share/tabset/vt100, ri=\EM$<5/>,
-       rmkx=\E>\E[?1l, rmso=\E[m$<2/>, rmul=\E[m$<2/>, rs1=\E>,
-       sc=\E7, sgr0=\E[m$<2/>, smkx=\E=\E[?1h, smso=\E[7m$<2/>,
-       smul=\E[4m$<2/>,
+       clear=\E[;H\E[2J$<50/>, cr=\r, cub1=^H, cud1=\n,
+       cuf1=\E[C$<2/>, cup=\E[%i%p1%d;%p2%dH$<5/>,
+       cuu1=\E[A$<2/>, dch1=\E[1P$<7/>, dl1=\E[1M$<9/>,
+       ed=\E[J$<50/>, el=\E[K$<3/>, home=\E[H, ht=^I,
+       ich1=\E[1@$<7/>, il1=\E[1L$<9/>, is2=\E[1;24r\E[24;1H,
+       kbs=^H, kcub1=\EOD, kcud1=\EOB, kcuf1=\EOC, kcuu1=\EOA,
+       kf1=\EOP, kf2=\EOQ, kf3=\EOR, kf4=\EOS, nel=\r\n,
+       rev=\E[7m$<2/>, rf=/usr/share/tabset/vt100,
+       ri=\EM$<5/>, rmkx=\E>\E[?1l, rmso=\E[m$<2/>,
+       rmul=\E[m$<2/>, rs1=\E>, sgr0=\E[m$<2/>, smkx=\E=\E[?1h,
+       smso=\E[7m$<2/>, smul=\E[4m$<2/>, use=ansi+csr,
 
 # From: Rick Thomas <ihnp4!btlunix!rbt>
 # (xtalk: I added <rmam>/<smam> based on the init string.
@@ -24522,14 +24636,13 @@ opus3n1+|Esprit Opus3n1+ in wy60 mode with ANSI arrow keys,
        is2=\E`:\Ee(\EO\Ee6\Ec41\E~4\Ec21\Ed/\Ezz&\E[A\177\Ezz'\E[B
            \177\Ezz(\E[D\177\Ezz)\E[C\177\Ezz<\E[Q\177\Ezz`\E[F
            \177\EA1*\EZH12,
-       kHOM=\E{, kbs=^H, kcbt=\EI, kcub1=\E[D, kcud1=\E[B,
-       kcuf1=\E[C, kcuu1=\E[A, kdch1=\EW, kdl1=\ER, ked=\EY,
-       kel=\ET, kend=\E[F, kent=\E7, kf1=^A@\r, kf10=^AI\r,
-       kf11=^AJ\r, kf12=^AK\r, kf13=^AL\r, kf14=^AM\r, kf15=^AN\r,
-       kf16=^AO\r, kf2=^AA\r, kf3=^AB\r, kf4=^AC\r, kf5=^AD\r,
-       kf6=^AE\r, kf7=^AF\r, kf8=^AG\r, kf9=^AH\r, khome=^^,
-       kich1=\EQ, kil1=\EE, knp=\EK, kpp=\EJ, kprt=\EP, krpl=\Er,
-       mc0=\EP, mc4=^T, mc5=^R, nel=\r\n$<3>,
+       kHOM=\E{, kcbt=\EI, kdch1=\EW, kdl1=\ER, ked=\EY, kel=\ET,
+       kend=\E[F, kent=\E7, kf1=^A@\r, kf10=^AI\r, kf11=^AJ\r,
+       kf12=^AK\r, kf13=^AL\r, kf14=^AM\r, kf15=^AN\r, kf16=^AO\r,
+       kf2=^AA\r, kf3=^AB\r, kf4=^AC\r, kf5=^AD\r, kf6=^AE\r,
+       kf7=^AF\r, kf8=^AG\r, kf9=^AH\r, khome=^^, kich1=\EQ,
+       kil1=\EE, knp=\EK, kpp=\EJ, kprt=\EP, krpl=\Er, mc0=\EP,
+       mc4=^T, mc5=^R, nel=\r\n$<3>,
        pfloc=\EZ2%p1%{63}%+%c%p2%s\177,
        pfx=\EZ1%p1%{63}%+%c%p2%s\177,
        pln=\Ez%p1%{47}%+%c%p2%s\r, prot=\E), ri=\Ej$<7>,
@@ -24543,7 +24656,8 @@ opus3n1+|Esprit Opus3n1+ in wy60 mode with ANSI arrow keys,
        smcup=\Ezz&\E[A\177\Ezz'\E[B\177\Ezz(\E[D\177\Ezz)\E[C\177
              \Ezz<\E[Q\177,
        smir=\Eq, smln=\EA10, smxon=\Ec21, tbc=\E0, tsl=\Ez(,
-       uc=\EG8\EG0, use=adm+sgr,
+       uc=\EG8\EG0, use=ansi+arrows, use=adm+sgr,
+
 teletec|Teletec Datascreen,
        OTbs, am,
        cols#80, lines#24,
@@ -24578,15 +24692,15 @@ teletec|Teletec Datascreen,
 v3220|LANPAR Vision II model 3220/3221/3222,
        OTbs, am, mir, xenl,
        cols#80, it#8, lines#24,
-       clear=\E[H\E[J, cub1=^H, cud1=\E[B, cuf1=\E[C,
-       cup=\E[%i%p1%d;%p2%dH, cuu1=\E[A, dch1=\E[P, dl1=\E[M,
-       ed=\E[J, el=\E[K, ht=^I, il1=\E[L,
+       cub1=^H, cud1=\E[B, cuf1=\E[C, cup=\E[%i%p1%d;%p2%dH,
+       cuu1=\E[A, dch1=\E[P, dl1=\E[M, ht=^I, il1=\E[L,
        is2=\E>\E[?3l\E[?7h\E[?8h\E[p, kcub1=\E[D, kcud1=\E[B,
        kcuf1=\E[C, kcuu1=\E[A, kf0=\E[1~, kf1=\E[2~, kf2=\E[3~,
        kf3=\E[4~, kf4=\E[5~, kf5=\E[6~, kf6=\E[OP, kf7=\E[OQ,
        kf8=\E[OR, kf9=\E[OS, khome=\E[H, ri=\EM, rmam=\E[?7l,
        rmir=\E[4l, rmkx=\E>, rmso=\E[m, rmul=\E[m, sgr0=\E[m,
        smam=\E[?7h, smir=\E[4h, smkx=\E=, smso=\E[7m, smul=\E[4m,
+       use=ansi+erase,
 ######## ICH/ICH1 VERSUS RMIR/SMIR
 #
 # Some non-curses applications get confused if both ich/ich1 and rmir/smir
@@ -25355,7 +25469,7 @@ v3220|LANPAR Vision II model 3220/3221/3222,
 # differences, noted in
 #      https://invisible-island.net/ncurses/ncurses-netbsd.html
 #
-# ncurses makes explicit checks for a few user-definable capabilities:  AX,
+# ncurses makes explicit checks for a few user-definable capabilities:  AX, E3,
 # RGB, U8, XM, which are documented in the user_caps(5) manual page.
 #
 #### SCREEN Extensions:
@@ -25408,6 +25522,19 @@ v3220|LANPAR Vision II model 3220/3221/3222,
 #
 #### XTERM Extensions:
 #
+# For a discussion of "xterm", "xterm-256color" as values for TERM, see
+#      https://invisible-island.net/ncurses/ncurses.faq.html#xterm_generic
+#      https://invisible-island.net/ncurses/ncurses.faq.html#xterm_256color
+#
+# For xterm control sequences, see
+#      https://invisible-island.net/xterm/ctlseqs/ctlseqs.html
+#
+# For function-keys with modifiers, see
+#      https://invisible-island.net/ncurses/ncurses.faq.html#modified_keys
+#
+# For a discussion of "bracketed paste", see
+#      https://invisible-island.net/xterm/xterm-paste64.html
+#
 # Most of the xterm extensions are for function-keys.  Since xterm patch #94 (in
 # 1999), xterm has supported shift/control/alt/meta modifiers which produce
 # additional function-key strings.  Some other developers copied the feature,
@@ -25422,7 +25549,20 @@ v3220|LANPAR Vision II model 3220/3221/3222,
 # kDC3 kDC4 kDC5 kDC6 kDC7 kDN kDN3 kDN4 kDN5 kDN6 kDN7 kEND3 kEND4 kEND5 kEND6
 # kEND7 kHOM3 kHOM4 kHOM5 kHOM6 kHOM7 kIC3 kIC4 kIC5 kIC6 kIC7 kLFT3 kLFT4
 # kLFT5 kLFT6 kLFT7 kNXT3 kNXT4 kNXT5 kNXT6 kNXT7 kPRV3 kPRV4 kPRV5 kPRV6 kPRV7
-# kRIT3 kRIT4 kRIT5 kRIT6 kRIT7 kUP kUP3 kUP4 kUP5 kUP6 kUP7 ka2 kb1 kb3 kc2
+# kRIT3 kRIT4 kRIT5 kRIT6 kRIT7 kUP kUP3 kUP4 kUP5 kUP6 kUP7 kxIN kxOUT ka2 kb1
+# kb3 kc2
+#
+# Bracketed paste is described with these capabilities in vim:
+#
+# BE enables bracketed paste
+# BD disables bracketed paste
+# PS is sent before the pasted text
+# PE is sent after the pasted text
+#
+# vim also uses these names for xterm focus:
+#
+# fe enables focus events
+# fd disables focus events
 #
 # Here are the other xterm-related extensions which are used in this file:
 #
@@ -25433,12 +25573,21 @@ v3220|LANPAR Vision II model 3220/3221/3222,
 # Ms modifies the selection/clipboard.  Its parameters are
 #      p1 = the storage unit (clipboard, selection or cut buffer)
 #      p2 = the base64-encoded clipboard content.
+# RV requests the terminal to report secondary device attributes (i.e, version).
+# rv shows the format of the terminal responses, as a regular expression.
 # Se resets the cursor style to the terminal power-on default.
 # Ss is a string capability with one numeric parameter.  It is used to set the
 #    cursor style as described by the DECSCUSR function to a block or
 #    underline.
 # TS is a string capability which acts like "tsl", but uses no parameter and
 #    goes to the first column of the "status line".
+# XF is set/true for terminals which support the xterm focus-in/focus-out
+#    escape sequences sent from the terminal to the host when private mode
+#    1004 is set.  Those are defined as kxIN and kxOUT, to take advantage of
+#    ncurses keypad mode to interpret them like a function key.  Because the
+#    1004 mode is usually combined with other flags to set the mouse protocol,
+#    this flag provides an application with the information that the focus
+#    mode is assumed to be set, e.g., in XM.
 # XM is a string capability which overrides ncurses's built-in string which
 #    enables/disables xterm mouse mode.
 # xm shows the format of the mouse responses.  Parameters:
@@ -25452,6 +25601,8 @@ v3220|LANPAR Vision II model 3220/3221/3222,
 #      p8 = x-ordinate ending region
 # Other extensions, used in xm:
 #      %u = UTF-8
+# XR requests the terminal to report its version as a free-format string.
+# xr shows the format of the terminal responses, as a regular expression.
 #
 #### Miscellaneous extensions:
 #
@@ -25465,6 +25616,8 @@ v3220|LANPAR Vision II model 3220/3221/3222,
 # E3 clears the terminal's scrollback buffer.  This was implemented in the
 #    Linux 3.0 kernel as a security feature.  It matches a feature which was
 #    added in xterm patch #107.
+# NQ denotes a terminal which does not support the standard query/response used
+#    in u6/u7 (cursor position) and u8/u9 (device attributes).
 # U8 is a numeric capability which denotes a terminal emulator which does not
 #    support VT100 SI/SO when processing UTF-8 encoding.  Set this to a nonzero
 #    value to enable it.
@@ -27605,4 +27758,97 @@ v3220|LANPAR Vision II model 3220/3221/3222,
 #      + amended note for att610+cvis0, as per documentation for att610,
 #        att620, att730 -TD
 #
+# 2022-06-25
+#      + correct dsl in dec+sl (report by Rajeev Pillai) -TD
+#      + add/use ansi+cpr, decid+cpr -TD
+#
+# 2022-07-03
+#      + use NQ to flag entries where the terminal does not support query and
+#        response -TD
+#      + use ansi+enq and decid+cpr in cases where the terminal probably
+#        supported the u6-u9 extension -TD
+#      + add/use apollo+vt132, xterm+alt47 -TD
+#
+# 2022-08-27
+#      + modify nsterm to use xterm+alt1049 (report by Paul Handly) -TD
+#      + modify putty to use xterm+alt1049 -TD
+#
+# 2022-12-24
+#      + add/use bracketed+paste to help identify terminals supporting this
+#        xterm feature (prompted by discussion with Bram Moolenaar) -TD
+#
+# 2022-12-29
+#      + correct PS vs PE names in bracketed+paste (report by Bram Moolenaar)
+#        -TD
+#
+# 2023-01-07
+#      + add comment to bracketed+paste explaining that vim patch 9.0.1117 is
+#        needed for use with the updated xterm descriptions (suggested by Bram
+#        Moolenaar).
+#      + add RV report+version (suggested by Bram Moolenaar).
+#
+# 2023-01-14
+#      + change RV to XR/xr, to avoid conflict with pre-existing usage in vim,
+#        to use RV/rv to denote DA2 and its response (discussion with Bram
+#        Moolenaar) -TD
+#      + add XF flag to xterm+focus so that termcap applications can be aware
+#        of terminals which may support focus in/out -TD
+#      + use xterm+focus in xterm-p370 and tmux -TD
+#
+# 2023-01-28
+#      + document XF, kxIN and kxOUT -TD
+#      + add note on sun/wscons/cmdtool/shelltool -TD
+#
+# 2023-04-01
+#      + remove DECCOLM+DECSCLM from foot (patch by Daniel Ekloef).
+#
+# 2023-04-08
+#      + add xterm+focus to alacritty+common (patch by Christian Duerr).
+#
+# 2023-05-08
+#      + add mode 1004 to xterm+sm+1006 from xterm #380 -TD
+#
+# 2023-06-05
+#      + add xterm+focus to foot+base (patch by Daniel Ekloef).
+#
+# 2023-07-08
+#      + add linux+kbs for terminals which imitate xterm's behavior with
+#        Linux -TD
+#
+# 2023-07-15
+#      + mention E3 in regard to user_caps(5) -TD
+#
+# 2023-08-12
+#      + add/use putty+cursor to reflect amending of modified cursor-keys in
+#        2021 -TD
+#      + add ecma+strikeout to putty -TD
+#
+# 2023-10-21
+#      + use oldxterm+sm+1006 in vte-2014 (report by Benno Schulenberg) -TD
+#      + add ansi+apparrows -TD
+#
+# 2023-10-28
+#      + move xterm focus mode 1004 from xterm+sm+1006 into xterm+focus as
+#        fe/fd capabilities, like vim (vim-pr #13440).
+#
+# 2023-11-11
+#      + used "infocmp -u" to help trim redundant capabilities -TD
+#
+# 2023-12-09
+#      + remove xterm+sm+1006 from tmux (Debian #1057688).
+#      + used "infocmp -u" to help trim redundant capabilities -TD
+#
+# 2023-12-16
+#      + used "infocmp -u" to help trim redundant capabilities -TD
+#
+# 2023-12-30
+#      + add ms-vt100-16color, winconsole -TD
+#      + add rio, rio-direct -TD
+#      + add mostlike -TD
+#      + add wezterm, contour -TD
+#
+# 2024-01-06
+#      + use ansi+arrows, ansi+apparrows, ansi+csr, ansi+erase, ansi+idc,
+#        ansi+idc1, ansi+idl, ansi+idl1, ansi+inittabs to trim -TD
+#
 ######## SHANTIH!  SHANTIH!  SHANTIH!