Ctrl-D unexpectedly terminates session instead of deleting characters in macOS
# Ctrl-D unexpectedly terminates session instead of deleting characters in macOS
## Description
When using Claude Code CLI on macOS, pressing Ctrl-D unexpectedly terminates the entire session instead of deleting characters forward as it normally would in standard macOS terminals.
## Expected Behavior
Ctrl-D should delete the character at the cursor position (forward delete), matching standard macOS terminal behavior.
## Current Behavior
Pressing Ctrl-D immediately terminates the Claude Code session, causing loss of context and requiring restart.
## Environment Information
- OS: macOS 15.4.1 (Sequoia)
- Terminal: xterm-256color (Node.js based terminal emulator)
- Claude Code version: 0.2.107 (Claude Code)
- Shell: zsh
## Additional Information
This behavior is disruptive to the normal workflow as many macOS users rely on Ctrl-D for forward deletion. The termination happens without warning or confirmation, potentially causing loss
of work.
## Steps to Reproduce
- Start Claude Code CLI with
claudecommand - Begin typing a prompt
- Position cursor within the text
- Press Ctrl-D
- Observe that the session terminates instead of deleting a character
This issue has 11 comments on GitHub. Read the full discussion on GitHub ↗