Reset title sequences have stopped working in Windows Termial #22157

Closed
opened 2026-01-31 08:04:57 +00:00 by claunia · 2 comments
Owner

Originally created by @j4james on GitHub (Aug 26, 2024).

Windows Terminal version

Commit f93347ed4b

Windows build number

10.0.19045.4780

Other Software

No response

Steps to reproduce

  1. Open a WSL bash shell in a recent build of Windows Terminal (I suspect it needs to be 450eec48de or later).
  2. Make sure your shell isn't configured to set the title itself.
  3. Set the title with an OSC 0 sequence: printf "\e]0;Test\e\\"
  4. Note that the title has changed.
  5. Reset the title with a blank OSC 0 sequence: printf "\e]0\e\\"

Expected Behavior

The title should be reset to its starting value. This works correctly in Terminal Preview and also in current builds of OpenConsole.

Actual Behavior

The title is just set to a blank value. The same problem occurs with the DECSWT title sequence too.

Originally created by @j4james on GitHub (Aug 26, 2024). ### Windows Terminal version Commit f93347ed4bbeea0d9e663f2069994d9e2d069f10 ### Windows build number 10.0.19045.4780 ### Other Software _No response_ ### Steps to reproduce 1. Open a WSL bash shell in a recent build of Windows Terminal (I suspect it needs to be 450eec48de252a3a8d270bade847755ecbeb5a75 or later). 2. Make sure your shell isn't configured to set the title itself. 3. Set the title with an OSC 0 sequence: `printf "\e]0;Test\e\\"` 4. Note that the title has changed. 5. Reset the title with a blank OSC 0 sequence: `printf "\e]0\e\\"` ### Expected Behavior The title should be reset to its starting value. This works correctly in Terminal Preview and also in current builds of OpenConsole. ### Actual Behavior The title is just set to a blank value. The same problem occurs with the `DECSWT` title sequence too.
claunia added the Issue-BugPriority-3In-PRArea-VTNeeds-Tag-FixProduct-Terminal labels 2026-01-31 08:04:58 +00:00
Author
Owner

@similar-issues-ai[bot] commented on GitHub (Aug 26, 2024):

We've found some similar issues:

  • #16784 , similarity score: 83%

If any of the above are duplicates, please consider closing this issue out and adding additional context in the original issue.

Note: You can give me feedback by 👍 or 👎 this comment.

@similar-issues-ai[bot] commented on GitHub (Aug 26, 2024): We've found some similar issues: - #16784 , similarity score: 83% If any of the above are duplicates, please consider closing this issue out and adding additional context in the original issue. > Note: You can give me feedback by 👍 or 👎 this comment.
Author
Owner

@j4james commented on GitHub (Aug 26, 2024):

Nice find Mr Bot, but I fixed that issue, and now it's regressed again.

@j4james commented on GitHub (Aug 26, 2024): Nice find Mr Bot, but I fixed that issue, and now it's regressed again.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#22157