Thanks Ian, That did the job for me. But still Ctrl-y suspended the console. Ctrl-z was ignored though. I could use Ctrl-y for exiting the program, but that will not reset the keyboard interrupts. Is there a way to catch Ctrl-y or to reset the keyboard interrupts before suspending the console ? With Regards, Sujan Shakya