WSL Ubuntu clear -x partially clears scrollback #3154

Open
opened 2026-01-30 23:14:14 +00:00 by claunia · 0 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
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#3154