blob: 9272087bd926923db655483ad7c999287129b276 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
|
#ifndef INTERFACE_CONSOLE_H
#define INTERFACE_CONSOLE_H
#include "interface.h"
#include <bu/list.h>
#include <bu/string.h>
class InterfaceConsole : public Interface
{
public:
InterfaceConsole();
virtual ~InterfaceConsole();
virtual void display( const class SmlNode *pSml );
private:
enum Style
{
stRed = 0x010001,
stGreen = 0x010002,
stColor = 0x01000f,
stTypeMask = 0xff0000,
};
typedef Bu::List<Style> StyleStack;
void appendToken( Bu::String &sCurLine, Bu::String &sNextToken,
int &iLineLen, int &iNextLen );
Bu::String getVt100Style( const StyleStack &sStyle );
};
#endif
|