clear screen ansi doesn't prevent previous screen from being pushed to scrollback buffer #23195

Open
opened 2026-01-31 08:35:04 +00:00 by claunia · 0 comments
Owner

Originally created by @ldemailly on GitHub (Apr 24, 2025).

Windows Terminal version

1.21,1.22,1.23

Windows build number

10.0.26100.3775

Other Software

none though real case is fortio brick golang ansipixels demo

Steps to reproduce

Write-Host "$([char]27)[2J$([char]27)[1;1Hone`r`nprevious`r`n$([char]27)[2J$([char]27)[1;1Htwo`r`n"

or when comparing on unix/mac

echo -e "\033[2J\033[1;1Hone\r\nprevious\r\n\033[2J\033[1;1Htwo\r\n"

Expected Behavior

nothing in scroll back

Actual Behavior

one
previous

in scroll back

Originally created by @ldemailly on GitHub (Apr 24, 2025). ### Windows Terminal version 1.21,1.22,1.23 ### Windows build number 10.0.26100.3775 ### Other Software none though real case is fortio brick golang ansipixels demo ### Steps to reproduce ```powershell Write-Host "$([char]27)[2J$([char]27)[1;1Hone`r`nprevious`r`n$([char]27)[2J$([char]27)[1;1Htwo`r`n" ``` or when comparing on unix/mac ```bash echo -e "\033[2J\033[1;1Hone\r\nprevious\r\n\033[2J\033[1;1Htwo\r\n" ``` ### Expected Behavior nothing in scroll back ### Actual Behavior ``` one previous ``` in scroll back
claunia added the Needs-TriageIssue-Bug labels 2026-01-31 08:35:05 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#23195