why Control-u to undo
Status Fixed / completed
Maintainer reply ✓ Yes — dicksontsai
Activity 4 comments · opened Jul 8, 2025 · closed Jul 15, 2025
💡 Likely answer: A maintainer (dicksontsai, collaborator)
responded on this thread — see the highlighted reply below.
c-u is used to clear current line in shells by default, it is now broken.
Version 1.0.44:
• New /export command lets you quickly export a conversation for sharing
• MCP: resource_link tool results are now supported
• MCP: tool annotations and tool titles now display in /mcp view
• Changed Ctrl+Z to suspend Claude Code. Resume by running fg. Prompt input undo is now Ctrl+U.
4 Comments
for some reason CMD+Backspace now runs undo instead of clear line for me, and ctrl+u clears the line like CMD+Backspace used to.
Terminal: Ghostty
You are correct -- sorry for the inconvenience caused by this binding. We have found a better binding that is
c-_, which corresponds to undo in both zsh and emacs. This will be addressed in the next release v1.0.45.exactly
c-_is standard binding in readline, available in bash, zsh and fish!This issue has been automatically locked since it was closed and has not had any activity for 7 days. If you're experiencing a similar issue, please file a new issue and reference this one if it's relevant.