Windows Terminal (Preview) cured cancer cmd, powershell's

Foreword

N years ago saying, I want to develop a powershell mahjong game, but found it impossible to display tiles of this particular symbol at the command line.

After the study found, which is 4 bytes utf16le string. The powershell dependent rendering engine, rendering only double-byte, that is within the 65535's.

powershell under Linux do not have this problem.

I powershell submitted issue, but did not get feedback.

Over time, with the popularity of git, unicode character rendering problem is getting worse, because there are many special git output string, the user increasing demands, it attracted the attention of ms. And we will have a Windows Terminal.

 

 

Command line rendering engine

Command-line rendering engine is hell? I did not know, now I know. It is conhost.exe. Specific Windows Terminal can look at the principle of introduction.

 

This is a major + basic things, but I do not understand why Microsoft does not give the old system.

Minimum system requirements for the version: 201905 04/2008 win10. Win10-18362

In my eyes, this is a new conhost2.exe in the win, and then let cmd.exe add parameters to call it a problem.

Or new conhost2cmd.exe ,,, conhost2powershell.exe.

 

Icon:

 figure 1

 

figure 2

 

 

image 3 

 

 

in conclusion:

1 Use this new conhost.exe, or use Windows Terminal (Preview), the biggest advantage is to cmd.exe, powershell.exe, pwsh.exe brought special characters.

 

2 Do not directly run cmd.exe, powershell.exe, pwsh.exe, set to be used in Windows Terminal shell in cmd.exe, powershell.exe, pwsh.exe.

Guess you like

Origin www.cnblogs.com/piapia/p/11351260.html