p-ranav / indicators

Activity Indicators for Modern C++
MIT License
3.04k stars 237 forks source link

New line on each Update #91

Closed luxploit-old closed 3 years ago

luxploit-old commented 3 years ago

OS: Windows

Hi, soo uhm on each update, it prints a new line instead of updating it.

The Result: https://i.imgur.com/aE4Poji.png

The Code:

        cLog->Signature("Starting Second Scan");
        indicators::ProgressBar PatternScanner{
            indicators::option::BarWidth{80},
            indicators::option::Start{"["},
            indicators::option::Fill{"="},
            indicators::option::Lead{">"},
            indicators::option::Remainder{" "},
            indicators::option::End{"]"},
            indicators::option::PostfixText{"Scanning for Variable Pointers"},
            indicators::option::ForegroundColor{indicators::Color::red},
        };
        cLog->Pointer("%i", Signature::memorycount); //111

        for (int ix = 0; ix < Signature::memorycount; ix++)
            PatternScanner.tick();
        PatternScanner.mark_as_completed();
        if (PatternScanner.is_completed())
            cLog->Signature("Finished All Scans");
luxploit-old commented 3 years ago

90 did the trick with the carrige returns