feat(tty): add kitty keyboard protocol support

This commit is contained in:
Henrik Lissner 2024-08-23 17:20:25 -04:00
parent 8e76097d49
commit 07dff99184
No known key found for this signature in database
GPG key ID: B60957CA074D39A3
3 changed files with 8 additions and 0 deletions

View file

@ -11,6 +11,7 @@ This module configures Emacs for use in the terminal, by providing:
- Cursor-shape changing across evil states (requires a terminal that supports - Cursor-shape changing across evil states (requires a terminal that supports
it). it).
- Mouse support in the terminal. - Mouse support in the terminal.
- Support for the [[https://sw.kovidgoyal.net/kitty/keyboard-protocol/][Kitty keyboard protocol]] in supported terminals.
** Maintainers ** Maintainers
/This module has no dedicated maintainers./ [[doom-contrib-maintainer:][Become a maintainer?]] /This module has no dedicated maintainers./ [[doom-contrib-maintainer:][Become a maintainer?]]
@ -25,6 +26,7 @@ This module configures Emacs for use in the terminal, by providing:
** Packages ** Packages
- [[doom-package:clipetty]] if [[doom-module:+osc]] - [[doom-package:clipetty]] if [[doom-module:+osc]]
- [[doom-package:evil-terminal-cursor-changer]] if [[doom-module::editor evil]] - [[doom-package:evil-terminal-cursor-changer]] if [[doom-module::editor evil]]
- [[doom-package:kkp]]
- [[doom-package:xclip]] unless [[doom-module:+osc]] - [[doom-package:xclip]] unless [[doom-module:+osc]]
** Hacks ** Hacks

View file

@ -42,3 +42,7 @@
;; https://github.com/saitoha/mouseterm-plus/releases. That makes to support ;; https://github.com/saitoha/mouseterm-plus/releases. That makes to support
;; VT's DECSCUSR sequence. ;; VT's DECSCUSR sequence.
(add-hook 'tty-setup-hook #'evil-terminal-cursor-changer-activate) (add-hook 'tty-setup-hook #'evil-terminal-cursor-changer-activate)
;; Add support for the Kitty keyboard protocol.
(use-package! kkp
:hook (after-init . global-kkp-mode))

View file

@ -11,3 +11,5 @@
;; NOTE Despite the evil-* prefix, evil-terminal-cursor-changer does not depend ;; NOTE Despite the evil-* prefix, evil-terminal-cursor-changer does not depend
;; on evil (anymore). ;; on evil (anymore).
(package! evil-terminal-cursor-changer :pin "2358f3e27d89128361cf80fcfa092fdfe5b52fd8") (package! evil-terminal-cursor-changer :pin "2358f3e27d89128361cf80fcfa092fdfe5b52fd8")
(package! kkp :pin "ed9214329f11b095fc7bad06feb329b9f232258d")