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
16 lines
251 B
Lua
16 lines
251 B
Lua
send("\n")
|
|
msleep(100)
|
|
-- read buffer with 0.5 sec delay
|
|
read(160, 500)
|
|
send("S")
|
|
msleep(100)
|
|
-- read buffer
|
|
read(160, 500)
|
|
-- query Parallel Value Table
|
|
send("t")
|
|
print(read(300, 500))
|
|
while true do
|
|
sleep(1)
|
|
send("t")
|
|
print(read(300, 500))
|
|
end
|