/opt/imh/python3.13/lib/python3.13/_pyrepl
NameSizeModeActions
__pycache__/-0755rm
base_eventqueue.py38400644editdlrm
commands.py121900644editdlrm
completing_reader.py100500644editdlrm
console.py68660644editdlrm
curses.py12410644editdlrm
fancy_termios.py21610644editdlrm
historical_reader.py132400644editdlrm
input.py37790644editdlrm
keymap.py64600644editdlrm
main.py19380644editdlrm
mypy.ini8700644editdlrm
pager.py58150644editdlrm
reader.py277120644editdlrm
readline.py202190644editdlrm
simple_interact.py57680644editdlrm
trace.py4330644editdlrm
types.py3540644editdlrm
unix_console.py256370644editdlrm
unix_eventqueue.py25240644editdlrm
utils.py22320644editdlrm
windows_console.py216200644editdlrm
windows_eventqueue.py9910644editdlrm
_minimal_curses.py18440644editdlrm
_threading_handler.py21700644editdlrm
__init__.py9250644editdlrm
__main__.py4220644editdlrm
Edit: /opt/imh/python3.13/lib/python3.13/_pyrepl/windows_eventqueue.py (991B)
""" Windows event and VT sequence scanner """ from .base_eventqueue import BaseEventQueue # Reference: https://learn.microsoft.com/en-us/windows/console/console-virtual-terminal-sequences#input-sequences VT_MAP: dict[bytes, str] = { b'\x1b[A': 'up', b'\x1b[B': 'down', b'\x1b[C': 'right', b'\x1b[D': 'left', b'\x1b[1;5D': 'ctrl left', b'\x1b[1;5C': 'ctrl right', b'\x1b[H': 'home', b'\x1b[F': 'end', b'\x7f': 'backspace', b'\x1b[2~': 'insert', b'\x1b[3~': 'delete', b'\x1b[5~': 'page up', b'\x1b[6~': 'page down', b'\x1bOP': 'f1', b'\x1bOQ': 'f2', b'\x1bOR': 'f3', b'\x1bOS': 'f4', b'\x1b[15~': 'f5', b'\x1b[17~': 'f6', b'\x1b[18~': 'f7', b'\x1b[19~': 'f8', b'\x1b[20~': 'f9', b'\x1b[21~': 'f10', b'\x1b[23~': 'f11', b'\x1b[24~': 'f12', } class EventQueue(BaseEventQueue): def __init__(self, encoding: str) -> None: BaseEventQueue.__init__(self, encoding, VT_MAP)