2015-05-01 22:40:28 +00:00
|
|
|
#ifndef CURSES_DISPLAY
|
|
|
|
#define CURSES_DISPLAY
|
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 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 22:40:28 +00:00
|
|
|
|
|
|
|
// TODO (avec scroll)
|
|
|
|
WINDOW* log_sent_w;
|
|
|
|
WINDOW* nav_data;
|
2015-05-01 19:23:00 +00:00
|
|
|
|
|
|
|
public:
|
|
|
|
Curses();
|
|
|
|
~Curses();
|
2015-05-01 22:00:28 +00:00
|
|
|
char getchar();
|
2015-05-01 22:40:28 +00:00
|
|
|
|
|
|
|
// TODO
|
|
|
|
void update_speed(const char&, const float&);
|
|
|
|
// void update_navdata(...
|
|
|
|
void log_sent(char*);
|
2015-05-01 19:23:00 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|