We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 79e9a40 commit 1988582Copy full SHA for 1988582
1 file changed
spork/stream.janet
@@ -26,3 +26,18 @@
26
(when (not (empty? chunk))
27
(yield chunk)))))
28
(coro (fetch-lines @"")))
29
+
30
+(defn make-stdin
31
+ "Return a readable stream on /dev/stdin. It doesn't work on windows."
32
+ []
33
+ (os/open "/dev/stdin" :r))
34
35
+(defn make-stdout
36
+ "Return a writable stream on /dev/stdout. It doesn't work on windows."
37
38
+ (os/open "/dev/stdout" :w))
39
40
+(defn make-stderr
41
+ "Return a writable stream on /dev/stderr. It doesn't work on windows."
42
43
+ (os/open "/dev/stderr" :w))
0 commit comments