Goby v2
|
Contains functions for adding color to Terminal window streams. More...
Functions | |
std::ostream & | add_escape_code (std::ostream &os, const std::string &esc_code) |
std::ostream & | red (std::ostream &os) |
All text following this manipulator is red. (e.g. std::cout << red << "text";) | |
std::ostream & | lt_red (std::ostream &os) |
All text following this manipulator is light red (e.g. std::cout << lt_red << "text";) | |
std::ostream & | green (std::ostream &os) |
All text following this manipulator is green (e.g. std::cout << green << "text";) | |
std::ostream & | lt_green (std::ostream &os) |
All text following this manipulator is light green (e.g. std::cout << lt_green << "text";) | |
std::ostream & | yellow (std::ostream &os) |
All text following this manipulator is yellow (e.g. std::cout << yellow << "text";) | |
std::ostream & | lt_yellow (std::ostream &os) |
All text following this manipulator is light yellow (e.g. std::cout << lt_yellow << "text";) | |
std::ostream & | blue (std::ostream &os) |
All text following this manipulator is blue (e.g. std::cout << blue << "text";) | |
std::ostream & | lt_blue (std::ostream &os) |
All text following this manipulator is light blue (e.g. std::cout << lt_blue << "text";) | |
std::ostream & | magenta (std::ostream &os) |
All text following this manipulator is magenta (e.g. std::cout << magenta << "text";) | |
std::ostream & | lt_magenta (std::ostream &os) |
All text following this manipulator is light magenta (e.g. std::cout << lt_magenta << "text";) | |
std::ostream & | cyan (std::ostream &os) |
All text following this manipulator is cyan (e.g. std::cout << cyan << "text";) | |
std::ostream & | lt_cyan (std::ostream &os) |
All text following this manipulator is light cyan (e.g. std::cout << lt_cyan << "text";) | |
std::ostream & | white (std::ostream &os) |
All text following this manipulator is white (e.g. std::cout << white << "text";) | |
std::ostream & | lt_white (std::ostream &os) |
All text following this manipulator is bright white (e.g. std::cout << lt_white << "text";) | |
std::ostream & | nocolor (std::ostream &os) |
All text following this manipulator is uncolored (e.g. std::cout << green << "green" << nocolor << "uncolored";) | |
Contains functions for adding color to Terminal window streams.
std::ostream & goby::common::tcolor::add_escape_code | ( | std::ostream & | os, |
const std::string & | esc_code | ||
) |
Append the given escape code to the stream os
os | ostream to append to |
esc_code | escape code to append (e.g. "\33[31m") |
Definition at line 27 of file term_color.cpp.