diff options
author | David Sherret <dsherret@users.noreply.github.com> | 2024-02-07 11:25:14 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-02-07 11:25:14 -0500 |
commit | 83d72e5c1c0b983f4b63f3f64f9a1de7600985f4 (patch) | |
tree | 49dfd980df2fce512fa13c3650d1c45a3e500a51 /runtime/worker_bootstrap.rs | |
parent | a32e7f0eb23fa17f5af2fc4c8abfd79762934244 (diff) |
refactor: extract out `runtime::colors` to `deno_terminal::colors` (#22324)
Diffstat (limited to 'runtime/worker_bootstrap.rs')
-rw-r--r-- | runtime/worker_bootstrap.rs | 4 |
1 files changed, 2 insertions, 2 deletions
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(), |