Skip to content

feat(userland): cleaned up the shell's Ctrl+C and signal-death reporting - #171

Merged
FlareCoding merged 1 commit into
masterfrom
pr/shell-signal-ux
Aug 13, 2026
Merged

feat(userland): cleaned up the shell's Ctrl+C and signal-death reporting#171
FlareCoding merged 1 commit into
masterfrom
pr/shell-signal-ux

Conversation

@FlareCoding

Copy link
Copy Markdown
Owner

Summary

  • A ^C at the shell prompt was silently swallowed, and every signal death printed "Terminated by signal", including routine SIGINT deaths the terminal's ^C echo already narrates.
  • The line editor now handles ^C readline-style: repaint with the cursor parked at end of line, print ^C, discard the buffer, and start a fresh prompt.
  • reap_status matches bash's quiet list: SIGINT and SIGPIPE deaths report nothing, SIGTERM gains the "Terminated" label, and crash labels plus 128+sig exit codes stay unchanged.

Made with Cursor

A ^C at the prompt was silently swallowed, and every signal death got a
"Terminated by signal" label even for routine SIGINT and SIGPIPE exits
the terminal already narrates. The prompt now discards the line
readline-style, and reap_status matches bash's quiet list.

Co-authored-by: Cursor <cursoragent@cursor.com>
@FlareCoding
FlareCoding merged commit 75a4fc3 into master Aug 13, 2026
15 checks passed
@FlareCoding
FlareCoding deleted the pr/shell-signal-ux branch August 13, 2026 06:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant