diff options
| author | Ryan Dahl <ry@tinyclouds.org> | 2019-02-08 22:13:04 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-02-08 22:13:04 -0500 |
| commit | 526497bc29faaf99354ee5d1628e8681d6604736 (patch) | |
| tree | fb1168018acbc594cc6df0e9e2dc9e9929c01aa0 /js/os.ts | |
| parent | 4c869dc8851527756b774e3ea202529aa2b3ae1e (diff) | |
Adds deno.noColor (#1716)
Diffstat (limited to 'js/os.ts')
| -rw-r--r-- | js/os.ts | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -9,9 +9,13 @@ import * as util from "./util"; /** process id */ export let pid: number; -export function setPid(pid_: number): void { +/** Reflects the NO_COLOR enviromental variable: https://no-color.org/ */ +export let noColor: boolean; + +export function setGlobals(pid_: number, noColor_: boolean): void { assert(!pid); pid = pid_; + noColor = noColor_; } interface CodeInfo { |
