mirror of
https://github.com/Kitware/CMake.git
synced 2026-04-29 02:19:18 -05:00
KWSys 2021-05-06 (2fa93cfc)
Code extracted from:
https://gitlab.kitware.com/utils/kwsys.git
at commit 2fa93cfca6291e8eaffa2a34d2d7908c93e64a6c (master).
Upstream Shortlog
-----------------
Brad King (1):
5c6539ca Terminal: Revert "Simplify CLICOLOR_FORCE check"
This commit is contained in:
committed by
Brad King
parent
04c6e736f6
commit
760bdfb26e
+2
-1
@@ -167,7 +167,8 @@ static int kwsysTerminalStreamIsVT100(FILE* stream, int default_vt100,
|
|||||||
/* Force color according to http://bixense.com/clicolors/ convention. */
|
/* Force color according to http://bixense.com/clicolors/ convention. */
|
||||||
{
|
{
|
||||||
const char* clicolor_force = getenv("CLICOLOR_FORCE");
|
const char* clicolor_force = getenv("CLICOLOR_FORCE");
|
||||||
if (clicolor_force && strcmp(clicolor_force, "0") != 0) {
|
if (clicolor_force && *clicolor_force &&
|
||||||
|
strcmp(clicolor_force, "0") != 0) {
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user