extern int get_terminal_size(unsigned short *width, unsigned short *height); extern int raw_term(); extern int reset_term(); extern int set_terminal_size(int fd, unsigned short width, unsigned short height);