An Long
2468c35c3b
gh-150582: Use _winapi for _pyrepl console handles and waits ( #150584 )
2026-10-25 10:11:43 +00:00
Jelle Zijlstra
e2118b0ac2
gh-149985: Remove future annotations and if TYPE_CHECKING in pyrepl ( #149992 )
...
`from __future__ import annotations` is soft-deprecated now that evaluation
of annotations is always deferred. `if TYPE_CHECKING` can often be replaced
with lazy imports.
2026-08-25 16:48:54 -07:00
832d557111
gh-152068: Reset PyREPL Colors on prompt finish ( #152108 )
...
* Use ANSI Escape Codes from Colorize
* Print ANSI Color reset on finish and restore
* 📜 🤖 Added by blurb_it.
* Update imports
* Update Misc/NEWS.d/next/macOS/2026-06-24-18-00-39.gh-issue-152068.ThsmJU.rst
Co-authored-by: Pablo Galindo Salgado <Pablogsal@gmail.com >
* Remove news entry
* 📜 🤖 Added by blurb_it.
* gh-152068: Test ANSI reset is emitted on console finish() and restore()
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com >
---------
Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com>
Co-authored-by: Pablo Galindo Salgado <Pablogsal@gmail.com >
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com >
2026-07-04 14:16:02 +01:00
Pablo Galindo Salgado
09968dd2a9
gh-148105: _pyrepl: switch console refresh to structured rendered screens ( #146584 )
2026-04-08 23:42:26 +01:00
Tan Long
e13f6dccd7
gh-140131: Fix REPL cursor position on Windows when module completion suggestion line hits console width (GH-140333)
2026-03-12 16:59:43 +01:00
AN Long
3abc03c808
gh-132888: Fix Windows API error checking in pyrepl.windows_console ( #144248 )
2026-02-03 13:25:29 +01:00
Chris Eibl and Łukasz Langa
ef6f92a2a6
gh-139262: Prevent swallowing REPL input on Windows (GH-139263)
...
Co-authored-by: Łukasz Langa <lukasz@langa.pl >
2026-01-02 16:17:45 +01:00
Jan-Eric Nitschke and Łukasz Langa
8a2deea1fc
gh-128067: Fix pyrepl overriding printed output without newlines ( #138732 )
...
Co-authored-by: Łukasz Langa <lukasz@langa.pl >
2026-01-02 14:04:37 +01:00
Tan Long
713edbcebf
gh-141415: Remove unused variables and comment in _pyrepl.windows_console.py ( #141416 )
2025-11-11 14:27:21 -05:00
Chris Eibl
91b48868a8
GH-130328: Speedup pasting in legacy console on Windows (gh-133728)
2025-05-25 15:17:43 +02:00
Noah Kim and Adam Turner
c4bcc6a778
gh-102567: Add -X importtime=2 for logging an importtime message for already-loaded modules ( #118655 )
...
Co-authored-by: Adam Turner <9087854+aa-turner@users.noreply.github.com >
2025-05-06 01:03:55 +01:00
Chris Eibl and Stan Ulbrych
07f416a3f0
GH-132439: Fix REPL swallowing characters entered with AltGr on cmd.exe (GH-132440)
...
Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com >
2025-05-05 18:45:45 +02:00
0c5151bc81
gh-131878: Fix input of unicode characters with two or more code points in new pyrepl on Windows (gh-131901)
...
Co-authored-by: Tomas R. <tomas.roun8@gmail.com >
Co-authored-by: Chris Eibl <138194463+chris-eibl@users.noreply.github.com >
2025-05-05 18:25:00 +02:00
fac41f56d4
gh-131507: Add support for syntax highlighting in PyREPL (GH-133247)
...
Co-authored-by: Victorien <65306057+Viicos@users.noreply.github.com >
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com >
2025-05-02 20:22:31 +02:00
Chris Eibl
acb222ce8f
GH-130328: pasting in new REPL is slow on Windows (GH-132884)
2025-04-29 18:03:45 +02:00
Victor Stinner
db27aee2fe
gh-131152: Remove unused imports in _pyrepl and ctypes ( #131150 )
2025-03-12 14:04:12 +00:00
a65366ed87
gh-124096: Enable REPL virtual terminal support on Windows ( #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.
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-02-23 20:30:33 +01:00
5a9afe2362
gh-123024: Correctly prepare/restore around help and show-history commands ( #124485 )
...
Co-authored-by: Emily Morehouse <emily@cuttlesoft.com >
Co-authored-by: Pablo Galindo Salgado <Pablogsal@gmail.com >
2025-01-21 21:04:30 +00:00
688f3a0d4b
gh-128388: pyrepl on Windows: add meta and ctrl+arrow keybindings (GH-128389)
...
Fix `Lib/_pyrepl/windows_console.py` to support more keybindings, like the
`Ctrl`+`←` and `Ctrl`+`→` word-skipping keybindings and those with meta (i.e. Alt),
e.g. to `kill-word` or `backward-kill-word`.
Specifics: if Ctrl is pressed, emit "ctrl left" and "ctrl right" instead of just "left" or
"right," and if Meta/Alt is pressed, emit the special key code for meta before
emitting the other key that was pressed.
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com >
Co-authored-by: Pieter Eendebak <pieter.eendebak@gmail.com >
2025-01-10 13:52:19 +01:00
Dino Viehland
83e5dc0f4d
gh-124628: Pyrepl inputs on Windows shouldn't always be blocking reads ( #124629 )
2024-09-27 00:10:36 +02:00
Łukasz Langa
033510e11d
gh-120221: Support KeyboardInterrupt in asyncio REPL ( #123795 )
...
This switches the main pyrepl event loop to always be non-blocking so that it
can listen to incoming interruptions from other threads.
This also resolves invalid display of exceptions from other threads
(gh-123178).
This also fixes freezes with pasting and an active input hook.
2024-09-06 21:28:29 +02:00
devdanzin
782217f28f
gh-123572: Fix key codes in VK_MAP in windows_console.py ( #122692 )
2024-09-03 13:01:21 +00:00
Xie Yanbo
253c6a0b2f
Fix typos in comments and test code ( #122846 )
2024-08-11 21:16:41 -07:00
Dino Viehland
d1a1bca1f0
gh-119896: Fix CTRL-Z behavior in the new REPL on Windows (GH-122217)
2024-07-30 14:03:52 +02:00
Victor Stinner
4c6d4f5cb3
gh-120417: Remove unused imports in the stdlib ( #120420 )
2024-06-12 20:56:42 +02:00
d9095194dd
gh-119842: Honor PyOS_InputHook in the new REPL (GH-119843)
...
Signed-off-by: Pablo Galindo <pablogsal@gmail.com >
Co-authored-by: Łukasz Langa <lukasz@langa.pl >
Co-authored-by: Michael Droettboom <mdboom@gmail.com >
2024-06-04 20:32:43 +02:00
0d07182821
gh-111201: Support pyrepl on Windows ( #119559 )
...
Co-authored-by: Anthony Shaw <anthony.p.shaw@gmail.com >
Co-authored-by: Łukasz Langa <lukasz@langa.pl >
2024-05-31 09:49:03 +02:00