From 7f171b3d1155039788ea000c2b34757de70afaa1 Mon Sep 17 00:00:00 2001 From: Doronin Stanislav Date: Thu, 24 Oct 2024 16:15:23 +0300 Subject: [PATCH] fix colors in terminal on windows --- src/main.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/main.rs b/src/main.rs index 6c9c45e86..d79923a13 100644 --- a/src/main.rs +++ b/src/main.rs @@ -35,6 +35,9 @@ extern crate log; /// Faster Nmap scanning with Rust /// If you're looking for the actual scanning, check out the module Scanner fn main() { + #[cfg(not(unix))] + let _ = ansi_term::enable_ansi_support(); + env_logger::init(); let mut benchmarks = Benchmark::init(); let mut rustscan_bench = NamedTimer::start("RustScan");