Getting strange characters when pasting into my iterm2 terminal

user7055375 picture user7055375 · Jun 30, 2017 · Viewed 22.4k times · Source

I'm using iterm2 v 3.0.15 on Mac Sierra. I'm having trouble cutting and pasting from other places (e.g. text on a web page) into my terminal. For instance, I highlight some text from a web page, press Command + C, go to the terminal, and then press Command + V, I get

localhost:myproject nataliab$ 00~on the next01~

Notice the "00~" and "01~" in front of and behind my text. I do not see these characters when I cut and paste into a text editor or other places. How do I eliminate these special characters from appearing when I cut and paste into my iterm2 terminal?

Answer

Arjun Sankarlal picture Arjun Sankarlal · Jul 15, 2019

In the terminal window type reset, and press enter. And now, try pasting contents in terminal, it should work properly.