From 83d72e5c1c0b983f4b63f3f64f9a1de7600985f4 Mon Sep 17 00:00:00 2001 From: David Sherret Date: Wed, 7 Feb 2024 11:25:14 -0500 Subject: refactor: extract out `runtime::colors` to `deno_terminal::colors` (#22324) --- runtime/worker_bootstrap.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'runtime/worker_bootstrap.rs') diff --git a/runtime/worker_bootstrap.rs b/runtime/worker_bootstrap.rs index 519abf74c..ca2d4d8ec 100644 --- a/runtime/worker_bootstrap.rs +++ b/runtime/worker_bootstrap.rs @@ -6,7 +6,7 @@ use serde::Serialize; use std::cell::RefCell; use std::thread; -use crate::colors; +use deno_terminal::colors; /// The log level to use when printing diagnostic log messages, warnings, /// or errors in the worker. @@ -77,7 +77,7 @@ impl Default for BootstrapOptions { user_agent, cpu_count, no_color: !colors::use_color(), - is_tty: colors::is_tty(), + is_tty: deno_terminal::is_stdout_tty(), enable_op_summary_metrics: Default::default(), enable_testing_features: Default::default(), log_level: Default::default(), -- cgit v1.2.3