set terminal properly for under tmux