diff options
Diffstat (limited to 'src/interfaceconsole.h')
-rw-r--r-- | src/interfaceconsole.h | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/src/interfaceconsole.h b/src/interfaceconsole.h index 74f88d0..9272087 100644 --- a/src/interfaceconsole.h +++ b/src/interfaceconsole.h | |||
@@ -3,11 +3,33 @@ | |||
3 | 3 | ||
4 | #include "interface.h" | 4 | #include "interface.h" |
5 | 5 | ||
6 | #include <bu/list.h> | ||
7 | #include <bu/string.h> | ||
8 | |||
6 | class InterfaceConsole : public Interface | 9 | class InterfaceConsole : public Interface |
7 | { | 10 | { |
8 | public: | 11 | public: |
9 | InterfaceConsole(); | 12 | InterfaceConsole(); |
10 | virtual ~InterfaceConsole(); | 13 | virtual ~InterfaceConsole(); |
14 | |||
15 | virtual void display( const class SmlNode *pSml ); | ||
16 | |||
17 | private: | ||
18 | enum Style | ||
19 | { | ||
20 | stRed = 0x010001, | ||
21 | stGreen = 0x010002, | ||
22 | |||
23 | stColor = 0x01000f, | ||
24 | |||
25 | stTypeMask = 0xff0000, | ||
26 | }; | ||
27 | |||
28 | typedef Bu::List<Style> StyleStack; | ||
29 | |||
30 | void appendToken( Bu::String &sCurLine, Bu::String &sNextToken, | ||
31 | int &iLineLen, int &iNextLen ); | ||
32 | Bu::String getVt100Style( const StyleStack &sStyle ); | ||
11 | }; | 33 | }; |
12 | 34 | ||
13 | #endif | 35 | #endif |