I'm currently designing a script that will, in the end, control a range of games with the ability to start and stop them all from the main script.
However, one of the games can only gracefully stop by pressing the 'ESC' key. How can I interpret this into a signal or something similar?
*The games are started with gamename.Popen() and then usually stopping is done by sending SIGINT or SIGQUIT.
Ideas?