104b94745Smrg# $XTermId: termcap,v 1.88 2017/12/25 21:24:41 tom Exp $ 2d522f475Smrg# 3d522f475Smrg# These are termcap entries that correspond to xterm's terminfo file. 4d522f475Smrg# The file is formatted using ncurses' "tic -CNx", but is not mechanically 5d522f475Smrg# derived from the terminfo. 6d522f475Smrg# 7d522f475Smrg#------------------------------------------------------------------------------ 8f2e35a3aSmrg# Copyright 1996-2016,2017 by Thomas E. Dickey 9d522f475Smrg# 10d522f475Smrg# All Rights Reserved 11d522f475Smrg# 12d522f475Smrg# Permission is hereby granted, free of charge, to any person obtaining a 13d522f475Smrg# copy of this software and associated documentation files (the 14d522f475Smrg# "Software"), to deal in the Software without restriction, including 15d522f475Smrg# without limitation the rights to use, copy, modify, merge, publish, 16d522f475Smrg# distribute, sublicense, and/or sell copies of the Software, and to 17d522f475Smrg# permit persons to whom the Software is furnished to do so, subject to 18d522f475Smrg# the following conditions: 19d522f475Smrg# 20d522f475Smrg# The above copyright notice and this permission notice shall be included 21d522f475Smrg# in all copies or substantial portions of the Software. 22d522f475Smrg# 23d522f475Smrg# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS 24d522f475Smrg# OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 25d522f475Smrg# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. 26d522f475Smrg# IN NO EVENT SHALL THE ABOVE LISTED COPYRIGHT HOLDER(S) BE LIABLE FOR ANY 27d522f475Smrg# CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, 28d522f475Smrg# TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE 29d522f475Smrg# SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 30d522f475Smrg# 31d522f475Smrg# Except as contained in this notice, the name(s) of the above copyright 32d522f475Smrg# holders shall not be used in advertising or otherwise to promote the 33d522f475Smrg# sale, use or other dealings in this Software without prior written 34d522f475Smrg# authorization. 35d522f475Smrg#------------------------------------------------------------------------------ 36d522f475Smrg# 37d522f475Smrg# Note: 38d522f475Smrg# termcap format is limited to 1023 characters. This set of descriptions 39d522f475Smrg# is a subset of the terminfo, since not all features can be fit into 40d522f475Smrg# that limit. The 'xterm' description supports color. The monochrome 41d522f475Smrg# 'xterm-mono' drops color in favor of additional function keys. If you 42d522f475Smrg# need both, use terminfo. 43d522f475Smrg# 44d522f475Smrg# The 1023-character limit applies to each entry after resolving the 45d522f475Smrg# "tc=" strings. Some implementations may discount all or part of the 46d522f475Smrg# formatting characters in the entry (i.e., the backslash newline tab 47d522f475Smrg# colon). GNU termcap does not have this limit. 48d522f475Smrg# 49d522f475Smrg# I checked the limits using ncurses "captoinfo -CrTUvx", which prints 50d522f475Smrg# the resolved length of each entry in a comment at the end - T.Dickey 51d522f475Smrg# 52d522f475Smrgxf|xterm-new|modern xterm:\ 532e4f8982Smrg :XT:*6=\EOF:@7=\EOF:F1=\E[23~:F2=\E[24~:K2=\EOE:Km=\E[M:\ 54956cc18dSsnj :k1=\EOP:k2=\EOQ:k3=\EOR:k4=\EOS:k5=\E[15~:k6=\E[17~:\ 550bd37d32Smrg :k7=\E[18~:k8=\E[19~:k9=\E[20~:k;=\E[21~:kB=\E[Z:kH=\EOF:\ 560bd37d32Smrg :kI=\E[2~:kN=\E[6~:kP=\E[5~:kd=\EOB:kh=\EOH:kl=\EOD:\ 570bd37d32Smrg :kr=\EOC:ku=\EOA:tc=xterm-basic: 58d522f475Smrg# 59d522f475Smrg# This chunk is used for building the VT220/Sun/PC keyboard variants. 60d522f475Smrgxb|xterm-basic|modern xterm common:\ 61d522f475Smrg :am:bs:km:mi:ms:ut:xn:AX:\ 62d522f475Smrg :Co#8:co#80:kn#12:li#24:pa#64:\ 63d522f475Smrg :AB=\E[4%dm:AF=\E[3%dm:AL=\E[%dL:DC=\E[%dP:DL=\E[%dM:\ 64d522f475Smrg :DO=\E[%dB:LE=\E[%dD:RI=\E[%dC:UP=\E[%dA:ae=\E(B:al=\E[L:\ 65d522f475Smrg :as=\E(0:bl=^G:cd=\E[J:ce=\E[K:cl=\E[H\E[2J:\ 66d522f475Smrg :cm=\E[%i%d;%dH:cs=\E[%i%d;%dr:ct=\E[3g:dc=\E[P:dl=\E[M:\ 672e4f8982Smrg :ei=\E[4l:ho=\E[H:im=\E[4h:is=\E[!p\E[?3;4l\E[4l\E>\E]104^G:\ 680bd37d32Smrg :kD=\E[3~:ke=\E[?1l\E>:ks=\E[?1h\E=:le=^H:md=\E[1m:\ 69d522f475Smrg :me=\E[m:ml=\El:mr=\E[7m:mu=\Em:nd=\E[C:op=\E[39;49m:\ 702e4f8982Smrg :rc=\E8:rs=\E[!p\E[?3;4l\E[4l\E>\E]104^G:sc=\E7:se=\E[27m:sf=^J:\ 71d522f475Smrg :so=\E[7m:sr=\EM:st=\EH:te=\E[?1049l:ti=\E[?1049h:\ 720bd37d32Smrg :ue=\E[24m:up=\E[A:us=\E[4m:ve=\E[?12l\E[?25h:vi=\E[?25l:\ 730bd37d32Smrg :vs=\E[?12;25h:tc=xterm+kbs: 74d522f475Smrg 75d522f475Smrg# The xterm-new description has all of the features, but is not completely 76d522f475Smrg# compatible with vt220. If you are using a Sun or PC keyboard, set the 77d522f475Smrg# sunKeyboard resource to true: 78d522f475Smrg# + maps the editing keypad 79d522f475Smrg# + interprets control-function-key as a second array of keys, so a 80d522f475Smrg# 12-fkey keyboard can support vt220's 20-fkeys. 81d522f475Smrg# + maps numeric keypad "+" to ",". 82d522f475Smrg# + uses DEC-style control sequences for the application keypad. 83d522f475Smrg# 84d522f475Smrgvt|xterm-vt220|xterm emulating vt220:\ 852e4f8982Smrg :XT:*6=\E[4~:@7=\E[4~:K2=\EOu:Km=\E[M:kB=\E[Z:kH=\E[4~:\ 860bd37d32Smrg :kh=\E[1~:tc=xterm-basic: 87d522f475Smrg 88d522f475Smrgv1|xterm-24|xterms|vs100|24x80 xterm:\ 8920d2c4d2Smrg :li#24:tc=xterm-old: 90d522f475Smrgv2|xterm-65|65x80 xterm:\ 9120d2c4d2Smrg :li#65:tc=xterm-old: 92d522f475Smrgvb|xterm-bold|xterm with bold for underline:\ 9320d2c4d2Smrg :so=\E[7m:us=\E[1m:tc=xterm-old: 94d522f475SmrgvB|xterm-boldso|xterm with bold for standout:\ 9520d2c4d2Smrg :se=\E[m:so=\E[1m:tc=xterm-old: 96d522f475Smrgvm|xterm-mono|monochrome xterm:\ 97d522f475Smrg :ut@:\ 98d522f475Smrg :Co@:NC@:kn#20:pa@:\ 9920d2c4d2Smrg :AB@:AF@:Sb@:Sf@:op@:st@:tc=xterm-old: 100d522f475Smrg# 101d522f475Smrg# Alternate terminal description that "works" for interactive shells such as 102d522f475Smrg# tcsh and bash. 103d522f475Smrgxn|xterm-noapp|xterm with cursor keys in normal mode:\ 104d522f475Smrg :kd=\E[B:ke=\E>:kl=\E[D:kr=\E[C:ks=\E=:ku=\E[A:te@:ti@:\ 105d522f475Smrg :tc=xterm: 106d522f475Smrg# 107d522f475Smrg# This should work for the commonly used "color xterm" variations (XFree86 108d522f475Smrg# xterm, color_xterm, nxterm, rxvt). Note that it does not set 'bce', so for 109d522f475Smrg# XFree86 and rxvt, some applications that use colors will be less efficient, 110d522f475Smrg# and in a few special cases (with "smart" optimization) the wrong color will 111d522f475Smrg# be painted in spots. 112d522f475Smrgvc|xterm-color|generic "ANSI" color xterm:\ 113d522f475Smrg :Co#8:NC@:pa#64:\ 114d522f475Smrg :AB=\E[4%dm:AF=\E[3%dm:ac=:op=\E[m:tc=xterm-r6: 115d522f475Smrg# 116d522f475Smrg# These aliases are for compatibility with the terminfo; termcap cannot provide 117d522f475Smrg# the extra features such as color initialization, but termcap applications 118d522f475Smrg# still want the names. 119d522f475Smrgx1|xterm-16color|xterm alias:\ 120d522f475Smrg :tc=xterm-new: 121d522f475Smrg 122d522f475Smrgx2|xterm-88color|xterm alias:\ 123d522f475Smrg :Co#88:pa#7744:tc=xterm-256color: 124d522f475Smrg 125d522f475Smrgx3|xterm-256color|xterm alias:\ 126f2e35a3aSmrg :Co#256:pa#65536:\ 127d522f475Smrg :AB=\E[48;5;%dm:AF=\E[38;5;%dm:tc=xterm-new: 128d522f475Smrg 129f2e35a3aSmrg# Termcap cannot do direct-colors, but users may expect this name. 130f2e35a3aSmrgx4|xterm-direct|xterm alias:\ 131f2e35a3aSmrg :tc=xterm-256color: 132f2e35a3aSmrg 133d522f475Smrgxi|xterm-nrc|xterm alias:\ 134d522f475Smrg :tc=xterm: 135d522f475Smrgxr|xterm-rep|xterm alias:\ 136d522f475Smrg :tc=xterm: 137d522f475Smrgxx|xterm-xmc|xterm alias:\ 138d522f475Smrg :sg#1:tc=xterm: 139d522f475Smrg# 140d522f475Smrg# An 8-bit description is doable with termcap, but there are probably no 141d522f475Smrg# termcap (or BSD curses) applications that are able to use it. 142d522f475Smrgx8|xterm-8bit|xterm terminal emulator 8-bit controls (X Window System):\ 1432e4f8982Smrg :am:km:mi:ms:xn:XT:\ 144d522f475Smrg :co#80:it#8:li#24:\ 145d522f475Smrg :AL=\233%dL:DC=\233%dP:DL=\233%dM:DO=\233%dB:IC=\233%d@:\ 146956cc18dSsnj :K2=\217y:Km=\233M:LE=\233%dD:RI=\233%dC:UP=\233%dA:\ 147956cc18dSsnj :ae=\E(B:al=\233L:as=\E(0:bl=^G:bt=\233Z:cd=\233J:ce=\233K:\ 148d522f475Smrg :cl=\233H\2332J:cm=\233%i%d;%dH:cr=^M:cs=\233%i%d;%dr:\ 149d522f475Smrg :ct=\2333g:dc=\233P:dl=\233M:do=^J:ei=\2334l:ho=\233H:\ 150d522f475Smrg :im=\2334h:\ 151d522f475Smrg :is=\E[62"p\E G\233m\233?7h\E>\E7\233?1;3;4;6l\2334l\233r\E8:\ 152d522f475Smrg :k1=\23311~:k2=\23312~:k3=\23313~:k4=\23314~:k5=\23315~:\ 153d522f475Smrg :k6=\23317~:k7=\23318~:k8=\23319~:k9=\23320~:kD=\2333~:\ 1540bd37d32Smrg :kI=\2332~:kN=\2336~:kP=\2335~:kd=\217B:ke=\233?1l\E>:\ 1550bd37d32Smrg :kh=\2331~:kl=\217D:kr=\217C:ks=\233?1h\E=:ku=\217A:le=^H:\ 1560bd37d32Smrg :mb=\2335m:md=\2331m:me=\233m:mr=\2337m:nd=\233C:rc=\E8:\ 1570bd37d32Smrg :sc=\E7:se=\23327m:sf=^J:so=\2337m:sr=\215:st=\210:ta=^I:\ 1580bd37d32Smrg :te=\233?1049l:ti=\233?1049h:ue=\23324m:up=\233A:\ 1590bd37d32Smrg :us=\2334m:vb=\233?5h\233?5l:ve=\233?25l\233?25h:\ 1600bd37d32Smrg :vi=\233?25l:vs=\233?12;25h:tc=xterm+kbs: 161d522f475Smrg# 162d522f475Smrghp|xterm-hp|xterm with hpterm function keys:\ 163d522f475Smrg :@7=\EF:k1=\Ep:k2=\Eq:k3=\Er:k4=\Es:k5=\Et:k6=\Eu:k7=\Ev:\ 164d522f475Smrg :k8=\Ew:kC=\EJ:kD=\EP:kI=\EQ:kN=\ES:kP=\ET:kd=\EB:kh=\Eh:\ 165d522f475Smrg :kl=\ED:kr=\EC:ku=\EA:tc=xterm-basic: 166d522f475Smrg# 167d522f475SmrgxS|xterm-sco|xterm with SCO function keys:\ 168d522f475Smrg :@7=\E[F:F1=\E[W:F2=\E[X:F3=\E[Y:F5=\E[a:F6=\E[b:F7=\E[c:\ 169d522f475Smrg :F8=\E[d:F9=\E[e:FA=\E[f:FB=\E[g:FC=\E[h:FD=\E[i:FE=\E[j:\ 170d522f475Smrg :FF=\E[k:ac=:k1=\E[M:k2=\E[N:k3=\E[O:k4=\E[P:k5=\E[Q:\ 171d522f475Smrg :k6=\E[R:k7=\E[S:k8=\E[T:k9=\E[U:k;=\E[V:kD=\177:kI=\E[L:\ 172d522f475Smrg :kN=\E[G:kP=\E[I:kd=\E[B:kh=\E[H:kl=\E[D:kr=\E[C:ku=\E[A:\ 173d522f475Smrg :tc=xterm-basic: 174d522f475Smrg# 175d522f475Smrgv5|xterm-vt52|xterm emulating vt52:\ 176d522f475Smrg :bs:\ 177d522f475Smrg :co#80:it#8:li#24:\ 178d522f475Smrg :ae=\EG:as=\EF:bl=^G:cd=\EJ:ce=\EK:cl=\EH\EJ:cm=\EY%+ %+ :\ 1790bd37d32Smrg :cr=^M:do=\EB:ho=\EH:kd=\EB:kl=\ED:kr=\EC:ku=\EA:le=\ED:\ 1800bd37d32Smrg :nd=\EC:nw=^M^J:sf=^J:sr=\EI:ta=^I:up=\EA:tc=xterm+kbs: 181d522f475Smrg# 182d522f475Smrgxs|xterm-sun|xterm with Sun functionkeys:\ 183d522f475Smrg :%1=\E[196z:&8=\E[195z:@0=\E[200z:@5=\E[197z:@7=\E[220z:\ 184956cc18dSsnj :F1=\E[192z:F2=\E[193z:K2=\E[218z:Km=\E[M:k1=\E[224z:\ 185956cc18dSsnj :k2=\E[225z:k3=\E[226z:k4=\E[227z:k5=\E[228z:k6=\E[229z:\ 186956cc18dSsnj :k7=\E[230z:k8=\E[231z:k9=\E[232z:k;=\E[233z:kD=\E[3z:\ 187956cc18dSsnj :kI=\E[2z:kN=\E[222z:kP=\E[216z:kh=\E[214z:\ 188956cc18dSsnj :tc=xterm-basic: 189d522f475Smrg# 190d522f475Smrg# vi may work better with this entry, because vi doesn't use insert mode much. 191d522f475Smrg# |xterm-ic|xterm-vi|xterm with insert character instead of insert mode:\ 192d522f475Smrgvi|xterm-ic|xterm-vi|xterm with insert char:\ 193d522f475Smrg :mi@:\ 194d522f475Smrg :IC=\E[%d@:ei@:ic=\E[@:im@:tc=xterm: 195d522f475Smrg# 196d522f475Smrg# Compatible with the X11R6.3 xterm 197d522f475Smrgr6|xterm-r6|xterm-old|X11R6 xterm:\ 198d522f475Smrg :am:bs:km:mi:ms:pt:xn:\ 199d522f475Smrg :co#80:kn#20:li#24:\ 200d522f475Smrg :*6=\E[4~:@0=\E[1~:@7=\E[4~:AL=\E[%dL:DC=\E[%dP:DL=\E[%dM:\ 201d522f475Smrg :DO=\E[%dB:F1=\E[23~:F2=\E[24~:F3=\E[25~:F4=\E[26~:\ 202d522f475Smrg :F5=\E[28~:F6=\E[29~:F7=\E[31~:F8=\E[32~:F9=\E[33~:\ 203d522f475Smrg :FA=\E[34~:LE=\E[%dD:RI=\E[%dC:UP=\E[%dA:ae=^O:al=\E[L:\ 204d522f475Smrg :as=^N:bl=^G:cd=\E[J:ce=\E[K:cl=\E[H\E[2J:cm=\E[%i%d;%dH:\ 205d522f475Smrg :cs=\E[%i%d;%dr:ct=\E[3g:dc=\E[P:dl=\E[M:eA=\E)0:ei=\E[4l:\ 206d522f475Smrg :ho=\E[H:im=\E[4h:\ 207d522f475Smrg :is=\E[m\E[?7h\E[4l\E>\E7\E[r\E[?1;3;4;6l\E8:\ 208d522f475Smrg :k1=\E[11~:k2=\E[12~:k3=\E[13~:k4=\E[14~:k5=\E[15~:\ 209d522f475Smrg :k6=\E[17~:k7=\E[18~:k8=\E[19~:k9=\E[20~:k;=\E[21~:\ 2100bd37d32Smrg :kD=\E[3~:kI=\E[2~:kN=\E[6~:kP=\E[5~:kd=\EOB:ke=\E[?1l\E>:\ 2110bd37d32Smrg :kh=\E[1~:kl=\EOD:kr=\EOC:ks=\E[?1h\E=:ku=\EOA:md=\E[1m:\ 2120bd37d32Smrg :me=\E[m:ml=\El:mr=\E[7m:mu=\Em:nd=\E[C:rc=\E8:\ 2130bd37d32Smrg :rs=\E[m\E[?7h\E[4l\E>\E7\E[r\E[?1;3;4;6l\E8:sc=\E7:\ 2140bd37d32Smrg :se=\E[m:sf=^J:so=\E[7m:sr=\EM:te=\E[2J\E[?47l\E8:\ 2150bd37d32Smrg :ti=\E7\E[?47h:ue=\E[m:up=\E[A:us=\E[4m:tc=xterm+kbs: 216d522f475Smrg# 217d522f475Smrg# Compatible with the R5 xterm 218d522f475Smrgr5|xterm-r5|X11R5 xterm X11R5:\ 219d522f475Smrg :am:bs:km:mi:ms:pt:xn:\ 220d522f475Smrg :co#80:kn#4:li#24:\ 221d522f475Smrg :@7=\E[4~:AL=\E[%dL:DC=\E[%dP:DL=\E[%dM:DO=\E[%dB:\ 222d522f475Smrg :IC=\E[%d@:UP=\E[%dA:al=\E[L:cd=\E[J:ce=\E[K:cl=\E[H\E[2J:\ 223d522f475Smrg :cm=\E[%i%d;%dH:cs=\E[%i%d;%dr:ct=\E[3g:dc=\E[P:dl=\E[M:\ 224d522f475Smrg :ei=\E[4l:ho=\E[H:im=\E[4h:\ 225d522f475Smrg :is=\E[r\E[m\E[2J\E[H\E[?7h\E[?1;3;4;6l\E[4l:\ 2260bd37d32Smrg :k1=\E[11~:k2=\E[12~:k3=\E[13~:k4=\E[14~:kd=\EOB:\ 227d522f475Smrg :ke=\E[?1l\E>:kh=\E[1~:kl=\EOD:kr=\EOC:ks=\E[?1h\E=:\ 228d522f475Smrg :ku=\EOA:md=\E[1m:me=\E[m:mr=\E[7m:nd=\E[C:rc=\E8:\ 229d522f475Smrg :rs=\E>\E[?1;3;4;5;6l\E[4l\E[?7h\E[m\E[r\E[2J\E[H:\ 230d522f475Smrg :sc=\E7:se=\E[m:sf=^J:so=\E[7m:sr=\EM:te=\E[2J\E[?47l\E8:\ 2310bd37d32Smrg :ti=\E7\E[?47h:ue=\E[m:up=\E[A:us=\E[4m:tc=xterm+kbs: 232d522f475Smrg# 233d522f475Smrg# Customization begins here. 234d522f475Smrgx0|xterm-xfree86|xterm terminal emulator (XFree86):\ 235d522f475Smrg :tc=xterm-new: 236d522f475Smrg# 237d522f475Smrg# This is the only entry which you should have to customize, since "xterm" 238d522f475Smrg# is widely used for a variety of incompatible terminal emulations including 239d522f475Smrg# color_xterm and rxvt. 240d522f475Smrgv0|xterm|X11 terminal emulator:\ 241d522f475Smrg :tc=xterm-new: 242d522f475Smrg# :tc=xterm-r6: 2430bd37d32Smrg 2440bd37d32Smrg# This fragment is for people who cannot agree on what the backspace key 2450bd37d32Smrg# should send. 2460bd37d32Smrgxterm+kbs|fragment for backspace key:\ 2470bd37d32Smrg :kb=^H: 248f2e35a3aSmrg# :kb=\177: 249