Skip to content
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

Color mappings do not match Powershell Core ansi escape code mappings #30

Open
DanielFallon opened this issue Sep 15, 2017 · 1 comment

Comments

@DanielFallon
Copy link

It looks like the color mappings in this repo between powershell's colors and ansi color codes do not match those used by powershell's virtual terminal system.

For example, when Write-Host -ForegroundColor Magenta "test" is executed, powershell's virtual terminal emits ESC[35;1mtest (also known as brmagenta or High Intensity Magenta). The mapping in the readme file and code lists the mapping as: magenta -> magenta.

Below are the correct mappings in full:

termcol Powershell
black Black
red DarkRed
green DarkGreen
yellow DarkYellow
blue DarkBlue
magenta DarkMagenta
cyan DarkCyan
white DarkWhite
brblack DarkGray
brred Red
brgreen Green
bryellow Yellow
brblue Blue
brmagenta Magenta
brcyan Cyan
brwhite White
@DanielFallon
Copy link
Author

oh, maybe I'm just noticing a typo in the readme, paired with a misconfiguration of gnome-terminal

The readme shows ESC[0;30m -> brblack which should instead be ESC[1;30m -> brblack

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant