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

Pausing Parallel

Started by PixelFox, 02 April 2016 - 08:35 PM
PixelFox #1
Posted 02 April 2016 - 10:35 PM
I am trying to make a piece of code that is running a file, and when you press the Control button, it would pause it. And when you press it again, it will resume, and ideas how?
Edited on 02 April 2016 - 08:41 PM
Lupus590 #2
Posted 02 April 2016 - 10:46 PM
Have a look at how the multishell program works you basically want to add your pause functionality to where it forwards events to the running program. You can rip out the bit where it allows multiple running programs (which, at a guess, should be in the same area)
Edited on 02 April 2016 - 08:47 PM