#ifndef H_Display #define H_Display #include #include #include //ioctl() and TIOCGWINSZ #include // for STDOUT_FILENO class Display { public: Display(); unsigned int Rows() const; unsigned int Cols() const; /// Returns a winsize structure with size.ws_row is the number of rows, size.ws_col is the number of columns. static winsize GetTerminalSize(); /// Clears the whole screen. static void ClearScreen(); protected: unsigned int screenRows;//