]> gitweb.factorcode.org Git - factor.git/commitdiff
Revert "Support stdio streams (#2204)"
authorJohn Benediktsson <mrjbq7@gmail.com>
Sun, 3 Sep 2023 04:19:55 +0000 (21:19 -0700)
committerJohn Benediktsson <mrjbq7@gmail.com>
Sun, 3 Sep 2023 04:19:55 +0000 (21:19 -0700)
This reverts commit 943b4b47e714434eb1ef97d0981cf0163052a2ee.

basis/io/files/windows/windows.factor

index 22eb1b5f6142a604fb4c35317a3887fe2a53cc8f..d7c848f23fdabe872b8387f76da45ba8e96de2df 100644 (file)
@@ -227,7 +227,9 @@ M: windows wait-for-fd
 : console-app? ( -- ? ) GetConsoleWindow >boolean ;
 
 M: windows init-stdio
-    init-c-stdio ; ! use inherited handles from parent process
+    console-app?
+    [ init-c-stdio ]
+    [ null-reader null-writer null-writer set-stdio ] if ;
 
 : open-file ( path access-mode create-mode flags -- handle )
     [