My terminal does not display ^C
when I press CTRL-C in my terminal. I have tried setting various STTY options and am not sure what is wrong.
I am running Mac OSX 10.11.16 and this phenomenon occurs in the Terminal app as well as the iTerm2 terminal emulator. I am not sure where I am going wrong. Here is the output of stty -a
:
speed 38400 baud; 39 rows; 171 columns;
lflags: icanon isig iexten echo echoe echok echoke -echonl echoctl
-echoprt -altwerase -noflsh -tostop -flusho pendin -nokerninfo
-extproc
iflags: -istrip icrnl -inlcr -igncr ixon -ixoff ixany imaxbel -iutf8
-ignbrk brkint -inpck -ignpar -parmrk
oflags: opost onlcr -oxtabs -onocr -onlret
cflags: cread cs8 -parenb -parodd hupcl -clocal -cstopb -crtscts -dsrflow
-dtrflow -mdmbuf
cchars: discard = ^O; dsusp = ^Y; eof = ^D; eol = <undef>;
eol2 = <undef>; erase = ^?; intr = ^C; kill = ^U; lnext = ^V;
min = 1; quit = ^\; reprint = ^R; start = ^Q; status = ^T;
stop = ^S; susp = ^Z; time = 0; werase = ^W;
bash
versions, it's subject to theecho-control-characters
readline option. It's enabled by default, placeset echo-control-characters off
in~/.inputrc
to disable printing that^C
. Other apps might have their own settings. Simple utilities using the terminal's "cooked" mode rely onstty [-]echoctl
.