github / github/copilot-cli

Copying text clears the screen on certain codepages

Open
#4,391 1 comment 0 reactions 0 assignees View on GitHub
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

1. Change the default code page on Windows: Region -> Administrative -> Change system locale -> Chinese (Simplified, Mainland China)
2. Launch Copilot CLI in a terminal
3. Select and copy something

### Expected behavior

The screen shouldn't be cleared

### Additional context

_No response_

Contributor guide

Open the contributing guide

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.