From 5e979d98fd04d4b7fe8875c15a7d611f95c11e42 Mon Sep 17 00:00:00 2001 From: Ale32bit Date: Sun, 1 Nov 2015 18:23:07 +0100 Subject: [PATCH] Update sms.lua --- src/apps/sms.lua | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) diff --git a/src/apps/sms.lua b/src/apps/sms.lua index 7f94216..281fa51 100644 --- a/src/apps/sms.lua +++ b/src/apps/sms.lua @@ -90,13 +90,22 @@ local function readMsg() term.setTextColor(colors.white) term.clear() 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 local msg = read() else - term.write("Disabled") - sleep(100) - local msg = "" + + _,c = os.pullEvent("key") + if c == keys.enter then + local msg = "/logout" + else + local msg = "" + end end local msg = base64.encode(msg) term.clear()