Skip to content

[3.13] gh-124096: Enable REPL virtual terminal support on Windows (GH-124119) #133457

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
May 5, 2025

Conversation

miss-islington
Copy link
Contributor

@miss-islington miss-islington commented May 5, 2025

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 a65366e)

Co-authored-by: Y5 [email protected]
Signed-off-by: y5c4l3 [email protected]
Co-authored-by: Petr Viktorin [email protected]
Co-authored-by: Pablo Galindo Salgado [email protected]
Co-authored-by: Dustin L. Howett [email protected]
Co-authored-by: wheeheee [email protected]

…honGH-124119)

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 a65366e)

Co-authored-by: Y5 <[email protected]>
Signed-off-by: y5c4l3 <[email protected]>
Co-authored-by: Petr Viktorin <[email protected]>
Co-authored-by: Pablo Galindo Salgado <[email protected]>
Co-authored-by: Dustin L. Howett <[email protected]>
Co-authored-by: wheeheee <[email protected]>
@miss-islington miss-islington requested a review from rhettinger as a code owner May 5, 2025 16:58
@python-cla-bot
Copy link

python-cla-bot bot commented May 5, 2025

All commit authors signed the Contributor License Agreement.

CLA signed

@ambv
Copy link
Contributor

ambv commented May 5, 2025

@y5c4l3 can you click the CLA button again, please? The CLA bot wants you to connect this noreply GitHub email with a real email for our database.

I landed the PR in the mean time in the interest of time, but we'd still like you to click through the CLA, please.

@ambv ambv requested review from ezio-melotti and hugovk as code owners May 5, 2025 17:05
@ambv ambv merged commit a2bf7a0 into python:3.13 May 5, 2025
45 of 46 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
topic-repl Related to the interactive shell
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants