This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author vstinner
Recipients dtrodrigues, fxcoudert, gregory.p.smith, hroncok, petr.viktorin, twouters, vstinner
Date 2021-02-15.09:29:32
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1613381372.33.0.801931936123.issue42819@roundup.psfhosted.org>
In-reply-to
Content
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.
History
Date User Action Args
2021-02-15 09:29:32vstinnersetrecipients: + vstinner, twouters, gregory.p.smith, petr.viktorin, hroncok, fxcoudert, dtrodrigues
2021-02-15 09:29:32vstinnersetmessageid: <1613381372.33.0.801931936123.issue42819@roundup.psfhosted.org>
2021-02-15 09:29:32vstinnerlinkissue42819 messages
2021-02-15 09:29:32vstinnercreate