#include #include #include #include "screen.h" void initscreen(void) { initscr(); if ((LINES < 24) || (COLS < 79)) { cleanupscreen(); printf("Terminal must be at least 24x80\n"); exit(1); } noecho(); nonl(); cbreak(); raw(); clear(); } void cleanupscreen(void) { move(LINES-1,0); refresh(); endwin(); printf("\n"); }