SHOW:
|
|
- or go back to the newest paste.
| 1 | side = "hier wird eingetragen wo der Monitor angeschlossen ist(left,top,...)" | |
| 2 | mon = peripheral.wrap(side) | |
| 3 | ||
| 4 | -- das mache ich das ich den monitor schnell reinigen kann | |
| 5 | -- da bleibt die farbe erhalten | |
| 6 | function clear() | |
| 7 | mon.clear() | |
| 8 | mon.setCursorPos(1,1) | |
| 9 | end | |
| 10 | -- da nicht | |
| 11 | function cclear() | |
| 12 | mon.clear() | |
| 13 | mon.setCursorPos(1,1) | |
| 14 | mon.setTextColor(colors.white) | |
| 15 | mon.setBackgroundColor(colors.white) | |
| 16 | end | |
| 17 | -- das man auch term.XX eingeben kann | |
| 18 | term.redirect(mon) | |
| 19 | -- Hier könnt ihr dann euer Program schreiben | |
| 20 | - | term.restore |
| 20 | + | term.restore() |