From 7176bfc655ca69c9e68fa917ca62441f821f6927 Mon Sep 17 00:00:00 2001 From: Bob Polis Date: Mon, 13 Dec 2021 15:02:04 +0100 Subject: [PATCH] Adapted to new cursor_hider api --- progress.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/progress.cpp b/progress.cpp index 2636165..ca9b9e5 100644 --- a/progress.cpp +++ b/progress.cpp @@ -11,7 +11,7 @@ void show_progress(const sc::term& t) { struct timespec tm; tm.tv_nsec = 10000000; tm.tv_sec = 0; - sc::cursor_hider ch {STDERR_FILENO}; + sc::cursor_hider ch {&std::cerr}; for (int i = 0; i < 1000; ++i) { t.progress(12, "progress bar", i, 1000); nanosleep(&tm, nullptr);