init ansi on a standalone testing exe

This commit is contained in:
avanspector
2024-09-17 16:57:02 +02:00
parent 3135c89a0a
commit c794f853e9
2 changed files with 26 additions and 0 deletions
+4
View File
@@ -204,6 +204,10 @@ runner :: proc(internal_tests: []Internal_Test) -> bool {
}
}
when ODIN_OS == .Windows {
console_ansi_init()
}
stdout := io.to_writer(os.stream_from_handle(os.stdout))
stderr := io.to_writer(os.stream_from_handle(os.stderr))