OSC 2 doesn't handle a blank title correctly #16784
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
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:
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:
Actual Behavior
The blank title sequence has no effect, and the title is left as "ERASE THIS":
Note that you should also be able to reset the title with
\e]2\e\\
(i.e. no semicolon after the2
), although not all terminals support that.The text was updated successfully, but these errors were encountered: