extern int getTerminalSize(unsigned short *width, unsigned short *height);