-
-
Notifications
You must be signed in to change notification settings - Fork 30.4k
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
gh-124096: Enable REPL virtual terminal support on Windows #124119
base: main
Are you sure you want to change the base?
Conversation
42a48dc
to
13bb26f
Compare
I'm just testing that indentation works when I paste code? That seems fine. As a side note, my Ctrl+Left and Ctrl+Right shortcuts (skip word) are broken now (possibly ever since the repl went in), and there's way too much ctypes for my liking in here - we should prioritise moving those to |
It can be fixed by adding two entries in the keymap. I'll later check whether there are other sequences that I missed before and commit as soon. |
3c1502a
to
718110f
Compare
Signed-off-by: y5c4l3 <y5c4l3@proton.me>
To support virtual terminal mode in Windows PYREPL, we need a scanner to read over the supported escaped VT sequences. Signed-off-by: y5c4l3 <y5c4l3@proton.me>
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. Signed-off-by: y5c4l3 <y5c4l3@proton.me>
@pablogsal @ambv @zooba
|
Issue: #124096