]> ncurses.scripts.mit.edu Git - ncurses.git/blobdiff - misc/terminfo.src
ncurses 6.4 - patch 20230408
[ncurses.git] / misc / terminfo.src
index 6c2b8f0c456368341ade6a2bf5fd3dd784c94ed7..e00a7f6b3c718029eb5fd6f12c65823a43e77591 100644 (file)
@@ -6,8 +6,8 @@
 # Report bugs and new terminal descriptions to
 #      bug-ncurses@gnu.org
 #
-#      $Revision: 1.1029 $
-#      $Date: 2022/07/03 21:39:22 $
+#      $Revision: 1.1057 $
+#      $Date: 2023/04/08 21:08:00 $
 #
 # 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
@@ -3691,9 +3691,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
 
@@ -3815,6 +3818,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")
 #
@@ -4276,20 +4280,20 @@ putty|PuTTY terminal emulator,
        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,
+       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,
        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=vt220+pcedit,
        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=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,
 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,
@@ -4416,7 +4420,8 @@ mintty+common|shared capabilities for mintty,
        opaq=\E[28m, smul2=\E[21m, 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=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:
@@ -4617,6 +4622,16 @@ ms-vt-utf8|vt-utf8|UTF-8 flavor of VT100+,
 # 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
 #
@@ -4761,7 +4776,7 @@ 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,
+       use=ecma+italics, use=xterm-basic, use=bracketed+paste,
 vscode-direct|Visual Studio Code with direct-colors,
        use=xterm+indirect, use=vscode,
 
@@ -4987,9 +5002,13 @@ xterm+nofkeys|building block for xterm fkey-variants,
 
 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,
+       kcbt=\E[Z, kent=\EOM, nel=\EE,
+       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,
@@ -5756,6 +5775,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
@@ -5857,6 +5903,7 @@ xterm-1003|example of xterm any-event mouse,
        use=xterm+sm+1003, use=xterm,
 
 xterm+focus|xterm focus-in/out event "keys",
+       XF,
        kxIN=\E[I, kxOUT=\E[O,
 
 # xterm patch #116 (1999/9/25) added Stephen P Wall's changes to support DEC
@@ -6229,6 +6276,7 @@ vte-2014|VTE 0.35.1,
        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=bracketed+paste,
 
 # As of January 2018, this was the  most recent release,
 # e.g., with gnome-terminal 3.26.2
@@ -6292,6 +6340,7 @@ hterm|Chromium hterm,
        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,
+       use=bracketed+paste,
 hterm-256color|Chromium hterm with xterm 256-colors,
        use=xterm+256color2, use=hterm,
 
@@ -6408,7 +6457,7 @@ 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,
@@ -6423,7 +6472,8 @@ konsole-base|KDE console window (base),
        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=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.
@@ -6582,7 +6632,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
 #
@@ -7401,7 +7452,7 @@ st-0.6|simpleterm 0.6,
        vpa=\E[%i%p1%dd, Se=\E[2 q, Ss=\E[%p1%d q, use=ansi+enq,
        use=vt220+pcedit, use=ecma+index, use=xterm+alt1049,
        use=vt220+cvis, use=xterm+sl, use=ecma+italics,
-       use=ecma+strikeout,
+       use=ecma+strikeout, use=bracketed+paste,
 #
 # st-0.1.1
 #
@@ -7553,7 +7604,7 @@ terminator|Terminator no line wrap,
        smul=\E[4m, tbc=\E[3g, tsl=\E]2;, vpa=\E[%i%p1%dd,
        use=ansi+enq, 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
@@ -7644,7 +7695,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.
@@ -7666,7 +7718,7 @@ terminology-1.8.1|EFL-based terminal emulator (1.8.1),
        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=ecma+italics, use=xterm-basic, use=report+version,
 
 terminology|EFL-based terminal emulator,
        use=terminology-1.8.1,
@@ -7739,7 +7791,7 @@ alacritty+common|base fragment for alacritty,
        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=xterm+pcf2, use=bracketed+paste, use=xterm+focus,
 
 #### Kitty
 # https://github.com/kovidgoyal/kitty
@@ -7895,6 +7947,7 @@ kitty+common|KovId's TTY common properties,
        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
@@ -7942,10 +7995,10 @@ foot+base|foot base fragment,
        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=,
@@ -7955,7 +8008,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,
 
 ######## WEB CLIENTS
 
@@ -8011,6 +8065,7 @@ domterm|DomTerm web client,
            %t;7%;m,
        sitm@, smkx=\E[?1h, use=xterm+256setaf, use=ecma+index,
        use=xterm+sm+1006, use=xterm+pcfkeys, use=xterm-basic,
+       use=bracketed+paste,
 
 ######## UNIX VIRTUAL TERMINALS, VIRTUAL CONSOLES, AND TELNET CLIENTS
 #
@@ -8159,7 +8214,7 @@ 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,
        acsc=++\,\,--..00``aaffgghhiijjkkllmmnnooppqqrrssttuuvvwwxxy
@@ -8173,26 +8228,33 @@ screen|VT 100/ANSI X3.64 virtual terminal (base),
        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,
-       rmacs=^O, rmir=\E[4l, rmkx=\E[?1l\E>, rmso=\E[23m,
-       rmul=\E[24m, rs2=\Ec\E[?1000l\E[?25h, sc=\E7,
+       ind=\n, indn=\E[%p1%dS, is2=\E)0, 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, rmacs=^O,
+       rmir=\E[4l, rmkx=\E[?1l\E>, rmso=\E[23m, rmul=\E[24m,
+       rs2=\Ec\E[?1000l\E[?25h, sc=\E7,
        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,
+       E0=\E(B, S0=\E(%p1%c, 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.
@@ -8203,7 +8265,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,
@@ -8218,7 +8280,7 @@ 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,
@@ -8233,7 +8295,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,
@@ -8242,7 +8304,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,
 
 # ======================================================================
 
@@ -8280,19 +8342,26 @@ 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
 #      translation.  They are suppressed here to show what is tested by tack.
 screen.xterm-xfree86|screen.xterm-new|screen customized for modern xterm,
-       bce@, bw,
-       invis@, kIC@, kNXT@, kPRV@, meml@, memu@, rep@,
+       bce@, bw, npc,
+       invis@, kIC@, kNXT@, kPRV@, kcbt=\E[Z, kent=\EOM, meml@, memu@,
+       nel=\EE, rep@,
        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,
@@ -8304,36 +8373,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,
+       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
@@ -8371,7 +8442,7 @@ screen-bce.linux|screen optimized for Linux console,
        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,
@@ -8407,9 +8478,9 @@ screen3|VT 100/ANSI X3.64 virtual terminal (old 3.x),
 # 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,
 #
@@ -8425,7 +8496,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
 
@@ -8444,7 +8516,8 @@ tmux|tmux terminal multiplexer,
        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,
@@ -8494,7 +8567,7 @@ mosh|mobile shell,
        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-xfree86, use=bracketed+paste,
 
 mosh-256color|mosh using 256-colors,
        use=xterm+256color, use=mosh,
@@ -8756,6 +8829,26 @@ sun-il|Sun Microsystems console with working insert-line,
 # 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,
@@ -21665,7 +21758,7 @@ screen.minitel1|Screen specific for minitel1,
             yzz||}}~~,
        bel=\007\E\^ \E\\, bold@, csr@, flash=\Eg\E\^ \E\\, kmous@,
        rmul@, smul@, u8=\E[?1;2c, use=decid+cpr,
-       use=xterm+x11mouse, use=screen4,
+       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,
@@ -21801,7 +21894,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=decid+cpr, use=xterm+x11mouse, use=screen4,
+       use=decid+cpr, use=xterm+x11mouse, use=screen,
 
 screen.linux-m1b|Linux m1b specific for screen,
        colors@, pairs@,
@@ -25439,6 +25532,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,
@@ -25453,7 +25559,15 @@ 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
 #
 # Here are the other xterm-related extensions which are used in this file:
 #
@@ -25464,12 +25578,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:
@@ -25483,6 +25606,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:
 #
@@ -27649,4 +27774,40 @@ v3220|LANPAR Vision II model 3220/3221/3222,
 #        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).
+#
 ######## SHANTIH!  SHANTIH!  SHANTIH!