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?
Well, I believe it’s actually echoing ‘caret’-C, not the
CTRL-Ccharacter. Other than that, this is actually a function of thettydriver, not the shell; the driver actually intercepts theCTRL-Ccharacter, generates aSIGINTto the process, and echos the characters. If there is a way to do it on your system (this will be heavily OS dependent) it would be documented in the stty(1) man page or the tty(4) driver page.