diff options
author | Nathan Rajlich <nathan@tootallnate.net> | 2012-03-28 05:00:59 +0400 |
---|---|---|
committer | Nathan Rajlich <nathan@tootallnate.net> | 2012-03-28 05:00:59 +0400 |
commit | 208b2307440f95946b232c6a23e2547b7dd94e89 (patch) | |
tree | cb454dc92d78856ea50f62299b1d57e514f3359e /doc | |
parent | a33d1c959a449115883b42753f5140541561ba2b (diff) |
repl: add a 'useColors' option to the repl
This should only be minimally used, since the `terminal` value will usually be
what you are expecting. This option is specifically for the case where `terminal`
is false, but you still want colors to be output (or vice-versa).
Diffstat (limited to 'doc')
-rw-r--r-- | doc/api/repl.markdown | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/doc/api/repl.markdown b/doc/api/repl.markdown index 8ce2cea351d..2104136bf2d 100644 --- a/doc/api/repl.markdown +++ b/doc/api/repl.markdown @@ -47,6 +47,10 @@ takes the following values: - `eval` - function that will be used to eval each given line. Defaults to an async wrapper for `eval()`. See below for an example of a custom `eval`. + - `useColors` - a boolean which specifies whether or not the `writer` function + should output colors. If a different `writer` function is set then this does + nothing. Defaults to the repl's `terminal` value. + - `useGlobal` - if set to `true`, then the repl will use the `global` object, instead of running scripts in a separate context. Defaults to `false`. |