i m writing a c++ programe over linux7.0. i want to capture the console signals like close terminal window and Ctrl+d or user close the terminal window by pressing the close button so that i can terminate my programe as well. if some body has any idea please guid me.
a bundle of thanks for advance
|