fix colors in terminal on windows (#678)

This commit is contained in:
mugiseyebrows authored and GitHub committed 2024-11-04 08:54:48 +00:00
1 parent 54bc6bf191
commit 371ef81c7b
1 file changed
+3
+3
View File
@@ -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");