# Report bugs and new terminal descriptions to
# bug-ncurses@gnu.org
#
-# $Revision: 1.876 $
-# $Date: 2021/06/26 18:47:42 $
+# $Revision: 1.911 $
+# $Date: 2021/09/04 15:32: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
clear=\E[H\E[J, ed=\E[J, el=\E[K,
ansi+rca|ANSI relative cursor-addressing,
hpa=\E[%p1%{1}%+%dG, vpa=\E[%p1%{1}%+%dd,
+ansi+rca2|ANSI relative cursor-addressing,
+ hpa=\E[%i%p1%dG, vpa=\E[%i%p1%dd,
ansi+cup|ANSI absolute cursor-addressing,
cup=\E[%i%p1%d;%p2%dH, home=\E[H,
ansi+rep|ANSI repeat-character,
# The 3.0 kernel adds support for clearing scrollback buffer (capability E3).
# It is the same as xterm's erase-saved-lines feature.
+#
+# Linux 3.0 was released in July 2011. The keyboard utilities (kbd) are
+# used for configuring its keyboard mappings.
+#
+# kbd 1.14 was released before that (January 2008), but due to its placement
+# late in the Linux 2.6.x series had no immediate effect for most users. That
+# provided a default mapping for shift-tab to the (misnamed) Meta_Tab, i.e.,
+# the same as Alt-Tab.
+#
+# The suggested mapping for the conventional \E[Z is provided in this entry as
+# an extended key to lessen user surprise -TD
linux3.0|linux 3.0 kernels,
- E3=\E[3J, use=linux2.6,
+ kcbt=\E^I, E3=\E[3J, kcbt2=\E[Z, use=linux2.6,
# This is Linux console for ncurses.
linux|linux console,
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,
+ bold=\E[1m, rev=\E[7m, rmso=\E[27m,
sgr=\E[0%?%p1%p3%|%t;7%;%?%p6%t;1%;%?%p2%t;4%;m,
- sgr0=\E[m,
+ sgr0=\E[m, smso=\E[7m,
pccon+sgr+acs|sgr and default ASCII pseudographics for OpenBSD PC console,
- acsc=++\,\,--..00``aaffgghhiijjkkllmmnnooppqqrrssttuuvvwwxxy
- yzz{{||}}~~,
- enacs=\E)0$<5>, rmacs=\E(B$<5>,
+ acsc=``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~,
+ bold=\E[1m, enacs=\E)0, rev=\E[7m, rmacs=\E(B, rmso=\E[27m,
sgr=\E[0%?%p6%t;1%;%?%p2%t;4%;%?%p1%p3%|%t;7%;m%?%p9%t\E(0%e
- \E(B%;$<2>,
- sgr0=\E[m\E(B$<5>, smacs=\E(0$<5>,
+ \E(B%;,
+ sgr0=\E[m\E(B, smacs=\E(0, smso=\E[7m,
# underline renders as color
pccon+colors|ANSI colors for OpenBSD PC console,
bce,
colors#8, ncv#2, pairs#64,
op=\E[49;39m, setab=\E[4%p1%dm, setaf=\E[3%p1%dm,
+# OpenBSD uses wscons,
+# + which does not implement DECSCNM or anything comparable, so it does not
+# support flash.
+# + it renders underline using color.
pccon+base|base capabilities for OpenBSD PC console,
am, km, mc5i, msgr, npc, nxon, xenl, xon,
cols#80, it#8, lines#24,
- bel=^G, 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, 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@,
- il1=\E[L, ind=\ED, nel=\EE, rev=\E[7m, ri=\EM, rmam=\E[?7l,
- rmso=\E[27m, rmul=\E[24m, rs2=\Ec$<50>, smam=\E[?7h,
- smso=\E[7m, smul=\E[4m, tbc=\E[3g, u6=\E[%i%d;%dR,
- u7=\E[6n,
+ 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,
+ 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,
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,
use=pccon0-m, use=pccon+colors,
pccon-m|OpenBSD PC console without colors,
use=pccon+base, use=pccon+sgr+acs, use=pccon+keys,
+ use=ansi+enq, use=vt220+cvis,
pccon|OpenBSD PC console,
use=pccon-m, use=pccon+colors,
# iTerm2 3.0.15
#
-# https://www.iterm2.com/
+# https://iterm2.com/
# https://github.com/gnachman/iTerm2
# ~/Library/Preferences/com.googlecode.iterm2.plist
# "iTerm" stalled in 2009. A different set of developers began "iTerm2".
use=ms-vt100+,
# Windows Terminal (Preview)
+# https://github.com/microsoft/terminal
+#
+# Windows 10 21H1
+# Version 1.9.1942.0
+#
+# This has longstanding issues with CR/LF mapping, e.g.,
+# - first reported by Juergen Pfeifer August 13, 2020, with workaround
+# - Windows Terminal #8303 "Updates to ms-terminal terminal type in terminfo to
+# 1.4 from 0.2"
+# - Windows Terminal #6733 "Midnight Commander (mc) output is screwed when
+# using the 'ms-terminal' as $TERM"
+#
+# still seen in testing during May-July 2021. As a workaround, this terminal
+# description sets cud1 to an escape sequence rather than just \r.
+#
+# Using TERM=xterm-256color shows a number of problems.
+# A few are seen only in the WSL2 environment.
+#
+# tack:
+# - flash does not work.
+# - video attribute blink does not work.
+# - video attribute invis does not work in WSL2.
+# - italics sitm/ritm do not work in WSL2.
+# - crossed-out smxx/rmxx do not work in WSL2.
+# - reloading colors via initp interchanges red/blue.
+# - does not implement OSC 104, which is used for resetting colors in xterm.
+# - does not support numeric keypad application mode.
+# - control-modifier (without alt/shift) does not work for special keys.
+# - meta-key sends escape character rather than acting as a meta key.
+#
+# vttest:
+# - identifies itself as a VT100.
+# - cursor movement (menu 1) does not work properly, e.g., for wrapping.
+# - does not support 8-bit controls.
+# - does not support VT420 rectangles.
+# - does not support VT420 left/right margins.
+# - ECMA-48 cursor-movement works.
+# - does not support X10 mouse, or mouse highlight tracking.
+# - SGR mouse mode 1006 works.
+# - any-event mouse mode shows no focus-in/focus-out events.
+# - alternate screen 47/48 modes do not work, nor do 1047/1048.
+# - alternate screen 1049 mode works.
+# - none of the window report/modify operations work.
+# - none of the DECRPM/DECRQM reporting operations work.
+#
+# xterm:
+# - 256colors2.pl -r, -i and -q options work.
+# - dynamic colors do not work.
+# - paste64.pl does not work, i.e., bracketed-paste.
+# - tcapquery.pl does not work.
+#
# Windows 10 1903
# Version 0.2.1831.0
-# https://github.com/microsoft/terminal
#
# The task manager shows this as "OpenConsole.exe", which differs
# from the "Windows Command Processor" used for the command-prompt.
# - does not recognize either xterm+direct or xterm+indirect escapes.
ms-terminal|Windows10 terminal,
npc,
- rmkx=\E[?1l, rmm@, smkx=\E[?1h, smm@, use=xterm+256setaf,
- use=xterm+pcfkeys, use=ansi+rep, use=ecma+index,
- use=ecma+italics, use=xterm-basic,
+ 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,
#### Visual Studio
# Visual Studio Code 1.45.0 uses xterm.js 12.8.1 (see https://xtermjs.org/).
xterm+direct16|xterm with direct-color indexing,
CO#16,
- setab=\E[%?%p1%{8}%<%t4%p1%d%e%?%p1%{16}%<%t%p1%{92}%+%e48:2
- ::%p1%{65536}%/%d:%p1%{256}%/%{255}%&%d:%p1%{255}%&%d
+ setab=\E[%?%p1%{8}%<%t4%p1%d%e%?%p1%{16}%<%t%p1%{92}%+%d%e48
+ :2::%p1%{65536}%/%d:%p1%{256}%/%{255}%&%d:%p1%{255}%&
+ %d%;%;m,
+ setaf=\E[%?%p1%{8}%<%t3%p1%d%e%?%p1%{16}%<%t%p1%'R'%+%d%e38:
+ 2::%p1%{65536}%/%d:%p1%{256}%/%{255}%&%d:%p1%{255}%&%d
%;%;m,
- setaf=\E[%?%p1%{8}%<%t3%p1%d%e%?%p1%{16}%<%t%p1%'R'%+%e38:2:
- :%p1%{65536}%/%d:%p1%{256}%/%{255}%&%d:%p1%{255}%&%d%;
- %;m,
setb@, setf@, use=xterm+direct,
xterm-direct16|xterm with direct-colors and 16 indexed colors,
xterm+tmux|advanced xterm features used in tmux,
Cr=\E]112\007, Cs=\E]12;%p1%s\007,
Ms=\E]52;%p1%s;%p2%s\007, Se=\E[2 q, Ss=\E[%p1%d q,
+xterm+tmux2|advanced xterm features used in tmux,
+ Cr=\E]112\E\\, Cs=\E]12;%p1%s\E\\,
+ Ms=\E]52;%p1%s;%p2%s\E\\, Se=\E[ q, Ss=\E[%p1%d q,
# This is another variant, for XFree86 4.0 xterm (T.Dickey)
# This is an 8-bit version of xterm, which emulates DEC vt220 with ANSI color.
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;%p1, vpa=\E[%i%p1%dd,
+ smul=\E[4m, tbc=\E[3g, tsl=\E]2;, vpa=\E[%i%p1%dd,
use=vt220+pcedit, use=ecma+italics, use=ecma+index,
use=xterm+256setaf, use=xterm+sl-twm,
use=xterm+alt1049, use=vt220+cvis,
use=ecma+italics, use=xterm+alt1049, use=att610+cvis,
use=xterm+tmux,
+######## WAYLAND CLIENTS
+
+#### Foot
+# https://codeberg.org/dnkl/foot/
+# Version 1.8.2
+#
+# This identifies as a VT220 with 4=sixel and 22=color, however:
+# tack:
+# bell does not work
+# status-line does not work because foot does not set the window title
+# sends escape when meta key is used, whether or not smm/rmm enabled
+# vttest:
+# wrap-test fails
+# no application-mode for numeric keypad (unless private mode 1035 is set)
+# no NRCS
+# no VT52
+# no SRM
+# protected areas do not work
+# SU/SD work, SL/SR do not
+# DECRPM responds, but not the corresponding ANSI reports.
+# otherwise few reports, except cursor-position and mouse and some dtterm
+# VT520 cursor-movement works, except for left/right margins
+# supports xterm/DECSCUSR, though default case in vttest does not blink
+# Send: <27> [ 0 <32> q
+# Text: The cursor should be a blinking rectangle
+# partial support for xterm mouse any-event mode and button-event mode:
+# + does not report focus-in/focus-out
+# + does not report buttons 6/7
+# alternate-screen works
+foot|foot terminal emulator,
+ oc=\E]104\E\\, use=xterm+256color2, use=foot+base,
+
+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,
+ 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>,
+ 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=,
+ smso=\E[7m, smul=\E[4m, E3=\E[3J, use=att610+cvis,
+ use=ansi+csr, use=ansi+cup, use=ansi+enq, use=ansi+local,
+ use=ansi+idc, use=ansi+idl, use=ansi+rca2, use=ansi+rep,
+ 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,
+
######## WEB CLIENTS
#### DomTerm
vpa=\E[%p1%{1}%+%dd, use=ansi+rep,
aaa+rv|ann arbor ambassador in reverse video,
- blink=\E[5;7m, bold=\E[1;7m, enacs=\E(B\E)0,
- invis=\E[7;8m, is1=\E[7m\E7\E[H\E9\E8, rev=\E[m,
- rmacs=^O, rmso=\E[7m, rmul=\E[7m,
+ blink=\E[5;7m, bold=\E[1;7m, invis=\E[7;8m,
+ is1=\E[7m\E7\E[H\E9\E8, rev=\E[m, rmso=\E[7m, rmul=\E[7m,
rs1=\E[H\E[7m\E[J$<156>,
sgr=\E[%?%p2%t4;%;%?%p4%t5;%;%?%p6%t1;%;%?%p1%p2%|%p3%!%|%t7
- ;%;%?%p7%t8;%;m%?%p9%t\016%e\017%;,
- sgr0=\E[7m\017, smacs=^N, smso=\E[m, smul=\E[4;7m,
+ ;%;%?%p7%t8;%;m\016,
+ sgr0=\E[7m\016, smso=\E[m, smul=\E[4;7m,
# Ambassador with the DEC option, for partial vt100 compatibility.
aaa+dec|ann arbor ambassador in dec vt100 mode,
acsc=aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}},
#======================================================#
# normal mode, 8 bits, 80 columns terminal.
-# RES reset : ^[e
-# RIS reset initial state: ^[c
-# BLE bell enable ^[h
-# BLD bell disable ^[g
-# CAMS char. attr. mode set ^[[D
-# CAMR char. attr. mode reset ^[[G
-# CLR clear ^[`
-# KBU keyboard unlock (set) ^[[W
-# KBL keyboard lock (reset) ^[[X
-# CM character mode (async.) ^[k
-# NEP non echoplex mode (by host) ^[l
-# EP echoplex mode (by host) ^[m
-# IM insert mode set ^[[I
-# IM insert mode reset ^[[J
-# RMS roll mode set ^[r
-# RMR roll mode reset ^[q
-# SM78 set mode vip7800 ^[[1q
-# SD scroll up (72 lines) ^[[0s
-# SD scroll down (72 lines) ^[[1s
-# RBM block mode reset ^[[E
-# SLS status line set ^[w
-# SLR status line reset ^[v
-# SLL status line lock ^[O
-# LGS Line-graphic mode set ^[G
-# LGR Line-graphic mode reset ^[F
-# TBC tab clear (at cursor pos.) ^[[g
-# TBI tab initialize ^[[N
-# TBS tab set (at cursor pos.) ^[p
-# PDS print data space ^[[0p
-# PHD print host data ^[[3p
-# PDT print data terminator ^[[<p
-# PRES print adapter reset ^[[2p
-# SSPR multi-part. reset ^[[<>u
-# SSP0 partition 0 set ^[[00u
-# SSP1 partition n format 1 ^[[PnPnSTRINGu
-# SSP2 partition n format 2 ^[[PnPnSTRINGu
-# SSP3 partition n format 3 ^[[PnPnu
+# BLD bell disable ^[g
+# BLE bell enable ^[h
+# CAMR char. attr. mode reset ^[[G
+# CAMS char. attr. mode set ^[[D
+# CLR clear ^[`
+# CM character mode (async.) ^[k
+# EP echoplex mode (by host) ^[m
+# IM insert mode set ^[[I
+# IMR insert mode reset ^[[J
+# KBL keyboard lock (reset) ^[[X
+# KBU keyboard unlock (set) ^[[W
+# LGR Line-graphic mode reset ^[F
+# LGS Line-graphic mode set ^[G
+# NEP non echoplex mode (by host) ^[l
+# PDS print data space ^[[0p
+# PDT print data terminator ^[[<p
+# PHD print host data ^[[3p
+# PRES print adapter reset ^[[2p
+# RBM block mode reset ^[[E
+# RES reset : ^[e
+# RIS reset initial state: ^[c
+# RMR roll mode reset ^[q
+# RMS roll mode set ^[r
+# SCD scroll down (72 lines) ^[[1s
+# SCU scroll up (72 lines) ^[[0s
+# SLL status line lock ^[O
+# SLR status line reset ^[v
+# SLS status line set ^[w
+# SM78 set mode vip7800 ^[[1q
+# SSP0 partition 0 set ^[[00u
+# SSP1 partition n format 1 ^[[PnPnSTRINGu
+# SSP2 partition n format 2 ^[[PnPnSTRINGu
+# SSP3 partition n format 3 ^[[PnPnu
+# SSPR multi-part. reset ^[[<>u
+# TBC tab clear (at cursor pos.) ^[[g
+# TBI tab initialize ^[[N
+# TBS tab set (at cursor pos.) ^[p
+#
# ATR attribute (visual)
-# blink : ^[sB
-# dim : ^[sL
-# hide (blank) : ^[sH
-# restore : ^[sR
-# inverse video : ^[sI
-# prot. : ^[sP
-# underline : ^[s_
-# reset : ^{
+# blink : ^[sB
+# dim : ^[sL
+# hide (blank) : ^[sH
+# inverse video : ^[sI
+# protected : ^[sP
+# reset : ^[sR
+# underline : ^[s_
#
# This covers the vip7800 and BQ3155-vip7800
vip|Bull Questar 3155-7800,
# + correct rmacs/smacs in aaa+dec, aaa+rv -TD
# + add hpterm-color2 and hp98550-color (Martin Trusler)
#
+# 2021-07-17
+# + correct typo in "vip" comments (report by Nick Black), reviewed this
+# against Glink manual -TD
+# + fill in some missing pieces for pccon, to make it comparable to the
+# vt220 entry -TD
+#
+# 2021-07-24
+# + trim "flash" from pccon+base -TD
+# + revert change for aaa+rv -TD
+# + add workaround for Windows Terminal's problems with CR/LF mapping to
+# ms-terminal (patch by Juergen Pfeifer).
+# + review/update current Windows Terminal vs ms-terminal -TD
+#
+# 2021-07-31
+# + add extensions in xterm+tmux and ecma+strikeout to ms-terminal,
+# but cancel the non-working Cr and Ms capabilities -TD
+# + add foot and foot-direct -TD
+#
+# 2021-08-15
+# + fix missing "%d" for setaf/setab code 8-15 in xterm+direct16 (report
+# by Florian Weimer) -TD
+#
+# 2021-08-16
+# + corrected tsl capability for terminator -TD
+#
+# 2021-09-04
+# + modify linux3.0 entry to reflect default mapping of shift-tab by
+# kbd 1.14 (report by Jan Engelhardt) -TD
+#
######## SHANTIH! SHANTIH! SHANTIH!