#ifndef TCTL_H #define TCTL_H typedef struct { unsigned short int height; unsigned short int width; unsigned short int ws_xpixel; unsigned short int ws_ypixel; } window_size_t; typedef struct { unsigned int c_iflag; unsigned int c_oflag; unsigned int c_cflag; unsigned int c_lflag; unsigned char c_line; unsigned char c_cc[32]; unsigned int c_ispeed; unsigned int c_ospeed; } termios_t; window_size_t tctl_get_window_size(); void tctl_set_window_size(window_size_t size); int isatty(); #endif