From 94ee778cbd96ad5d12a0e9fddf05828df3f4ef16 Mon Sep 17 00:00:00 2001 From: Pranav Srinivas KumaR Date: Tue, 3 Dec 2019 23:51:46 -0600 Subject: [PATCH] Hiding cursor in example --- test/multiple_bars.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/test/multiple_bars.cpp b/test/multiple_bars.cpp index 2499b9e..b2a78f9 100644 --- a/test/multiple_bars.cpp +++ b/test/multiple_bars.cpp @@ -3,6 +3,9 @@ int main() { + // Hide cursor + std::cout << "\e[?25l"; + // // PROGRESS BAR 1 // @@ -102,6 +105,9 @@ int main() { thread3.join(); std::this_thread::sleep_for(std::chrono::milliseconds(5000)); - + + // Show cursor + std::cout << "\e[?25h"; + return 0; }