]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.13] gh-124096: Enable REPL virtual terminal support on Windows (GH-124119) (GH...
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Mon, 5 May 2025 17:39:06 +0000 (19:39 +0200)
committerGitHub <noreply@github.com>
Mon, 5 May 2025 17:39:06 +0000 (19:39 +0200)
commita2bf7a0a47bb867e9808e5559bfdfd858dd6ddeb
treea0da82a9928be3d77b6cdbbbb4d239f79dc4f0fd
parent1105ed316bdcaf4f9b79800743916b26ab49fcd5
[3.13] gh-124096: Enable REPL virtual terminal support on Windows (GH-124119) (GH-133457)

To support virtual terminal mode in Windows PYREPL, we need a scanner
to read over the supported escaped VT sequences.

Windows REPL input was using virtual key mode, which does not support
terminal escape sequences. This patch calls `SetConsoleMode` properly
when initializing and send sequences to enable bracketed-paste modes
to support verbatim copy-and-paste.
(cherry picked from commit a65366ed879a3d9f27cbcc811ed2e05ad1a2af06)

Co-authored-by: Y5 <124019959+y5c4l3@users.noreply.github.com>
Signed-off-by: y5c4l3 <y5c4l3@proton.me>
Co-authored-by: Petr Viktorin <encukou@gmail.com>
Co-authored-by: Pablo Galindo Salgado <Pablogsal@gmail.com>
Co-authored-by: Dustin L. Howett <dustin@howett.net>
Co-authored-by: wheeheee <104880306+wheeheee@users.noreply.github.com>
.github/CODEOWNERS
Lib/_pyrepl/base_eventqueue.py [new file with mode: 0644]
Lib/_pyrepl/unix_eventqueue.py
Lib/_pyrepl/windows_console.py
Lib/_pyrepl/windows_eventqueue.py [new file with mode: 0644]
Lib/test/test_pyrepl/test_eventqueue.py [moved from Lib/test/test_pyrepl/test_unix_eventqueue.py with 68% similarity]
Misc/NEWS.d/next/Library/2024-09-16-17-03-52.gh-issue-124096.znin0O.rst [new file with mode: 0644]