Posted 28 March 2012 - 03:19 PM
Description
Makes it possible to have I/O over multiple monitors at once.
New functions
syncScreens( bSync )
Clarification
I haven't put this together into a standalone addon yet, hence these are direct changes to the stock Term API.
It's a Proof-of-Concept, if you will, which I only made out of curiosity by playing around with the redirection code of the Term API.
That means in order to make use of this, you need to replace the original file (and reboot the CC computers).
But before you replace anything: Make a backup of the original file!
Installation
Download:
UsageNow, to synchronize the I/O over all screens (i.e. all monitors you've redirected to, as well as the original terminal), issue the following command: To have the last monitor's dimensions take precedence over all other screens, issue this:
Notes
I haven't yet tested if / how the different monitor text sizes affect the behaviour.
Oh, and just in case someone's still wondering what POC stands for: It's an acronym for Proof-of-Concept.
K, I hope my explanations were sufficient enough. If there are any questions or ambiguities left, ask away.
Other than that, have fun. :o/>/>
Makes it possible to have I/O over multiple monitors at once.
New functions
syncScreens( bSync )
- true - Synchronizes I/O over all screens.
- false or nil - Only last active screen has I/O interaction. (native behaviour)
- true - Screen dimensions of the last monitor in the chain take precedence. (native behaviour)
- false or nil - Dimensions of the CC terminal take precedence.
Clarification
I haven't put this together into a standalone addon yet, hence these are direct changes to the stock Term API.
It's a Proof-of-Concept, if you will, which I only made out of curiosity by playing around with the redirection code of the Term API.
That means in order to make use of this, you need to replace the original file (and reboot the CC computers).
But before you replace anything: Make a backup of the original file!
Installation
- Download the modified term. (If you downloaded the .zip, unpack the term file from it first)
- Go into: .minecraft/mods/ComputerCraft/lua/rom/apis/
- Make a backup of the original term file within that folder!
- Place the previously downloaded term into that folder.
- Reboot currently running in-game computers for changes to take effect on them.
Download:
- [attachment=118:term.zip]
- Pastebin: http://pastebin.com/Tm488ymb
Usage
- Redirect terminal I/O to another monitor by issuing (as usual):
term.redirect( monitor )
…where 'monitor' is the wrapped monitor-peripheral of your choice.
Do this as many times in a row as you like.
term.syncScreens( true )
To turn I/O Synchronization off again (and return I/O to the last monitor in the redirect stack):
term.syncScreens( false )
term.redirectDims( true )
To return precedence back to the original terminal's dimensions:
term.redirectDims( false )
Notes
I haven't yet tested if / how the different monitor text sizes affect the behaviour.
Oh, and just in case someone's still wondering what POC stands for: It's an acronym for Proof-of-Concept.
K, I hope my explanations were sufficient enough. If there are any questions or ambiguities left, ask away.
Other than that, have fun. :o/>/>