mirror of
https://github.com/p-ranav/indicators.git
synced 2025-12-08 13:38:52 +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,12 +1,14 @@
|
||||
#include <indicators/progress_bar.hpp>
|
||||
#include <indicators/progress_spinner.hpp>
|
||||
#include <indicators/cursor_control.hpp>
|
||||
#include <vector>
|
||||
|
||||
int main() {
|
||||
using namespace indicators;
|
||||
|
||||
// Hide cursor
|
||||
std::cout << "\e[?25l";
|
||||
using namespace indicators;
|
||||
show_console_cursor(false);
|
||||
|
||||
{
|
||||
//
|
||||
// PROGRESS BAR 1
|
||||
@@ -312,7 +314,7 @@ int main() {
|
||||
}
|
||||
|
||||
// Show cursor
|
||||
std::cout << "\e[?25h";
|
||||
show_console_cursor(true);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user