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.

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
add comment

1 Answer

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
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.