Is it possible to catch Ctrl-C keystroke?



Hi,

While running a TCL script, if someone hits Ctrl-C, does anyone know
if there is a way to capture such Ctrl-C character (so my script can
do some minimum cleanup job first before quitting)?

Thanks,
Victor
.



Relevant Pages

  • Re: Is it possible to catch Ctrl-C keystroke?
    ... While running a TCL script, if someone hits Ctrl-C, does anyone know ... if there is a way to capture such Ctrl-C character (so my script can ...
    (comp.lang.tcl)
  • USING FILES IN TCL
    ... i wana know how to capture an output and store it in text file. ... i have to capture the q outfut of a D flip flop. ... how do i do this using tcl script. ...
    (comp.lang.vhdl)