Update sms.lua

This commit is contained in:
Ale32bit 2015-11-01 18:23:07 +01:00
parent fc603a55c9
commit 5e979d98fd

View file

@ -90,13 +90,22 @@ local function readMsg()
term.setTextColor(colors.white) term.setTextColor(colors.white)
term.clear() term.clear()
term.setCursorPos(1,1) term.setCursorPos(1,1)
term.write("Send: ") if not getAllSMS then
term.write("Send: ")
else
term.write("Enter to exit")
term.setCursorBlink(false)
end
if not getAllSMS then if not getAllSMS then
local msg = read() local msg = read()
else else
term.write("Disabled")
sleep(100) _,c = os.pullEvent("key")
local msg = "" if c == keys.enter then
local msg = "/logout"
else
local msg = ""
end
end end
local msg = base64.encode(msg) local msg = base64.encode(msg)
term.clear() term.clear()