terminal bracketed paste mode "^[[200~ ... ^[[201~"
mouse 2230 · person cloud · link
Last update
2020-07-10
2020
07-10
« — »
1
2
3
4
5
6
7
8
9
10
# any terminal (do not run within a screen session)
printf "\e[?2004h" # enable
printf "\e[?2004l" # disable

# bash
bind 'set enable-bracketed-paste off'    # set readline config
echo 'printf "\e[?2004l"' >> ~/.bashrc   # run command on login

# readline config local/system wide
echo 'set enable-bracketed-paste off' >> ~/.inputrc   # or /etc/inputrc

Source: superuser.com, cirw.in, stackoverflow.com, askubuntu