Workaround so only one CTRL-C is required for a new prompt in --gui=qt

I have a habit of using CTRL-C to clear lines in a terminal (and MATLAB), so it is really annoying to have to press it twice in ipython.

This is a kludgy, posix only workaround, and I only tested it for Python 2.7 on Linux and Windows.