Re: Windows Msys terminal not flushing on newlines

2022-03-27 Thread Anonymouse via Digitalmars-d-learn
On Sunday, 27 March 2022 at 18:09:30 UTC, Adam D Ruppe wrote: Normally the IOLBF thing does help there - that means line buffering - but my recommentation is to explicitly call `stdout.flush()` any time it is important in your code. Then you aren't depending on the relatively hidden config

Re: Windows Msys terminal not flushing on newlines

2022-03-27 Thread kdevel via Digitalmars-d-learn
Don't know if this is OT here. On Sunday, 27 March 2022 at 18:09:30 UTC, Adam D Ruppe wrote: If the C library thinks it is talking to a pipe, it will switch to block buffering instead of line buffering. It must just think msys is a pipe (since it probably is under the hood). while compiling

Re: Windows Msys terminal not flushing on newlines

2022-03-27 Thread Adam D Ruppe via Digitalmars-d-learn
On Sunday, 27 March 2022 at 17:46:54 UTC, Anonymouse wrote: I installed Git for Windows which comes with the Msys terminal, and I noticed writeln lines aren't being flushed on linebreaks If the C library thinks it is talking to a pipe, it will switch to block buffering instead of line

Windows Msys terminal not flushing on newlines

2022-03-27 Thread Anonymouse via Digitalmars-d-learn
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