Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Stop echoing ^C to terminal

Tags:

bash

How do I tell my bash to not echo ^C back to terminal?

If I just hit Ctrl+C in bash session, nothing is printed in my terminal window. But if I terminate some program with Ctrl+C, sometimes ^C is echoed and printed in my terminal. Is there any way to tell my bash I do not want echoing back ^C at all?

like image 419
zgoda Avatar asked Jan 06 '09 20:01

zgoda


1 Answers

Under Linux:

stty -ctlecho

(props to Charlie for the hint - I just went and looked it up)

like image 74
Andy Avatar answered Nov 16 '22 01:11

Andy