guusvanwalstijn

nieuwslezer

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