Re: Is it possible to catch Ctrl-C keystroke?
- From: Bezoar <cwjolly@xxxxxxxxx>
- Date: Fri, 27 Jun 2008 19:42:40 -0700 (PDT)
On Jun 27, 8:41 pm, "palm...@xxxxxxxxx" <palm...@xxxxxxxxx> wrote:
On Jun 28, 3:26 am, Victor <vhnguy...@xxxxxxxxx> wrote:
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
What platform?
On unix for sure you can use the Tclx extension to handle the SIGINT
signal that results from a Ctrl-C.
I also remember someone created a signals extension; google that. You
can also use Expect extension to
catch input from user ( interact ) using \003 as the regexp .
Carl
.
- Follow-Ups:
- Re: Is it possible to catch Ctrl-C keystroke?
- From: Donal K. Fellows
- Re: Is it possible to catch Ctrl-C keystroke?
- From: Cameron Laird
- Re: Is it possible to catch Ctrl-C keystroke?
- References:
- Is it possible to catch Ctrl-C keystroke?
- From: Victor
- Re: Is it possible to catch Ctrl-C keystroke?
- From: palmtcl@xxxxxxxxx
- Is it possible to catch Ctrl-C keystroke?
- Prev by Date: Re: Is it possible to catch Ctrl-C keystroke?
- Next by Date: Re: ISO "anecdotal evidence"
- Previous by thread: Re: Is it possible to catch Ctrl-C keystroke?
- Next by thread: Re: Is it possible to catch Ctrl-C keystroke?
- Index(es):