guusvanwalstijn

nieuwslezer-2

Nov 18th, 2013
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. if fs.exists("news") then
  2. shell.run("news")
  3. print("running news and succes file excist")
  4. else
  5. print("Uw computer is niet voorzien van het bestand 'news', misschien helpt een herstart?")
  6. sleep(3)
  7. os.reboot()
  8. end
  9.  
  10. monitor = peripheral.wrap("monitor_39")
  11. w,h=monitor.getSize()
  12. print(w)
  13. print(h)
  14. loadheader()
  15. loadtext()
  16.  
  17. monitor.setBackgroundColour((colours.lime))
  18. monitor.clear()
  19. monitor.setCursorPos(1,1)
  20.  
  21. term.redirect(peripheral.wrap("monitor_39"))
  22. paintutils.drawLine(21, 4, 29, 4, colors.red)
  23. paintutils.drawLine(21, 5, 29, 5, colors.red)
  24. paintutils.drawLine(21, 6, 29, 6, colors.red)
  25. term.setCursorPos(23,5)
  26. monitor.write(header)
  27. print()
  28. print()
  29. print()
  30. print(text)
  31. term.restore()
Advertisement
Add Comment
Please, Sign In to add comment