[PR #17802] Make sure a blank title string resets the title #31377

Closed
opened 2026-01-31 09:46:52 +00:00 by claunia · 0 comments
Owner

Original Pull Request: https://github.com/microsoft/terminal/pull/17802

State: closed
Merged: Yes


Summary of the Pull Request

When a VT title sequence sets the title to a blank string, that is meant
to trigger a reset to the default starting value. This used to work in
the past because the blank value was dealt with by conhost, so Windows
Terminal never received a blank title, but that's no longer the case
with the new VT passthrough. This PR fixes the issue by getting Windows
Terminal to handle the blank title strings itself.

References and Relevant Issues

VT passthrough was introduced in PR #17510.

Validation Steps Performed

I've manually verified that the OSC 0, OSC 2, and DECSWT sequences
now correctly reset the title when passed a blank title string.

PR Checklist

**Original Pull Request:** https://github.com/microsoft/terminal/pull/17802 **State:** closed **Merged:** Yes --- ## Summary of the Pull Request When a VT title sequence sets the title to a blank string, that is meant to trigger a reset to the default starting value. This used to work in the past because the blank value was dealt with by conhost, so Windows Terminal never received a blank title, but that's no longer the case with the new VT passthrough. This PR fixes the issue by getting Windows Terminal to handle the blank title strings itself. ## References and Relevant Issues VT passthrough was introduced in PR #17510. ## Validation Steps Performed I've manually verified that the `OSC 0`, `OSC 2`, and `DECSWT` sequences now correctly reset the title when passed a blank title string. ## PR Checklist - [x] Closes #17800
claunia added the pull-request label 2026-01-31 09:46:52 +00:00
Sign in to join this conversation.
No Label pull-request
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#31377