haxetink / tink_io

Asynchronous I/O everywhere
https://haxetink.github.io/tink_io
MIT License
18 stars 12 forks source link

StdSink does not flush #19

Closed kevinresol closed 7 years ago

kevinresol commented 7 years ago

I am working on tink_cli and realizes that Sink.stdout does not flush after piping to it:

In here: https://github.com/haxetink/tink_cli/blob/a5f05a9/src/tink/cli/prompt/DuplexPrompt.hx#L26

It does not print on the screen unless I force flush it by saying Sys.stdout().flush()

I cannot say {end: true} either, because that will cause me some bad file descriptor error