Skip to content

Commit

Permalink
Merge branch 'master' into v2.1
Browse files Browse the repository at this point in the history
  • Loading branch information
Mike Pall committed Sep 19, 2016
2 parents 1a9a264 + 8ada57e commit 4ca3909
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/jit/dump.lua
Original file line number Diff line number Diff line change
Expand Up @@ -653,7 +653,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
Expand Down

0 comments on commit 4ca3909

Please sign in to comment.