[Issue 387] When EOF of din is reached, a line of output is lost

Walter Bright newshound at digitalmars.com
Sat Oct 7 11:39:57 PDT 2006

Stewart Gordon wrote:
> Walter Bright wrote:
> <snip>
>> For a workaround, test to see which version of Windows you're running 
>> under, and generate an extra line of output for the buggy one. Look in 
>> std/file.d for how to determine the version.
> That's what I thought for a moment.  But how do I detect whether stdin 
> or stdout is redirected?

C's isatty()

More information about the Digitalmars-d-bugs mailing list