Skip to main content

Module input

Module input 

Source
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 KeyEvent into the raw byte sequence the remote device sees. Returns an empty Vec for events that do not correspond to a byte on the wire (e.g. modifier-only presses).