4 * Created on: 29.11.2010
8 #ifndef CONSOLEWINDOW_H_
9 #define CONSOLEWINDOW_H_
15 #include "NsNcurses.h"
17 const int colorpaircount
= 256;
22 int32_t colors
[colorpaircount
];
23 int32_t* fgcolors
[colorpaircount
];
24 int32_t* bgcolors
[colorpaircount
];
26 RGB org_colors
[colorpaircount
];
27 short int org_fgcolors
[colorpaircount
];
28 short int org_bgcolors
[colorpaircount
];
39 ConsoleWindow(ILogger
* _logger
);
40 virtual ~ConsoleWindow();
41 void log(std::string s
);
45 bool setColor(RGB mycolor
, bool fg
);
47 bool setCursesColor(int colornumber
, RGB color
);
48 bool setColorPair(int pair
, int fgcol
, int bgcol
);
49 bool useColorPair(int pair
);
50 void getSize(int& x
, int& y
);
51 void gotoxy(int x
, int y
);
52 void addchar(int c
, unsigned int attributes
);
53 void printfxy (int x
, int y
, char* text
);
58 int fromThousand(int in
);
59 int toThousand(int in
);
62 #endif /* CONSOLEWINDOW_H_ */