Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- shell.run("go.lua")
- local function main()
- local function clock()
- local w = term.getSize()
- term.setTextColor(colors.gray)
- while true do
- term.setCursorPos(w - 8, 1)
- term.setBackgroundColor(colors.black)
- term.write(" ")
- term.setCursorPos(w - 8, 1)
- term.setBackgroundColor(colors.white)
- term.write(textutils.formatTime(os.time()))
- waitChannel("term_events", false, 0.2)
- end
- end
- go(clock)
- go(function() shell.run("/rom/programs/shell") end)
- end
- runDispatcher(main)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement