-
-
Notifications
You must be signed in to change notification settings - Fork 1k
Description
Hi,
I want to be able to disambiguate shift-Enter from Enter. After some debugging I found out that although Kitty keyboard protocol supports it with its progressive enhancement features, it's not enabled.
Kitty keyboard protocol is enabled with self.write("\x1b[>1u") but the enhancements need to be enabled as well.
To enable reporting all keys as escape codes, I needed
self.write("\x1b[=8;u") after the protocol enabling line.
in the driver, and after that shift+enter started working. Also I saw somebody else reporting problem with shift+space, this one line change (2 lines if the inline driver adds it as well) fixes that as well, and a lot more keyboard combinations.
I also tried to enable all externsions (31 instead of 8), but that was not working.
This change is not 100% backwards compatible, but I believe it's the right choice for TUI applications, as most of them want access to much more key combos that this change enables.