LBANN  0.103.0
LivermoreBigArtificialNeuralNetworkToolkit
output_helpers.hpp File Reference
#include <iostream>
Include dependency graph for output_helpers.hpp:

Go to the source code of this file.

Namespaces

 lbann
 

Functions

bool lbann::is_good_terminal (std::ostream &os) noexcept
 Roughly determines if the stream points to a nice terminal (is a terminal, supports color). More...
 
std::pair< unsigned short, unsigned short > lbann::get_window_size (std::ostream &os) noexcept
 Gets the dimensions of the terminal, if available. More...
 
std::string lbann::truncate_to_width (std::string const &str, size_t max_len)
 A simple utility to replace the tail end of a long string with an ellipsis. More...
 
std::string lbann::strip_ansi_csis (std::string const &input)
 Remove ANSI CSIs from the string. More...
 
std::ostream & lbann::black (std::ostream &)
 Turn the ANSI foreground color output black. More...
 
std::ostream & lbann::red (std::ostream &)
 Turn the ANSI foreground color output red. More...
 
std::ostream & lbann::green (std::ostream &)
 Turn the ANSI foreground color output green. More...
 
std::ostream & lbann::yellow (std::ostream &)
 Turn the ANSI foreground color output yellow. More...
 
std::ostream & lbann::blue (std::ostream &)
 Turn the ANSI foreground color output blue. More...
 
std::ostream & lbann::magenta (std::ostream &)
 Turn the ANSI foreground color output magenta. More...
 
std::ostream & lbann::cyan (std::ostream &)
 Turn the ANSI foreground color output cyan. More...
 
std::ostream & lbann::white (std::ostream &)
 Turn the ANSI foreground color output white. More...
 
std::ostream & lbann::bgblack (std::ostream &)
 Turn the ANSI background color output black. More...
 
std::ostream & lbann::bgred (std::ostream &)
 Turn the ANSI background color output red. More...
 
std::ostream & lbann::bggreen (std::ostream &)
 Turn the ANSI background color output green. More...
 
std::ostream & lbann::bgyellow (std::ostream &)
 Turn the ANSI background color output yellow. More...
 
std::ostream & lbann::bgblue (std::ostream &)
 Turn the ANSI background color output blue. More...
 
std::ostream & lbann::bgmagenta (std::ostream &)
 Turn the ANSI background color output magenta. More...
 
std::ostream & lbann::bgcyan (std::ostream &)
 Turn the ANSI background color output cyan. More...
 
std::ostream & lbann::bgwhite (std::ostream &)
 Turn the ANSI background color output white. More...
 
std::ostream & lbann::nocolor (std::ostream &)
 Reset the ANSI color to the default. More...
 
std::ostream & lbann::clearline (std::ostream &)
 Clear remaining characters in the line. More...