Console window titles / tab caption

May 26, 2008
If I use the TITLE command in TCC or CMD, the corresponding tab is updated in TCMD as expected.

But for PowerShell the tab is NOT being updated. This is the PowerShell command I used to change the console window title text:

$Host.UI.RawUI.WindowTitle = "Some Text"

If I detach the tab I can see that the above command is working similarly to the TITLE command in TCC/CMD. When I reattach the tab, TCMD shows the correct title at the time of being attached.

It seems TCMD is not detecting the title change while attached for some reason.
May 20, 2008
Elkridge, MD, USA
Powershell is not integrated with TCC. Just because a Powershell command operates similarly to (or even identically to) a TCC command, it is still not a TCC command. Don't yet expect the DWIM parser!
May 26, 2008
Huh? I'm not sure what you mean. TCMD supports attaching console apps. That's what I do with TCMD -- I use TCC, CMD, and PowerShell within the TCMD window. I am not attempting to integrate PS with TCC.

I am just reporting that when PS changes the title text of its console window, it is not reflected in the corresponding tab in TCMD (unlike TCC or CMD).


Aug 22, 2013
It works for me.
I am running the latest version of TCMD 16, 32 bit on Windows 7 - 32 bit.

If I replace the title of a tab using the context menu -> "rename tab", then the value of the powershell variable
$Host.UI.RawUI.WindowTitle is ignored, no matter if I change it.

But i can detach the tab, and the title changes to reflect the value of the PS variable.
If I reattach the console to TCMD everything works as expected: the title of the tab matches the PS variable $....WindowTitle and changes whenever I update the variable.
May 26, 2008
Thanks! You solved the mystery! I use custom toolbar buttons in TCMD to launch PS or CMD sessions. The toolbar button was configured to set a tab caption (in the case of PS, just "PowerShell"). This seems to override whatever the console app itself tries to set.
Similar threads
Thread starter Title Forum Replies Date
vefatica BTM, elevated, console window caption? Support 4
P No linefeed on last line of console window Support 2
jaltman tcmd 21.0.19 win10 16179 console window loses content Support 2
fpefpe How to? Fonts / Size in console window Support 5
vefatica Console not redrawn in BTM or with multiple commands Support 4
vefatica ShutdownPlugin not called when I X the console? (just curious) Support 4
vefatica Console popup windows don't work correctly Support 0
vefatica Cancelling selection in the console? Support 7
G Console exe up / down history Support 8
vefatica Console cursor height in Win 10 Support 3
vefatica TCEXIT not executed if I X the console Support 4
vefatica TYPE resets console tab settings Support 14
vefatica Undesired scrolling in Windows 10 enhanced console. Support 2
L WAD In console, tabs are rendered with non-uniform tab-stop spacing Support 16 TCC v22 & the Windows 10 Console Support 5
C TCMD not hiding the console Support 1
vefatica Console output slower that before Support 8
L Fixed console line length in Take Command 19? Support 3
P Color directories in Win10 build 10586 console Support 11
Mordachai How to capture all console output from a TCMD session? Support 4
I Windows 10 console does not allow alt-F4 alias to complete Support 1
M Console-Mode (*.exe) works in TCC, not in TCMD Support 2
vefatica ON CLOSE, GOTO, and X-ing the console Support 5
I Attach console Support 3
C Screens of different size and hidden console Support 8
G Bug? TCC 16.03.55 Console Palette Support 4
C TCMD: Problem attaching console Support 4
vefatica OT: Windows console history? Support 7
vefatica ON <closing the console> Support 5
J Screen Capture (Console Mode) Support 5
vefatica Complete console caption as TCMD's caption? Support 1
Mordachai How to get a TC interface instead of a console for .btm, .bat, ? Support 10
A How to? Is it possible to freeze one side of the console? Support 19
Stefano Piccardi How to? keep console from scrolling Support 6
noahcoad @ruby closes console Support 2
noahcoad Start new console without focus Support 3
vefatica TCSH crashes only when in a TCC console Support 2
vefatica Very strange console font corruption Support 3
p.f.moore Is the TakeCommandIPC interface available from other console programs? Support 3
J How to? 'tab' characters in the console and clipboard 'copy' Support 1
vefatica Console not closing ... problem gone Support 1
T Wrong prompt in Windows command console Support 3
vefatica Console not closing Support 1
E Redirect output from "start"-ed console Support 5
vefatica Hidden console doesn't close Support 34
J Console editor for TCC12 Support 10
J TC12 Win7 console, running gawk scripts Support 0
lassevk exit(1) in a python script exits console, by design or bug? Support 1
M Programmatically getting the console width in character Support 18
nikbackm TCMD console color palette Support 4

Similar threads