Title: Claude Code Introduces NO_FLICKER Mode: Solving Terminal ...
URL Source: https://www.bestblogs.dev/status/2039447849675469060
Published Time: 2026-04-01 21:00:33
Markdown Content: Skip to main content Toggle navigation menu Toggle navigation menuArticlesPodcastsVideosTweetsSourcesNewsletters
⌘K
Change language Switch ThemeSign In
Narrow Mode
Claude Code Introduces NO_FLICKER Mode: Solving Terminal Flicker and Adding Mouse Interaction
Claude Code Introduces NO_FLICKER Mode: Solving Terminal Flicker and Adding Mouse Interaction
 ### 宝玉@dotey
Claude Code 终端全屏渲染模式
Claude Code 推出了一个新的终端渲染模式,代号 NO_FLICKER。启用方式很简单:CLAUDE_CODE_NO_FLICKER=1 claude。
用过 Claude Code 的人大概都有体感:对话一长,终端就开始闪屏、跳屏,VS Code 内置终端和 tmux 里尤其明显。这是终端渲染的先天限制,ANSI 转义码(终端用来画界面的底层指令)里没有"只刷新某一行"的操作,想更新画面就只能清屏重画,也就是肉眼可见的闪烁。
NO_FLICKER 模式的做法是接管整个终端视口,类似 vim 或 htop 那样切到备用屏幕缓冲区,只渲染当前可见的内容。这样一来闪烁消失了,内存和 CPU 占用也不再随对话增长而膨胀。
附带的彩蛋是鼠标支持:可以点击输入框定位光标,点击折叠的工具输出展开查看,点击 URL 直接打开,拖拽选中文本会自动复制到剪贴板。对终端应用来说,这套交互相当少见。
代价也有。原生的 Cmd+F 搜索失效了,因为对话内容不在终端滚动缓冲区里,需要按 Ctrl+O 再按 / 来搜索。原生的复制粘贴也被接管,选中即复制,或者可以在设置里改成 Ctrl+C 手动复制。
Boris 说,这个模式在内部测试中已经被大多数人当成了默认选择。目前作为研究预览发布,需要 v2.1.88 或更高版本。如果鼠标捕获干扰工作流,可以加上 CLAUDE_CODE_DISABLE_MOUSE=1 只保留无闪烁渲染。Show More
#### Boris Cherny
@bcherny · 3h ago
Today we're excited to announce NO_FLICKER mode for Claude Code in the terminal
It uses an experimental new renderer that we're excited about. The renderer is early and has tradeoffs, but already we've found that most internal users prefer it over the old renderer. It also supports mouse events (yes, in a terminal).
Try it: CLAUDE_CODE_NO_FLICKER=1 claude Show More
00:15
313
196
3,807
458.4K
Apr 1, 2026, 9:00 PM View on X
2 Replies
1 Retweets
8 Likes
1,561 Views  宝玉 @dotey
One Sentence Summary
Claude Code adds a NO_FLICKER mode that resolves screen flickering during long conversations by taking over the terminal viewport, while also introducing mouse interaction support.
Summary
Claude Code has launched an experimental terminal rendering mode codenamed NO_FLICKER. By taking over the entire terminal viewport (similar to the alternate screen buffer used by tools like vim or htop) rather than relying on the standard scrollback buffer, this mode effectively eliminates the screen flickering common in long conversations and reduces resource usage. Additionally, it introduces mouse support, enabling interactions such as cursor positioning, expanding collapsed outputs, clicking URLs, and selecting text for copying. The update also notes trade-offs, such as the loss of native Cmd+F search and changes to copy-paste logic, and provides activation instructions and version requirements.
AI Score
86
Influence Score 3
Published At Today
Language
Chinese
Tags
Claude Code
Terminal Development
AI Programming
Developer Tools
Anthropic HomeArticlesPodcastsVideosTweets