moving repo
This commit is contained in:
30
src/cursor.cc
Normal file
30
src/cursor.cc
Normal file
@ -0,0 +1,30 @@
|
||||
#include "cursor.h"
|
||||
#include "constants.h"
|
||||
|
||||
cursor::cursor() {
|
||||
initscr();
|
||||
}
|
||||
|
||||
cursor::~cursor() {
|
||||
endwin();
|
||||
}
|
||||
|
||||
int cursor::getcmd() const {
|
||||
return getch();
|
||||
}
|
||||
|
||||
void cursor::show() const {
|
||||
refresh();
|
||||
}
|
||||
|
||||
void cursor::print_char(const position &pos, const char ch) const {
|
||||
|
||||
}
|
||||
|
||||
bool check_terminal_size() {
|
||||
int max_x;
|
||||
int max_y;
|
||||
getmaxyx(stdscr, max_y, max_x);
|
||||
|
||||
return max_x >= DISPLAY_WIDTH && max_y >= DISPLAY_HEIGHT;
|
||||
}
|
Reference in New Issue
Block a user