macOS: ctrl+c sometimes stops working after backgrounding helix #10261
Issue DescriptionSometimes when I background helix editor (via ctrl+z), ctrl+c stops sending interrupts for the rest of my terminal session in that window. I get no indication that I ever hit ctrl+c except for a literal Here's the output of $ stty -a
speed 9600 baud; 75 rows; 425 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;
If I run Ctrl+c still works to comment out lines in Helix, so the keystroke is still getting processed by Ghostty. I haven't found any way to restore ctrl+c interrupt functionality in a session once it stops working. Expected Behavior
Actual Behavior
Reproduction StepsUnfortunately I can't reproduce this consistently. But here's my workflow that seems to eventually reproduce the issue, often after a few hours of coding.
Ghostty LogsNo response Ghostty VersionOS Version InformationmacOS 15.3.2 (24D81) (Linux only) Display ServerNone (Linux only) Desktop Environment/Window ManagerNo response Minimal Ghostty Configuration# As I can't reproduce this consistently, I haven't got a minimal configuration.
# This is my entire configuration. The only option that I'd be remotely suspicious
# of is macos-option-as-alt, but option isn't involved here so it should be unrelated.
macos-option-as-alt = left
window-padding-x = 10
window-padding-y = 0,10
macos-titlebar-proxy-icon = hiddenAdditional Relevant ConfigurationHelix configHelix version: The only input-related setting that I have is [editor]
mouse = trueI acknowledge that:
|
Replies: 3 comments 3 replies
|
Ill also note from the above |
|
I've had this happen several times randomly so I looked further into it. I found this Open Radar bug report: AI summary of the report: Worse, after this premature return, macOS fails to restore the original signal mask. In zsh, this can leave SIGINT blocked, so Ctrl-C stops interrupting the shell and its child processes. The bad mask is inherited by subsequently launched programs. The supplied reproducer confirms the bug on macOS 26.5.2. Apple fixed it in macOS 27 beta 3. On affected systems, running trap - at the zsh prompt restores normal Ctrl-C behavior. Detecting the issue |

Ill also note from the above
^CbeingSIGINTis entirely done by the shell not the terminal since you are still seeing a^Cliteral that seems like a shell problem