diff options
Diffstat (limited to 'runtime/js/99_main.js')
-rw-r--r-- | runtime/js/99_main.js | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/runtime/js/99_main.js b/runtime/js/99_main.js index fb5de250c..a0f059603 100644 --- a/runtime/js/99_main.js +++ b/runtime/js/99_main.js @@ -574,13 +574,14 @@ delete Object.prototype.__proto__; args, location: locationHref, noColor, + isTty, pid, ppid, unstableFlag, cpuCount, } = runtimeOptions; - colors.setNoColor(noColor); + colors.setNoColor(noColor || !isTty); if (locationHref != null) { location.setLocationHref(locationHref); } @@ -666,12 +667,13 @@ delete Object.prototype.__proto__; unstableFlag, pid, noColor, + isTty, args, location: locationHref, cpuCount, } = runtimeOptions; - colors.setNoColor(noColor); + colors.setNoColor(noColor || !isTty); location.setLocationHref(locationHref); numCpus = cpuCount; registerErrors(); |