Advertisement
rithrin

duel2 info

Apr 23rd, 2013
59
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.01 KB | None | 0 0
  1. sync.addTarget(target)
  2. -- add a target to use. Works like term.redirect.
  3. -- target: a table with the term functions.
  4.  
  5. sync.removeTarget(target)
  6. -- removes a target.
  7. -- target: a previoulsy added target table.
  8.  
  9. sync.addMonitor(side)
  10. -- adds the monitor on the given side to the targets.
  11. -- side: the side of the monitor to add.
  12.  
  13. sync.removeMonitor(side)
  14. -- removes the monitor on the given side from the targets.
  15. -- side: the side of the monitor to remove.
  16.  
  17. sync.addMonitors()
  18. -- adds all the attached monitors to the targets.
  19.  
  20. sync.removeMonitors()
  21. -- removes all the attached monitors from the targets.
  22.  
  23. sync.redirect(addTerminal)
  24. -- redirects the terminal output to all the targets
  25. -- addTerminal: set to true to add the default term to the targets.
  26.  
  27. sync.restore()
  28. -- restores the output to the previous state (console, monitor or whatever)
  29.  
  30. sync.useMaxSize(:D/>/>/>
  31. -- whether to use the maximum or minimum size of all the targets. b should be a boolean (true to use max size, false for min size).
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement