moving repo

This commit is contained in:
2024-07-05 00:46:02 -04:00
parent 325a1d1350
commit 7aed073fa6
11 changed files with 95 additions and 31 deletions

30
src/cursor.cc Normal file
View 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;
}