aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicholas Marriott <nicholas.marriott@gmail.com>2012-05-17 23:30:20 +0000
committerNicholas Marriott <nicholas.marriott@gmail.com>2012-05-17 23:30:20 +0000
commitcae8d02b2e10355d6dcfe14e1ddb2dfc1d955b17 (patch)
tree78dd6972ee7c136276b5931bc6c980969fc0be1f
parent1340c012b05695fea9e2ee9d07b477c7d8150129 (diff)
downloadrtmux-cae8d02b2e10355d6dcfe14e1ddb2dfc1d955b17.tar.gz
rtmux-cae8d02b2e10355d6dcfe14e1ddb2dfc1d955b17.tar.bz2
rtmux-cae8d02b2e10355d6dcfe14e1ddb2dfc1d955b17.zip
Add FAQ entry on terminal scrollback, from Andrew Pimlott.
-rw-r--r--FAQ21
1 files changed, 21 insertions, 0 deletions
diff --git a/FAQ b/FAQ
index a124f0ed..4ffd2d52 100644
--- a/FAQ
+++ b/FAQ
@@ -409,5 +409,26 @@ If your urxvt cannot display italics at all, make sure you have an italics
capable font enabled, for example, add to ~/.Xdefaults:
urxvt.italicFont: xft:Bitstream Vera Sans Mono:italic:autohint=true
+
+* How can I make tmux use my terminal's scrollback buffer?
+
+Normally, tmux enables the terminal's "alternate screen". Most terminals (such
+as xterm) do not save scrollback for the alternate screen. You might prefer
+tmux to use the normal screen, so it uses your terminal's scrollback
+buffer. This way, you can access the scrollback buffer as usual, for example
+using the mouse wheel - although there is no guarantee output inside tmux will
+always (or ever) be added to the scrollback.
+
+You can make tmux use the normal screen by telling it that your terminal does
+not have an alternate screen. Put the following in ~/.tmux.conf:
+
+ set -g terminal-overrides 'xterm*:smcup@:rmcup@'
+
+Adjust if your $TERM does not start with xterm.
+
+tmux will still emulate the alternate screen for applications run under tmux,
+so you don't really lose anything with this setting. The only disadvantage is
+that when you exit tmux, it will not restore whatever was there before you
+started.
$Id$