WAD ANSI issue


Scott Mintz
May 20, 2008
Solon, OH, USA
I have a git bash/docker image that I run within a Tcmd tab. It works great without any issues.
However, if I detach the tab and reattach the tab, the ANSI coloring stops working.


In my tcmd.ini file I have:

Windows 10 [Version 10.0.18362.592]
I see this same issue in both v25 and the v26 alpha.
May 20, 2008
Syracuse, NY, USA
You need only bash to see this. Below I started wsl in a tab, detached the tab (looked OK) and re-attached the tab.




Staff member
May 14, 2008
This cannot be a TCMD issue, because TCMD never sets / resets the console ENABLE_VIRTUAL_TERMINAL_PROCESSING attribute. (It wouldn't do any good anyway, because it wouldn't affect the console app anyway unless I injected code into each console app to do the SetConsoleMode call.)

It also cannot be a TCC issue, because TCC will always call SetConsoleMode to set the ANSI processing before each command line.

Windows will turn off ANSI processing whenever it thinks the console handles are redirected (TCC turns it back on again after a redirection). I suspect Windows & WSL don't handle things very well when a console is shown & hidden.
Jan 12, 2014
Switzerland, SO
JFI: I had the same issue WITHOUT WSL. I started TCMD ... just to check something quick ... I closed TCMD and opened again and "BOOM" no ANSI support. After close and reopen TCMD it has worked again ...
Similar threads
Thread starter Title Forum Replies Date
vefatica ANSI, PROMPT ... ??? Support 1
vefatica ANSI??? Support 9
samintz ANSI issues Support 3
FreezerBurnt ANSI Prompt messes up list output. Support 39
samintz ANSI Colors Support 33
nickles ANSI Colors Windows 7 no longer working Support 6
AndrewJ TakeCommand v23 + ANSI color sequences leads to black on black text Support 6
K ANSI Not Working Support 8
vefatica ANSI, ANSIWin10 ... ? Support 2
vefatica Win10's ANSI doesn't like 2>NUL Support 10
vefatica How do I see Windows 10's ANSI in action? Support 3
M Please explain TCMD's ANSI x3.64 support Support 4
M ANSI is used to show files instead of OEM in version 17 to 19 ! Support 5
vefatica ANSI Support 11
vefatica WAD ANSI still misbehaves with build 35 Support 36
vefatica ANSI misbehavior????? Support 4
Peter Murschall UNICODE mixed with ANSI Code Support 11
J Piping ANSI control sequences through 'type' Support 4
gschizas Take Command (Environment) doesn't show v2 ANSI colors Support 30
B How to? Convert Unicode to ANSI Support 1
D Can ANSI escape sequences be used in keystroke aliases? Support 8
vefatica WAD ANSI <ESC>[K Support 5
M Ansi.sys and old Dos programs Support 7
R ansi.sys ?? Support 15
E Shorter prompt / ANSI codes support Support 10
cgunhouse TCToolBar /W Issue Support 2
G v28 Display Issue Support 7
Jay Sage Issue with CD_ENTER Alias Support 37
Jay Sage Issue with CD_LEAVE Alias Support 3
fpefpe How to? issue with % and evaluation Support 5
cgunhouse Standard User Account Issue Support 2
samintz WAD Display wrapping issue Support 5
M TCC color issue in ConEmu Support 4
samintz Timer issue Support 4
Alpengreis Documentation Minor issue in help file for view /E Support 1
D TCSTART issue after reinstallation Support 14
A Documentation [Help file] OPTION "//" synopsis formatting issue Support 0
Chen Touboul Overtyping issue - i press the Insert key, help till press enter for new line in TCC Support 2
Y TCC and Cmder imcompatibility issue Support 7
M Another possibly strange remote registry issue Support 5
T WAD bpokestr issue Support 5
D High-DPI Scaling issue Support 1
S CMDebug 22 issue with del command Support 1
cgunhouse Foldermonitor Issue Support 7
samintz Build 38 Install issue Support 5
rps WAD Setlocal issue Support 4
Luiz Rodrigues Issue with Maven Support 1
Seven Update / install issue with take command Support 7
Fross WebDav Drive Mapping Issue Support 19
D Upgrade issue Support 3

Similar threads