From 61a87fb1ec1d4ba8e5beda5fb34d1391dc0c1d0c Mon Sep 17 00:00:00 2001 From: TomJGooding <101601846+TomJGooding@users.noreply.github.com> Date: Fri, 19 Jul 2024 16:55:13 +0100 Subject: [PATCH 1/2] fix: disable kitty keyboard before leaving alt screen --- src/textual/drivers/linux_driver.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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: From e5a7822459cad22d6e5413ad49907e58b8cb2c70 Mon Sep 17 00:00:00 2001 From: TomJGooding <101601846+TomJGooding@users.noreply.github.com> Date: Fri, 19 Jul 2024 17:05:02 +0100 Subject: [PATCH 2/2] update changelog --- CHANGELOG.md | 6 ++++++ 1 file changed, 6 insertions(+) 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