You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
System.Console does not print colors correctly under terminal emulators using terminfo's direct color mode (AKA 24-bit, truecolor) entries. I understand that there are several other cross platform issues with System.Console (#52374) but none of those directly identify an issue with recognizing direct color mode.
The key obstacle here is not that System.Console does not have 24-bit color support but rather very specifically that colored text generally ends up illegible. For example, TERM=tmux-direct dotnet run no-such-file. Specifically, colored output by dotnet is how I discovered this.
will download the latest source format terminfo file and install the tmux-direct and tmux-256color entries into the default terminfo database directory. Then
$ fortermin tmux-256color tmux-direct ;do TERM=$term dotnet run ;done
will run the program under the different terminfo entries.
Expected behavior
I expect direct color mode terminal entries to behave like 256color entries (given the limitations).
Actual behavior
Tmux 3.1c in Konsole 20.04.2 produces something like
The respective konsole-* entries behave the same, in and out of tmux.
Tagging subscribers to this area: @dotnet/area-system-console
See info in area-owners.md if you want to be subscribed.
Issue Details
Description
System.Console does not print colors correctly under terminal emulators using terminfo's direct color mode entries. I understand that there are several other cross platform issues with System.Console (#52374) but none of those directly identify an issue with (any kind of) support for direct color mode.
The key obstacle here is not that System.Console does not have 24-bit color support but rather very specifically that colored text generally ends up illegible. For example, TERM=tmux-direct dotnet run no-such-file.
will download the latest source format terminfo file and install the tmux-direct and tmux-256color entries into the default terminfo database directory. Then
Expected behavior
I expect direct color mode terminal entries to behave like 256color entries (given the limitations).
Actual behavior
$ fortermin tmux-256color tmux-direct ;do TERM=$term dotnet run ;done
in tmux 3.1c in Konsole 20.04.2 produces something like
The s/tmux/konsole entries behave the same, in and out of tmux.
Description
System.Console
does not print colors correctly under terminal emulators using terminfo's direct color mode (AKA 24-bit, truecolor) entries. I understand that there are several other cross platform issues withSystem.Console
(#52374) but none of those directly identify an issue with recognizing direct color mode.The key obstacle here is not that
System.Console
does not have 24-bit color support but rather very specifically that colored text generally ends up illegible. For example,TERM=tmux-direct dotnet run no-such-file
. Specifically, colored output bydotnet
is how I discovered this.Reproduction Steps
Using
we can print out many color combinations for different
TERM
values. For examplewill download the latest source format terminfo file and install the
tmux-direct
andtmux-256color
entries into the default terminfo database directory. Thenwill run the program under the different terminfo entries.
Expected behavior
I expect direct color mode terminal entries to behave like 256color entries (given the limitations).
Actual behavior
Tmux 3.1c in Konsole 20.04.2 produces something like
The respective
konsole-*
entries behave the same, in and out of tmux.Regression?
No.
Known Workarounds
No response
Configuration
Other information
infocmp
iscolors#0x1000000
.COLORTERM
is1
.0
and unset do not affect this behaviour.The text was updated successfully, but these errors were encountered: