Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister

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?

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

How do I use this? | Other CB clients
Other Users?
Others surveying the Monastery: (3)
As of 2021-09-28 00:43 GMT
Find Nodes?
    Voting Booth?

    No recent polls found