#include "Screen.hpp" Screen::Screen() { initscr(); clear(); noecho(); cbreak(); keypad(stdscr,TRUE); curs_set(0); getmaxyx(stdscr,height,width); start_color(); init_pair(1, COLOR_GREEN, COLOR_BLACK); init_pair(2, COLOR_YELLOW,COLOR_BLACK); init_pair(3, COLOR_WHITE, COLOR_BLUE); } Screen::~Screen() { endwin(); } void Screen::ping(string msg) { const char * cmsg = msg.c_str(); printw(cmsg); } int Screen::getHeight() { return height; } int Screen::getWidth() { return width; }