Skip to content

Whitespace background colors are always the default Console color, and cannot be changed. Version 2.0.3 #1720

@Aratorin

Description

@Aratorin

Environment

PS version: 5.1.18362.752
PSReadline version: 2.0.3
os: 10.0.18362.1 (WinBuild.160101.0800)
PS file version: 10.0.18362.1 (WinBuild.160101.0800)
HostName: ConsoleHost
BufferWidth: 120
BufferHeight: 3000

Exception report

Steps to reproduce

  1. Change Console background color.
  2. Change background colors of all PSReadline tokens to the same color.
  3. Clear the Console.
  4. Type any command that has unquoted white space in it (ex. Get-Process | Where-Object Name -eq "Explorer")

Expected behavior

White space should use the color scheme set for the Default Token, or the current Console background color.

Actual behavior

Unquoted white space uses the original Console background color, rather than the new background color.

BeforeClear-Host

AfterClear-Host

Metadata

Metadata

Assignees

No one assigned

    Labels

    Issue-BugIt either shouldn't be doing this or needs an investigation.Not-Planned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions