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(1)
- 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 ) )
- local towritedown = ""..textutils.formatTime( nTime, false ).." "
- print( towritedown )
- monitor.clear()
- monitor.setCursorPos( 1, 1 )
- monitor.write(towritedown)
- -- if nTime < 18 and nTime > 6 then
- -- print("Have a good day!")
- -- else
- -- print("Have a good night!")
- -- end
- sleep(1)
- until nil
Add Comment
Please, Sign In to add comment