2015-05-01 21:00:48 +00:00
|
|
|
#ifndef CURSES_TEST
|
|
|
|
#define CURSES_TEST
|
2015-05-01 19:23:00 +00:00
|
|
|
|
|
|
|
#include <ncurses.h>
|
|
|
|
|
|
|
|
class Curses
|
|
|
|
{
|
|
|
|
private:
|
|
|
|
static const int kbd_lines;
|
|
|
|
static const int kbd_columns;
|
|
|
|
WINDOW* kbd;
|
|
|
|
static const char** kbd_descr;
|
|
|
|
static const int speed_lines;
|
|
|
|
static const int speed_columns;
|
|
|
|
WINDOW* speed;
|
2015-05-01 22:00:28 +00:00
|
|
|
void print_kbd();
|
|
|
|
WINDOW* get;
|
2015-05-01 19:23:00 +00:00
|
|
|
|
|
|
|
public:
|
|
|
|
Curses();
|
|
|
|
~Curses();
|
2015-05-01 22:00:28 +00:00
|
|
|
char getchar();
|
2015-05-01 19:23:00 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|