install a SIGINT handler to draw quit ,make sure cursor is reset