Stdio.write/writeln and flushing
rikki cattermole via Digitalmars-d
digitalmars-d at puremagic.com
Thu Sep 8 01:56:43 PDT 2016
On 08/09/2016 8:53 PM, Somebody wrote:
> If i write something like:
>
> writeln("what to do?");
> switch(readln[0 .. $ - 1])
> { //..
> }
> writeln("bye");
>
> ...that works just as it should at Windows, started from a command
> prompt. However, if I run it from GNU Emacs, I have to manually flush
> the output after each time I do it before taking input, or else the
> output does not show when it should.
>
> I wonder if write(...) and writeln(...) should automatically flush, to
> enhance portability? Of course, I may be issing missing something?
Same problem with Poderosa (terminal emulator which supports Cygwin) its
at fault of the software which is client of the pipe. Phobos is doing
what it should be doing.
More information about the Digitalmars-d
mailing list