Severe screen flickering in VS Code/Cursor integrated terminal on Windows
Description
Claude Code causes severe screen flickering (~2-3 times per second) when running in VS Code/Cursor integrated terminal on Windows. The flickering is so intense it can trigger discomfort even for users without photosensitivity issues.
Environment
- OS: Windows 10/11
- Terminal: VS Code / Cursor integrated terminal (xterm.js)
- Shell: Git Bash, PowerShell (both have the issue)
- Claude Code version: Latest
Steps to Reproduce
- Open VS Code or Cursor on Windows
- Open integrated terminal (Git Bash or PowerShell)
- Run
claudeand send any prompt - Observe the screen flickering rapidly during response streaming
Expected Behavior
Smooth text streaming without full screen re-renders.
Actual Behavior
The entire terminal buffer flickers/re-renders on every streaming chunk, causing rapid screen flashing.
Workarounds Tested (None Worked)
terminal.integrated.gpuAcceleration: tried "on", "canvas", "off"terminal.integrated.smoothScrolling: true- Different shells (Git Bash, PowerShell)
- Various scrollback buffer sizes
Working Alternative
Running Claude Code in Windows Terminal (standalone app) works perfectly without flickering. This confirms the issue is specific to xterm.js renderer used in VS Code/Cursor.
Root Cause Hypothesis
Ink (React for CLI) appears to re-render the entire screen buffer on every streaming chunk instead of doing incremental updates. xterm.js handles this poorly compared to Windows Terminal's renderer.
Suggested Fix
- Implement incremental/partial screen updates instead of full re-renders
- Or provide a
--no-animation/--reduced-motionflag - Or add a config option to disable animated streaming output
This significantly impacts usability for anyone using Claude Code within their IDE's integrated terminal.
Update: Windows Terminal also flickers. The issue is in Claude Code's Ink renderer itself, not in any specific terminal emulator.
I encountered the same problem.
I also have the same issue, but no fixes worked.
this has been an issue for months, i dont understand why the dev's dont fix this before fking making any more dumbass plugins
Have the same issue
Same issue in Termius - constantly rescrolls to all sorts of strange positions whilst working. It's quite obstructive to actually getting things done efficiently, as I can't see what the latest activity is without refocusing the console and pressing an arrow.
this needs to be fixed asap. very annoying
Closing for now — inactive for too long. Please open a new issue if this is still relevant.
This issue has been automatically locked since it was closed and has not had any activity for 7 days. If you're experiencing a similar issue, please file a new issue and reference this one if it's relevant.