Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Pasting into OS X command line adds extraneous characters

When I paste text into the Terminal window, Terminal appends 0~ before the pasted string and 1~ after it. I've never seen this behaviour before. If I copy foo from anywhere (including the same Terminal window), pasting into the command line results in:

-bash-4.2$ 0~foo1~

I tried every method for pasting text into OS X terminal from How to paste into a terminal?, i.,e. Command v; CommandControlv; Shift + Insert.

Pasting into text editors and browsers (basically, any place other than Terminal) does not add any extra characters. Why is this happening and how can I fix it?

I'm using macOS 10.14.2; Terminal version 2.9.1.

like image 990
parallelogram Avatar asked Oct 26 '25 11:10

parallelogram


1 Answers

I don't know the actual answer for this but for me it works after restarting the terminal.

Command + Q

I will update once I will find something.

like image 162
Chetan kapoor Avatar answered Oct 29 '25 02:10

Chetan kapoor