blob: 8c44a91789e5d56c50d1d725d5776f0d5fe98f1e [file] [log] [blame] [raw]
/***************************************************************************
screen.cpp
-------------------
begin : Thu Nov 25 2003
copyright : (C) 2003 - 2008 by Roland Riegel
email : feedback@roland-riegel.de
***************************************************************************/
/***************************************************************************
* *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation; either version 2 of the License, or *
* (at your option) any later version. *
* *
***************************************************************************/
#include "screen.h"
#include <curses.h>
#undef clear
#undef erase
#undef refresh
int Screen::width()
{
int width;
int height;
getmaxyx(stdscr, height, width);
return width;
}
int Screen::height()
{
int width;
int height;
getmaxyx(stdscr, height, width);
return height;
}
int Screen::x()
{
int x;
int y;
getyx(stdscr, y, x);
return x;
}
int Screen::y()
{
int x;
int y;
getyx(stdscr, y, x);
return y;
}