# /etc/termcap — the Linux console, for the shells on a VT: tty1's (fbcon) # and each Screen's (hwjs-consoled `display`). bash reads terminals through # its bundled GNU termcap (there is no ncurses on wasm32), which takes the # entry from $TERMCAP when that names $TERM and from this file when it is empty. # # Why it exists: pid 1's environment carries the Console's xterm description # inline (TERM=xterm-256color beside TERMCAP=..., hardwarejs # frame/machine/termcap.ts), and GNU termcap uses an inline TERMCAP for # whatever name equals $TERM. A VT shell that changed only TERM to linux kept # xterm's keys, so a Screen's End — \E[4~, as a Linux console sends it # (hardwarejs frame/machine/console-keys.ts) — printed a ~ (owner, # 2026-10-25). The keys below are exactly what console-keys.ts sends. linux|linux console:\ :am:bw:eo:mi:ms:xn:xo:\ :it#8:Co#8:pa#64:\ :AL=\E[%dL:DC=\E[%dP:DL=\E[%dM:IC=\E[%d@:\ :al=\E[L:bl=^G:cd=\E[J:ce=\E[K:cl=\E[H\E[J:cm=\E[%i%d;%dH:\ :cr=\r:cs=\E[%i%d;%dr:ct=\E[3g:dc=\E[P:dl=\E[M:do=\n:\ :ec=\E[%dX:ei=\E[4l:ho=\E[H:ic=\E[@:im=\E[4h:le=^H:\ :mb=\E[5m:md=\E[1m:me=\E[0;10m:mh=\E[2m:mr=\E[7m:nd=\E[C:\ :nw=\r\n:rc=\E8:sc=\E7:se=\E[27m:sf=\n:so=\E[7m:sr=\EM:\ :st=\EH:ta=^I:ue=\E[24m:up=\E[A:us=\E[4m:\ :ve=\E[?25h\E[?0c:vi=\E[?25l\E[?1c:vs=\E[?25h\E[?8c:\ :AB=\E[4%dm:AF=\E[3%dm:op=\E[39;49m:\ :kb=\177:ku=\E[A:kd=\E[B:kr=\E[C:kl=\E[D:kB=\E[Z:\ :kh=\E[1~:kI=\E[2~:kD=\E[3~:@7=\E[4~:kP=\E[5~:kN=\E[6~:\ :k1=\E[[A:k2=\E[[B:k3=\E[[C:k4=\E[[D:k5=\E[[E:\ :k6=\E[17~:k7=\E[18~:k8=\E[19~:k9=\E[20~:k;=\E[21~:\ :F1=\E[23~:F2=\E[24~: