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

Public Members

Protected Members


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 Fri Apr 9 23:41:37 2004, using kdoc 2.0a54.