Skip to content

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

@DanielFallon

Description

@DanielFallon

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions