<div dir="ltr">On Tue, Sep 2, 2008 at 1:37 PM, Chris R. Miller <span dir="ltr"><<a href="mailto:lordSaurontheGreat@gmail.com">lordSaurontheGreat@gmail.com</a>></span> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div><div></div><div class="Wj3C7c">Brendan wrote:<br>
> Jarrett Billingsley Wrote:<br>
><br>
><br>
>> </blockquote></div><br>If you're expecting it to pause after each character.. you're missing braces around the body of the for loop, this isn't Python ;)<br></div><br>
>><br>
><br>
> Oooooh, what a foolish mistake! How could I forget that? Thanks for pointing it out.<br>
><br>
> But the result isn't fruitful, though. When I run it, all I get is an empty screen, then after many seconds the whole string is displayed at once (not to mention I set the sleep time to 0.1 seconds). I'm probably missing something. Any idea?<br>
<br>
</div></div>Flush the output?<br>
<br>
</blockquote></div><br>Totally. <br><br>foreach(ch; s) { write(ch); fflush(stdout); system("pause 0.2"); }<br></div>