Copying text clears the screen on certain codepages
未关闭
还没有人认领这个 Issue。
area:platform-windows
area:terminal-rendering
- 主要语言
- Shell
- 星标
- 11.2k
- 派生
- 1.9k
- 平均合并
- 14 小时 16 分钟
- 30 天内合并 PR
- 6
描述
Describe the bug
When copying selected text on Windows, the screen appears to reset or clear unexpectedly. This happens on my machine with codepage 936 but not when it is 437
Affected version
1.0.79-5
Steps to reproduce the behavior
- Change the default code page on Windows: Region -> Administrative -> Change system locale -> Chinese (Simplified, Mainland China)
- Launch Copilot CLI in a terminal
- Select and copy something
Expected behavior
The screen shouldn't be cleared
Additional context
No response
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
调研方向
未指定源文件或测试。首先在 Windows 代码页 936 下重现复制操作,并将其与代码页 437 进行比较,然后定位 CLI 的终端选择和复制处理。完成标准是:在报告的 locale 下复制选中的文本不再清空或重置屏幕。
由索引模型根据 Issue 内容生成。
评估
- 领域
- cli, operating-systems
- Issue 类型
- 缺陷
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 活跃度
- 冷清
- 描述清晰度
- 基本清楚
- 新手友好度
- 55/100