major terminal emulators (e.g. VTE, konsole, iTerm2, and slang) have added support for setting the COLORTERM variable to indicate color support: https://gist.github.com/XVilka/8346728 we should update various points to support this. notably our bashrc logic for enabling color by default and openssh for passing this var along.
The bug has been referenced in the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4db7e4be4eb444afc5c074bed7b68dcfc8954c3f commit 4db7e4be4eb444afc5c074bed7b68dcfc8954c3f Author: Mike Frysinger <vapier@gentoo.org> AuthorDate: 2018-06-20 22:03:17 +0000 Commit: Mike Frysinger <vapier@gentoo.org> CommitDate: 2018-06-26 08:18:50 +0000 net-misc/openssh: send & accept COLORTERM env var #658540 For terminal emulators that set this variable, pass it along. Url: https://gist.github.com/XVilka/8346728 Bug: https://bugs.gentoo.org/658540 net-misc/openssh/openssh-7.7_p1-r102.ebuild | 6 ++++++ net-misc/openssh/openssh-7.7_p1-r6.ebuild | 6 ++++++ 2 files changed, 12 insertions(+)
What about COLORFGBG? Seems like it also affects coloring.