From fa9d1446df0fc2629c6ebad4eef85d54ffecac4c Mon Sep 17 00:00:00 2001 From: John Marino Date: Thu, 9 Aug 2012 01:00:33 +0200 Subject: [PATCH] xterm: Remove ability to restore console after man, less, etc. Having a man page disappear before the read the end (if it indeed appears at all) is pretty annoying. Equally annoying is using the "more" command on a file with few lines only to see nothing. The default behavior of xterm console had few fans. This removes the smcup and rmcup codes from xterm-basic, the basis for the xterm console definitions. Now man pages are left on the screen after viewing, and the pagers work as expected. --- contrib/ncurses/README.DRAGONFLY | 5 +++++ contrib/ncurses/misc/terminfo.src | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/contrib/ncurses/README.DRAGONFLY b/contrib/ncurses/README.DRAGONFLY index 1842a78e18..108f77bdb3 100644 --- a/contrib/ncurses/README.DRAGONFLY +++ b/contrib/ncurses/README.DRAGONFLY @@ -23,3 +23,8 @@ The .h files copied into base where created using configure opts: The following files have been modified: ncurses/tinfo/comp_scan.c + misc/terminfo.src [1] + +[1] smcup and rmcup were removed from xterm-basic to disable the + restoration of the console after less, more, man, and other + utilities are executed. It was rendering them useless. diff --git a/contrib/ncurses/misc/terminfo.src b/contrib/ncurses/misc/terminfo.src index 04163e01d1..f2065db40f 100644 --- a/contrib/ncurses/misc/terminfo.src +++ b/contrib/ncurses/misc/terminfo.src @@ -3460,14 +3460,14 @@ xterm-basic|modern xterm terminal emulator - common, ind=^J, invis=\E[8m, is2=\E[!p\E[?3;4l\E[4l\E>, kbs=^H, kmous=\E[M, mc0=\E[i, mc4=\E[4i, mc5=\E[5i, meml=\El, memu=\Em, op=\E[39;49m, rc=\E8, rev=\E[7m, ri=\EM, - rmacs=\E(B, rmam=\E[?7l, rmcup=\E[?1049l, rmir=\E[4l, + rmacs=\E(B, rmam=\E[?7l, rmir=\E[4l, rmkx=\E[?1l\E>, rmm=\E[?1034l, rmso=\E[27m, rmul=\E[24m, rs1=\Ec, rs2=\E[!p\E[?3;4l\E[4l\E>, sc=\E7, setab=\E[4%p1%dm, setaf=\E[3%p1%dm, setb=\E[4%?%p1%{1}%=%t4%e%p1%{3}%=%t6%e%p1%{4}%=%t1%e%p1%{6}%=%t3%e%p1%d%;m, setf=\E[3%?%p1%{1}%=%t4%e%p1%{3}%=%t6%e%p1%{4}%=%t1%e%p1%{6}%=%t3%e%p1%d%;m, sgr=%?%p9%t\E(0%e\E(B%;\E[0%?%p6%t;1%;%?%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, smcup=\E[?1049h, + sgr0=\E(B\E[m, smacs=\E(0, smam=\E[?7h, smir=\E[4h, smkx=\E[?1h\E=, smm=\E[?1034h, smso=\E[7m, smul=\E[4m, tbc=\E[3g, vpa=\E[%i%p1%dd, use=vt100+enq, -- 2.41.0