summaryrefslogtreecommitdiff
path: root/tex/context/base/mkiv/trac-log.lua
diff options
context:
space:
mode:
Diffstat (limited to 'tex/context/base/mkiv/trac-log.lua')
-rw-r--r--tex/context/base/mkiv/trac-log.lua10
1 files changed, 9 insertions, 1 deletions
diff --git a/tex/context/base/mkiv/trac-log.lua b/tex/context/base/mkiv/trac-log.lua
index fd7b5016a..b35e53f2e 100644
--- a/tex/context/base/mkiv/trac-log.lua
+++ b/tex/context/base/mkiv/trac-log.lua
@@ -126,6 +126,9 @@ if runningtex and texio then
if v == "--ansi" or v == "--c:ansi" then
variant = "ansi"
break
+ elseif v == "--ansilog" or v == "--c:ansilog" then
+ variant = "ansilog"
+ break
end
end
end
@@ -246,6 +249,11 @@ if runningtex and texio then
}
}
+ variants.ansilog = {
+ formats = variants.ansi.formats,
+ targets = variants.default.targets,
+ }
+
logs.flush = io.flush
writer = function(...)
@@ -394,7 +402,7 @@ if runningtex and texio then
subdirect_nop = f.subdirect_nop
status_yes = f.status_yes
status_nop = f.status_nop
- if variant == "ansi" then
+ if variant == "ansi" or variant == "ansilog" then
useluawrites() -- because tex escapes ^^, not needed in lmtx
end
settarget(whereto)