Skip to content

Setting Error foreground or background colors is ignored. #554

Closed

Description

Environment data

PS version: 5.1.16275.1000
PSReadline version: 1.2
os: 10.0.16275.1000 (WinBuild.160101.0800)
PS file version: 10.0.16275.1000 (WinBuild.160101.0800)

Steps to reproduce or exception report

Run Set-PSReadlineOption and change any combination of error foreground or background color.

Set-PSReadlineOption  -ErrorForegroundColor white -ErrorBackgroundColor red

I can see the change with Get-PSReadlineoption, but when I type a command with an error, the colors are ignored. I get the default red foreground. Is this now hard-coded?

Activity

  1. lzybkr commented on Oct 16, 2017

    @lzybkr
    Contributor

    I believe this is fixed in #561.

    I'll publish a pre-release version to the PowerShell Gallery as soon as they support pre-releases.

    If you'd like to try a fix before that, you can build the lastest yourself from the master branch, or
    grab a build from AppVeyor like this one.

    Note the version number is now 2.0, so be sure to copy the contents to \PSReadLine\2.0.

  2. lzybkr commented on Nov 4, 2017

    @lzybkr
    Contributor

    I'll have an official prerelease build out next week if you want to verify this is fixed, otherwise you can grab a build out of appveyor here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions