-
Notifications
You must be signed in to change notification settings - Fork 775
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
Consider setting TERM to xterm-256color #828
Comments
I could add per-target OS defaults for TERM so that win10 / 2016 gets this, while the others get XTERM. As people test others OSes we could add special defaults for them. Let me know if this is desirable. |
@DarwinJS that seems reasonable |
Coded and tested. FYI, in order to properly get Windows Version from Powershell 2 through Windows 10, the following code appears to be the minimum (and the registry keys are a bit messy as of kernel version 10 and "[environment]::OSVersion.Version" is depreciated):
|
@DarwinJS -Thanks for taking your time and looking into this. This issue can be fixed in the code level. I will make changes to set the TERM to "xterm-256color". |
@bagajjal - not sure what you mean? The installer I maintain also installs just the SSH client utils. In fact, that is the default mode if you don't give it additional switches. Do you mean that ssh.exe will do it's own defaults if no TERM variable is found? |
Yes, in the code we check for the TERM environment variable. If it doesn't exists then we set the TERM to xterm-256color. |
Ok cool. |
If the TERM environment variable is set then the code will not do anything. If the TERM environment variable is not set then only the code will set the TERM to xterm-256color. |
Fix is available in the Aug-Mid release.. |
With the change to set TERM=xterm if TERM is not set, this allows some vt100 codes to work correctly. However, if you ssh into Ubuntu16.04 (for example), you'll notice that the prompt doesn't have color. However if you:
The bash prompt has full color as you would expect. Don't know if this setting is only compatible with Win10.
The text was updated successfully, but these errors were encountered: