morgon has asked for the wisdom of the Perl Monks concerning the following question:
Hi,
as a (contrieved) example that catches SIGINT consider this:
When I run this in bash and press Control-C to generate a signal I get the star printed, but I also get a "^C" in the output and I don't understand where this is coming from.$SIG{INT} = sub { print STDERR "*"; }; while(1) { sleep(1); print STDERR "."; }
So the output looks like
Where do these "^C"s come from? Is this the shell, the terminal or what? And is there a way to supress that from within a perl-script?.....^C*...^C*....^C*..
Many thanks!
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: signal handler output
by hippo (Bishop) on May 17, 2018 at 13:31 UTC | |
by Anonymous Monk on May 17, 2018 at 14:50 UTC |
Back to
Seekers of Perl Wisdom