PowerShell icon indicating copy to clipboard operation
PowerShell copied to clipboard

The font changes from 'Consolas' to '新宋体' when execute commands as Administrator

Open phyloong opened this issue 7 years ago • 4 comments

Steps to reproduce

  1. Right-click on desktop
  2. Select PowerShell 6->Open here as Administrator
  3. Type pip install flask in the opened window (actually, every command)

image

Expected behavior

It can execute commands normally.

Actual behavior

The result of command is right. But during execution, the font changes from Consolas from 新宋体 and changes back after the execution end.

image

image

Environment data

Name                           Value
----                           -----
PSVersion                      6.2.0
PSEdition                      Core
GitCommitId                    6.2.0
OS                             Microsoft Windows 10.0.18362
Platform                       Win32NT
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0…}
PSRemotingProtocolVersion      2.3
SerializationVersion           1.1.0.1
WSManStackVersion              3.0

phyloong avatar May 04 '19 05:05 phyloong

This is an issue with PSReadLine which should be fixed in beta4 which should be published next week.

SteveL-MSFT avatar May 04 '19 06:05 SteveL-MSFT

This is an issue with PSReadLine which should be fixed in beta4 which should be published next week.

This bug still exists in PowerShell 6.2.1 on Windows 10 1903.

pboymt avatar May 28 '19 02:05 pboymt

@pboymt 6.2.1 still ships with PSReadLine 2.0.0-beta3. Can you install beta4 from PSGallery and see if it is still an issue?

SteveL-MSFT avatar Jun 06 '19 16:06 SteveL-MSFT

Also a duplicate of https://github.com/PowerShell/PSReadLine/issues/964

daxian-dbw avatar Dec 12 '19 18:12 daxian-dbw