The 3J ANSI escape code does not clear the terminal. #23401

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

Originally created by @axololly on GitHub (Jun 30, 2025).

Windows Terminal version

1.22.11751.0

Windows build number

10.0.26100.0

Other Software

No response

Steps to reproduce

I tried to print the following in Python: "\x1b[3J".

Expected Behavior

I wanted the equivalent of Clear-Host to be executed in my terminal.

I distinctly remember this working beforehand, and then all of a sudden, it stopped. I even went through a Windows Update to see if that would solve the issue, but it still persisted.

Actual Behavior

This outputs as a literal invisible character and nothing happens to the terminal.

Originally created by @axololly on GitHub (Jun 30, 2025). ### Windows Terminal version 1.22.11751.0 ### Windows build number 10.0.26100.0 ### Other Software _No response_ ### Steps to reproduce I tried to print the following in Python: `"\x1b[3J"`. ### Expected Behavior I wanted the equivalent of `Clear-Host` to be executed in my terminal. I distinctly remember this working beforehand, and then all of a sudden, it stopped. I even went through a Windows Update to see if that would solve the issue, but it still persisted. ### Actual Behavior This outputs as a literal invisible character and nothing happens to the terminal.
claunia added the Resolution-By-DesignNeeds-TriageIssue-Bug labels 2026-01-31 08:41:12 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#23401