Advertisement
domi02198

Computercraft/Monitor [German]

Feb 9th, 2013
40
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.52 KB | None | 0 0
  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
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement