Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
- Fixed `TextArea` cursor display on wrapped lines https://github.com/Textualize/textual/pull/6196
- Fixed `remove_children` not refreshing layout https://github.com/Textualize/textual/pull/6206

### Added

- Added support for the kitty keyboard protocol on Windows https://github.com/Textualize/textual/pull/6207

## [6.5.0] - 2025-10-31

### Added
Expand Down
5 changes: 5 additions & 0 deletions src/textual/drivers/windows_driver.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,7 @@ def start_application_mode(self) -> None:
self.write("\x1b[?25l") # Hide cursor
self.write("\033[?1003h")
self.write("\033[?1004h") # Enable FocusIn/FocusOut.
self.write("\x1b[>1u") # https://sw.kovidgoyal.net/kitty/keyboard-protocol/
self.flush()
self._enable_bracketed_paste()

Expand Down Expand Up @@ -124,6 +125,10 @@ def stop_application_mode(self) -> None:
self._disable_bracketed_paste()
self.disable_input()

# Disable the Kitty keyboard protocol. This must be done before leaving
# the alt screen. https://sw.kovidgoyal.net/kitty/keyboard-protocol/
self.write("\x1b[<u")

# Disable alt screen, show cursor
self.write("\x1b[?1049l" + "\x1b[?25h")
self.write("\033[?1004l") # Disable FocusIn/FocusOut.
Expand Down
Loading