Windows Msys terminal not flushing on newlines
Anonymouse
zorael at gmail.com
Sun Mar 27 17:46:54 UTC 2022
I installed Git for Windows which comes with the Msys terminal,
and I noticed writeln lines aren't being flushed on linebreaks. I
had this a long time ago and thought I fixed it with the
following, but I guess I never confirmed that it actually worked.
I'm not sure where I copied it from, a TWiD perhaps?
```d
import std.stdio : stdout;
import core.stdc.stdio : _IOLBF;
stdout.setvbuf(4096, _IOLBF); // arbitrary number
```
Is this not the right way to go about things? At least for Msys
it seemingly does nothing.
More information about the Digitalmars-d-learn
mailing list