--- /usr/src/bin/ls/ls.c 2018-06-22 00:04:07.000000000 +0100 +++ /usr/src/bin/ls/ls.c 2018-07-28 10:29:25.784946000 +0100 @@ -374,7 +374,7 @@ f_listdot = 1; /* Enabling of colours is conditional on the environment. */ - if (getenv("CLICOLOR") && + if ((getenv("CLICOLOR") || getenv("COLORTERM")) && (isatty(STDOUT_FILENO) || getenv("CLICOLOR_FORCE"))) #ifdef COLORLS if (tgetent(termcapbuf, getenv("TERM")) == 1) {