tio/examples/lua/pvt.lua
Keith Hill e5f9b947c4 + 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
2024-11-05 11:20:43 -06:00

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