extern int getTerminalSize(unsigned short *width, unsigned short *height); extern int rawTerm(); extern int resetTerm(); extern int setTerminalSize(int fd, unsigned short width, unsigned short height);