microsoft / microsoft/terminal

`chcp.com` clearing the terminal screen after executing it

Open
#9,446 20 comments 1 reaction 0 assignees View on GitHub
Area-Server Issue-Bug Product-Conpty
Dominant language
C++
Stars
105k
Forks
9.6k
Avg merge
3d 17h
Merged PRs (30d)
29

Description

# Environment

```none
Windows build number: 21332
Windows Terminal version (if applicable): N/A

Any other software?
```

# Steps to reproduce
1. execute `chcp.com ` in PowerShell/cmd/WSL from old `conhost.exe` or Windows Terminal

# Expected behavior

It should print out the current code page without clearing the terminal

# Actual behavior

It will clear the terminal screen and then print out the current code page.

# Other

I also reported the bug in Feedback Hub in case this is not the proper place to report it: https://aka.ms/AAbh6ni

Contributor guide

Open the contributing guide

Research direction

Reproduce `chcp.com ` in PowerShell, cmd, and WSL from old `conhost.exe` and Windows Terminal on the reported Windows build. Compare the screen behavior with the expected output and trace the console-host handling involved; done means the current code page is printed without clearing the terminal.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
cli, operating-systems
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.