Closed kevinresol closed 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()
Sys.stdout().flush()
I cannot say {end: true} either, because that will cause me some bad file descriptor error
{end: true}
bad file descriptor
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 somebad file descriptor
error