Skip to content

Add kitty keyboard protocol support to Unix _pyrepl#145758

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

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

Conversation

@jechol
Copy link

@jechol jechol commented Mar 10, 2026

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
Copy link

bedevere-app bot commented Mar 10, 2026

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
Copy link

python-cla-bot bot commented Mar 10, 2026

All commit authors signed the Contributor License Agreement.

CLA signed

@jechol
Copy link
Author

jechol commented Mar 10, 2026

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