Force '^C' to be printed when editing current prompt, then aborting it

Posted by Stefan Lasiewski on Super User See other posts from Super User or by Stefan Lasiewski
Published on 2010-06-01T23:56:46Z Indexed on 2010/06/02 0:04 UTC
Read the original article Hit count: 252

Filed under:
|
|

This is the opposite of Prevent “^C” from being printed when aborting editing current prompt.

I'm using Bash. When I'm editing the commandline in Bash, and I hit Control-C to abort the commandline, the '^C' character does not display. I would like to see this character.

I tried commands like stty -ctlecho and stty ctlecho (which I borrowed from the other question), but this didn't work for me. This behavior seems to be true with my environment on Ubuntu, CentOS and MacOSX.

© Super User or respective owner

Related posts about unix

Related posts about bash