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);