Goby3
3.1.5a
2024.05.23
|
#include <iostream>
#include <map>
#include <string>
#include <utility>
Go to the source code of this file.
Classes | |
struct | goby::util::Colors |
Represents the eight available terminal colors (and bold variants) More... | |
class | goby::util::TermColor |
Converts between string, escape code, and enumeration representations of the terminal colors. More... | |
class | goby::util::TermColorDeleter |
Namespaces | |
goby | |
The global namespace for the Goby project. | |
goby::util | |
goby::util::tcolor | |
Contains functions for adding color to Terminal window streams. | |
Functions | |
std::ostream & | goby::util::tcolor::add_escape_code (std::ostream &os, const std::string &esc_code) |
std::ostream & | goby::util::tcolor::red (std::ostream &os) |
All text following this manipulator is red. (e.g. std::cout << red << "text";) More... | |
std::ostream & | goby::util::tcolor::lt_red (std::ostream &os) |
All text following this manipulator is light red (e.g. std::cout << lt_red << "text";) More... | |
std::ostream & | goby::util::tcolor::green (std::ostream &os) |
All text following this manipulator is green (e.g. std::cout << green << "text";) More... | |
std::ostream & | goby::util::tcolor::lt_green (std::ostream &os) |
All text following this manipulator is light green (e.g. std::cout << lt_green << "text";) More... | |
std::ostream & | goby::util::tcolor::yellow (std::ostream &os) |
All text following this manipulator is yellow (e.g. std::cout << yellow << "text";) More... | |
std::ostream & | goby::util::tcolor::lt_yellow (std::ostream &os) |
All text following this manipulator is light yellow (e.g. std::cout << lt_yellow << "text";) More... | |
std::ostream & | goby::util::tcolor::blue (std::ostream &os) |
All text following this manipulator is blue (e.g. std::cout << blue << "text";) More... | |
std::ostream & | goby::util::tcolor::lt_blue (std::ostream &os) |
All text following this manipulator is light blue (e.g. std::cout << lt_blue << "text";) More... | |
std::ostream & | goby::util::tcolor::magenta (std::ostream &os) |
All text following this manipulator is magenta (e.g. std::cout << magenta << "text";) More... | |
std::ostream & | goby::util::tcolor::lt_magenta (std::ostream &os) |
All text following this manipulator is light magenta (e.g. std::cout << lt_magenta << "text";) More... | |
std::ostream & | goby::util::tcolor::cyan (std::ostream &os) |
All text following this manipulator is cyan (e.g. std::cout << cyan << "text";) More... | |
std::ostream & | goby::util::tcolor::lt_cyan (std::ostream &os) |
All text following this manipulator is light cyan (e.g. std::cout << lt_cyan << "text";) More... | |
std::ostream & | goby::util::tcolor::white (std::ostream &os) |
All text following this manipulator is white (e.g. std::cout << white << "text";) More... | |
std::ostream & | goby::util::tcolor::lt_white (std::ostream &os) |
All text following this manipulator is bright white (e.g. std::cout << lt_white << "text";) More... | |
std::ostream & | goby::util::tcolor::nocolor (std::ostream &os) |
All text following this manipulator is uncolored (e.g. std::cout << green << "green" << nocolor << "uncolored";) More... | |
Variables | |
const std::string | goby::util::esc_red = "\33[31m" |
const std::string | goby::util::esc_lt_red = "\33[91m" |
const std::string | goby::util::esc_green = "\33[32m" |
const std::string | goby::util::esc_lt_green = "\33[92m" |
const std::string | goby::util::esc_yellow = "\33[33m" |
const std::string | goby::util::esc_lt_yellow = "\33[93m" |
const std::string | goby::util::esc_blue = "\33[34m" |
const std::string | goby::util::esc_lt_blue = "\33[94m" |
const std::string | goby::util::esc_magenta = "\33[35m" |
const std::string | goby::util::esc_lt_magenta = "\33[95m" |
const std::string | goby::util::esc_cyan = "\33[36m" |
const std::string | goby::util::esc_lt_cyan = "\33[96m" |
const std::string | goby::util::esc_white = "\33[37m" |
const std::string | goby::util::esc_lt_white = "\33[97m" |
const std::string | goby::util::esc_nocolor = "\33[0m" |