forked from python/cpython
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
bpo-42819, readline: Disable bracketed paste (pythonGH-24108)
- Loading branch information
1 parent
813db24
commit 755f3c1
Showing
3 changed files
with
32 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 8 additions & 0 deletions
8
Misc/NEWS.d/next/Core and Builtins/2021-01-04-23-54-34.bpo-42819.4KO6wU.rst
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
:mod:`readline`: Explicitly disable bracketed paste in the interactive | ||
interpreter, even if it's set in the inputrc, is enabled by default (eg GNU | ||
Readline 8.1), or a user calls ``readline.read_init_file()``. The Python REPL | ||
has not implemented bracketed paste support. Also, bracketed mode writes the | ||
``"\x1b[?2004h"`` escape sequence into stdout which causes test failures in | ||
applications that don't support it. It can still be explicitly enabled by | ||
calling ``readline.parse_and_bind("set enable-bracketed-paste on")``. Patch by | ||
Dustin Rodrigues. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters