You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
CLIIssues related to the Codex CLITUIIssues related to the terminal user interface: text input, menus and dialogs, and terminal displayenhancementNew feature or request
When composing a long multi-line prompt in the TUI, there's no quick way to clear the entire input buffer at once. Currently, users must repeatedly use Ctrl+U (kill to beginning of line) or Ctrl+K (kill to end of line) multiple times to clear a multi-line prompt, which is tedious.
This is a common workflow when:
You've drafted a long prompt but want to start fresh
You've pasted content that you want to discard entirely
You want to quickly switch context without submitting
Proposed solution
Add a keyboard shortcut to clear the entire input buffer in one action. Suggested bindings (pick one or make configurable):
Platform
Shortcut
Rationale
All
Ctrl+Shift+U
Extends existing Ctrl+U (kill line) to "kill all"
All
Alt+U
Consistent with Emacs-style bindings already used
macOS
Cmd+Backspace
Standard macOS "delete to beginning"
The killed text should be added to the kill buffer so Ctrl+Y can restore it if needed (consistent with existing kill/yank behavior).
Alternatives considered
Repeatedly pressing Ctrl+U – Current workaround, tedious for multi-line input
Using /new – Clears input but also resets the entire conversation (too destructive)
Esc to exit and re-enter – Doesn't clear the buffer, text persists
Implementation notes
The textarea.rs already has kill_to_beginning_of_line() and kill_to_end_of_line(). A new method like kill_all() could:
Related: #3049 (Configurable Hotkeys Support) - if configurable keybindings are implemented, this shortcut could be part of that system. However, this issue can be addressed independently as a sensible default binding.
CLIIssues related to the Codex CLITUIIssues related to the terminal user interface: text input, menus and dialogs, and terminal displayenhancementNew feature or request
Activity
jakvbs commentedon Feb 3, 2026
Related: #3049 (Configurable Hotkeys Support) - if configurable keybindings are implemented, this shortcut could be part of that system. However, this issue can be addressed independently as a sensible default binding.
etraut-openai commentedon Feb 3, 2026
Does Ctrl+C work for you?
jakvbs commentedon Feb 3, 2026
It does, thanks for help. Closing it