My Project
 All Classes Files Functions Variables Enumerations Enumerator Friends Macros Pages
gcp::util::XtermManip Class Reference

Classes

struct  Option
 

Public Types

enum  ColorKey {
  C_BLACK, C_RED, C_GREEN, C_YELLOW,
  C_BLUE, C_MAGENTA, C_CYAN, C_WHITE,
  C_DEFAULT
}
 
enum  TextModeKey {
  TEXT_DEFAULT, TEXT_BOLD, TEXT_NORMAL, TEXT_UNDERLINED,
  TEXT_NOT_UNDERLINED, TEXT_BLINK, TEXT_STEADY, TEXT_INVERSE,
  TEXT_POSITIVE, TEXT_INVISIBLE, TEXT_VISIBLE
}
 
enum  CursorCntlKey { CURS_GET_POSITION }
 

Public Member Functions

 XtermManip ()
 
virtual ~XtermManip ()
 
void setFg (ColorKey key)
 
void setFg (std::string key)
 
void setBg (ColorKey key)
 
void setBg (std::string key)
 
ColorKey getColorKey (std::string name)
 
void setTextMode (TextModeKey key)
 
void setTextMode (std::string name)
 
TextModeKey getTextModeKey (std::string name)
 
void getCursorPosition ()
 
void saveCursor ()
 
void restoreCursor ()
 
void moveCursorUp (unsigned nline)
 
void moveCursorDown (unsigned nline)
 
void clearAbove ()
 

Public Attributes

std::map< ColorKey, std::string > fg_
 
std::map< ColorKey, std::string > bg_
 
std::map< std::string, ColorKey > colorNames_
 
std::map< TextModeKey,
std::string > 
textModes_
 
std::map< std::string,
TextModeKey > 
textModeNames_
 

Constructor & Destructor Documentation

XtermManip::XtermManip ( )

Constructor.

....................................................................... Constructor.

XtermManip::~XtermManip ( )
virtual

Destructor.

....................................................................... Destructor.


The documentation for this class was generated from the following files: