in reply to signal handler output
Is this the shell, the terminal or what?
It's the shell controlling the terminal. Here's what happens in bash if I interrupt both these commands:
$ sleep 30 ^C $ stty -ctlecho; sleep 30 $
As for perl, I expect IO::Stty might be able to do it but I've never used it for that.
In Section
Seekers of Perl Wisdom