From: Mike Frysinger Date: Wed, 20 Jun 2018 22:03:17 +0000 (-0400) Subject: net-misc/openssh: send & accept COLORTERM env var #658540 X-Git-Url: http://git.tremily.us/gitweb.cgi?a=commitdiff_plain;h=4db7e4be4eb444afc5c074bed7b68dcfc8954c3f;p=gentoo.git 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 --- diff --git a/net-misc/openssh/openssh-7.7_p1-r102.ebuild b/net-misc/openssh/openssh-7.7_p1-r102.ebuild index 5bea8702b077..c4747a2597ee 100644 --- a/net-misc/openssh/openssh-7.7_p1-r102.ebuild +++ b/net-misc/openssh/openssh-7.7_p1-r102.ebuild @@ -345,6 +345,9 @@ tweak_ssh_configs() { # Allow client to pass locale environment variables. #367017 AcceptEnv ${locale_vars[*]} + + # Allow client to pass COLORTERM to match TERM. #658540 + AcceptEnv COLORTERM EOF # Then the client config. @@ -352,6 +355,9 @@ tweak_ssh_configs() { # Send locale environment variables. #367017 SendEnv ${locale_vars[*]} + + # Send COLORTERM to match TERM. #658540 + SendEnv COLORTERM EOF if use pam ; then diff --git a/net-misc/openssh/openssh-7.7_p1-r6.ebuild b/net-misc/openssh/openssh-7.7_p1-r6.ebuild index 3e0ed629bbce..a8c8b20d4c27 100644 --- a/net-misc/openssh/openssh-7.7_p1-r6.ebuild +++ b/net-misc/openssh/openssh-7.7_p1-r6.ebuild @@ -345,6 +345,9 @@ tweak_ssh_configs() { # Allow client to pass locale environment variables. #367017 AcceptEnv ${locale_vars[*]} + + # Allow client to pass COLORTERM to match TERM. #658540 + AcceptEnv COLORTERM EOF # Then the client config. @@ -352,6 +355,9 @@ tweak_ssh_configs() { # Send locale environment variables. #367017 SendEnv ${locale_vars[*]} + + # Send COLORTERM to match TERM. #658540 + SendEnv COLORTERM EOF if use pam ; then