diff options
| author | avanspector <avanspector@gmail.com> | 2024-09-17 16:57:02 +0200 |
|---|---|---|
| committer | avanspector <avanspector@gmail.com> | 2024-09-17 16:57:02 +0200 |
| commit | c794f853e943ba0f70c0e927c50ada1bf5136117 (patch) | |
| tree | 717f6769657041f8ae9f30928ba3bafd95e760b6 /core/testing/runner.odin | |
| parent | 3135c89a0aed7528baba4ec8d45a6c2549862007 (diff) | |
init ansi on a standalone testing exe
Diffstat (limited to 'core/testing/runner.odin')
| -rw-r--r-- | core/testing/runner.odin | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/core/testing/runner.odin b/core/testing/runner.odin index 386ba8cb5..10d5dca5c 100644 --- a/core/testing/runner.odin +++ b/core/testing/runner.odin @@ -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)) |