[BUG] Text overlapping/doubling in terminal after scrolling up or down.
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?
Bug Report Title:
Text overlapping/doubling in terminal after scrolling - screen buffer not clearing properly
Description:
Claude Code's terminal output is not properly clearing the screen buffer when scrolling up or down, causing text
to overlap and display multiple times. New text is being rendered on top of old text instead of replacing it,
making the output unreadable.
Steps to Reproduce:
- Start Claude Code in terminal
- Run a task that generates substantial output (e.g., build operations, file edits)
- Scroll up or down in the terminal
- Observe text overlapping and doubling
Expected Behavior:
- Terminal should properly clear previous text when scrolling
- New text should replace old text, not overlay on top of it
- Screen buffer should be managed correctly to prevent text overlap
Actual Behavior:
- Text appears doubled/overlapped on the same lines
- Previous content is not cleared before rendering new content
- Examples from screenshots:
- Code lines (CFLAGS, INCDIR, LIBS) appear duplicated on top of each other
- Status messages like "accept edits on (shift+tab to cycle)" repeat multiple times
- Makes output difficult or impossible to read
Environment:
- OS: Windows (running in WSL2 based on context)
- Platform: Linux 6.6.87.2-microsoft-standard-WSL2
- Claude Code version: Claude Code v2.0.32
- Terminal: Ubuntu
Screenshots:
- claudecodeerror.jpg - Shows overlapping CFLAGS/INCDIR/LIBS definitions
- claudecodeerror2.jpg - Shows repeated "accept edits" status messages
Additional Context:
This appears to be a terminal control character or screen buffer management issue. The problem persists during
longer operations and makes it difficult to read Claude's output and responses.
What Should Happen?
text shouldn't double up/glitch out when scrolling up/down.
Error Messages/Logs
Steps to Reproduce
n/a
Claude Model
Sonnet (default)
Is this a regression?
I don't know
Last Working Version
n/a
Claude Code Version
Claude Code v2.0.32
Platform
Anthropic API
Operating System
Windows
Terminal/Shell
Other
Additional Information
I am running Claude Code within the Ubuntu terminal window.
This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗