Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- monitor = peripheral.wrap("right") -- Moved the initialization out of the loop
- monitor.setTextScale(5)
- monitor.setTextColour(16384)
- repeat
- term.clear() -- Moved to start of loop to handle case where cursor is somewhere weird to begin with
- term.setCursorPos( 1, 1 )
- local nTime = os.time()
- print( "The time is "..textutils.formatTime( nTime, false ) )
- print()
- if nTime < 18 and nTime > 6 then
- print("Have a good day at Trivnab Enterprises!")
- else
- print("Have a good night at Trivnab Enterprises!")
- end
- sleep(1)
- until nil
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement