Re: Is it possible to catch Ctrl-C keystroke?
- From: claird@xxxxxxxxx (Cameron Laird)
- Date: Sat, 28 Jun 2008 19:10:19 +0000
In article <b53a39dc-d309-4c86-b4d7-6fce803e89cd@xxxxxxxxxxxxxxxxxxxxxxxxxxxx>,
Bezoar <cwjolly@xxxxxxxxx> wrote:
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)?
.
.
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
Some of these claims are at least potentially misleading.
<URL: http://wiki.tcl.tk/1886 > has more details. I sum-
marize: yes, on Unix it's good to approach this problem
in terms of signals.
.
- References:
- Is it possible to catch Ctrl-C keystroke?
- From: Victor
- Re: Is it possible to catch Ctrl-C keystroke?
- From: palmtcl@xxxxxxxxx
- Re: Is it possible to catch Ctrl-C keystroke?
- From: Bezoar
- Is it possible to catch Ctrl-C keystroke?
- Prev by Date: Re: ISO "anecdotal evidence"
- 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):