#include <TTermManip.h>
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 |
Definition at line 22 of file TTermManip.h.
| 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] |
| 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] |
| 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] |
| static int TTermManip::DefaultPutchar | ( | int | c | ) | [inline, static, private] |
Definition at line 86 of file TTermManip.h.
int TTermManip::fNumColors [private] |
bool TTermManip::fAnsiColors [private] |
char* TTermManip::fSetFg [private] |
char* TTermManip::fSetBold [private] |
char* TTermManip::fSetDefault [private] |
Definition at line 96 of file TTermManip.h.
Referenced by ResetTerm(), SetDefaultColor(), StopBold(), and TTermManip().
char* TTermManip::fStartUnderline [private] |
char* TTermManip::fStopUnderline [private] |
Definition at line 98 of file TTermManip.h.
Referenced by ResetTerm(), SetDefaultColor(), StopUnderline(), and TTermManip().
PutcFunc_t TTermManip::fPutc [private] |
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().
1.5.1