Skip to content

Stop setting the background color when erasing #830

Closed
@Jaykul

Description

@Jaykul

As of Windows 10 build 18298, the new “Terminal” settings allow setting default ForegroundColor and BackgroundColor values which are separate from the 16 color "ConsoleColor" palette.

PSReadLine doesn't use the ANSI/VT escape sequence for default when erasing text, but instead overwrites the line with $Host.UI.RawUI.BackgroundColor (e.g. when pressing backspace, or when using the arrow keys to navigate through the history buffer with commands of different lengths -- worse when some have multiple lines).

PSReadLine needs to start using the "default" color, instead of specifying a color.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions