Please explain TCMD's ANSI x3.64 support

Apr 7, 2010
42
0
Would someone explain what ANSI x3.64 support TCC/TCMD provides? I've read "TCC v22 & the Windows 10 Console" but I'm still confused.

Does TCMD support Color Escape Sequences generated by external commands? I have a test program that generates color codes but I've not found any combination of TCMD/TCC settings that will transform the output to color. I tried disabling ANSI in TCMD and enabling in TCC; I've tried the other way around; both enabled and both disabled. And restarting TCMD after each change.

The only way I've been able use ANSI Color Codes is by using a custom Plugin (the 'ansi_on' command below) that explicitly enables Windows 10 built-in ANSI support. What am I missing?

color.png
 

rconn

Administrator
Staff member
May 14, 2008
12,344
149
Both TCMD and TCC have ANSI support. TCMD's ANSI will work for all console sessions run in TCMD; TCC's ANSI will only work for TCC internal commands.

First, make sure you have ANSI turned off in TCC (OPTION / Windows / ANSI colors). Then in TCMD, go to the OPTIONS menu and click on Tabs / ANSI colors.

Note that TCMD will by default use the built-in ANSI in Windows 10; if you want to use TCMD's ANSI support instead you need to add the directive "ANSIWin10=No" to your TCMD.INI (in the TCMD section).
 
Apr 7, 2010
42
0
I tried that and it's not working. I checked the tcmd.ini file. [4NT] has ANSI=No, [TakeCommand] has ANSI=Yes. There is no ANSIWin10 entry.

If I enable ANSI in TCC, (TCMD ANSI can be on or off) I can get color codes for internal commands, nothing for external commands. If I disable ANSI for TCC, I get no ANSI color at all, regardless of TCMD ANSI setting.
 

rconn

Administrator
Staff member
May 14, 2008
12,344
149
If you do not set ANSIWin10=No, then neither TCMD nor TCC have anything to do with ANSI; it's handled by the Windows 10 console, and TCMD simply mirrors what's happening in the console window.

I suggest you try setting ANSIWin10=No in your [TakeCommand] TCMD.INI section. If that works (and it should), then your problem is with your Windows console & you should contact Microsoft.
 
Apr 7, 2010
42
0
Thanks. That worked. I was confused about the ANSIWin10 meaning. I mistakenly thought that ANSIWIN10=YES ==> Use Windows ANSI console support ==> TCC would automatically enable Windows ANSI console support (via SetConsoleMode). Sorry to waste your time but thanks for clarifying it for me. Much appreciated.
 
Similar threads
Thread starter Title Forum Replies Date
Dan Glynhampton How to? Can anybody explain what @isowyear does please? Support 3
C "Failed to update the system registry. Please try using REGEDIT" Support 3
C View Print Wrap - please break at whitespace Support 3
C v18 regex help please Support 1
P Please deactivate all my TCC computers Support 1
L A little startup help from an old CLI guy please. Support 14
vefatica Please try to reproduce this Support 20
R Big Problem Please Help Support 2
C a few ?'s please Support 1
mscheuner RSS-enable these forums, please! Support 2
vefatica OT:Explain Win7's "start menu" folder? Support 17
D Bug TCMD /X option Support 6
vefatica TCMD hides itself! Support 3
vefatica Tray min'd TCMD and ACTIVATE Support 6
C How to? starting TCC/TCMD v25 Support 2
CWBillow TCC and TCMD in Powershell Support 6
kb6ojs How to? "Specified Account Already Exists" error installing TCMD v27 Support 12
CWBillow TCMD Colors Support 8
Jay Sage Issues With TCMD File Explorer Support 0
C Last TCMD that supports win 7? Support 5
gentzel TCMD background color confusion Support 6
R Upgrade TCMD 19 to TCC 26 Support 1
Alpengreis Remaining TCMD background process (v26) ... Support 19
S Windows Server version not being detected correctly in TCMD 26RC2 Support 9
G TCMD crash when copy Support 3
Joe Caverly DrawVLine results different in TCMD tab and detached TCC Support 11
Alpengreis [TCMD v25.00.24] Small space problem with the DE translation in Prefs-GUI Support 1
Alpengreis [TCMD v25.00.24] Problem with copy and paste and the # char via mouse in TCC Support 6
Jay Sage TCMD Crashes with "tctoolbar /c /r file" Support 5
nikbackm TCMD 25 - Unregister older TCMD version Support 2
G Documentation on TCMD.INI Support 9
R New Clear Buffer in TCMD Home Menu Support 2
CWBillow Back up TCMD tabs Support 2
CWBillow Upgrade Windows 10's effect on TCMD and TCC Support 3
DrusTheAxe TCMD 24.02.49 x64 crashed due to DivideByZero :-( Support 4
A After update to 24.02.49, helpfile tcmd.chm hangs when opened Support 0
David McClelland TCMD 24 & Perl - perl thinks it's own executable is ...\TCMD24\TCC.EXE??? Support 3
dcantor How to? Can 32-bit TCC be run on a system with 64-bit TCMD and TCC installed? Support 6
W pdir returns diff results between tcc and tcmd - one is an error msg Support 5
vefatica What's TCMD's problem with ^e[0m? Support 13
CWBillow TCMD PowerShell Tab elevated Support 6
A How to? Copy+Paste in TCMD tabs with Ctrl-Shift-Ins? Support 5
vefatica TCMD output invisible on Win10 Support 22
J Moving from TCC v22 to TCMD v24 issues Support 3
RChrismon How to? Copy TCMD.INI to New Version Support 7
rps TCMD OPTIONS dialog Support 2
rps TCMD Tabs priority option setting Support 0
D Can we fix the scaling for TCmd? Support 14
CWBillow TCMD Tab Defs Support 4
A How to? TCMD Configuration Dialog: 'Smooth Scrolling' Option missing? Support 1

Similar threads