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

How do I stop all Multi-Tasking shells?

Started by MarcoPolo0306, 20 August 2016 - 03:29 PM
MarcoPolo0306 #1
Posted 20 August 2016 - 05:29 PM
How do I stop multi-tasking shells with commands from other programs?
Please answer!
Lyqyd #2
Posted 20 August 2016 - 08:08 PM
Moved to Ask a Pro.
KingofGamesYami #3
Posted 20 August 2016 - 08:22 PM
multishell does not offer this functionality. You could possibly crash it and provide such functionality yourself, but that would be nontrivial. What do you want to accomplish?
Lyqyd #4
Posted 20 August 2016 - 08:31 PM
Queueing a terminate event and then setting focus to another tab would work in some cases, but not all.
Bomb Bloke #5
Posted 21 August 2016 - 01:11 AM
What do you mean when you say you want to stop "all" multi-tasking shells? Technically shutting down the computer would fulfill that criteria…

If you wish to disable the multishell system completely, see the settings API.
Luca_S #6
Posted 21 August 2016 - 12:10 PM
Queueing a terminate event and then setting focus to another tab would work in some cases, but not all.
If you are wondering the code for that would look like that:

multishell.setFocus(pidtokill)
os.queueEvent("terminate")
but if the app prevents termination there is no way, you could modify multishell to provide a function to forcefully kill a process.
MarcoPolo0306 #7
Posted 22 August 2016 - 09:15 PM
What do you mean when you say you want to stop "all" multi-tasking shells? Technically shutting down the computer would fulfill that criteria…

If you wish to disable the multishell system completely, see the settings API.
What Setting do i use to disable them?
Bomb Bloke #8
Posted 23 August 2016 - 02:11 AM
bios.use_multishell
MarcoPolo0306 #9
Posted 26 August 2016 - 12:11 AM
bios.use_multishell

What do I put it in?
KingofGamesYami #10
Posted 26 August 2016 - 12:24 AM
set and save it.
Lupus590 #11
Posted 26 August 2016 - 12:57 AM
or you can use the set program, set bios.use_multishell false
MarcoPolo0306 #12
Posted 26 August 2016 - 01:44 AM
Thanks