mirror of
https://github.com/tio/tio.git
synced 2026-05-01 14:57:59 +02:00
Clean up lua API
Rename modem_send() to send() Rename send to write()
This commit is contained in:
parent
4511d74a9e
commit
c49faa7337
6 changed files with 55 additions and 44 deletions
|
|
@ -18,9 +18,9 @@ if (1 == found) then
|
|||
local hostname = string.match(match_str, "^%w+")
|
||||
local login = logins[hostname]
|
||||
if (nil ~= login) then
|
||||
send(login.username .. "\n")
|
||||
write(login.username .. "\n")
|
||||
expect("Password:")
|
||||
send(login.password .. "\n")
|
||||
write(login.password .. "\n")
|
||||
else
|
||||
io.write("\r\nDon't know login info for " .. hostname .. "\r\n")
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue