Skip to content

Add kitty keyboard protocol support to Unix _pyrepl#145758

Closed
jechol wants to merge 1 commit into
python:mainfrom
jechol:jechol/pyrepl-kitty-keyboard
Closed

Add kitty keyboard protocol support to Unix _pyrepl#145758
jechol wants to merge 1 commit into
python:mainfrom
jechol:jechol/pyrepl-kitty-keyboard

Conversation

@jechol

@jechol jechol commented Mar 10, 2026

Copy link
Copy Markdown

Summary

  • enable kitty keyboard protocol when Unix _pyrepl prepares the terminal and restore the previous keyboard mode on exit
  • parse kitty CSI u, CSI ~, and CSI 1;... key reports in unix_eventqueue and translate them into existing _pyrepl key events
  • add regression tests for kitty key parsing and update REPL output sanitizing for the new terminal control sequences

Tests

  • ./python.exe -m test -j1 test_pyrepl.test_eventqueue test_pyrepl.test_unix_console
  • ./python.exe -m test -j1 test_pyrepl.test_pyrepl

@bedevere-app

bedevere-app Bot commented Mar 10, 2026

Copy link
Copy Markdown

Most changes to Python require a NEWS entry. Add one using the blurb_it web app or the blurb command-line tool.

If this change has little impact on Python users, wait for a maintainer to apply the skip news label instead.

@python-cla-bot

python-cla-bot Bot commented Mar 10, 2026

Copy link
Copy Markdown

All commit authors signed the Contributor License Agreement.

CLA signed

@jechol

jechol commented Mar 10, 2026

Copy link
Copy Markdown
Author

Closing in favor of a PR from the renamed branch .

@jechol jechol closed this Mar 10, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant