Dirtbag's Blog

Disabling visual ctrl-c "^C" in ssh sessions

[ link: disable_ctrl-c | tags: linux bash | updated: Fri, 17 Apr 2020 12:12:08 -0400 ]

After upgrading my bash shell at some point, I noticed that when whenever I hit ctrl-c, ^C would annyingly show up on my terminal.

[jason@badman ~]$ ^C
[jason@badman ~]$ 

put the following code in your ~/.inputrc and then it will be disabled.

set echo-control-characters off

-db

Like this article? Buy me a beer!