diff --git a/src/libcmd/repl.cc b/src/libcmd/repl.cc index 49865aa90..d87f61f39 100644 --- a/src/libcmd/repl.cc +++ b/src/libcmd/repl.cc @@ -268,7 +268,7 @@ ReplExitStatus NixRepl::mainLoop() /* Stop the progress bar because it interferes with the display of the repl. */ - stopProgressBar(); + logger->pause(); std::string input; @@ -622,9 +622,9 @@ ProcessLineResult NixRepl::processLine(std::string line) // TODO: this only shows a progress bar for explicitly initiated builds, // not eval-time fetching or builds performed for IFD. // But we can't just show it everywhere, since that would erase partial output from evaluation. - startProgressBar(); + logger->resume(); Finally stopLogger([&]() { - stopProgressBar(); + logger->pause(); }); state->store->buildPaths({