Skip to content

Commit

Permalink
xterm: Remove ability to restore console after man, less, etc.
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
jrmarino committed Aug 9, 2012
1 parent a56f772 commit fa9d144
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
5 changes: 5 additions & 0 deletions contrib/ncurses/README.DRAGONFLY
Expand Up @@ -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.
4 changes: 2 additions & 2 deletions contrib/ncurses/misc/terminfo.src
Expand Up @@ -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,

Expand Down

0 comments on commit fa9d144

Please sign in to comment.