Why is the output not wrapping in tmux

osxterminaltmuxzsh

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?

Best Answer

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.

Related Question