Skip to content

Commit

Permalink
Don't let ephemeral mode overwrite prompt
Browse files Browse the repository at this point in the history
  • Loading branch information
spinicist committed Mar 22, 2024
1 parent 263cfbb commit db2a8f2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/log.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,8 @@ void SetLevel(Level const l)
} else {
isTTY = false;
}
// Move the cursor one more line down so we don't erase command names etc.
if (CurrentLevel() == Level::Ephemeral) { fmt::print(stderr, "\n"); }
}

void SetDebugFile(std::string const &fname) { debug_file = std::make_shared<HD5::Writer>(fname); }
Expand Down

0 comments on commit db2a8f2

Please sign in to comment.