From 8ada57eb49fb03d4d1c3cb37e534b97fbb92a5e6 Mon Sep 17 00:00:00 2001 From: Mike Pall Date: Mon, 19 Sep 2016 21:22:19 +0200 Subject: [PATCH] Looks like COLORTERM has gone out of fashion. --- src/jit/dump.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/jit/dump.lua b/src/jit/dump.lua index 7b776422..f70926ab 100644 --- a/src/jit/dump.lua +++ b/src/jit/dump.lua @@ -644,7 +644,8 @@ end local function dumpon(opt, outfile) if active then dumpoff() end - local colormode = os.getenv("COLORTERM") and "A" or "T" + local term = os.getenv("TERM") + local colormode = (term and term:match("color") or os.getenv("COLORTERM")) and "A" or "T" if opt then opt = gsub(opt, "[TAH]", function(mode) colormode = mode; return ""; end) end -- 2.11.4.GIT