aboutsummaryrefslogtreecommitdiffhomepage
path: root/janet.1
diff options
context:
space:
mode:
authorCalvin Rose <calsrose@gmail.com>2023-05-06 16:33:45 -0500
committerCalvin Rose <calsrose@gmail.com>2023-05-06 16:33:45 -0500
commitcabbaded68947a7be3bee5c5b9e0dff0a3963c48 (patch)
tree17bd67cba06775dc32f4ca710562bb505d1d3c37 /janet.1
parentupdate readme (diff)
Add support for the NO_COLOR environment variable.
Diffstat (limited to 'janet.1')
-rw-r--r--janet.110
1 files changed, 10 insertions, 0 deletions
diff --git a/janet.1 b/janet.1
index 0557ada3..0c946b2b 100644
--- a/janet.1
+++ b/janet.1
@@ -184,6 +184,10 @@ default repl.
Disable ANSI colors in the repl. Has no effect if no repl is run.
.TP
+.BR \-N
+Enable ANSI colors in the repl. Has no effect if no repl is run.
+
+.TP
.BR \-r
Open a REPL (Read Eval Print Loop) after executing all sources. By default, if Janet is called with no
arguments, a REPL is opened.
@@ -268,5 +272,11 @@ This variable does nothing in the default configuration of Janet, as PRF is disa
cannot be defined for this variable to have an effect.
.RE
+.B NO_COLOR
+.RS
+Turn off color by default in the repl and in the error handler of scripts. This can be changed at runtime
+via dynamic bindings *err-color* and *pretty-format*, or via the command line parameters -n and -N.
+.RE
+
.SH AUTHOR
Written by Calvin Rose <calsrose@gmail.com>