-
Notifications
You must be signed in to change notification settings - Fork 234
Need to re-implement ConsoleColorProxy
#1607
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
It's currently disabled: PowerShellEditorServices/src/PowerShellEditorServices/Services/PowerShell/Host/ConsoleColorProxy.cs Lines 4 to 151 in 7bf4299
|
@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 believe it's all color formatting in Windows PowerShell and also some in later versions (even on modern OSes) Like if you do this: $Host.psobject.Properties.Add(
[psnoteproperty]::new(
'PrivateData',
[pscustomobject]@{
ErrorBackgroundColor = [ConsoleColor]::Black
ErrorForegroundColor = [ConsoleColor]::DarkCyan
ErrorAccentColor = [ConsoleColor]::Cyan
FormatAccentColor = [ConsoleColor]::Green
WarningForegroundColor = [ConsoleColor]::Yellow
WarningBackgroundColor = [ConsoleColor]::Black
DebugForegroundColor = [ConsoleColor]::Yellow
DebugBackgroundColor = [ConsoleColor]::Black
VerboseForegroundColor = [ConsoleColor]::Yellow
VerboseBackgroundColor = [ConsoleColor]::Black
ProgressForegroundColor = [ConsoleColor]::Black
ProgressBackgroundColor = [ConsoleColor]::Yellow
})) Error formatting is fixed even in 7.3 |
Is this something perhaps more easily fixed than Rob's comment led me to believe? |
I think it used to be pretty complicated to implement. Now though I think we route so much though e.g. I think we can just do |
I'm down to try! |
From Rob: we need to go implement this with @SteveL-MSFT and @daxian-dbw's help because it's an "obscure" interface.
Originally posted by @andschwa in #1459 (comment)
The text was updated successfully, but these errors were encountered: