-
Notifications
You must be signed in to change notification settings - Fork 843
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
bash.exe in conhost should emit TERM=xterm-256color #1446
Comments
@fpqc - good call, term should probably use TERM=xterm-256color now that color support is in the build. Can you think of any potential negative side-effects of changing this to the default? |
@benhillis Nope! Seems good now. I guess I would ask @zadjii-msft or @bitcrazed if they can think of a reason not to do it. |
Makes sense to us over in console land. Go for it @benhillis! :) |
@benhillis Yeah, by the way, if you have tmux-git available, you can drop a line in .tmux.conf to override terminal capabilities and also enable 24-bit color (the problem is that the current terminfo databases haven't standardized the way to show that a terminal emulator is capable).
This has to be done for every 'outer' terminal (including, for example, screen-256color if you like to use nested remote and local instances of tmux): So that requires in the remote instance:
|
@benhillis By the way, once conhost hits stable territory wrt the new features planned, it should probably emit something like winxterm or something. That way you can provide a custom terminfo to the ncurses maintainer that describes the exact capabilities of the windows console (and emit it as TERM) |
@fpqc The goal has always to make conhost's capabilities equivalent to those listed in |
@zadjii-msft You're going to implement Sixels? It also includes the following warning at the beginning of the sourcecode:
|
@fpqc No, I meant that we're trying to emulate what |
As mentioned in the comment, Windows people seem to be fine with this: microsoft/WSL#1446 I still think a precise terminfo file with the list of supported sequences documented in the below link would be ideal: https://docs.microsoft.com/en-us/windows/console/console-virtual-terminal-sequences But I didn't find such a file. And I don't know how to generate one easily. Signed-off-by: Mohammad AlSaleh <[email protected]>
As mentioned in the comment, Windows people seem to be fine with this: microsoft/WSL#1446 I still think a precise terminfo file with the list of supported sequences documented in the below link would be ideal: https://docs.microsoft.com/en-us/windows/console/console-virtual-terminal-sequences But I didn't find such a file. And I don't know how to generate one easily. Signed-off-by: Mohammad AlSaleh <[email protected]>
As mentioned in the comment, Windows people seem to be fine with this: microsoft/WSL#1446 I still think a precise terminfo file with the list of supported sequences documented in the below link would be ideal: https://docs.microsoft.com/en-us/windows/console/console-virtual-terminal-sequences But I didn't find such a file. And I don't know how to generate one easily. Signed-off-by: Mohammad AlSaleh <[email protected]>
As mentioned in the comment, Windows people seem to be fine with this: microsoft/WSL#1446 I still think a precise terminfo file with the list of supported sequences documented in the below link would be ideal: https://docs.microsoft.com/en-us/windows/console/console-virtual-terminal-sequences But I didn't find such a file. And I don't know how to generate one easily. Signed-off-by: Mohammad AlSaleh <[email protected]>
As mentioned in the comment, Windows people seem to be fine with this: microsoft/WSL#1446 I still think a precise terminfo file with the list of supported sequences documented in the below link would be ideal: https://docs.microsoft.com/en-us/windows/console/console-virtual-terminal-sequences But I didn't find such a file. And I don't know how to generate one easily. Signed-off-by: Mohammad AlSaleh <[email protected]>
As mentioned in the comment, Windows people seem to be fine with this: microsoft/WSL#1446 I still think a precise terminfo file with the list of supported sequences documented in the below link would be ideal: https://docs.microsoft.com/en-us/windows/console/console-virtual-terminal-sequences But I didn't find such a file. And I don't know how to generate one easily. Signed-off-by: Mohammad AlSaleh <[email protected]>
Windows people seem to be fine with this: microsoft/WSL#1446 I still think a precise terminfo file with the list of supported sequences documented in the below link would be ideal: https://docs.microsoft.com/en-us/windows/console/console-virtual-terminal-sequences But I didn't find such a file. And I don't know how to generate one easily. A copy of xterm-256color terminfo file is included at compile-time. I copied it from ncurses 6.1. With this commit, term should be on par with ansi_term for Windows 10 users. Signed-off-by: Mohammad AlSaleh <[email protected]>
Windows people seem to be fine with this: microsoft/WSL#1446 I still think a precise terminfo file with the list of supported sequences documented in the below link would be ideal: https://docs.microsoft.com/en-us/windows/console/console-virtual-terminal-sequences But I didn't find such a file. And I don't know how to generate one easily. A copy of xterm-256color terminfo file is included at compile-time. I copied it from ncurses 6.1. With this commit, term should be on par with ansi_term for Windows 10 users. Signed-off-by: Mohammad AlSaleh <[email protected]>
Windows people seem to be fine with this: microsoft/WSL#1446 I still think a precise terminfo file with the list of supported sequences documented in the below link would be ideal: https://docs.microsoft.com/en-us/windows/console/console-virtual-terminal-sequences But I didn't find such a file. And I don't know how to generate one easily. A copy of xterm-256color terminfo file is included at compile-time. I copied it from ncurses 6.1. With this commit, term should be on par with ansi_term for Windows 10 users. Signed-off-by: Mohammad AlSaleh <[email protected]>
Windows people seem to be fine with this: microsoft/WSL#1446 I still think a precise terminfo file with the list of supported sequences documented in the below link would be ideal: https://docs.microsoft.com/en-us/windows/console/console-virtual-terminal-sequences But I didn't find such a file. And I don't know how to generate one easily. A copy of xterm-256color terminfo file is included at compile-time. I copied it from ncurses 6.1. With this commit, term should be on par with ansi_term for Windows 10 users. Signed-off-by: Mohammad AlSaleh <[email protected]>
Windows people seem to be fine with this: microsoft/WSL#1446 I still think a precise terminfo file with the list of supported sequences documented in the below link would be ideal: https://docs.microsoft.com/en-us/windows/console/console-virtual-terminal-sequences But I didn't find such a file. And I don't know how to generate one easily. A copy of xterm-256color terminfo file is included at compile-time. I copied it from ncurses 6.1. With this commit, term should be on par with ansi_term for Windows 10 users. Signed-off-by: Mohammad AlSaleh <[email protected]>
Windows people seem to be fine with this: microsoft/WSL#1446 I still think a precise terminfo file with the list of supported sequences documented in the below link would be ideal: https://docs.microsoft.com/en-us/windows/console/console-virtual-terminal-sequences But I didn't find such a file. And I don't know how to generate one easily. A copy of xterm-256color terminfo file is included at compile-time. I copied it from ncurses 6.1. With this commit, term should be on par with ansi_term for Windows 10 users. Signed-off-by: Mohammad AlSaleh <[email protected]>
Windows people seem to be fine with this: microsoft/WSL#1446 I still think a precise terminfo file with the list of supported sequences documented in the below link would be ideal: https://docs.microsoft.com/en-us/windows/console/console-virtual-terminal-sequences But I didn't find such a file. And I don't know how to generate one easily. A copy of xterm-256color terminfo file is included at compile-time. I copied it from ncurses 6.1. With this commit, term should be on par with ansi_term for Windows 10 users. Signed-off-by: Mohammad AlSaleh <[email protected]>
Windows people seem to be fine with this: microsoft/WSL#1446 I still think a precise terminfo file with the list of supported sequences documented in the below link would be ideal: https://docs.microsoft.com/en-us/windows/console/console-virtual-terminal-sequences But I didn't find such a file. And I don't know how to generate one easily. A copy of xterm-256color terminfo file is included at compile-time. I copied it from ncurses 6.1. With this commit, term should be on par with ansi_term for Windows 10 users. Signed-off-by: Mohammad AlSaleh <[email protected]>
Windows people seem to be fine with this: microsoft/WSL#1446 I still think a precise terminfo file with the list of supported sequences documented in the below link would be ideal: https://docs.microsoft.com/en-us/windows/console/console-virtual-terminal-sequences But I didn't find such a file. And I don't know how to generate one easily. A copy of xterm-256color terminfo file is included at compile-time. I copied it from ncurses 6.1. With this commit, term should be on par with ansi_term for Windows 10 users. Signed-off-by: Mohammad AlSaleh <[email protected]>
Windows people seem to be fine with this: microsoft/WSL#1446 I still think a precise terminfo file with the list of supported sequences documented in the below link would be ideal: https://docs.microsoft.com/en-us/windows/console/console-virtual-terminal-sequences But I didn't find such a file. And I don't know how to generate one easily. Signed-off-by: Mohammad AlSaleh <[email protected]>
Windows people seem to be fine with this: microsoft/WSL#1446 I still think a precise terminfo file with the list of supported sequences documented in the below link would be ideal: https://docs.microsoft.com/en-us/windows/console/console-virtual-terminal-sequences But I didn't find such a file. And I don't know how to generate one easily. A copy of xterm-256color terminfo file is included at compile-time. I copied it from ncurses 6.1. With this commit, term should be on par with ansi_term for Windows 10 users. Signed-off-by: Mohammad AlSaleh <[email protected]>
I was wondering why conhost wasn't rendering my gray statusbar in tmux even though 256color is there. The problem was that the default environment variable for
TERM
is xterm and not xterm-256color.I think this is a WSL/init problem since bash.exe passes the default TERM variable to the WSL environment.
There is a workaround available, which is to launch bash.exe with the correct environment variable (in my case to launch tmux with the correct outer environment variable) as follows:
bash.exe -c "TERM=xterm-256color tmux"
but this is less than ideal. The reason this matters is that programs will change what escape sequences they print to the terminal based on the environment's
TERM
, so it wastes all of the great work done by the console team.The text was updated successfully, but these errors were encountered: