New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Blinking window while press TAB on Windows 10 #7863

Closed
liangzha opened this Issue Sep 26, 2018 · 12 comments

Comments

Projects
None yet
5 participants
@liangzha

liangzha commented Sep 26, 2018

Steps to reproduce

PowerShell 6.1.0 on Windows 10 (Build 17134)

Start a PowerShell session, press TAB w/o any other characters entered, the client window of PowerShell 6.1.0 will be blinking for each press of TAB.

Expected behavior

Nothing but as PowerShell 5.1

Actual behavior

The client window of PowerShell 6.1.0 will be blinking for each press of TAB

Environment data

$PSVersionTable

Name                           Value
----                           -----
PSVersion                      6.1.0
PSEdition                      Core
GitCommitId                    6.1.0
OS                             Microsoft Windows 10.0.17134
Platform                       Win32NT
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0...}
PSRemotingProtocolVersion      2.3
SerializationVersion           1.1.0.1
WSManStackVersion              3.0
@iSazonov

This comment has been minimized.

Collaborator

iSazonov commented Sep 26, 2018

@liangzha Please copy-paste $PSVersionTable value in the Issue description.

@liangzha

This comment has been minimized.

liangzha commented Sep 27, 2018

Repost the result of $PSVersionTable:

Name Value


PSVersion 6.1.0
PSEdition Core
GitCommitId 6.1.0
OS Microsoft Windows 10.0.17134
Platform Win32NT
PSCompatibleVersions {1.0, 2.0, 3.0, 4.0...}
PSRemotingProtocolVersion 2.3
SerializationVersion 1.1.0.1
WSManStackVersion 3.0

@iSazonov

This comment has been minimized.

Collaborator

iSazonov commented Sep 27, 2018

I can not repo. Need more information.

@liangzha

This comment has been minimized.

liangzha commented Sep 27, 2018

@iSazonov I just tried to reproduce the issue with different fonts. The result showed that it was a font related issue.
My current code page for PowerShell 6.1.0 is 65001 (UTF-8).
The issue could NOT be reproduced while the configured font was "Raster Fonts", neigh with "SimSun".
But the issue could be reproduced if with font "Consolas".

@iSazonov

This comment has been minimized.

Collaborator

iSazonov commented Sep 27, 2018

@liangzha Thanks for your investigations! Currently PowerShell Core uses Utf-8 by default in console.

I can not repo the issue with "Consolas" font. You could try to check with/without PSReadline.

@liangzha

This comment has been minimized.

liangzha commented Sep 27, 2018

@iSazonov thanks for the help. Now, I'm not sure if this issue is related my system code page (936, ANSI/OEM - Simplified Chinese GBK), while the default code page for PS 6 Core is UTF-8.

A screen capture of PowerShell console attached, within the .zip file.
PowerShell 6 (x64) 9_27_2018 9_54_31 PM.zip

Issue not be reproduced if PS6 Core started with option "-NonInteractive".

@iSazonov

This comment has been minimized.

Collaborator

iSazonov commented Sep 27, 2018

/cc @chuanjiao10 Could you please look the Issue?

@SteveL-MSFT

This comment has been minimized.

Member

SteveL-MSFT commented Sep 27, 2018

@liangzha Besides hitting tab do other operations cause the font to change? If so, can you try remove-module psreadline and see if it still repros?

@liangzha

This comment has been minimized.

liangzha commented Sep 28, 2018

Thank you for the help, guys!

To be summarized:

  1. PS Core 6.1.0 on Windows 10 (v17134), with system code page (936, ANSI/OEM - Simplified Chinese GBK);
  2. PS Core 6.1.0 started with PSReadLine by default, code page UTF-8, Font size 16, with selected font type "Consolas", the console window blinks at each key down of TAB;
  3. Issue could not be reproduced if with font "SimSun", neither with "Raster Fonts";
  4. Issue could not be reproduced if remove module PSReadLine (via Remove-Module PSReadLine, the font of PS Core console will be defaulted to SimSun), and the blinking window comes back if press TAB after PSReadline added back (Import-Module PSReadLine, then the default font is Consolas).
@chuanjiao10

This comment has been minimized.

chuanjiao10 commented Sep 28, 2018

1 yes , i confirm problem in ps 6.1 + Windows 10 17134 chinese version.

2 powershell.exe then remove-module psreadline ,i found i can not change font to 'consolas',
item consolas gone.

3 do not change font before enough test !some chinese font missing special characters,
eg:Mahjong 八万。
eg:♡

4
My font = 新宋体
My font size = 16

5 If you use a projector to display the command line,
Font = 黑体
Font size = 28

6 In windows, in general, it is not recommended to change the font.
In the terminal software to ssh to to linux, we have more custom fonts. I use 雅黑mono.

@sunzcosmo

This comment has been minimized.

sunzcosmo commented Oct 31, 2018

  1. Similar problem with font type "Consolas" "Courier New" "Lucida Console" "Lucida Sans" and "Typewriter";
  2. The blinks show up under all the font sizes;
  3. These two TrueType fonts: "MS Gothic" "SimSun-ExB" are OK;
Name                           Value
----                           -----
PSVersion                      6.1.0
PSEdition                      Core
GitCommitId                    6.1.0
OS                             Microsoft Windows 10.0.17134
Platform                       Win32NT
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0...}
PSRemotingProtocolVersion      2.3
SerializationVersion           1.1.0.1
WSManStackVersion              3.0
@SteveL-MSFT

This comment has been minimized.

Member

SteveL-MSFT commented Oct 31, 2018

This is fixed via lzybkr/PSReadLine#771

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment