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

Ability to terminate processes using multishell API

Started by MineRobber___T, 26 March 2016 - 02:23 AM
MineRobber___T #1
Posted 26 March 2016 - 03:23 AM
One thing that I feel is missing from the Multishell functionality of Advanced Computers is the ability to terminate programs. What I would like this for is to create a process manager program.
AlexDevs #2
Posted 26 March 2016 - 01:34 PM
CTRL + T
Bomb Bloke #3
Posted 26 March 2016 - 01:42 PM
CTRL + T

Not sure if trolling or…
MineRobber___T #4
Posted 26 March 2016 - 02:50 PM
CTRL + T

I meant using Lua, I'm sorry that I didn't make that clear. The idea would be that the program keeps track of tab IDs and what programs are attached, so you can either kill a program by ID, or you can kill all instances of one program.
KingofGamesYami #5
Posted 26 March 2016 - 05:38 PM
os.queueEvent( "terminate" )
moTechPlz #6
Posted 26 March 2016 - 07:08 PM
Terminating a specific process is probably not possible without adding some code to multishell.
Edited on 26 March 2016 - 06:11 PM
Bomb Bloke #7
Posted 26 March 2016 - 10:30 PM
os.queueEvent( "terminate" )

Multishell prevents certain events (most anything related to user input) from reaching anything other than the currently focused tab. Even if you queued the event and then switched tabs before yielding, it'd likely fail to close the target tab completely (as the event may not close everything, or may be completely ignored by the current process).
wilcomega #8
Posted 27 March 2016 - 01:34 PM
I Argree, it would be usefull to have some kind of process library, to talk, start, suspend, continue and stop other programs.
Konlab #9
Posted 16 April 2016 - 09:55 AM
Or just write your own multishell.
[Self promotion]
You can use my multitasking library in my signature, just don't use the things with windows because they don't work for some random reason
[/Self promotion]