aboutsummaryrefslogtreecommitdiffhomepage
path: root/internal/rosa/package/muon/respect-colour.patch
blob: a4da13d5e1a0e35618050135d7e9ff6c5e874150 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
diff --git a/src/log.c b/src/log.c
index 34f11f19..22fe8f7d 100644
--- a/src/log.c
+++ b/src/log.c
@@ -506,6 +506,9 @@ log_set_file(struct workspace *wk, FILE *log_file)
 	log_cfg.tstr = 0;
 	log_cfg.tstr_wk = 0;
 	log_cfg.file_is_a_tty = log_file && fs_is_a_tty(wk, log_file);
+	if (getenv("CLICOLOR_FORCE") != NULL) {
+		log_cfg.file_is_a_tty = true;
+	}
 }
 
 void