I am trying to switch from screen to tmux. When I run hg status, I get damaged output like this:
It doesn't happen to git, it doesn't happen with screen. Any advice will be very appreciated. Thanks.
Based on an answer from Nicholas Marriott and comment from Rudi: the problem seems to be that $TERM is set to screen
in tmux (whilst std. gnome-terminal has it set to xterm-256color
and screen to screen.xterm-256color
).
Therefore the solution (at least the one working for me) is to set terminal in the ~/.tmux.conf
as follows:
set -g default-terminal "screen.xterm-256color"
Note: using hg --pager never
also works, however that is not an acceptable solution.