aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/jit/dump.lua3
1 files changed, 2 insertions, 1 deletions
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
644local function dumpon(opt, outfile) 644local function dumpon(opt, outfile)
645 if active then dumpoff() end 645 if active then dumpoff() end
646 646
647 local colormode = os.getenv("COLORTERM") and "A" or "T" 647 local term = os.getenv("TERM")
648 local colormode = (term and term:match("color") or os.getenv("COLORTERM")) and "A" or "T"
648 if opt then 649 if opt then
649 opt = gsub(opt, "[TAH]", function(mode) colormode = mode; return ""; end) 650 opt = gsub(opt, "[TAH]", function(mode) colormode = mode; return ""; end)
650 end 651 end