This is a read-only snapshot of the ComputerCraft forums, taken in April 2020.
austin2162's profile picture

multishell

Started by austin2162, 10 August 2014 - 07:46 PM
austin2162 #1
Posted 10 August 2014 - 09:46 PM
Im trying to make something that processed request. So the request is received its sent to another shell to be processed, Is there any way to close another shell? When the processing finishes in the other shell is says "press any key to continue" and leaves the shell open. I tried using shell.exit() still stays open.
Bomb Bloke #2
Posted 11 August 2014 - 08:07 PM
I don't believe there is any command that'll specifically close a multishell tab, if that's what you're asking. It should close when the process it's running finishes. Odds are the "press any key" thing you're seeing isn't from multishell.
natedogith1 #3
Posted 12 August 2014 - 12:28 AM
Looking at the code for multishell, there indeed doesn't appear to be any way to close a tab. It also appears that the tab must get focus at some point or you'll get the 'Press any key to continue'. A simple solution might be something along these lines
local current=multishell.getFocus()
multishell.setFocus(shell.openTab(,program,argsuments))--shell.openTab could be multishell.launch if you wanted
multishell.setFocus(current)