Skip to content

"less" pager renders in the wrong color when started at the bottom of the screen from powershell #3218

@jeffrson

Description

@jeffrson

Environment

Windows build number: 10.0.18362.356
Windows Terminal version (if applicable): 0.5.2762.0

Any other software? less pager (https://chocolatey.org/packages/Less)

Steps to reproduce

Open PowerShell Tab
less <somefile> will show the file in foreground color
gci
less <somefile> will show the file in black color

Expected behavior

<somefile> should be shown in foreground color

Actual behavior

Somehow, after "gci" the file is shown in black. This does not happen with Cmd (note: at least when I tried to reproduce it, but I believe it had happened previously with cmd as well) and it doesn't happen in PowerShell or Cmd standalone (same note applies).

Metadata

Metadata

Assignees

No one assigned

    Labels

    Area-OutputRelated to output processing (inserting text into buffer, retrieving buffer text, etc.)Area-RenderingText rendering, emoji, complex glyph & font-fallback issuesHelp WantedWe encourage anyone to jump in on these.Issue-BugIt either shouldn't be doing this or needs an investigation.Priority-3A description (P3)Product-ConptyFor console issues specifically related to conpty

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions