From 01ea5439950cfc0794f2984d621fabace39235d5 Mon Sep 17 00:00:00 2001 From: Eduard Urbach Date: Sun, 9 Feb 2025 16:24:36 +0100 Subject: [PATCH] Implemented console output for Windows --- lib/sys/io_windows.q | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/sys/io_windows.q b/lib/sys/io_windows.q index a07a586..c890b14 100644 --- a/lib/sys/io_windows.q +++ b/lib/sys/io_windows.q @@ -4,6 +4,7 @@ read(fd Int, address Pointer, length Int) -> Int { } write(fd Int, address Pointer, length Int) -> Int { - kernel32.WriteFile(fd, address, length) + fd = kernel32.GetStdHandle(-10 - fd) + kernel32.WriteConsoleA(fd, address, length, 0) return length } \ No newline at end of file