summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authordougb <dougb@FreeBSD.org>2009-12-14 07:18:31 +0000
committerdougb <dougb@FreeBSD.org>2009-12-14 07:18:31 +0000
commitc11b08a13feb3063076c0f358bdaf4b56bbad5ed (patch)
tree46c11536f2cd916e99ad859247e4394a4cb05300 /etc
parent4c54179e42c0eb7748290950408bdf5650c6b13e (diff)
downloadFreeBSD-src-c11b08a13feb3063076c0f358bdaf4b56bbad5ed.zip
FreeBSD-src-c11b08a13feb3063076c0f358bdaf4b56bbad5ed.tar.gz
Revert the xterm terminal behavior to NOT clear the screen after
exiting a pager, vi, etc. Add some example xterm*-clear entries to the termcap files to make it easier for people to enable that behavior. Document the examples in the man page to make them easier to find.
Diffstat (limited to 'etc')
-rw-r--r--etc/termcap.small7
1 files changed, 6 insertions, 1 deletions
diff --git a/etc/termcap.small b/etc/termcap.small
index 9e7165e..d511471 100644
--- a/etc/termcap.small
+++ b/etc/termcap.small
@@ -312,7 +312,7 @@ xterm-basic|modern xterm common:\
:kD=\E[3~:kb=^H:ke=\E[?1l\E>:ks=\E[?1h\E=:le=^H:md=\E[1m:\
:me=\E[m:ml=\El:mr=\E[7m:mu=\Em:nd=\E[C:op=\E[39;49m:\
:rc=\E8:rs=\E[!p\E[?3;4l\E[4l\E>:sc=\E7:se=\E[27m:sf=^J:\
- :so=\E[7m:sr=\EM:st=\EH:te=\E[?1049l:ti=\E[?1049h:\
+ :so=\E[7m:sr=\EM:st=\EH:\
:ue=\E[24m:up=\E[A:us=\E[4m:ve=\E[?12l\E[?25h:vi=\E[?25l:vs=\E[?12;25h:
#
# This is the only entry which you should have to customize, since "xterm"
@@ -320,3 +320,8 @@ xterm-basic|modern xterm common:\
# color_xterm and rxvt.
xterm|X11 terminal emulator:\
:tc=xterm-new:
+#
+# Add the capability to "clear the screen" after exiting vi, more/less, etc.
+xterm-clear:\
+ :te=\E[?1049l:ti=\E[?1049h:\
+ :tc=xterm-new:
OpenPOWER on IntegriCloud