How to change text while running in console?
Vladimir Panteleev via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Sun Apr 26 19:33:18 PDT 2015
On Monday, 27 April 2015 at 02:32:17 UTC, Adam D. Ruppe wrote:
> 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?
>
> Have you tried it yet? The solution is basically the same, you
> just write out the carriage return character to the device.
You also need to flush the FILE buffer, as C stdio will do that
for you only if the string contains a \n character.
More information about the Digitalmars-d-learn
mailing list