How to change text while running in console?
Vladimir Panteleev via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Sun Apr 26 19:30:34 PDT 2015
On Monday, 27 April 2015 at 02:26:01 UTC, Israel wrote:
> I remember doing this in C++ and it worked but is this possible
> in D?
>
> Its basically updating information in the console window
> without constantly printing new lines.
>
> http://stackoverflow.com/questions/14043148/how-to-change-text-while-running-the-console
write(info, "\r"); stdout.flush();
E.g. with percent:
writef("%d%%\r", current * 100 / total); stdout.flush();
More information about the Digitalmars-d-learn
mailing list