TTermManip Class Reference

#include <TTermManip.h>

List of all members.

Public Member Functions

 TTermManip ()
 ~TTermManip ()
bool SetColor (unsigned char r, unsigned char g, unsigned char b)
bool SetColor (int idx)
int GetColorIndex (unsigned char r, unsigned char g, unsigned char b)
void StartUnderline ()
void StopUnderline ()
void StartBold ()
void StopBold ()
bool ResetTerm ()
void SetDefaultColor ()

Private Member Functions

char * GetTermStr (const char *cap)
int GetTermNum (const char *cap)
bool WriteTerm (char *termstr)
bool WriteTerm (char *termstr, int i)

Static Private Member Functions

static int DefaultPutchar (int c)

Private Attributes

int fNumColors
bool fAnsiColors
char * fSetFg
char * fSetBold
char * fSetDefault
char * fStartUnderline
char * fStopUnderline
PutcFunc_t fPutc
int fCurrentColorIdx
bool fCurrentlyBold
bool fCurrentlyUnderlined

Classes

class  Color


Detailed Description

Definition at line 22 of file TTermManip.h.


Constructor & Destructor Documentation

TTermManip::TTermManip (  ) 

Definition at line 21 of file TTermManip.cxx.

References fAnsiColors, fNumColors, fSetBold, fSetDefault, fSetFg, fStartUnderline, fStopUnderline, GetTermNum(), GetTermStr(), and ResetTerm().

TTermManip::~TTermManip (  )  [inline]

Definition at line 25 of file TTermManip.h.

References ResetTerm().


Member Function Documentation

bool TTermManip::SetColor ( unsigned char  r,
unsigned char  g,
unsigned char  b 
)

Definition at line 199 of file TTermManip.cxx.

References GetColorIndex().

Referenced by StopBold(), and term__setcolor().

bool TTermManip::SetColor ( int  idx  ) 

Definition at line 205 of file TTermManip.cxx.

References fCurrentColorIdx, fSetFg, and WriteTerm().

int TTermManip::GetColorIndex ( unsigned char  r,
unsigned char  g,
unsigned char  b 
)

Definition at line 104 of file TTermManip.cxx.

References blue, fAnsiColors, fNumColors, green, i, level, and red.

Referenced by SetColor(), and term__atocolor().

void TTermManip::StartUnderline (  )  [inline]

Definition at line 33 of file TTermManip.h.

References fCurrentlyUnderlined, fStartUnderline, and WriteTerm().

Referenced by term__setcolor().

void TTermManip::StopUnderline (  )  [inline]

Definition at line 42 of file TTermManip.h.

References fCurrentlyUnderlined, fStopUnderline, and WriteTerm().

Referenced by term__setcolor().

void TTermManip::StartBold (  ) 

Definition at line 75 of file TTermManip.cxx.

References fCurrentlyBold, fSetBold, and WriteTerm().

Referenced by term__setcolor().

void TTermManip::StopBold (  ) 

Definition at line 87 of file TTermManip.cxx.

References fCurrentColorIdx, fCurrentlyBold, fSetDefault, SetColor(), and WriteTerm().

Referenced by term__setcolor().

bool TTermManip::ResetTerm (  ) 

Definition at line 242 of file TTermManip.cxx.

References fCurrentColorIdx, fCurrentlyBold, fCurrentlyUnderlined, fSetDefault, fStopUnderline, and WriteTerm().

Referenced by term__resetcolor(), TTermManip(), and ~TTermManip().

void TTermManip::SetDefaultColor (  ) 

Definition at line 61 of file TTermManip.cxx.

References fCurrentColorIdx, fCurrentlyBold, fCurrentlyUnderlined, fSetDefault, fStopUnderline, and WriteTerm().

Referenced by term__setcolor().

char * TTermManip::GetTermStr ( const char *  cap  )  [private]

Definition at line 216 of file TTermManip.cxx.

References NULL, and tigetstr().

Referenced by TTermManip().

int TTermManip::GetTermNum ( const char *  cap  )  [private]

Definition at line 233 of file TTermManip.cxx.

Referenced by TTermManip().

bool TTermManip::WriteTerm ( char *  termstr  )  [private]

Definition at line 254 of file TTermManip.cxx.

References fflush(), fPutc, tparm(), and tputs().

Referenced by ResetTerm(), SetColor(), SetDefaultColor(), StartBold(), StartUnderline(), StopBold(), and StopUnderline().

bool TTermManip::WriteTerm ( char *  termstr,
int  i 
) [private]

Definition at line 270 of file TTermManip.cxx.

References fflush(), fPutc, tparm(), and tputs().

static int TTermManip::DefaultPutchar ( int  c  )  [inline, static, private]

Definition at line 86 of file TTermManip.h.


Member Data Documentation

int TTermManip::fNumColors [private]

Definition at line 92 of file TTermManip.h.

Referenced by GetColorIndex(), and TTermManip().

bool TTermManip::fAnsiColors [private]

Definition at line 93 of file TTermManip.h.

Referenced by GetColorIndex(), and TTermManip().

char* TTermManip::fSetFg [private]

Definition at line 94 of file TTermManip.h.

Referenced by SetColor(), and TTermManip().

char* TTermManip::fSetBold [private]

Definition at line 95 of file TTermManip.h.

Referenced by StartBold(), and TTermManip().

char* TTermManip::fSetDefault [private]

Definition at line 96 of file TTermManip.h.

Referenced by ResetTerm(), SetDefaultColor(), StopBold(), and TTermManip().

char* TTermManip::fStartUnderline [private]

Definition at line 97 of file TTermManip.h.

Referenced by StartUnderline(), and TTermManip().

char* TTermManip::fStopUnderline [private]

Definition at line 98 of file TTermManip.h.

Referenced by ResetTerm(), SetDefaultColor(), StopUnderline(), and TTermManip().

PutcFunc_t TTermManip::fPutc [private]

Definition at line 99 of file TTermManip.h.

Referenced by WriteTerm().

int TTermManip::fCurrentColorIdx [private]

Definition at line 100 of file TTermManip.h.

Referenced by ResetTerm(), SetColor(), SetDefaultColor(), and StopBold().

bool TTermManip::fCurrentlyBold [private]

Definition at line 101 of file TTermManip.h.

Referenced by ResetTerm(), SetDefaultColor(), StartBold(), and StopBold().

bool TTermManip::fCurrentlyUnderlined [private]

Definition at line 102 of file TTermManip.h.

Referenced by ResetTerm(), SetDefaultColor(), StartUnderline(), and StopUnderline().


The documentation for this class was generated from the following files:
Generated on Tue Jul 5 16:47:56 2011 for ROOT_528-00b_version by  doxygen 1.5.1