Make tmux/xterm work