On Tuesday, 3 December 2013 at 20:36:22 UTC, Benji wrote:
On Tuesday, 3 December 2013 at 19:33:47 UTC, Ali Çehreli wrote:
On 12/03/2013 09:12 AM, Benji wrote:
Hello,
in order to have correctly displayed output (before reading
something
from stdin),
I must call stdout.flush().
I am surprised that you need that. What is your platform?
Normally, stdin and stdout are "tied". Reading from stdin
flushes stdout automatically.
Ali
I am using Xubuntu, 64bit, and GDC as compiler
I haven't seen this behavior, though I haven't used GDC (debian
is close enough right). This has been how I've retrieved user
data:
https://github.com/JesseKPhillips/JPDLibs/blob/cmdln/cmdln/interact.d#L60