Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Normally when using Terminal, if I go to View --> Clear Scrollback all previous content in the Terminal app will disappear and the prompt will be available at the top of the screen. When using Clear Scrollback inside tmux, everything looks the same (including the blinking cursor at the top of the Terminal screen). However, when I start to type the cursor moves to the bottom line of the screen instead of staying at the top line as you would expect. As a result, you end up with the prompt on the first line but the text you are typing in "floating" at the bottom in the middle of the screen. Has anyone seen this before and do you know a way to fix it?

share|improve this question
up vote 4 down vote accepted

The tmux command clear-history will clear all buffer content that is not shown, so a combination with ctrl-l will do the trick. You should not use your terminal's clear scrollback feature as it probably is not aware of tmux running.

share|improve this answer

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .