cpython/Lib/test/test_pyrepl
Miss Islington (bot) a2bf7a0a47
[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 a65366ed87)

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>
2025-05-05 19:39:06 +02:00
..
__init__.py [3.13] gh-111201: Support pyrepl on Windows (GH-119559) (GH-119850) 2024-05-31 17:18:28 +02:00
__main__.py
support.py [3.13] gh-131507: Clean up tests and type checking for _pyrepl (GH-131509) (GH-131546) 2025-03-21 17:25:45 +01:00
test_eventqueue.py [3.13] gh-124096: Enable REPL virtual terminal support on Windows (GH-124119) (GH-133457) 2025-05-05 19:39:06 +02:00
test_input.py
test_interact.py [3.13] gh-117174: Adapt test_multiple_statements_fail_early to new REPL behavior (follow-up gh-131065) (GH-131836) (#131841) 2025-03-28 16:51:04 +00:00
test_keymap.py [3.13] gh-119357: Increase test coverage for keymap in _pyrepl (GH-119358) (#119414) 2024-05-22 23:13:01 +02:00
test_pyrepl.py [3.13] gh-133054: Skip test_pyrepl tests when cannot use pyrepl is reported (GH-133055) (#133095) 2025-04-28 18:00:42 +00:00
test_reader.py [3.13] gh-131507: Clean up tests and type checking for _pyrepl (GH-131509) (GH-131546) 2025-03-21 17:25:45 +01:00
test_unix_console.py [3.13] gh-131507: Clean up tests and type checking for _pyrepl (GH-131509) (GH-131546) 2025-03-21 17:25:45 +01:00
test_utils.py [3.13] gh-126332: Add tests for _pyrepl.utils (GH-129325) (#130414) 2025-02-21 17:22:42 +00:00
test_windows_console.py [3.13] gh-126332: Fix pyrepl crash for double ctrl-z in line overflow (GH-126650) (#129154) 2025-01-21 21:04:41 +00:00