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
14
examples/lua/pts.lua
Normal file
14
examples/lua/pts.lua
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
read(1000, 6000) -- initial config
|
||||
send("\n")
|
||||
msleep(100)
|
||||
read(650, 60) -- main menu
|
||||
send("S") -- S menu
|
||||
msleep(30)
|
||||
read(650, 60)
|
||||
send("t") -- Parallel Value Table
|
||||
read(650, 60)
|
||||
while true do
|
||||
msleep(1000)
|
||||
send("t")
|
||||
read(650, 50) -- repeat PVT forever
|
||||
end
|
||||
Loading…
Add table
Add a link
Reference in a new issue