RemoteShellViewModel
Terminal session against the firmware DMShell module.
The protocol lives in RemoteShellLink, the screen model in TerminalOutput and predictive echo in LocalEcho; all three are mutated only under linkMutex, so a frame, a tick and a keystroke never interleave. This class owns the clock, the radio and the UI state.
Two input modes. Character mode streams keystrokes (debounced into one frame per burst) so tab completion, line editing and prompts behave as on any terminal, and draws what was sent with LocalEcho until the node echoes it. Line mode composes the whole command locally and sends it in one frame, the cheapest way to spend airtime; it keeps a local history so recalling a command costs no round trip.
Constructors
Properties
Functions
Steps the composer through local history: older true walks back, false walks forward to an empty line.
Sends the composed line in one frame; an empty line still sends Enter, which a prompt may be waiting for.
Edits the unsent buffer while there is one; past it, the remote line, by sending DEL.