Hi Ken, check in TSystem.h the member functions for manipulating event handlers. You could use IgnoreInterrupt() if ctrl-c should be ignored while doing socket I/O for example. Let me know if something is not clear. Cheers, Fons. On Tue, Nov 20, 2001 at 09:43:13AM -0600, Ken Teh wrote: > Is it possible to install a handler in a root "script" to trap keyboard > breaks? I have a script that contacts a server via a TSocket and on each > keyboard break, the server goes defunct. If the TSocket is closed > properly, this does not happen. > > Thanks! Ken > > > /+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++\ > | Kenneth Teh Email: teh@phy.anl.gov | > | Argonne National Laboratory Tel: 630-252-3073 | > | 9700 S. Cass Ave. Fax: 630-252-2864 | > | Argonne, IL 60439 | > \+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++/ > -- Org: CERN, European Laboratory for Particle Physics. Mail: 1211 Geneve 23, Switzerland E-Mail: Fons.Rademakers@cern.ch Phone: +41 22 7679248 WWW: http://root.cern.ch/~rdm/ Fax: +41 22 7679480
This archive was generated by hypermail 2b29 : Tue Jan 01 2002 - 17:51:09 MET