Skip to content

When does WT set a tab's title? #12111

Answered by eryksun
vefatica asked this question in Q&A
Discussion options

You must be logged in to vote

In my experience, the initial tab title is, in increasing order of priority, based on the profile name, the tab title that's configured in the profile (i.e. the "tabTitle" setting), or the "--title" command-line option. For example: wt -w 0 nt --title "Spam" -p "Command Prompt" runs the "Command Prompt" profile in a new tab with the title "Spam".

If Windows Terminal is set as the default terminal application, and a new terminal/tab is created for a console application, the initial title is the lpTitle field of the process STARTUPINFO. For example, from an existing CMD shell: start "Spam" cmd.exe would run CMD in a new tab with the title "Spam". If a console application is started from a s…

Replies: 5 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by DHowett
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
Needs-Triage It's a new issue that the core contributor team needs to triage at the next triage meeting Needs-Tag-Fix Doesn't match tag requirements
2 participants
Converted from issue

This discussion was converted from issue #11704 on January 07, 2022 21:03.