← 回總覽

Claude Code 推出 NO_FLICKER 模式:解决终端闪烁并引入鼠标交互

📅 2026-04-02 05:00 宝玉 人工智能 4 分鐘 4337 字 評分: 86
Claude Code 终端开发 AI 编程 开发者工具 Anthropic
📌 一句话摘要 Claude Code 新增 NO_FLICKER 模式,通过接管终端视口解决长对话闪屏问题,并引入了鼠标交互支持。 📝 详细摘要 Claude Code 推出了代号为 NO_FLICKER 的实验性终端渲染模式。该模式通过接管整个终端视口(类似 vim 或 htop 的备用屏幕缓冲区)而非使用标准滚动缓冲区,有效解决了长对话中常见的终端闪烁问题,并降低了资源占用。此外,该模式还引入了鼠标支持,包括光标定位、折叠输出、URL 点击及文本复制等交互。文章同时指出了该模式的权衡点,如原生 Cmd+F 搜索失效及复制粘贴逻辑的变更,并提供了启用指令及版本要求。 📊 文章信息 A

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 ![Image 1: LogoBestBlogs](https://www.bestblogs.dev/ "BestBlogs.dev")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

![Image 2: 宝玉](https://www.bestblogs.dev/en/tweets?sourceId=SOURCE_2c263f) ### 宝玉

@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

!Image 3: Boris Cherny

#### 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

!Image 4: 视频缩略图

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 ![Image 5: 宝玉](https://www.bestblogs.dev/en/tweets?sourceid=2c263f) 宝玉 @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

Claude Code Introduces NO_FLICKER Mode: Solving Terminal ...

查看原文 → 發佈: 2026-04-02 05:00:33 收錄: 2026-04-02 06:00:38

🤖 問 AI

針對這篇文章提問,AI 會根據文章內容回答。按 Ctrl+Enter 送出。