mirror of
https://github.com/p-ranav/indicators.git
synced 2025-12-16 04:18:51 +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,9 +1,10 @@
|
||||
#include <indicators/cursor_control.hpp>
|
||||
#include <indicators/progress_spinner.hpp>
|
||||
|
||||
int main() {
|
||||
|
||||
// Hide cursor
|
||||
std::cout << "\e[?25l";
|
||||
indicators::show_console_cursor(false);
|
||||
|
||||
indicators::ProgressSpinner spinner{
|
||||
indicators::option::PostfixText{"Checking credentials"},
|
||||
@@ -34,7 +35,7 @@ int main() {
|
||||
thread.join();
|
||||
|
||||
// Show cursor
|
||||
std::cout << "\e[?25h";
|
||||
indicators::show_console_cursor(true);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user