Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if fs.exists("OSI.nfp") then
- H = paintutils.loadImage("OSI.nfp")
- paintutils.drawImage(H,1,1)
- elseif fs.exists("OSI.ascii") then
- H = fs.open("OSI.ascii","r")
- print(H.readAll())
- H.close()
- end
- function cur(y)
- term.setCursorPos(8,y)
- end
- cur(1)
- term.setBackgroundColor(colors.black)
- term.setTextColor(colors.lime)
- print("COLOR MODE : ")
- cur(2)
- print("FREE SPACE : ")
- cur(3)
- print("USED SPACE : ")
- cur(4)
- print("CAPACITY : ")
- term.setTextColor(colors.white)
- term.setCursorPos(24,1)
- print(term.isColor())
- term.setCursorPos(24,2)
- print((fs.getFreeSpace("/")/1000).." KB")
- term.setCursorPos(24,3)
- print(((fs.getCapacity("/")-fs.getFreeSpace("/"))/1000).." KB")
- term.setCursorPos(24,4)
- print((fs.getCapacity("/")/1000).." KB")
Advertisement
Add Comment
Please, Sign In to add comment