summaryrefslogtreecommitdiff
path: root/js/os.ts
diff options
context:
space:
mode:
Diffstat (limited to 'js/os.ts')
-rw-r--r--js/os.ts6
1 files changed, 5 insertions, 1 deletions
diff --git a/js/os.ts b/js/os.ts
index 3122830cf..d8c3288d5 100644
--- a/js/os.ts
+++ b/js/os.ts
@@ -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 {