aboutsummaryrefslogtreecommitdiff
path: root/core/testing/runner.odin
diff options
context:
space:
mode:
authorJeroen van Rijn <Kelimion@users.noreply.github.com>2024-09-17 17:15:41 +0200
committerGitHub <noreply@github.com>2024-09-17 17:15:41 +0200
commit9508a1f0319f6e9c19c31f15474085d508d42580 (patch)
treead464e633df6985ed1dbb9788fae219d4281fc39 /core/testing/runner.odin
parent0975820c48f8e876c2838a5ef94400fdb5db0f87 (diff)
parentc794f853e943ba0f70c0e927c50ada1bf5136117 (diff)
Merge pull request #4255 from avanspector/master
init ansi on a standalone testing exe
Diffstat (limited to 'core/testing/runner.odin')
-rw-r--r--core/testing/runner.odin4
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))