Add option --no-tty-restore / -N that omits tty_restore() call #334

On exit, do not reset the tty device settings to the state they were in
before the program started.
This is effective when sending characters at a low baud rate and then
immediately exiting, to ensure that the last character is output
correctly.
This commit is contained in:
yabu76 2025-12-31 15:14:18 +09:00
parent e73ff6d208
commit c74273ecaa
9 changed files with 34 additions and 3 deletions

View file

@ -122,6 +122,7 @@ Options:
--exclude-drivers <pattern> Exclude drivers by pattern
--exclude-tids <pattern> Exclude topology IDs by pattern
-n, --no-reconnect Do not reconnect
-N, --no-tty-restore Do not restore initial TTY device settings
-e, --local-echo Enable local echo
--input-mode normal|hex|line Select input mode (default: normal)
--output-mode normal|hex|hexN Select output mode (default: normal)