small medium large xlarge

Back to: All Forums  tmux
11 Nov 2012, 14:32
Kevin Incorvia (1 post)

In terminal cmd-k will clear the screen.. if I am in tmux and I hit this key, it will clear the screen (including the tmux status bar) but invisibly the tmux buffer still exists.. thus when I start typing it will move to the middle of the screen (or wherever the tmux buffer actually ended) and continue from that point.. its very odd behavior.. I’m wondering how you manage this.. do you just not use cmd-k as it messes up tmux? Or is there a better way to clear the screen inside tmux?

Enjoying the book, thanks!

12 Nov 2012, 05:45
Adrian Luff (5 posts)

Try prefix r (CTRL+b then r by default). That executes the tmux “refresh-client” command.

Alternatively the shell command ‘clear’ works. I have noticed tmux will display the cleared text when a new session is attached to an existing window though. I wouldn’t trust it for anything secure.

19 Mar 2013, 15:01
Brian P. Hogan (159 posts)

You can also use the standard CTRL-L keyboard shortcut which works outside of tmux too. That’s what I do, as I work on Linux too.