Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re: signal handler output

by hippo (Chancellor)
on May 17, 2018 at 13:31 UTC ( #1214741=note: print w/replies, xml ) Need Help??


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.

Replies are listed 'Best First'.
Re^2: signal handler output
by Anonymous Monk on May 17, 2018 at 14:50 UTC

    Not the shell, it's the tty driver itself. For linux, that would be n_tty_receive_char() in drivers/tty/n_tty.c. Upon receiving the control char, it optionally echoes it.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1214741]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others meditating upon the Monastery: (8)
As of 2020-11-30 23:51 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?