[BUG] Claude Code 2.0.63 UI rendering broken + keyboard navigation not working on Ubuntu 24.04 via SSH
Status Fixed / completed
Maintainer reply None cached
Workaround ✓ Mentioned in thread ↓
Activity 7 comments · opened Dec 9, 2025 · closed Aug 19, 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?
Fresh install of Claude Code 2.0.63 on Ubuntu 24.04 via SSH has two critical issues:
- UI rendering completely broken on startup — All UI elements (menu items, text, ASCII art logo) render at wrong coordinates, scattered randomly across the terminal. Claude Code fails to detect terminal dimensions correctly on initial launch. Resizing the terminal window triggers re-render and fixes layout.
- Keyboard navigation non-functional — After fixing layout via resize, arrow keys still don't work for menu navigation (theme selector, etc.). Number keys and vim-style keys (j/k) also don't respond.
See attached screenshots showing the progression.
What Should Happen?
- UI should render correctly on startup, respecting terminal dimensions
- Arrow keys and keyboard navigation should work for menu selection
Error Messages/Logs
No error messages — the UI simply renders incorrectly and keyboard input is ignored.
Terminal diagnostics show everything is correct:
$ stty size → 52 140
$ echo $TERM → xterm-256color
$ locale → en_US.UTF-8
Node.js receives correct key codes:
$ node -e "process.stdin.setRawMode(true); process.stdin.on('data', d => console.log([...d])); process.stdin.resume();"
Arrow up outputs: [ 27, 91, 65 ] ✓
Steps to Reproduce
- Fresh Ubuntu 24.04 LTS server
- Install Node.js 20.x via NodeSource
- Install Claude Code:
npm install -g @anthropic-ai/claude-code@2.0.63 - SSH into server from macOS (iTerm2 or Terminal.app)
- Run
claude - Observe: UI is broken, text scattered across screen (Screenshot 1)
- Resize terminal window → layout fixes (Screenshot 2)
- Try arrow keys to navigate theme selector → nothing happens
- Downgrade:
npm install -g @anthropic-ai/claude-code@2.0.62 - Run
claude→ everything works (Screenshot 3)
Claude Model
None
Is this a regression?
Yes, this worked in a previous version
Last Working Version
2.0.62
Claude Code Version
2.0.63
Platform
Anthropic API
Operating System
Ubuntu/Debian Linux
Terminal/Shell
iTerm2
Additional Information
<img width="2880" height="1558" alt="Image" src="https://github.com/user-attachments/assets/9d0d2221-236d-408f-b651-8e78d5ed99c6" />
<img width="2800" height="1566" alt="Image" src="https://github.com/user-attachments/assets/fa1710fc-81ff-40dd-a002-87f86bd369d2" />
<img width="1441" height="782" alt="Image" src="https://github.com/user-attachments/assets/7780f037-e999-44f7-84b8-70ab1231134b" />
Showing cached comments. Read the full discussion on GitHub ↗
6 Comments
Found 3 possible duplicate issues:
This issue will be automatically closed as a duplicate in 3 days.
🤖 Generated with Claude Code
I've reviewed all 3 suggested issues — none of them match this bug:
Key differences:
This is a new bug, not a duplicate.
Confirming this bug persists in v2.0.76 on WSL2
Experiencing the identical issue on WSL2 (Ubuntu on Windows 11) with Claude Code v2.0.76.
Symptoms match exactly:
^[[A^[[Bliterally, Enter adds newlineKey diagnostic - Raw mode works fine in Node.js:
This proves the issue is not a WSL2/Node.js limitation - raw mode is fully supported. The bug is specifically in Claude Code's Ink TUI failing to enable raw mode during initialization.
Environment:
Other notes:
~/.claude.jsonhas"theme": "dark"set, but theme selector still appears (config ignored)claude --print "prompt"works perfectlypowershell.exe -Command '$env:USERPROFILE') but no TUI/Ink initialization logsBroken render on startup
<img width="1026" height="739" alt="Image" src="https://github.com/user-attachments/assets/9d33d7c0-5314-4da0-b640-9b9998fee120" />
Fixed layout after resize but ^[[A^[[B visible from arrow keys:
<img width="779" height="605" alt="Image" src="https://github.com/user-attachments/assets/8b9cad34-dcbb-466b-8d97-1c151cd33397" />
Hello.
Confirming this bug persists in v2.1.6 on Debian GNU/Linux 13 via SSH
✅ UI renders broken on startup (ASCII art scattered, menu items diagonal)
✅ Resizing terminal fixes the layout
✅ Keyboard navigation completely dead after resize - arrow keys print ^[[A^[[B literally, Enter adds newline
Terminals tested: Termius, VScode terminal.
Installed via
curl -fsSL https://claude.ai/install.sh | bash 2>&1
Also tried
2.1.5 — native build
2.0.62 — native build
2.1.5 — npm
1.0.128 — npm
The same effects
<img width="1654" height="1290" alt="Image" src="https://github.com/user-attachments/assets/de1b9206-29aa-41c2-a88d-14e9ea100765" />
Hello, its the same TUI glitch problem via ssh from android termiux to win 11 cc
I still can't exit my usage screen in claude code. I tried ctrl-z + "fg" and it didn't work either to help me escape it. the only workaround seems to be fully exiting and restarting. Is there any way I can get past this or if it can be fixed?