Skip to content

Commit

Permalink
alacritty supports the kitty protocol, REPORT_ALTERNATE_KEYS now has …
Browse files Browse the repository at this point in the history
…docs

As of alacritty/alacritty@cb03806 alacritty now suppots kitty's enhanced protocol.
The rustdoc for the REPORT_ALTERNATE_KEYS was commented with // instead of ///.
  • Loading branch information
LevitatingBusinessMan committed Dec 22, 2023
1 parent 08762b3 commit b53ea4e
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/event.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit b53ea4e

Please sign in to comment.