Removed legacy functions and wrote my own to avoid the (void) hack. Also replaced all calls to getmaxyx with COLS and LINES.