I am currently running tmux within Terminal.app on my Mac.

When I execute a command that outputs a line longer than the available window, instead of wrapping onto the next line, it overwrites the existing line.

What is also strange about this is: if I CMD+TAB to a different application and CMD+TAB back the output appears correctly on multiple lines.

How do I resolve this?

  • 2
    make sure you are not overriding TERM=screen inside tmux. – meuh Oct 5 '16 at 11:33
  • Can you reproduce this without any of your configuration files (.tmux.conf, .zshrc, etc.)? (It may help to test on another account that isn't customized in any way.) If not, post a complete set of configuration files that reproduces the problem. – Gilles 'SO- stop being evil' Oct 7 '16 at 6:20

I answered this last May in

Why does tmux fail to “scroll” when entering a command that exceeds one line? (OSX Terminal.app)

It is a known bug which does not appear with iTerm2.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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