diff options
Diffstat (limited to 'src/Screen.cpp')
-rw-r--r-- | src/Screen.cpp | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/src/Screen.cpp b/src/Screen.cpp new file mode 100644 index 0000000..c3977d6 --- /dev/null +++ b/src/Screen.cpp @@ -0,0 +1,33 @@ +#include "Screen.hpp" + +Screen::Screen() +{ + initscr(); + clear(); + noecho(); + cbreak(); + keypad(stdscr,TRUE); + curs_set(0); + getmaxyx(stdscr,height,width); +} + +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; +} |