summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhilipp Gesang <phg42.2a@gmail.com>2013-11-03 18:35:48 +0100
committerPhilipp Gesang <phg42.2a@gmail.com>2013-11-03 18:35:48 +0100
commit3220fd09a4f97680849047211dab5588c8b33e97 (patch)
tree56e8942504f67338f7fe39662fdfe1e99302f114
parent21e489dc4d4bd66f93a6aea3673e1ca3d317df31 (diff)
downloadluaotfload-3220fd09a4f97680849047211dab5588c8b33e97.tar.gz
[log] suppress status info on dumb terminals
-rw-r--r--luaotfload-database.lua4
-rw-r--r--luaotfload-override.lua6
2 files changed, 4 insertions, 6 deletions
diff --git a/luaotfload-database.lua b/luaotfload-database.lua
index 671af4c..1b20a84 100644
--- a/luaotfload-database.lua
+++ b/luaotfload-database.lua
@@ -713,10 +713,6 @@ resolve_cached = function (_, _, specification)
local entry = { filename, subfont }
report("both", 4, "cache", "New entry: %s", request)
names.lookups[request] = entry
-
- --- obviously, the updated cache needs to be stored.
- --- TODO this should trigger a save only once the
- --- document is compiled (finish_pdffile callback?)
report("both", 5, "cache", "Saving updated cache")
local success = save_lookups()
if not success then --- sad, but not critical
diff --git a/luaotfload-override.lua b/luaotfload-override.lua
index a840909..889bea5 100644
--- a/luaotfload-override.lua
+++ b/luaotfload-override.lua
@@ -310,8 +310,10 @@ local status_start = function (low, high)
status_low = low
status_high = high
- if os.type == "windows" then --- Assume broken terminal.
- status_writer = function (...)
+ if os.type == "windows" --- Assume broken terminal.
+ or os.getenv "TERM" == "dumb"
+ then
+ status_writer = function (mode, ...)
names_report (mode, high, ...)
end
return