Implemented console output for Windows
This commit is contained in:
parent
064bb3acc7
commit
01ea543995
@ -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
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user