How to update terminal output?

Zardoz luis.panadero at gmail.com
Sun Mar 28 17:15:50 UTC 2021


On Sunday, 28 March 2021 at 16:45:29 UTC, dog2002 wrote:
> I mean, I want to write a string without a new line. For 
> example, some command line applications have progress bars.
>
> For a single line string I use \r. But it doesn't work for a 
> multiple line string - the application is just adding new lines.

You must use ANSI control codes to repositionate the cursor or 
use a library like ncurses that handle this kind of stuff.

https://code.dlang.org/search?q=ncurses

In particular , nice-curses have a class to generate a TUI 
progress bar


More information about the Digitalmars-d-learn mailing list