[thin_show_metadata] ncurses render

This commit is contained in:
Joe Thornber
2016-02-26 12:50:17 +00:00
parent c4215c0cf6
commit e78de5d3ad
7 changed files with 358 additions and 66 deletions

36
ui/ui.cc Normal file
View File

@@ -0,0 +1,36 @@
#include "ui/ui.h"
#include <ncurses.h>
using namespace ui;
//----------------------------------------------------------------
text_ui::text_ui()
{
initscr();
noecho();
start_color();
init_pair(1, COLOR_RED, COLOR_BLACK);
init_pair(2, COLOR_YELLOW, COLOR_BLACK);
init_pair(3, COLOR_BLUE, COLOR_BLACK);
init_pair(4, COLOR_GREEN, COLOR_BLACK);
init_pair(5, COLOR_YELLOW, COLOR_BLACK);
init_pair(6, COLOR_BLACK, COLOR_RED);
init_pair(7, COLOR_WHITE, COLOR_BLACK);
}
text_ui::~text_ui()
{
endwin();
}
void
text_ui::refresh()
{
refresh();
}
//----------------------------------------------------------------