It originally used pcall to stop [ctrl] + T on the read function however in the latest versions of computercraft pcall is not working as it used too.
I have tried to use os.pullEvent = os.pullEventRaw however my program is running in parallel so I get a "parallel: 22 Expected string" error.
I could write a coroutine function myself but I have little understanding (even after reading a tutorial) of how they work.
Any help is much appreciated
Edit: I also tried making a loop that listens for the [ctrl] key and shuts down straight away, but it proved to be very unreliable.
----------------------------------------------
The fix for this was quite simple.
- Declare os.pullEvent = os.pullEventRaw
- Make sure all your event driven loops check the event they are driven by!
- £££ Profit!












