mirror of
https://github.com/tio/tio.git
synced 2026-05-02 07:17:57 +02:00
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:
parent
a8e0d2693d
commit
6fff4939e4
8 changed files with 76 additions and 20 deletions
|
|
@ -28,6 +28,7 @@ _tio()
|
|||
-m --map \
|
||||
-t --timestamp \
|
||||
--timestamp-format \
|
||||
--timestamp-timeout \
|
||||
-L --list-devices \
|
||||
-c --color \
|
||||
-S --socket \
|
||||
|
|
@ -118,6 +119,10 @@ _tio()
|
|||
COMPREPLY=( $(compgen -W "24hour 24hour-start 24hour-delta iso8601" -- ${cur}) )
|
||||
return 0
|
||||
;;
|
||||
--timestamp-timeout)
|
||||
COMPREPLY=( $(compgen -W "${opts}" -- ${cur}) )
|
||||
return 0
|
||||
;;
|
||||
-L | --list-devices)
|
||||
COMPREPLY=( $(compgen -W "${opts}" -- ${cur}) )
|
||||
return 0
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue