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

vi on Linux turns console text blue #1203

Closed
p0lar-bear opened this issue Jun 28, 2018 · 5 comments
Closed

vi on Linux turns console text blue #1203

p0lar-bear opened this issue Jun 28, 2018 · 5 comments

Comments

@p0lar-bear
Copy link

"OpenSSH for Windows" version
(Will fill in when I get home later, sorry! Leaving command here for reference)
((Get-Item (Get-Command sshd).Source).VersionInfo.FileVersion)

Server OperatingSystem
CentOS 7.5.1804

Client OperatingSystem
Windows 10
(Will fill in with more complete info when I get home later, sorry! Leaving command here for reference)
((Get-ItemProperty "HKLM:\SOFTWARE\Microsoft\Windows nt\CurrentVersion\" -Name ProductName).ProductName)

What is failing
When executing vi for a new file or seemingly at random on a fresh install of CentOS 7, the console text default color seems to be changed to blue, i.e. all text not colored by syntax highlighting in vi is blue, and any text the console generates henceforth which isn't preceded by an ANSI terminal code is blue. This state persists until the console window is closed.

This does not happen when the CentOS machine is used directly, e.g. via a Hyper-V connection window. Unsure if this occurs with other OS versions/distros, other vi versions, or other "flavors" of vi such as vim.

I am aware that the wiki explains the caveat that the client has outstanding issues with interactive applications such as vi, but I figured it couldn't hurt to point one specific one out that I didn't see an issue for before.

Expected output
Console to retain its default text color after vi is launched on the remote CentOS machine.

Actual output
blue console text

@p0lar-bear p0lar-bear changed the title vi on Linux vi on Linux turns console text blue Jun 28, 2018
@bagajjal
Copy link
Collaborator

Windows openssh client uses console support (conhost.exe) for parsing the incoming ANSI stream. Looks like the latest windows OS has fixed it. I verified this on windows Version 10.0.17134.112.

@soul4soul
Copy link

soul4soul commented Oct 15, 2018

Out of the dozen or so times I have used vi this has happened once. What is very annoying is that the color change persists after exiting the ssh session. Ultimately I restarted the PS console.

Client Info
SSH Client 7.6.0.0
Window 10 Pro 1803 - 17134.345

Server Info
OpenSSH_7.7p1, OpenSSL 1.1.0h-fips 27 Mar 2018
Fedora 28 4.16.3-301.fc28.x86_64 #1 SMP Mon Apr 23 21:59:58 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux

@bagajjal
Copy link
Collaborator

Please try the new windows 10 fall update (https://support.microsoft.com/en-us/help/4464619)

@bagajjal
Copy link
Collaborator

fyi, Just realized the windows 10 fall update is paused because of some known issues.
Please note that bunch of console rendering issues were resolved in the latest windows 10 fall updates.

@mcarden
Copy link

mcarden commented Jun 21, 2020

This remains an issue for me:

Edition: Windows 10 Enterprise
Version: 1803
Installed on: 4/04/2019
OS build: 17134.1550

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

No branches or pull requests

6 participants