Skip to main content

Module modem_control

Module modem_control 

Source
Expand description

Modem-control dialog — immediate-action menu for toggling the DTR / RTS output lines and sending a line break.

Unlike the SerialPortSetupDialog (T12) and LineEndingsDialog (T13), this dialog does not edit a pending configuration struct: every row fires an action the moment the user presses Enter. The read-only “current output lines” display at the top is seeded from whatever ModemLineSnapshot the outer app passes in at construction time and is not refreshed while the dialog is open (v0.2 scope limit — proper live polling is follow-up work).

The dialog stays open after an action: this matches minicom’s modem-control menu behaviour and lets the user fire several actions in a row without re-opening. Esc / Enter on [Close] dismisses.

Structs§

ModemControlDialog
Immediate-action dialog for toggling DTR / RTS and sending a line break.