Update sms.lua
This commit is contained in:
parent
4cf0e6620d
commit
1ca5234554
1 changed files with 8 additions and 5 deletions
|
@ -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")
|
||||
|
|
Loading…
Reference in a new issue