#ifndef __LIBTERM_TERM_H #define __LIBTERM_TERM_H #include #include #include #include #include #include #include #include #include #include #include #include "screen_modes.h" #include "debug.h" typedef struct term_screen { int ifd, ofd; struct termios orig_i, orig_o; struct termios raw_i, raw_o; screen_mode_e mode; } term_screen; int term_init( term_screen *ts ); int term_get_maxcol( term_screen *ts ); int term_get_maxrow( term_screen *ts ); int term_cur_get_c( term_screen *ts ); int term_cur_get_r( term_screen *ts ); int term_cur_set_c( term_screen *ts, unsigned int pc ); int term_cur_set_r( term_screen *ts, unsigned int pr ); int term_cur_set_cr( term_screen *ts, unsigned int pc , unsigned int pr ); int term_set_speed( term_screen *ts ); int term_clr_scr( term_screen *ts ); int term_set_raw_mode( term_screen *ts ); int term_mode_rows( term_screen *ts ); int term_mode_columns( term_screen *ts ); void term_set_orig_mode( term_screen *ts ); #endif