Update Title

  • This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.
Jul 13, 2009
44
0
#1
TCC 14.00.31 x64 Windows 7 [Version 6.1.7601]
titleprompt=%@lfn[%_cwd]

"Take Command normally changes the window titles to include the command or batch file name each time a new command is executed. If you prefer a static title bar which does not change with each command, disable this option."
- When this option is checked, I typically see the tab title change to the running command.
- When this option is NOT checked, the tab title changes to "tcc.exe" when I run a command.

I'd "prefer a static title bar which does not change with each command".
 
#2
I do not see the reported effect using
TCC 14.00.31 Windows XP [Version 5.1.2600]
when the option is not checked, i.e., title remains constant.

BTW,
1/ TITLEPROMPT must be defined as an environment variable using the SET command.
2/ %_cwd is already an LFN, so the command
set titleprompt=%_cwd
is sufficient.
--
HTH, Steve
 
Jul 13, 2009
44
0
#4
Unchecking "Update Titles" works for me.

Do you by any chance have a PRE_INPUT or PRE_EXEC alias defined?
I can't find a PRE_INPUT or PRE_EXEC alias defined anywhere. (They would show up if I ran 'alias' at the cmd line, wouldn't they?)

I have an alias:
bld=timer & c:\bin\msbld.bat %$ & timer
When I run that, the tab title changes to "tcc.exe".
 

Charles Dye

Super Moderator
Staff member
May 20, 2008
3,483
44
Albuquerque, NM
prospero.unm.edu
#5
I can't find a PRE_INPUT or PRE_EXEC alias defined anywhere. (They would show up if I ran 'alias' at the cmd line, wouldn't they?)
Yes.

I have an alias:

When I run that, the tab title changes to "tcc.exe".
Does the title change if you run a simple command like DELAY 2 or PING LOCALHOST ?

What's in MSBLD.BAT? Does it open any subshells?
 
Jul 13, 2009
44
0
#7
msbld.bat:
@echo off
if "%1"=="-?" goto help
set TRGT=%1
set CONFIG=%2
REM Set the VS2010 envronment
if "%MSVARS__"=="" call "C:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\Tools\vsvars32.b
set MSVARS__=MsVarsSet

if "%1" == "" set TRGT=BUILD
if "%2" == "" set CONFIG=Debug
@echo on
MSBuild /t:%TRGT% /p:Configuration=%CONFIG% /property:WarningLevel=1
@echo off
set TRGT=
set CONFIG=
goto xit
:help
echo MSBld (trgt) (config)
echo Default trgt = REBUILD
echo Defalt config = DEBUG
:xit
@echo off
MSBuild is MSBuild.exe
 
Jul 13, 2009
44
0
#8
It seems to make a difference whether I use the alias or not.
Using alias = bad behavior.
Running msbld.bat directly = good behavior.