microsoft/Terminal

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

Open

#3,218 创建于 2019年10月16日

在 GitHub 查看
 (9 评论) (3 反应) (0 负责人)C++ (3,212 fork)batch import
Area-OutputArea-RenderingHelp WantedIssue-BugPriority-3Product-Conpty

仓库指标

Star
 (35,764 star)
PR 合并指标
 (平均合并 27天 19小时) (30 天内合并 24 个 PR)

描述

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).

贡献者指南