class ColorSetup

# class ColorSetup | This class manages color setups for colourized printing (primarily of filenames) onto terminals. More...
Definition | `#include <ColorSetup.hpp>`
List of all Methods
Annotated List
Files
Globals
Hierarchy
Index

#### Public Methods

- ColorSetup ()
- ColorSetup ( const string& setup, bool = true)
- void enableColorization ( bool enabled)
- string format ( string s, const string & color_str, bool colored) const
- string format ( const string& s, const string & color_str) const
- string formatFilename ( const UnixFile& f) const

#### Public Members

- static const ColorSetup BUILT_IN
- static const string BRIGHTER
- bool do_colorization

#### Protected Members

- string code_str
- static const char ESC
- string left_code
- string right_code
- string end_code
- string color_text
- string color_file
- string color_dir
- string color_exec
- string color_symlink
- string color_blockdev
- string color_chardev
- string color_socket
- string color_pipe
- string color_default

## Detailed Description

This class manages color setups for colourized printing (primarily of filenames) onto terminals. It provides functionality to generate such output.

An object represents a specific setup.

static const ColorSetup BUILT_IN | ### BUILT_IN

static const string BRIGHTER | ### BRIGHTER

string code_str | ### code_str

[protected]

static const char ESC | ### ESC

[protected]

string left_code | ### left_code

[protected]

string right_code | ### right_code

[protected]

Color code for brighter (or bold) text (Only for ISO 6429 compliant terminals)

string end_code | ### end_code

[protected]

Color code for brighter (or bold) text (Only for ISO 6429 compliant terminals)

string color_text | ### color_text

[protected]

string color_file | ### color_file

[protected]

Color code for brighter (or bold) text (Only for ISO 6429 compliant terminals)

string color_dir | ### color_dir

[protected]

Color code for brighter (or bold) text (Only for ISO 6429 compliant terminals)

string color_exec | ### color_exec

[protected]

Color code for brighter (or bold) text (Only for ISO 6429 compliant terminals)

string color_symlink | ### color_symlink

[protected]

Color code for brighter (or bold) text (Only for ISO 6429 compliant terminals)

string color_blockdev | ### color_blockdev

[protected]

Color code for brighter (or bold) text (Only for ISO 6429 compliant terminals)

string color_chardev | ### color_chardev

[protected]

Color code for brighter (or bold) text (Only for ISO 6429 compliant terminals)

string color_socket | ### color_socket

[protected]

Color code for brighter (or bold) text (Only for ISO 6429 compliant terminals)

string color_pipe | ### color_pipe

[protected]

Color code for brighter (or bold) text (Only for ISO 6429 compliant terminals)

string color_default | ### color_default

[protected]

bool do_colorization | ### do_colorization

ColorSetup () | ### ColorSetup

initializing from LS_COLORS environment variable, if present, or from built-in setup.

ColorSetup ( const string& setup, bool = true) | ### ColorSetup

void enableColorization ( bool enabled) | ### enableColorization

string format ( string s, const string & color_str, bool colored) | ### format

[const]

string format ( const string& s, const string & color_str) | ### format

[const]

string formatFilename ( const UnixFile& f) | ### formatFilename

[const]

Generated by: mw on nemea on Thu Dec 4 21:20:44 2003, using kdoc 2.0a54.