mirror of
https://github.com/p-ranav/indicators.git
synced 2025-12-12 17:58:55 +08:00
adjust readme, demo, and examples: replace show/hide cursor calls
This commit is contained in:
committed by
Felix Gündling
parent
d99cad1ede
commit
c2beb2ac22
@@ -1,8 +1,12 @@
|
||||
#include <chrono>
|
||||
#include <indicators/cursor_control.hpp>
|
||||
#include <indicators/progress_bar.hpp>
|
||||
#include <thread>
|
||||
|
||||
int main() {
|
||||
// Hide cursor
|
||||
indicators::show_console_cursor(false);
|
||||
|
||||
indicators::ProgressBar bar{
|
||||
indicators::option::BarWidth{50},
|
||||
indicators::option::Start{" ["},
|
||||
@@ -27,7 +31,7 @@ int main() {
|
||||
}
|
||||
|
||||
// Show cursor
|
||||
std::cout << "\e[?25h";
|
||||
indicators::show_console_cursor(true);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user