Skip to content

Commit cca4e8c

Browse files
authored
Merge pull request #12504 from NaN-git/fix-repl
repl: suppress progress bar in printValue()
2 parents 258b5ef + dc359f8 commit cca4e8c

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/libcmd/repl.cc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,9 @@ struct NixRepl
101101
Value & v,
102102
unsigned int maxDepth = std::numeric_limits<unsigned int>::max())
103103
{
104+
// Hide the progress bar during printing because it might interfere
105+
logger->pause();
106+
Finally resumeLoggerDefer([]() { logger->resume(); });
104107
::nix::printValue(*state, str, v, PrintOptions {
105108
.ansiColors = true,
106109
.force = true,

0 commit comments

Comments
 (0)