diff --git a/src/detections/detection.rs b/src/detections/detection.rs index 6b103f344..f951c56d9 100644 --- a/src/detections/detection.rs +++ b/src/detections/detection.rs @@ -1147,7 +1147,10 @@ impl Detection { let val = format!("{}{}", value.to_formatted_string(&Locale::en), disable_flag); write_color_buffer( &BufferWriter::stdout(ColorChoice::Always), - Some(Color::Rgb(0, 255, 0)), + get_writable_color( + Some(Color::Rgb(0, 255, 0)), + stored_static.common_options.no_color, + ), key.as_str(), false, ) @@ -1208,7 +1211,10 @@ impl Detection { ); write_color_buffer( &BufferWriter::stdout(ColorChoice::Always), - Some(Color::Rgb(0, 255, 0)), + get_writable_color( + Some(Color::Rgb(0, 255, 0)), + stored_static.common_options.no_color, + ), key.as_str(), false, ) diff --git a/src/main.rs b/src/main.rs index 6e9a2ab0e..473f04c7d 100644 --- a/src/main.rs +++ b/src/main.rs @@ -1606,7 +1606,10 @@ impl App { println!(); write_color_buffer( &BufferWriter::stdout(ColorChoice::Always), - Some(Color::Rgb(255, 175, 0)), + get_writable_color( + Some(Color::Rgb(255, 175, 0)), + stored_static.common_options.no_color, + ), wait_message, true, ) @@ -1656,7 +1659,10 @@ impl App { { write_color_buffer( &BufferWriter::stdout(ColorChoice::Always), - Some(Color::Rgb(255, 175, 0)), + get_writable_color( + Some(Color::Rgb(255, 175, 0)), + stored_static.common_options.no_color, + ), "Creating the channel filter. Please wait.", true, )