diff options
author | Marius <mariausol@gmail.com> | 2010-11-12 20:00:14 +0200 |
---|---|---|
committer | Marius <mariausol@gmail.com> | 2010-11-12 20:00:14 +0200 |
commit | 7fc9b91bca833ba04496e8f819fb60dafd77f6e0 (patch) | |
tree | f0fe826eeeb9ae48bac1ffba9c09a3cf3a538f2f /tex/context/base/luat-iop.lua | |
parent | a14e30f10a3fa9a8657aef179359847fca0dbd01 (diff) | |
download | context-7fc9b91bca833ba04496e8f819fb60dafd77f6e0.tar.gz |
beta 2010.11.12 18:22
Diffstat (limited to 'tex/context/base/luat-iop.lua')
-rw-r--r-- | tex/context/base/luat-iop.lua | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/tex/context/base/luat-iop.lua b/tex/context/base/luat-iop.lua index 6642a2383..091639de2 100644 --- a/tex/context/base/luat-iop.lua +++ b/tex/context/base/luat-iop.lua @@ -133,10 +133,12 @@ function ioout.modes.handy() o_permit('[^/]') end +local input_mode directives.register("system.inputmode", function(v) input_mode = v end) +local output_mode directives.register("system.outputmode", function(v) output_mode = v end) function io.checkopeners() - local inp = resolvers.variable("input_mode") - local out = resolvers.variable("output_mode") + local inp = input_mode or resolvers.variable("input_mode") -- or ... will become obsolete + local out = output_mode or resolvers.variable("output_mode") -- or ... will become obsolete inp = inp and ioinp.modes[inp] out = out and ioinp.modes[out] if inp then inp() end |