Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- monitorSide = "left"
- monitorScale = 3
- if not fs.exists( "fui" ) then
- print( "Performing first time setup." )
- shell.run( "pastebin","get", "306Ns1qg", "fui" )
- print("Finished. Please run program again.")
- error()
- end
- monitor = peripheral.wrap( monitorSide )
- monitor.setTextScale( monitorScale )
- os.loadAPI("fui")
- fui.setMonitorSide( monitorSide )
- os.sleep(5)
- w,h = fui.getSize()
- line = {}
- while true do
- line[1] = "Day #"..os.day()
- line[2] = textutils.formatTime(os.time(),false)
- fui.clear()
- for i=1,#line do
- fui.drawAlignText( line[i].."", "mid", w/2+1, 2+i, "white" )
- end
- os.sleep(0.8)
- end
Advertisement
Add Comment
Please, Sign In to add comment