mirror of
https://github.com/tio/tio.git
synced 2026-05-01 14:57:59 +02:00
Update tio man page
This commit is contained in:
parent
7e61a34df3
commit
58bf5c5008
2 changed files with 3 additions and 3 deletions
|
|
@ -447,8 +447,8 @@ Returns 1 on successful match, 0 on timeout, or -1 on error.
|
||||||
On successful match it also returns the match string as second return value.
|
On successful match it also returns the match string as second return value.
|
||||||
|
|
||||||
.IP "\fBread(size, timeout)"
|
.IP "\fBread(size, timeout)"
|
||||||
Read from serial device. If timeout is 0 or not provided it will wait forever
|
Read up to size bytes from serial device. If timeout is 0 or not provided it
|
||||||
until data is ready to read.
|
will wait forever until data is ready to read.
|
||||||
|
|
||||||
Returns number of bytes read on success, 0 on timeout, or -1 on error.
|
Returns number of bytes read on success, 0 on timeout, or -1 on error.
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -357,7 +357,7 @@ SCRIPT API
|
||||||
On successful match it also returns the match string as second return value.
|
On successful match it also returns the match string as second return value.
|
||||||
|
|
||||||
read(size, timeout)
|
read(size, timeout)
|
||||||
Read from serial device. If timeout is 0 or not provided it will wait forever until data is ready to read.
|
Read up to size bytes 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.
|
Returns number of bytes read on success, 0 on timeout, or -1 on error.
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue