Add support for configurable timestamp format

Also changes default timestamp format from ISO8601 to classic 24-hour
format as this is assumed to be the format that most users would prefer.

And reintroduces strict but optional ISO8601 format.

This feature allows to easily add more timestamp formats in the future.
This commit is contained in:
Martin Lund 2022-02-19 02:12:24 +01:00
parent 47694904cf
commit d8a822a3fb
6 changed files with 94 additions and 27 deletions

View file

@ -34,7 +34,7 @@ The command-line interface is straightforward as reflected in the output from
-o, --output-delay <ms> Output delay (default: 0)
-n, --no-autoconnect Disable automatic connect
-e, --local-echo Enable local echo
-t, --timestamp Enable line timestamp
-t, --timestamp[=<format>] Enable timestamp (default: 24hour)
-L, --list-devices List available serial devices
-l, --log <filename> Log to file
-m, --map <flags> Map special characters
@ -42,7 +42,7 @@ The command-line interface is straightforward as reflected in the output from
-v, --version Display version
-h, --help Display help
See the man page for list of supported mapping flags.
See the man page for more details.
In session, press ctrl-t q to quit.
```