From b53ea4eea25ab4cf0d0bff0c44f1831707f20170 Mon Sep 17 00:00:00 2001 From: "LevitatingBusinessMan (Rein Fernhout)" Date: Fri, 22 Dec 2023 04:22:25 +0100 Subject: [PATCH 1/2] alacritty supports the kitty protocol, REPORT_ALTERNATE_KEYS now has docs As of https://github.com/alacritty/alacritty/commit/cb03806e2ab85674c45e87e1bb24dfe2fd1a918c alacritty now suppots kitty's enhanced protocol. The rustdoc for the REPORT_ALTERNATE_KEYS was commented with // instead of ///. --- src/event.rs | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/event.rs b/src/event.rs index 34644676..4f60a601 100644 --- a/src/event.rs +++ b/src/event.rs @@ -256,9 +256,9 @@ bitflags! { /// Add extra events with [`KeyEvent.kind`] set to [`KeyEventKind::Repeat`] or /// [`KeyEventKind::Release`] when keys are autorepeated or released. const REPORT_EVENT_TYPES = 0b0000_0010; - // Send [alternate keycodes](https://sw.kovidgoyal.net/kitty/keyboard-protocol/#key-codes) - // in addition to the base keycode. The alternate keycode overrides the base keycode in - // resulting `KeyEvent`s. + /// Send [alternate keycodes](https://sw.kovidgoyal.net/kitty/keyboard-protocol/#key-codes) + /// in addition to the base keycode. The alternate keycode overrides the base keycode in + /// resulting `KeyEvent`s. const REPORT_ALTERNATE_KEYS = 0b0000_0100; /// Represent all keyboard events as CSI-u sequences. This is required to get repeat/release /// events for plain-text keys. @@ -444,6 +444,7 @@ impl Command for DisableBracketedPaste { /// * [kitty terminal](https://sw.kovidgoyal.net/kitty/) /// * [foot terminal](https://codeberg.org/dnkl/foot/issues/319) /// * [WezTerm terminal](https://wezfurlong.org/wezterm/config/lua/config/enable_kitty_keyboard.html) +/// * [alacritty terminal](https://github.com/alacritty/alacritty/commit/cb03806e2ab85674c45e87e1bb24dfe2fd1a918c) /// * [notcurses library](https://github.com/dankamongmen/notcurses/issues/2131) /// * [neovim text editor](https://github.com/neovim/neovim/pull/18181) /// * [kakoune text editor](https://github.com/mawww/kakoune/issues/4103) From 14319174a49b1ec8bc9c5cc8f1045f60dd7a67d4 Mon Sep 17 00:00:00 2001 From: Timon Date: Fri, 3 May 2024 19:31:05 +0200 Subject: [PATCH 2/2] Update src/event.rs Co-authored-by: Josh McKinney --- src/event.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/event.rs b/src/event.rs index 4f60a601..3693d79c 100644 --- a/src/event.rs +++ b/src/event.rs @@ -444,7 +444,7 @@ impl Command for DisableBracketedPaste { /// * [kitty terminal](https://sw.kovidgoyal.net/kitty/) /// * [foot terminal](https://codeberg.org/dnkl/foot/issues/319) /// * [WezTerm terminal](https://wezfurlong.org/wezterm/config/lua/config/enable_kitty_keyboard.html) -/// * [alacritty terminal](https://github.com/alacritty/alacritty/commit/cb03806e2ab85674c45e87e1bb24dfe2fd1a918c) +/// * [alacritty terminal](https://github.com/alacritty/alacritty/issues/6378) /// * [notcurses library](https://github.com/dankamongmen/notcurses/issues/2131) /// * [neovim text editor](https://github.com/neovim/neovim/pull/18181) /// * [kakoune text editor](https://github.com/mawww/kakoune/issues/4103)