Skip to content

CLS doesn't work in the VT alternate buffer #1189

@lesleyxyz

Description

@lesleyxyz

Environment

Windows build number: [Version 10.0.18362.145]

Windows Terminal version (if applicable): n/a

Any other software? wsl, nano

Steps to reproduce

  1. In either powershell or cmd in terminal, type wsl nano
  2. Execute taskkill -im wsl.exe -f to kill wsl
  3. Type cls in the terminal where wsl was open

Expected behavior

cls should clear the screen and make the terminal behave like it used to before wsl nano

Actual behavior

after killing wsl powershell/cmd is in a bugged state because nano takes up the whole screen
cmd: cls won't clear the screen (first screenshot)
powershell: cls will clear screen BUT if the user inputs e.g. "cls", terminal will print "cclcls", yet still interpret it as "cls" (second screenshot)

L0030755

L0030807

This issue is also present in the original cmd/powershell.

Metadata

Metadata

Assignees

Labels

Area-OutputRelated to output processing (inserting text into buffer, retrieving buffer text, etc.)Issue-BugIt either shouldn't be doing this or needs an investigation.Needs-Tag-FixDoesn't match tag requirementsPriority-1A description (P1)Product-ConhostFor issues in the Console codebaseResolution-Fix-CommittedFix is checked in, but it might be 3-4 weeks until a release.

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions