mirror of
https://github.com/p-ranav/indicators.git
synced 2025-12-16 04:18:51 +08:00
cursor movement and cursor hiding support for windows
This commit is contained in:
@@ -1,7 +1,10 @@
|
||||
#include <indicators/multi_progress.hpp>
|
||||
#include <indicators/progress_bar.hpp>
|
||||
#include <indicators/cursor_control.hpp>
|
||||
|
||||
int main() {
|
||||
indicators::enable_cursor_movement();
|
||||
indicators::show_console_cursor(false);
|
||||
|
||||
indicators::ProgressBar bar1{indicators::option::BarWidth{50},
|
||||
indicators::option::Start{"["},
|
||||
@@ -81,5 +84,7 @@ int main() {
|
||||
second_job.join();
|
||||
third_job.join();
|
||||
|
||||
indicators::show_console_cursor(true);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user