mirror of
https://github.com/janet-lang/janet
synced 2025-11-03 09:03:02 +00:00
added os/isatty, do not enable colors if stdout is not a tty
This commit is contained in:
@@ -3903,7 +3903,9 @@
|
||||
|
||||
(if-let [jp (getenv-alias "JANET_PATH")] (setdyn *syspath* jp))
|
||||
(if-let [jprofile (getenv-alias "JANET_PROFILE")] (setdyn *profilepath* jprofile))
|
||||
(set colorize (not (getenv-alias "NO_COLOR")))
|
||||
(set colorize (and
|
||||
(not (getenv-alias "NO_COLOR"))
|
||||
(os/isatty stdout)))
|
||||
|
||||
(defn- get-lint-level
|
||||
[i]
|
||||
|
||||
Reference in New Issue
Block a user