View | Details | Raw Unified | Return to bug 230101
Collapse All | Expand All

(-)/usr/src/bin/ls/ls.c (-1 / +1 lines)
Lines 374-380 Link Here
374
		f_listdot = 1;
374
		f_listdot = 1;
375
375
376
	/* Enabling of colours is conditional on the environment. */
376
	/* Enabling of colours is conditional on the environment. */
377
	if (getenv("CLICOLOR") &&
377
	if ((getenv("CLICOLOR") || getenv("COLORTERM")) &&
378
	    (isatty(STDOUT_FILENO) || getenv("CLICOLOR_FORCE")))
378
	    (isatty(STDOUT_FILENO) || getenv("CLICOLOR_FORCE")))
379
#ifdef COLORLS
379
#ifdef COLORLS
380
		if (tgetent(termcapbuf, getenv("TERM")) == 1) {
380
		if (tgetent(termcapbuf, getenv("TERM")) == 1) {

Return to bug 230101