Hi,
Since Linux 6.19.10, the linux terminal has gained the alternative
screen capability, thanks to Nicolas Pitre in Cc.
Could the terminfo entry for the linux temrinal be updated accordingly,
please?
It is okay to update unconditionnally because older kernels will just
ignore the corresponding escape sequences if they do not support them.
Attached is a patch that illustrates the proposed change.
Thanks,
Seb.
--- linux 2026-03-31 21:34:12.727043237 +0200
+++ linux.new 2026-03-31 21:35:18.636096426 +0200
@@ -1,33 +1,65 @@
# Reconstructed via infocmp from file: /usr/share/terminfo/l/linux
linux|Linux console,
+ smcup=\E[?1049h, rmcup=\E[?1049l,
am, bce, ccc, eo, mir, msgr, xenl, xon,
+ smcup=\E[?1049h, rmcup=\E[?1049l,
colors#8, it#8, ncv#18, pairs#64,
+ smcup=\E[?1049h, rmcup=\E[?1049l,
acsc=++\,\,--..00``aaffgghhiijjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~,
+ smcup=\E[?1049h, rmcup=\E[?1049l,
bel=^G, blink=\E[5m, bold=\E[1m, civis=\E[?25l\E[?1c,
+ smcup=\E[?1049h, rmcup=\E[?1049l,
clear=\E[H\E[J, cnorm=\E[?25h\E[?0c, cr=\r,
+ smcup=\E[?1049h, rmcup=\E[?1049l,
csr=\E[%i%p1%d;%p2%dr, cub=\E[%p1%dD, cub1=^H,
+ smcup=\E[?1049h, rmcup=\E[?1049l,
cud=\E[%p1%dB, cud1=\n, cuf=\E[%p1%dC, cuf1=\E[C,
+ smcup=\E[?1049h, rmcup=\E[?1049l,
cup=\E[%i%p1%d;%p2%dH, cuu=\E[%p1%dA, cuu1=\E[A,
+ smcup=\E[?1049h, rmcup=\E[?1049l,
cvvis=\E[?25h\E[?8c, dch=\E[%p1%dP, dch1=\E[P, dim=\E[2m,
+ smcup=\E[?1049h, rmcup=\E[?1049l,
dl=\E[%p1%dM, dl1=\E[M, ech=\E[%p1%dX, ed=\E[J, el=\E[K,
+ smcup=\E[?1049h, rmcup=\E[?1049l,
el1=\E[1K, enacs=\E)0, flash=\E[?5h$<200/>\E[?5l,
+ smcup=\E[?1049h, rmcup=\E[?1049l,
home=\E[H, hpa=\E[%i%p1%dG, ht=^I, hts=\EH, ich=\E[%p1%d@,
+ smcup=\E[?1049h, rmcup=\E[?1049l,
ich1=\E[@, il=\E[%p1%dL, il1=\E[L, ind=\n,
+ smcup=\E[?1049h, rmcup=\E[?1049l,
initc=\E]P%p1%x%p2%{255}%*%{1000}%/%02x%p3%{255}%*%{1000}%/%02x%p4%{255}%*%{1000}%/%02x,
+ smcup=\E[?1049h, rmcup=\E[?1049l,
kb2=\E[G, kbs=^?, kcbt=\E^I, kcub1=\E[D, kcud1=\E[B,
+ smcup=\E[?1049h, rmcup=\E[?1049l,
kcuf1=\E[C, kcuu1=\E[A, kdch1=\E[3~, kend=\E[4~, kf1=\E[[A,
+ smcup=\E[?1049h, rmcup=\E[?1049l,
kf10=\E[21~, kf11=\E[23~, kf12=\E[24~, kf13=\E[25~,
+ smcup=\E[?1049h, rmcup=\E[?1049l,
kf14=\E[26~, kf15=\E[28~, kf16=\E[29~, kf17=\E[31~,
+ smcup=\E[?1049h, rmcup=\E[?1049l,
kf18=\E[32~, kf19=\E[33~, kf2=\E[[B, kf20=\E[34~,
+ smcup=\E[?1049h, rmcup=\E[?1049l,
kf3=\E[[C, kf4=\E[[D, kf5=\E[[E, kf6=\E[17~, kf7=\E[18~,
+ smcup=\E[?1049h, rmcup=\E[?1049l,
kf8=\E[19~, kf9=\E[20~, khome=\E[1~, kich1=\E[2~,
+ smcup=\E[?1049h, rmcup=\E[?1049l,
kmous=\E[M, knp=\E[6~, kpp=\E[5~, kspd=^Z, nel=\r\n, oc=\E]R,
+ smcup=\E[?1049h, rmcup=\E[?1049l,
op=\E[39;49m, rc=\E8, rev=\E[7m, ri=\EM, rmacs=^O,
+ smcup=\E[?1049h, rmcup=\E[?1049l,
rmam=\E[?7l, rmir=\E[4l, rmpch=\E[10m, rmso=\E[27m,
+ smcup=\E[?1049h, rmcup=\E[?1049l,
rmul=\E[24m, rs1=\Ec\E]R, sc=\E7, setab=\E[4%p1%dm,
+ smcup=\E[?1049h, rmcup=\E[?1049l,
setaf=\E[3%p1%dm,
+ smcup=\E[?1049h, rmcup=\E[?1049l,
sgr=\E[0;10%?%p1%t;7%;%?%p2%t;4%;%?%p3%t;7%;%?%p4%t;5%;%?%p5%t;2%;%?%p6%t;1%;m%?%p9%t\016%e\017%;,
+ smcup=\E[?1049h, rmcup=\E[?1049l,
sgr0=\E[m\017, smacs=^N, smam=\E[?7h, smir=\E[4h,
+ smcup=\E[?1049h, rmcup=\E[?1049l,
smpch=\E[11m, smso=\E[7m, smul=\E[4m, tbc=\E[3g,
+ smcup=\E[?1049h, rmcup=\E[?1049l,
u6=\E[%i%d;%dR, u7=\E[6n, u8=\E[?6c, u9=\E[c,
+ smcup=\E[?1049h, rmcup=\E[?1049l,
vpa=\E[%i%p1%dd,
+ smcup=\E[?1049h, rmcup=\E[?1049l,