mirror of
https://github.com/tio/tio.git
synced 2026-05-01 23:07:58 +02:00
+ Add system timestamps to lua read() and new lua read_line() per global options; prevented warnings
+ Add missing timestamp-format epoch; update send_ to use fsync and tcdrain like normal tty_sync does; rework read_line to save partial line at timeout
This commit is contained in:
parent
ab678e6c88
commit
e5f9b947c4
13 changed files with 201 additions and 22 deletions
|
|
@ -373,7 +373,14 @@ SCRIPT API
|
|||
|
||||
Returns number of bytes read on success, 0 on timeout, or -1 on error.
|
||||
|
||||
On success, returns read string as second return value.
|
||||
On success, returns read string as second return value. Also emits a single timestamp to stdout and log file per options.timestamp and options.log.
|
||||
|
||||
read_line(timeout)
|
||||
Read line from serial device. If timeout is 0 or not provided it will wait forever until data is ready to read.
|
||||
|
||||
Returns number of bytes read on success, 0 on timeout, or -1 on error.
|
||||
|
||||
On success, returns the string that was read as second return value. Also emits a single timestamp to stdout and log file per options.timestamp and options.log.
|
||||
|
||||
set{line=state, ...}
|
||||
Set state of one or multiple tty modem lines.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue