You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Sydney Smith (@SydneyhSmith) We need to figure out if this is the "old-school" colors and if so, do we actually need to support it? Because as it is, the console has colors (since everything is modern now and ANSI color escape sequence based, which all works).
Ok, so yes, this would really only fix color support on ancient (read: near end-of-life) Windows platforms such as Windows Server 2012R2). This is not a priority.
I think it used to be pretty complicated to implement. Now though I think we route so much though ConsoleHost that I'm pretty sure we can directly surface it's PrivateData without even having to implement our own.
e.g. I think we can just do PrivateData => _internalHost.PrivateData;
Activity
andyleejordan commentedon Oct 29, 2021
It's currently disabled:
PowerShellEditorServices/src/PowerShellEditorServices/Services/PowerShell/Host/ConsoleColorProxy.cs
Lines 4 to 151 in 7bf4299
andyleejordan commentedon Feb 4, 2022
Sydney Smith (@SydneyhSmith) We need to figure out if this is the "old-school" colors and if so, do we actually need to support it? Because as it is, the console has colors (since everything is modern now and ANSI color escape sequence based, which all works).
andyleejordan commentedon Feb 4, 2022
Ok, so yes, this would really only fix color support on ancient (read: near end-of-life) Windows platforms such as Windows Server 2012R2). This is not a priority.
SeeminglyScience commentedon Feb 4, 2022
I believe it's all color formatting in Windows PowerShell and also some in later versions (even on modern OSes)
Like if you do this:
Error formatting is fixed even in 7.3
andyleejordan commentedon Feb 4, 2022
Is this something perhaps more easily fixed than Rob's comment led me to believe?
SeeminglyScience commentedon Feb 4, 2022
I think it used to be pretty complicated to implement. Now though I think we route so much though
ConsoleHostthat I'm pretty sure we can directly surface it'sPrivateDatawithout even having to implement our own.e.g. I think we can just do
PrivateData => _internalHost.PrivateData;andyleejordan commentedon Feb 4, 2022
I'm down to try!