Rapicorn - Experimental UI Toolkit - Source Code  13.07.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Defines
Enumerations | Functions
Rapicorn::AnsiColors Namespace Reference

The AnsiColors namespace contains utility functions for colored terminal output. More...

Enumerations

enum  Colors {
  NONE, RESET, BOLD, BOLD_OFF,
  ITALICS, ITALICS_OFF, UNDERLINE, UNDERLINE_OFF,
  INVERSE, INVERSE_OFF, STRIKETHROUGH, STRIKETHROUGH_OFF,
  FG_BLACK, FG_RED, FG_GREEN, FG_YELLOW,
  FG_BLUE, FG_MAGENTA, FG_CYAN, FG_WHITE,
  FG_DEFAULT, BG_BLACK, BG_RED, BG_GREEN,
  BG_YELLOW, BG_BLUE, BG_MAGENTA, BG_CYAN,
  BG_WHITE, BG_DEFAULT
}
 ANSI color symbols. More...

Functions

const charcolor_code (Colors acolor)
 Return ASCII code for the specified color.
void color_envkey (const String &env_var, const String &key)
 Configure the environment variable that always/never/automatically allows colorization.
bool colorize_tty (int fd)
 Check whether the tty fd should use colorization.
const charcolor (Colors acolor)
 Return ASCII code for the specified color if stdout & stderr should be colorized.

Detailed Description

The AnsiColors namespace contains utility functions for colored terminal output.


Enumeration Type Documentation

ANSI color symbols.

Enumerator:
RESET 

Reset combines BOLD_OFF, ITALICS_OFF, UNDERLINE_OFF, INVERSE_OFF, STRIKETHROUGH_OFF.

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Defines