LazerAio

AFETCH

Mar 18th, 2022
213
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.76 KB | None | 0 0
  1. if fs.exists("OSI.nfp") then
  2. H = paintutils.loadImage("OSI.nfp")
  3. paintutils.drawImage(H,1,1)
  4. elseif fs.exists("OSI.ascii") then
  5. H = fs.open("OSI.ascii","r")
  6. print(H.readAll())
  7. H.close()
  8. end
  9. function cur(y)
  10. term.setCursorPos(8,y)
  11. end
  12. cur(1)
  13. term.setBackgroundColor(colors.black)
  14. term.setTextColor(colors.lime)
  15. print("COLOR MODE : ")
  16. cur(2)
  17. print("FREE SPACE : ")
  18. cur(3)
  19. print("USED SPACE : ")
  20. cur(4)
  21. print("CAPACITY : ")
  22. term.setTextColor(colors.white)
  23. term.setCursorPos(24,1)
  24. print(term.isColor())
  25. term.setCursorPos(24,2)
  26. print((fs.getFreeSpace("/")/1000).." KB")
  27. term.setCursorPos(24,3)
  28. print(((fs.getCapacity("/")-fs.getFreeSpace("/"))/1000).." KB")
  29. term.setCursorPos(24,4)
  30. print((fs.getCapacity("/")/1000).." KB")
  31.  
Advertisement
Add Comment
Please, Sign In to add comment