mirror of
https://github.com/tio/tio.git
synced 2026-05-01 14:57:59 +02:00
+ 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 + Simplified read_line to reduce cyclomatic complexity + renamed example files read.lua and read_line.lua + moved #define READ_LINE_SIZE to top of file + renamed g_linebuf to linebuf, and moved it into read_line as a static variable
14 lines
261 B
Lua
14 lines
261 B
Lua
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
|