anthropics / anthropics/claude-code

[Feature request] Separate keybindings for canceling operations vs clearing input window (CLI)

Open
#94,249 0 comments 0 reactions 0 assignees View on GitHub
area:tui enhancement keybindings platform:linux
Dominant language
Python
Stars
145k
Forks
23.1k
PR merge metrics
PR metrics pending

Description

**Bug Description**
Pressing Esc cancels the current operation. However, pressing Esc twice clears the input window. Each time I want to clear my input window and I'm typing too slowly, it cancels an operation. That's bad UX.

**Environment Info**
- Platform: linux
- Terminal: xterm-256color
- Version: 2.1.270
- Feedback ID: e407e752-86a5-458d-b25d-04614223a676

**Similar issues**
https://github.com/anthropics/claude-code/issues/83698
https://github.com/anthropics/claude-code/issues/87095
https://github.com/anthropics/claude-code/issues/87140

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by reproducing the Esc behavior in the CLI using the environment described: Linux, xterm-256color, version 2.1.270. Trace the existing Esc and double-Esc handling, then verify that canceling an operation and clearing the input window use separate keybindings without interfering with each other.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
cli
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Active
Clarity
Mostly clear
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.