WSL Ubuntu clear -x partially clears scrollback #3156

Closed
opened 2026-01-30 23:14:19 +00:00 by claunia · 4 comments
Owner

Originally created by @RyanHope97 on GitHub (Aug 5, 2019).

Originally assigned to: @carlos-zamora on GitHub.

Environment

Windows build number: Microsoft Windows [Version 10.0.18362.267]
Windows Terminal version (if applicable): 0.3.2142.0
WSL 1 with Ubuntu 18.04

Steps to reproduce

  1. Open terminal with WSL Ubuntu
  2. Display something on stdout (e.g. echo Hello world!)
  3. Run clear -x or Ctrl+L

Expected behavior

Move promt to top of the screen and put what is currently dispalyed on the screen in the scrollback. This is how the old console functioned.

Actual behavior

Moves promt to top of the screen, and clears what is currently displayed on the screen without putting it in the scrollback

Originally created by @RyanHope97 on GitHub (Aug 5, 2019). Originally assigned to: @carlos-zamora on GitHub. # Environment ```none Windows build number: Microsoft Windows [Version 10.0.18362.267] Windows Terminal version (if applicable): 0.3.2142.0 WSL 1 with Ubuntu 18.04 ``` # Steps to reproduce 1. Open terminal with WSL Ubuntu 2. Display something on stdout (e.g. `echo Hello world!`) 3. Run `clear -x` or `Ctrl+L` # Expected behavior Move promt to top of the screen and put what is currently dispalyed on the screen in the scrollback. This is how the old console functioned. # Actual behavior Moves promt to top of the screen, and clears what is currently displayed on the screen without putting it in the scrollback
Author
Owner

@zadjii-msft commented on GitHub (Aug 5, 2019):

There's a 50-70% chance there's already a dupe for this issue but I'll leave it open to make sure

@zadjii-msft commented on GitHub (Aug 5, 2019): There's a 50-70% chance there's already a dupe for this issue but I'll leave it open to make sure
Author
Owner

@RyanHope97 commented on GitHub (Aug 5, 2019):

@zadjii-msft > There's a 50-70% chance there's already a dupe for this issue but I'll leave it open to make sure

I had a quick look and couldn't find anything, but I could be blind 😊

@RyanHope97 commented on GitHub (Aug 5, 2019): @zadjii-msft > There's a 50-70% chance there's already a dupe for this issue but I'll leave it open to make sure I had a quick look and couldn't find anything, but I could be blind 😊
Author
Owner

@carlos-zamora commented on GitHub (Jan 28, 2020):

/dup #2832

@carlos-zamora commented on GitHub (Jan 28, 2020): /dup #2832
Author
Owner

@ghost commented on GitHub (Jan 28, 2020):

Hi! We've identified this issue as a duplicate of another one that already exists on this Issue Tracker. This specific instance is being closed in favor of tracking the concern over on the referenced thread. Thanks for your report!

@ghost commented on GitHub (Jan 28, 2020): Hi! We've identified this issue as a duplicate of another one that already exists on this Issue Tracker. This specific instance is being closed in favor of tracking the concern over on the referenced thread. Thanks for your report!
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#3156