aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to '')
-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 1eca12a8..fbadccec 100644
--- a/src/jit/dump.lua
+++ b/src/jit/dump.lua
@@ -653,7 +653,8 @@ end
653local function dumpon(opt, outfile) 653local function dumpon(opt, outfile)
654 if active then dumpoff() end 654 if active then dumpoff() end
655 655
656 local colormode = os.getenv("COLORTERM") and "A" or "T" 656 local term = os.getenv("TERM")
657 local colormode = (term and term:match("color") or os.getenv("COLORTERM")) and "A" or "T"
657 if opt then 658 if opt then
658 opt = gsub(opt, "[TAH]", function(mode) colormode = mode; return ""; end) 659 opt = gsub(opt, "[TAH]", function(mode) colormode = mode; return ""; end)
659 end 660 end