Nix 2.28.2
Nix, the purely functional package manager; unstable internal interfaces
 
Loading...
Searching...
No Matches
nix::ProgressBar Class Reference
Inheritance diagram for nix::ProgressBar:

Public Member Functions

 ProgressBar (bool isTTY)
 
void stop () override final
 
void pause () override
 
void resume () override
 
bool isVerbose () override
 
void log (Verbosity lvl, std::string_view s) override
 
void logEI (const ErrorInfo &ei) override
 
void log (State &state, Verbosity lvl, std::string_view s)
 
void startActivity (ActivityId act, Verbosity lvl, ActivityType type, const std::string &s, const Fields &fields, ActivityId parent) override
 
bool hasAncestor (State &state, ActivityType type, ActivityId act)
 
void stopActivity (ActivityId act) override
 
void result (ActivityId act, ResultType type, const std::vector< Field > &fields) override
 
void update (State &state)
 
void redraw (std::string newOutput)
 
std::chrono::milliseconds draw (State &state)
 
std::string getStatus (State &state)
 
void writeToStdout (std::string_view s) override
 
std::optional< char > ask (std::string_view msg) override
 
void setPrintBuildLogs (bool printBuildLogs) override
 

Member Function Documentation

◆ redraw()

void nix::ProgressBar::redraw ( std::string newOutput)
inline

Redraw, if the output has changed.

Excessive redrawing is noticable on slow terminals, and it interferes with text selection in some terminals, including libvte-based terminal emulators.


The documentation for this class was generated from the following file: