-
I let my shells control the title of the console/tab. But occasionally, I'll see WT's title (profile name) on the tab. Under what circumstances does WT set the title if apps are allowed to do it? Thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 5 comments
-
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: 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 An application can change the console window or tab title either using the virtual terminal OSC sequence or the |
Beta Was this translation helpful? Give feedback.
-
Terminal as the default is not an option here. In my default shell (TCC.EXE) I normally see the likes of this. That's governed by a TITLEPROMPT environment variable and an "UpdateTitle=No" option which prevents showing the current command. Often, when I issue a compound command (as in the pic below) the title changes to "TCC28". That's the profile's name. I doubt TCC is causing the startup title to be used because it doesn't happen in a console (and TCC is otherwise unaware of the profile's name). Are there conditions under which WT would do that? |
Beta Was this translation helpful? Give feedback.
-
Windows Terminal is not responsible for changing to the original title. tcc.exe saves the original title and changes back to it via To observe the title-changing behavior of TCC without Windows Terminal, run it with a custom title in the classic console via You can work around this in Windows Terminal by setting the profile's tab title to the full path of tcc.exe, which in my case is "C:\Program Files\JPSoft\TCCLE14x64\tcc.exe". TCC detects this and automatically changes the title to "TCC LE Prompt". After setting |
Beta Was this translation helpful? Give feedback.
-
I also saw TCC do that using WinDbg (and I wonder why, given my settings). It didn't do it in a console. I'll investigate further and try your suggestion. Since this doesn't seem to have much to do with WT, I'll close the issue. Thank you, @eryksun. |
Beta Was this translation helpful? Give feedback.
-
P.S., Your work-around worked. Thanks again! |
Beta Was this translation helpful? Give feedback.
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 processSTARTUPINFO
. 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…