Update sms.lua

This commit is contained in:
Ale2610 2015-08-31 17:34:33 +02:00
parent 4cf0e6620d
commit 1ca5234554

View file

@ -129,7 +129,10 @@ local function recMsg()
local function printMsg(msg)
displayWin.setCursorBlink(false)
displayWin.setCursorPos(1,y)
displayWin.write(msg)
local nTerm = term.current()
term.redirect(displayWin)
print(msg)
term.redirect(nTerm)
if y == my then displayWin.scroll(1) else y = y + 1 end
end
printMsg("Type /logout to exit")