diff --git a/CHANGELOG.md b/CHANGELOG.md index a70e754fdc..2ef7ca7302 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,12 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](http://keepachangelog.com/) and this project adheres to [Semantic Versioning](http://semver.org/). +## Unreleased + +### Fixed + +- Fixed issues in Kitty terminal after exiting app https://github.com/Textualize/textual/issues/4779 + ## [0.73.0] - 2024-07-18 ### Added diff --git a/src/textual/drivers/linux_driver.py b/src/textual/drivers/linux_driver.py index 41d19911ed..b633eaf4b1 100644 --- a/src/textual/drivers/linux_driver.py +++ b/src/textual/drivers/linux_driver.py @@ -336,13 +336,13 @@ def stop_application_mode(self) -> None: except termios.error: pass + # Disable the Kitty keyboard protocol. This must be done before leaving + # the alt screen. https://sw.kovidgoyal.net/kitty/keyboard-protocol/ + self.write("\x1b[ None: