@travetto/terminal
Advanced tools
Comparing version 3.3.0 to 3.3.1
{ | ||
"name": "@travetto/terminal", | ||
"version": "3.3.0", | ||
"version": "3.3.1", | ||
"description": "General terminal support", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
@@ -44,6 +44,7 @@ import tty from 'tty'; | ||
static async readBackgroundScheme( | ||
stream: tty.WriteStream, | ||
query: () => Promise<RGB | undefined> | RGB | undefined, | ||
env: string | undefined = process.env.COLORFGBG | ||
): Promise<TermColorScheme | undefined> { | ||
let color = await query(); | ||
let color = stream.isTTY ? await query() : undefined; | ||
if (!color && env) { | ||
@@ -50,0 +51,0 @@ const [, bg] = env.split(';'); |
@@ -94,2 +94,3 @@ import tty from 'tty'; | ||
this.#backgroundScheme ??= await ColorOutputUtil.readBackgroundScheme( | ||
this.#output, | ||
() => this.interactive ? this.#query.backgroundColor() : undefined | ||
@@ -96,0 +97,0 @@ ); |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
47097
1118