Add timeout based timestamps in hex output mode

This change reintroduces timestamping in hex output mode but based on
timeout instead of new lines which made no sense. This means that
timestamps will only be printed when timeout time has elapsed with no
output activity from serial device.

Adds option --timestamp-timeout <ms> for setting the timeout value in
milliseconds.

Defaults to 200 ms.
This commit is contained in:
Martin Lund 2024-04-18 15:45:50 +02:00
parent a8e0d2693d
commit 6fff4939e4
8 changed files with 76 additions and 20 deletions

17
TODO
View file

@ -17,20 +17,15 @@
With and without timestamp support for each broken up line.
* Add support for activity based time stamping in both normal and hex-mode.
* Add support for activity based time stamping in normal output mode
Will print a new timestamp if there is no input activity within the time
defined in the configuration file, e.g.:
Already supported in hex output mode.
timestamp-timeout = 200
* Advanced line mode
Time is in ms.
* Advanced line mode
Current line mode only support backspace editing. Would be nice with arrow
key navigation left/right and insert/overwrite support. Also history browsing
pressing up/down.
Current line mode only support backspace editing. Would be nice with arrow
key navigation left/right and insert/overwrite support. Also history browsing
pressing up/down.
* Support for running external command