1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2025-07-07 10:11:47 +02:00

Merge pull request #12504 from NaN-git/fix-repl

repl: suppress progress bar in printValue()
This commit is contained in:
Eelco Dolstra 2025-02-18 17:10:56 +01:00 committed by GitHub
commit cca4e8c8c7
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -101,6 +101,9 @@ struct NixRepl
Value & v, Value & v,
unsigned int maxDepth = std::numeric_limits<unsigned int>::max()) unsigned int maxDepth = std::numeric_limits<unsigned int>::max())
{ {
// Hide the progress bar during printing because it might interfere
logger->pause();
Finally resumeLoggerDefer([]() { logger->resume(); });
::nix::printValue(*state, str, v, PrintOptions { ::nix::printValue(*state, str, v, PrintOptions {
.ansiColors = true, .ansiColors = true,
.force = true, .force = true,