}

Iterm2: terminal where in my cursor behaves strangely

Created:

The problem

When using iTerm2 the cursor could behaves strangely on tmux or apps console, the position of the cursor goes forward. A way t repdouce is when you search on commands history (ctrl+r) the chars on the terminal get's overlayed.

Changing the terminal is not a solution!

Detailed steps to reproduce the problem:

1- Begin a session in Tmux v2.6 (other version of Tmux also have the same problem as I'm aware) 2- Create a vertical split 3- Attempt to install a package using Python's pipenv package manager

Terminal split is misrendered apparently as a result of emoji characters being output by pipenv.

Solution

Try to set the environment variables LC_ALL and LANG to the following values:

export LC_ALL=en_US.UTF-8
export LANG=en_US.UTF-8

Solution 2

If the problem persists after applying the previous fix, try the following:

1- Go to Preferences -> Profiles -> Your current profile -> text 2- Enable "Use Unicode Version 9 Widths"