4 posts
Posted 22 May 2012 - 12:06 PM
Hey. There is the key combination to terminate a program. CTRL-T. I was wondering what the code is of that program. Kiss :P/>/>
351 posts
Posted 22 May 2012 - 01:07 PM
There isn't any really (or rather, it is not really in Lua) but if you tell us why you wanted the code, we might be able to help you out with your problem.
1604 posts
Posted 22 May 2012 - 05:58 PM
Well, when you press Ctrl+T for some time (I think it's for 1 second) it queues a "terminate" event on the computer, and when os.pullEvent receives that event it throws an error to terminate the running program. The code for that queues the event is in the mod itself so you can't change that. The os.pullEvent function is defined on the bios.lua file, you can open it and take a look at how it does it.