microsoft / microsoft/vscode

Terminal: Screen clear/reset command (`clear` / `cls`) does not clear the terminal buffer properly (WSL)

Open
#331,856 2 comments 0 reactions 1 assignee Claimed by @anthonykim1 View on GitHub
Dominant language
TypeScript
Stars
193k
Forks
42.4k
PR merge metrics
PR metrics pending

Description

- VS Code Version: 1.134.0 (user setup)
- OS Version: Windows 11 / 10 using WSL (e.g., Ubuntu 22.04 LTS via WSL2)

Steps to Reproduce:

1. Open VS Code and open an integrated terminal connected to a WSL profile (`bash` / `zsh`).
2. Run commands (e.g., `ls -la`, `top`, or long script outputs) to fill the terminal buffer.
3. Execute `clear`, press `Ctrl+L`, or run `reset`.
4. Scroll up or observe the viewport—the output remains partially visible, garbled, or fails to clear the scrollback buffer properly.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.