Powershell in Take Command - Customizing colors?

May 5, 2010
9
0
Hi,

I'm just starting using Powershell inside Take command and it works great. I have one question though:

Is it possible to customize the colors of the output of the "ls" (dir/Get-ChildItem) command so that the directories are displayed using a different color than the regular files?


Thanks in advance!
 

rconn

Administrator
Staff member
May 14, 2008
12,344
149
Is it possible to customize the colors of the output of the "ls" (dir/Get-ChildItem) command so that the directories are displayed using a different color than the regular files?

That's a PowerShell question, not TCMD -- you'll have to ask Microsoft. TCMD just displays whatever colors the console app is using; it cannot insert itself into PowerShell and change PowerShell's internal behavior.

(If you're running TCC in a TCMD tab window, you can colorize directories.)
 
May 5, 2010
9
0
That's a PowerShell question, not TCMD -- you'll have to ask Microsoft. TCMD just displays whatever colors the console app is using; it cannot insert itself into PowerShell and change PowerShell's internal behavior.

(If you're running TCC in a TCMD tab window, you can colorize directories.)

Thanks for the reply.

I'm not sure I'm correct but I think I've heard PowerShell doesn't colorize anything by itself, but some application wrappers were able to intercept the output of that "ls" command and apply some colors before the final output.. I though maybe Take Command was one of them.
 

rconn

Administrator
Staff member
May 14, 2008
12,344
149
I'm not sure I'm correct but I think I've heard PowerShell doesn't colorize anything by itself, but some application wrappers were able to intercept the output of that "ls" command and apply some colors before the final output.. I though maybe Take Command was one of them.

You could probably do this with a PowerShell cmdlet. But TCMD doesn't run inside PowerShell (or even in the same session).
 
Similar threads
Thread starter Title Forum Replies Date
CWBillow Take Command tab as PowerShell Support 3
CWBillow TCC and TCMD in Powershell Support 6
Joe Caverly PowerShell=No Support 1
EDerH Powershell call from script Support 24
A Problem with functions @int @decimal and identifying Powershell as a shell. Support 12
Joe Caverly PowerShell Core Support 1
CWBillow PowerShell tab as Admin Support 2
CWBillow TCMD PowerShell Tab elevated Support 6
vefatica Powershell ... insert vs overstrike Support 2
CWBillow Powershell tab in TCMD? Support 2
Joe Caverly Fixed Displaying Profiles from TCC vs. PowerShell Support 2
Joe Caverly How to use Powershell Profile with PSHELL Support 14
F Powershell call fails with "Scripting Integrator 2016 (PowerShell)" license error Support 9
CWBillow PowerShell Tabs in TCMD Support 11
I v16 Spawning a PowerShell tab Support 3
vefatica "which" in PowerShell invokes TCC? Support 3
B Powershell scripts not opening in notepad-TC main suspect Support 2
C Attaching PowerShell changes its colors and makes it hard to read Support 15
Dmitry L. Kobyakov How to? How to remove the record of the old version of the Take Command? Support 5
D Can alias pass parameters to for command? Support 3
samintz How to? Search for %(command) in Help? Support 1
T VIEW only works from command line Support 14
rconn News Take Command / TCC / CMDebug / TCC-RT v28 Released Support 0
T Take Command 28: Lua reports version 5.4.0 (5.4.3 expected) Support 0
Jay Sage WAD Possible Bug With OPTION Command With @FILE Support 5
rconn News Take Command / TCC / CMDebug / TCC-RT 27.01.24 uploaded Support 0
J Take command does not start on Windows 10 Support 3
vefatica `Back quotes` - command line vs. batch file Support 5
Jay Sage WAD Failure of Alias Command with /Z Option Support 14
Phileosophos Is there any way to open the Take Command options dialog from the command line? Support 8
Phileosophos Command-line Editing Shortkeys That Fail Support 6
fpefpe How to? free (internal) command Support 0
rconn News Take Command / TCC / CMDebug / TCC-RT 27.01.23 uploaded Support 0
T How to? retain command history across reboot? Support 6
rconn News Take Command / TCC / CMDebug / TCC-RT v27.01 Build 22 Uploaded Support 0
Jay Sage Bug With Flow Control and/or Command Grouping Support 2
GermanDirk How to? EVENTLOG Command with simple User Rights not functional Support 4
Jay Sage Take Command Is Too Fast! Support 4
Jay Sage Comparison of IF with Command Group and IFF Support 6
D Open Windows 10 Photos app from command line Support 11
rconn News Take Command / TCC / CMDebug / TCC-RT 27.0.21 uploaded Support 0
rconn News Take Command / TCC / CMDebug / TCC-RT 27.0.20 uploaded Support 0
U Can not get/start Take Command gui Support 1
rconn News Take Command / TCC / CMDebug / TCC-RT 27.0.19 Support 0
S Increasing Font Point Size in Command Tabs Support 2
mfarah Fixed The DATE command produces the wrong error message. Support 1
vefatica Command name mix-up Support 3
FreezerBurnt "Missing SETLOCAL" when initializing Visual Studio Command Prompt. Support 9
E How to? Closing desktop created by DESKTOP command Support 10
rconn News Take Command / TCC / CMDebug / TCC-RT v27.0.18 Support 0

Similar threads