Expand description
Key-event to byte-stream conversion.
Translates crossterm::event::KeyEvents into the byte sequences
rtcom_core::command::CommandKeyParser expects. Matches picocom /
minicom semantics: Enter is CR, Backspace is DEL (0x7f),
Ctrl-char is 0x01..=0x1f, plain character keys pass through their
UTF-8 encoding.
Enums§
- Dispatch
- What the dispatcher decided to do with an inbound key event.
Functions§
- key_
to_ bytes - Translate a crossterm
KeyEventinto the raw byte sequence the remote device sees. Returns an emptyVecfor events that do not correspond to a byte on the wire (e.g. modifier-only presses).