Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OSC 2 doesn't handle a blank title correctly #16784

Closed
j4james opened this issue Feb 29, 2024 · 0 comments · Fixed by #16804
Closed

OSC 2 doesn't handle a blank title correctly #16784

j4james opened this issue Feb 29, 2024 · 0 comments · Fixed by #16804
Labels
Issue-Bug It either shouldn't be doing this or needs an investigation. Needs-Triage It's a new issue that the core contributor team needs to triage at the next triage meeting

Comments

@j4james
Copy link
Collaborator

j4james commented Feb 29, 2024

Windows Terminal version

1.20.10572.0

Windows build number

10.0.19045.4046

Other Software

No response

Steps to reproduce

In a WSL bash shell execute, the following statement:

printf '\e]2;ERASE THIS\e\\\e]2;\e\\' ; read

This is setting the title to "ERASE THIS" and then immediately after setting it to a blank string. The read is just to allow time to view the result, in case the shell tries to change the title to something else.

Expected Behavior

The title should be reset to the default value, or at least a blank title. For example, this is what it looks like in XTerm:
image

Actual Behavior

The blank title sequence has no effect, and the title is left as "ERASE THIS":
image

Note that you should also be able to reset the title with \e]2\e\\ (i.e. no semicolon after the 2), although not all terminals support that.

@j4james j4james added Issue-Bug It either shouldn't be doing this or needs an investigation. Needs-Triage It's a new issue that the core contributor team needs to triage at the next triage meeting labels Feb 29, 2024
@DHowett DHowett closed this as completed in 33589cd Mar 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Issue-Bug It either shouldn't be doing this or needs an investigation. Needs-Triage It's a new issue that the core contributor team needs to triage at the next triage meeting
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant