SHOW:
|
|
- or go back to the newest paste.
| 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 | - | shell.run("news")
|
| 9 | + | |
| 10 | monitor = peripheral.wrap("monitor_39")
| |
| 11 | - | monitor = peripheral.wrap("monitor_39") -- Hier je monitor indien je kabels gebruikt
|
| 11 | + | |
| 12 | print(w) | |
| 13 | - | smouseWidth = 0 |
| 13 | + | |
| 14 | - | mouseHeight = 0 |
| 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() |