Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- _G.term.reset = function()
- term.clear()
- term.setCursorPos(1,1)
- term.setBackgroundColor(colors.black)
- term.setTextColor(colors.white)
- end
- term.reset()
- parallel.waitForAny(
- function()
- shell.run("shell")
- end,
- function()
- local text = "Activate CraftOS "
- local text2 = "Go to Settings to activate CraftOS."
- local offsetX = 2
- local offsetY = 1
- while true do
- local oldx, oldy = term.getCursorPos()
- local oldtc = term.getTextColor()
- --local oldbc = term.getBackgroundColor()
- term.setTextColor(colors.gray)
- local tx, ty = term.getSize()
- local x = tx - offsetX - #text2
- local y = ty - offsetY - 2
- term.setCursorPos(x,y)
- term.write(text)
- term.setCursorPos(x,y+1)
- term.write(text2)
- term.setCursorPos(oldx,oldy)
- term.setTextColor(oldtc)
- sleep(0.05)
- end
- end
- )
Add Comment
Please, Sign In to add comment