#ifndef __LIBTERM_TERM_H #define __LIBTERM_TERM_H #include #include #include #include #include #include #include #include #include #include #include #include "screen_modes.h" typedef struct term_screen { int ifd, ofd; struct termios orig; struct termios raw; screen_mode_e mode; int term_col, term_row; } term_screen; int term_init( term_screen* ); int term_get_maxcol( term_screen* ); int term_get_maxrow( term_screen* ); int term_cur_pos( term_screen* ); int term_cur_pos_c( term_screen* ); int term_cur_pos_r( term_screen* ); int term_cur_set_c( term_screen* ); int term_cur_set_r( term_screen* ); int term_set_speed( term_screen* ); int term_clr_scr( term_screen* ); int term_set_raw_mode( term_screen* ); void term_set_orig_mode( term_screen* ); #endif