Skip to content

Commit ddfde57

Browse files
authored
Merge pull request #33 from code-troopers/fix/28
fix(#28): Disable coloring on Windows
2 parents 56aa047 + a406e6e commit ddfde57

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/main.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,10 @@ use ct::ports::CTPorts;
2222

2323
fn main() -> Result<(), String> {
2424
show_banner();
25+
if cfg!(windows) {
26+
// disable colored text output on Windows as the Windows terminals do not support it yet
27+
colored::control::set_override(false);
28+
}
2529
let app_args: Vec<String> = env::args().collect();
2630
debug_log(|| String::from("Read ct file"));
2731
let ct_file = CTFile::get_content().ok();

0 commit comments

Comments
 (0)