pub fn key(bytes: &[u8], whole: bool) -> Option<(usize, String, bool)>Expand description
The key at the start of what a terminal sent, as the viewer reads one: how many bytes it is, its
name (a key’s file’s: C-], dot, paste-start; none for a sequence that is no key), and whether
a key goes down with it. (In the kitty protocol’s forms a terminal tells of a key let go too, and of
Shift or Ctrl by itself: those are no key going down.) None while more bytes are needed to tell; with
whole, no more are coming. For a program that has a key of its own on a terminal whose other keys
are a pane’s: koh, which leaves a session by one. (The terminal’s words are no key: its mouse and its window’s
focus no key going down, any other a sequence that is no key.)