Makes cursor switch works when in tmux.