Note: Goby version 1 (shown here) is now considered obsolete. Please use version 2 for new projects, and consider upgrading old projects.

Goby Underwater Autonomy Project  Series: 1.1, revision: 163, released on 2013-02-06 14:23:27 -0500
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends
Static Public Member Functions
goby::util::TermColor Class Reference

Converts between string, escape code, and enumeration representations of the terminal colors. More...

#include <util/liblogger/term_color.h>

List of all members.

Static Public Member Functions

static Colors::Color from_str (const std::string &s)
 Color enumeration from string (e.g. "blue" -> blue)
static std::string str_from_col (const Colors::Color &c)
 String from color enumeration (e,g, red -> "red")
static Colors::Color from_esc_code (const std::string &s)
 Color enumeration from escape code (e,g, "\33[31m" -> red)
static std::string esc_code_from_col (const Colors::Color &c)
 Escape code from color enumeration (e.g. red -> "\33[31m")
static std::string esc_code_from_str (const std::string &s)
 Escape code from string (e.g. "red" -> "\33[31m")

Detailed Description

Converts between string, escape code, and enumeration representations of the terminal colors.

Definition at line 132 of file term_color.h.


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends