I seem to have a peculiar issue with MacOS Terminal (or iTerm) from time to time and I cannot pinpoint the cause.
Whenever I need to kill a program in Terminal, Control + C doesn't work. Terminal simply outputs ^Z for every Control + C.
^Z^Z^Z^Z^Z^Z^Z
^Z^Z
^Z^Z^Z
^Z^Z^Z
It's not limited to Control + C:
- I get
^Xfor Control + X ^Cfor Control + C- And so on.
It happens from time to time. Sometimes it's working, then it's not, then it's back again working.
What I've tried:
Removed almost all Keyboard shortcuts that start with Control. I've left only those that start with Control + F.
Keyboard Viewer does the same (ie.
^Z).Modifier Keys are the default ones.
Tried to switch between apps to determine if an app may "hijack" the Control key, but I cannot pinpoint if that's the cause and if so, what's that app (ie. Chrome, TextMate, Notes.app).
Output of
stty -a:
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;```