Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Why special characters added when to copy and paste from leafpad into console?

Tags:

bash

mouse

There are one character string line in my leafpad.

sudo apt-get install ctags

When to copy and paster it with mouse into command console,0~ was added at the beginning of the character string line ,and 1~ was added at the end of it,sudo apt-get install ctags turns out to be 0~sudo apt-get install ctags1~. Why and how to fix it?

enter image description here

like image 455
showkey Avatar asked Nov 07 '25 04:11

showkey


1 Answers

Looks like bracketed paste mode is enabled.
In this case, enter the following command in your terminal to disable it

printf "\e[?2004l"

If your are interested in this feature, here is a nice introduction:
bracketed paste mode

like image 174
asdone Avatar answered Nov 10 '25 03:11

asdone



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!