Skip to content
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

Leverage internal HostUI for VT100 check #1264

Conversation

TylerLeonhardt
Copy link
Member

@TylerLeonhardt TylerLeonhardt commented Apr 18, 2020

Fixes PowerShell/vscode-powershell#2637
Fixes PowerShell/vscode-powershell#2640

A user can be using PowerShell 5.1 or greater on Windows Server 2012 R2.

We can leverage the internal host to get the value already computed by ConsoleHost.

I haven't tested this... I'd need to break out a 2012 R2 VM 😢

@TylerLeonhardt
Copy link
Member Author

Tried this out on Windows Server 2012 R2 and no more escape sequences appear:

image

@rkeithhill
Copy link
Contributor

rkeithhill commented Apr 20, 2020

Wait a tic, so you are completely disabling VT100 support in the PSIC? Or are you saying that we delegate this to internalHostUI.SupportsVirtualTerminal? BTW ConsoleHost doesn't apply to LInux/macOS. :-)

@TylerLeonhardt
Copy link
Member Author

Or are you saying that we delegate this to internalHostUI.SupportsVirtualTerminal

@rkeithhill this one.

@TylerLeonhardt
Copy link
Member Author

BTW ConsoleHost doesn't apply to LInux/macOS. :-)

You're thinking of conhost.exe. I'm referring to ConsoleHost.cs in the PowerShell code.

@TylerLeonhardt TylerLeonhardt merged commit 29b8130 into PowerShell:master Apr 20, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
4 participants