[BUG] Numpad slash key outputs raw CSI u escape sequence instead of / character
Resolved 💬 13 comments Opened Jan 8, 2026 by dmurat Closed Feb 27, 2026
Preflight Checklist
- [x] I have searched existing issues and this hasn't been reported yet
- [x] This is a single bug report (please file separate reports for different bugs)
- [x] I am using the latest version of Claude Code
What's Wrong?
When pressing the forward slash (/) key on the numeric keypad, Claude Code displays the raw escape sequence [57410u in the input prompt instead of the expected / character.
Analysis:
The sequence [57410u is a CSI u (kitty keyboard protocol) escape sequence where 57410 is the keycode for KP_Divide (numeric keypad division/slash). It appears Claude Code's terminal input handler is not properly translating extended keyboard protocol sequences for numpad keys.
What Should Happen?
A forward slash / character should be inserted at the cursor position.
Error Messages/Logs
Steps to Reproduce
- Open Claude Code CLI
- Start typing in the prompt
- Press the / key on the numeric keypad (not the main keyboard)
Claude Model
Opus
Is this a regression?
Yes, this worked in a previous version
Last Working Version
2.0.76
Claude Code Version
2.1.1 (Claude Code)
Platform
Anthropic API
Operating System
macOS
Terminal/Shell
iTerm2
Additional Information
_No response_
This issue has 13 comments on GitHub. Read the full discussion on GitHub ↗