3 #ifndef SZA_UTIL_XTERMMANIP_H
4 #define SZA_UTIL_XTERMMANIP_H
34 virtual ~XtermManip();
40 Option(
unsigned key, std::string str) {
62 std::map<ColorKey, std::string> fg_;
63 std::map<ColorKey, std::string> bg_;
65 std::map<std::string, ColorKey> colorNames_;
68 void setFg(ColorKey key);
69 void setFg(std::string key);
71 void setBg(ColorKey key);
72 void setBg(std::string key);
74 std::string fg(ColorKey key);
75 std::string fg(std::string key);
77 std::string bg(ColorKey key);
78 std::string bg(std::string key);
80 ColorKey getColorKey(std::string name);
105 std::map<TextModeKey, std::string> textModes_;
106 std::map<std::string, TextModeKey> textModeNames_;
108 void setTextMode(TextModeKey key);
109 void setTextMode(std::string name);
111 std::string textMode(TextModeKey key);
112 std::string textMode(std::string name);
114 TextModeKey getTextModeKey(std::string name);
124 void getCursorPosition();
127 void restoreCursor();
128 void moveCursorUp(
unsigned nline);
129 void moveCursorDown(
unsigned nline);
134 void initializeOptions();
144 #endif // End #ifndef SZA_UTIL_XTERMMANIP_H