cpython/Lib/_pyrepl
Paulie Peña 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
..
__init__.py
__main__.py gh-120678: pyrepl: Include globals from modules passed with `-i` (GH-120904) 2024-07-17 16:18:42 +02:00
_minimal_curses.py gh-126456: Fix _pyrepl curses tigetstr() (#126472) 2024-11-13 17:46:10 +01:00
_threading_handler.py gh-120221: Support KeyboardInterrupt in asyncio REPL (#123795) 2024-09-06 21:28:29 +02:00
commands.py gh-119517: Fixes for pasting in pyrepl (#120253) 2024-06-11 16:42:10 +00:00
completing_reader.py Fix typos in comments and test code (#122846) 2024-08-11 21:16:41 -07:00
console.py gh-124960: Fixed `barry_as_FLUFL` future flag does not work in new REPL (#124999) 2024-10-14 15:53:50 +02:00
curses.py
fancy_termios.py
historical_reader.py gh-124027: Support Del, PgUp, and PgDn on TERM=vt100 (#124028) 2024-09-13 02:07:23 +01:00
input.py Improve `pyrepl` type-annotation coverage (#119081) 2024-05-17 06:13:24 -04:00
keymap.py Remove almost all unpaired backticks in docstrings (#119231) 2024-05-22 12:35:18 -04:00
main.py gh-121957: Emit audit events for `python -i` and `python -m asyncio` (GH-121958) 2024-07-22 13:04:08 +02:00
mypy.ini Enable some stricter mypy settings on `Lib/_pyrepl` (#119077) 2024-05-20 08:52:32 -04:00
pager.py Support the "pager" binary in _pyrepl (#122878) 2024-09-19 13:18:24 +00:00
reader.py gh-124027: Support Del, PgUp, and PgDn on TERM=vt100 (#124028) 2024-09-13 02:07:23 +01:00
readline.py gh-122273: Support PyREPL history on Windows (#127141) 2024-11-26 10:21:57 +01:00
simple_interact.py Fix while statements with non-bool conditions in `_pyrepl` (#127509) 2025-01-01 20:39:28 +00:00
trace.py
types.py
unix_console.py Fix while statements with non-bool conditions in `_pyrepl` (#127509) 2025-01-01 20:39:28 +00:00
unix_eventqueue.py
utils.py gh-119896: Fix CTRL-Z behavior in the new REPL on Windows (GH-122217) 2024-07-30 14:03:52 +02:00
windows_console.py gh-128388: pyrepl on Windows: add meta and ctrl+arrow keybindings (GH-128389) 2025-01-10 13:52:19 +01:00