Message386987
I didn't know "bracketed paste mode". It seems like a protocol between a terminal and the user to add markers before/after a pasted text.
https://cirw.in/blog/bracketed-paste
"""
In summary:
1. Enable bracketed paste: printf "\e[?2004h"
2. Wait for paste to start: you’ll see \e[200~ on STDIN.
3. Wait for paste to stop: you’ll see \e[201~ on STDIN.
4. Disable bracketed paste: printf "\e[?2004l"
"""
I understand that this mode prevents to run arbitrary command when pasting blindly an untrusted command copied from a webpage, like this example:
https://thejh.net/misc/website-terminal-copy-paste
It can be enabled explicitly by adding "set enable-bracketed-paste" on to your ~/.inputrc configuration file. |
|
| Date |
User |
Action |
Args |
| 2021-02-15 09:29:32 | vstinner | set | recipients:
+ vstinner, twouters, gregory.p.smith, petr.viktorin, hroncok, fxcoudert, dtrodrigues |
| 2021-02-15 09:29:32 | vstinner | set | messageid: <1613381372.33.0.801931936123.issue42819@roundup.psfhosted.org> |
| 2021-02-15 09:29:32 | vstinner | link | issue42819 messages |
| 2021-02-15 09:29:32 | vstinner | create | |
|