summaryrefslogtreecommitdiff
path: root/Omni/Log.hs
diff options
context:
space:
mode:
Diffstat (limited to 'Omni/Log.hs')
-rw-r--r--Omni/Log.hs5
1 files changed, 3 insertions, 2 deletions
diff --git a/Omni/Log.hs b/Omni/Log.hs
index 91fcb55..ecfe973 100644
--- a/Omni/Log.hs
+++ b/Omni/Log.hs
@@ -65,8 +65,9 @@ msg lvl labels =
area +> \case
"Live" -> putDumb
_ ->
- Env.getEnv "TERM" +> \case
- "dumb" -> putDumb
+ Env.lookupEnv "TERM" +> \case
+ Just "dumb" -> putDumb
+ Nothing -> putDumb
_ -> Rainbow.hPutChunks IO.stderr [fore color <| clear <> chunk txt <> "\r"]
where
-- For systemd-journal, emacs *compilation* buffers, etc.