title: Testing CTRL-Z in Python script
body: <p>I'm using a while true infinite loop and I want to be able to test if CTRL-Z is press within the loop because I want to execute some more piece of code before exiting the main program.  A short example would help me.</p>