Scrollbar marks for shell integration do not clear when you use clear/cls commands #19955

Closed
opened 2026-01-31 06:58:32 +00:00 by claunia · 1 comment
Owner

Originally created by @The-MAZZTer on GitHub (May 24, 2023).

Originally assigned to: @zadjii-msft on GitHub.

Windows Terminal version

1.18.1421.0

Windows build number

Version 10.0.22621.1702

Other Software

PowerShell 7.3.4

Steps to reproduce

  1. Enable shell integration as documented here: https://learn.microsoft.com/en-us/windows/terminal/tutorials/shell-integration
  2. Enable PWSH and CMD support (for PWSH I added it to my Documents\PowerShell\Profile.ps1)
  3. Open new PWSH and CMD shells and press enter a bunch of times to generate a bunch of marks.
  4. Type clear in PWSH or cls in CMD
  5. Type commands that generate output like dir
  6. Press Ctrl+Up/Down a bunch

Expected Behavior

The scrollbar marks should disappear on clear/cls and the Ctrl+Up/Down should navigate only through the visible commands

Actual Behavior

The marks remain on the scrollbar and they will still be jumped to even though they are in the middle of command output.

Originally created by @The-MAZZTer on GitHub (May 24, 2023). Originally assigned to: @zadjii-msft on GitHub. ### Windows Terminal version 1.18.1421.0 ### Windows build number Version 10.0.22621.1702 ### Other Software PowerShell 7.3.4 ### Steps to reproduce 1. Enable shell integration as documented here: https://learn.microsoft.com/en-us/windows/terminal/tutorials/shell-integration 2. Enable PWSH and CMD support (for PWSH I added it to my Documents\PowerShell\Profile.ps1) 3. Open new PWSH and CMD shells and press enter a bunch of times to generate a bunch of marks. 4. Type clear in PWSH or cls in CMD 6. Type commands that generate output like dir 7. Press Ctrl+Up/Down a bunch ### Expected Behavior The scrollbar marks should disappear on clear/cls and the Ctrl+Up/Down should navigate only through the visible commands ### Actual Behavior The marks remain on the scrollbar and they will still be jumped to even though they are in the middle of command output.
claunia added the Issue-BugIn-PRNeeds-Tag-FixProduct-TerminalArea-TerminalControl labels 2026-01-31 06:58:32 +00:00
Author
Owner

@zadjii-msft commented on GitHub (May 25, 2023):

Sure don't. I think this is noted in #11000 but I'll make sure #15057 links this specifically. Thanks!

@zadjii-msft commented on GitHub (May 25, 2023): Sure don't. I think this is noted in #11000 but I'll make sure #15057 links this specifically. Thanks!
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#19955