mirror of
https://github.com/tio/tio.git
synced 2026-05-01 23:07:58 +02:00
add examples/lua/pts.lua showing one use of read_ts; add read_ts to tio man(1) file
This commit is contained in:
parent
9d74fe9e74
commit
f99a85b9da
2 changed files with 20 additions and 0 deletions
|
|
@ -375,6 +375,13 @@ SCRIPT API
|
|||
|
||||
On success, returns read string as second return value.
|
||||
|
||||
read_ts(size, timeout)
|
||||
Read 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 read string as second return value. Additionally, emit 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