jdhitsolutions / PSScriptTools

:wrench: :hammer: A set of PowerShell functions you might use to enhance your own functions and scripts or to facilitate working in the console. Most should work in both Windows PowerShell and PowerShell 7, even cross-platform. Any operating system limitations should be handled on a per command basis. The Samples folder contains demonstration script files

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ANSI style on powershell 7 when PSStyle is defined

jdhitsolutions opened this issue · comments

Discussed in #146

Originally posted by cderv April 4, 2024
Hi,

I wanted the -ansi to work with Show-Tree but I understand the $PSAnsiMap is not loaded because I have some $PSStyle defined - not sure if this is something I loaded or default in Windows Terminal.

My understanding is that $PSAnsiMap is not loaded to no conflict, but it seems -ansi doesn't use PSStyle.

Is there any way to have the coloring works for functions that supports it ?

thank you

I am working on an update to the command that will use PSStyle file settings if detected.

This should be handled in v2.49.0