Keyboard signals
am 26.08.2010 01:31:04 von Barry Brevik
Environment is Active Perl 5.8.8 on Windows.
Does anyone know if there is a keystroke combo that will result in a
SIG{QUIT} in the currently running Perl app?
I know that SIG{INT} and SIG{BREAK} happen on CTRL-C and CTRL-Break.
Thanks,
Barry Brevik
_______________________________________________
ActivePerl mailing list
ActivePerl@listserv.ActiveState.com
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
RE: Keyboard signals
am 26.08.2010 02:21:19 von Jan Dubois
On Wed, 25 Aug 2010, Barry Brevik wrote:
>
> Environment is Active Perl 5.8.8 on Windows.
>
> Does anyone know if there is a keystroke combo that will result in a
> SIG{QUIT} in the currently running Perl app?
>
> I know that SIG{INT} and SIG{BREAK} happen on CTRL-C and CTRL-Break.
These are the only 2 signals supported by the Win32 API, so there is
no keystroke combo that generate SIGQUIT.
See also:
http://msdn.microsoft.com/en-us/library/ms686016%28VS.85%29. aspx
Cheers,
-Jan
_______________________________________________
ActivePerl mailing list
ActivePerl@listserv.ActiveState.com
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
Re: Keyboard signals
am 26.08.2010 02:24:17 von Bill Luebkert
On 8/25/2010 4:31 PM, Barry Brevik wrote:
> Environment is Active Perl 5.8.8 on Windows.
>
> Does anyone know if there is a keystroke combo that will result in a
> SIG{QUIT} in the currently running Perl app?
>
> I know that SIG{INT} and SIG{BREAK} happen on CTRL-C and CTRL-Break.
I get a QUIT on either Ctrl-Break or CTRL-ScrollLock (but not on my
remapped CapsLock key - only on the real ones) and INT on Ctrl-C.
Not sure if that's of any use. I'm using tcsh though. In cmd.exe,
I also get an INT on Ctrl-X.
_______________________________________________
ActivePerl mailing list
ActivePerl@listserv.ActiveState.com
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
Re: Keyboard signals
am 26.08.2010 02:49:29 von Bill Luebkert
On 8/25/2010 5:32 PM, Barry Brevik wrote:
>> Not sure if that's of any use. I'm using tcsh though. In
>> cmd.exe, I also get an INT on Ctrl-X.
>>
>
> Interesting... On mine, CTRL-X does not give me anything.
My bad - I had tcsh running under cmd.exe for that scenario.
That's strange in itself - tcsh uses ^X for command completion
stuff. Maybe it's cmd.exe doing something with just children ????
_______________________________________________
ActivePerl mailing list
ActivePerl@listserv.ActiveState.com
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
RE: Keyboard signals
am 26.08.2010 07:10:08 von Jan Dubois
On Wed, 25 Aug 2010, Jan Dubois wrote:
> On Wed, 25 Aug 2010, Barry Brevik wrote:
> >
> > Environment is Active Perl 5.8.8 on Windows.
> >
> > Does anyone know if there is a keystroke combo that will result in a
> > SIG{QUIT} in the currently running Perl app?
> >
> > I know that SIG{INT} and SIG{BREAK} happen on CTRL-C and CTRL-Break.
>
> These are the only 2 signals supported by the Win32 API, so there is
> no keystroke combo that generate SIGQUIT.
>
> See also:
>
> http://msdn.microsoft.com/en-us/library/ms686016%28VS.85%29. aspx
Oh, and anyways, SIGQUIT has been remapped on Windows to be the same as
SIGBREAK, so even if there was a keystroke that generated it, you still
wouldn't be able to distinguish it from SIGBREAK. $SIG{BREAK} and
$SIG{QUIT} are aliases for the same signal handler on Windows.
Cheers,
-Jan
_______________________________________________
ActivePerl mailing list
ActivePerl@listserv.ActiveState.com
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs