Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I have the following options in my .tmuxrc so the PuTTY scrollback still works.

setw -g alternate-screen off
set -g terminal-overrides "xterm*:kLFT5=\eOD:kRIT5=\eOC:kUP5=\eOA:kDN5=\eOB:smkx@:rmkx@:smcup@:rmcup@"

This works fine and when switching tmux to copy mode, I can scroll back into tmux' scrollback buffer. When generating long output, the old output which is not visible anymore can be accessed by scrolling back using tmux' copy mode or the scrollbar in PuTTY.

However, when pressing ^L to clear the screen, the currently displayed text is completely erased, both from PuTTY's and from tmux' scrollback. This is rather annoying and I'd like to know why it's happening and what I can do to prevent this issue.

share|improve this question
add comment

1 Answer 1

up vote 0 down vote accepted

Anything displayed does not enter the scrollback buffer on putty or tmux until it is pushed off the viewport.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.