pub fn key_to_ansi(chord: &KeyChord) -> Option<Vec<u8>>Expand description
Encode a single key chord into PTY-stdin bytes. Returns None
for chords with no Terminal-Insert meaning yet (modifier-only
releases, unmapped F-keys beyond F12). Callers treat None
as a no-op rather than a translation error.
Backwards-compat wrapper over key_to_ansi_with_mode that
pins DECCKM to false (xterm-default normal cursor keys).
Production callers route through this; tests opting into the
application-cursor-keys variant call the lower-level helper.