Copying text clears the screen on certain codepages
Open
Nobody has claimed this yet.
area:platform-windows
area:terminal-rendering
- Dominant language
- Shell
- Stars
- 11.2k
- Forks
- 1.9k
- Avg merge
- 14h 16m
- Merged PRs (30d)
- 6
Description
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
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
No source file or test is named. First reproduce the copy operation under Windows codepage 936 and compare it with codepage 437, then locate the CLI's terminal selection and copy handling. Done means copying selected text no longer clears or resets the screen under the reported locale.
Written by the indexing model from the issue text.
Assessment
- Domain
- cli, operating-systems
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 55/100