puts("[display] initializing display ...");
- initscr();
- raw();
- noecho();
- keypad(stdscr,TRUE);
- getmaxyx(stdscr,display->max_y,display->max_x);
+ /* init stuff next .. */
return D_SUCCESS;
}
int display_refresh(t_display *display) {
- getmaxyx(stdscr,display->max_y,display->max_x);
-
return D_SUCCESS;
}
int display_shutdown(t_display *display) {
- noraw();
- echo();
-
puts("[display] shutdown");
return D_SUCCESS;