diff options
Diffstat (limited to 'libterm/term.h')
-rw-r--r-- | libterm/term.h | 27 |
1 files changed, 23 insertions, 4 deletions
diff --git a/libterm/term.h b/libterm/term.h index 4565571..010ed1b 100644 --- a/libterm/term.h +++ b/libterm/term.h @@ -1,22 +1,41 @@ #ifndef __LIBTERM_TERM_H #define __LIBTERM_TERM_H +#include <termios.h> +#include <unistd.h> #include <stdlib.h> #include <stdio.h> +#include <errno.h> #include <string.h> - +#include <stdlib.h> +#include <ctype.h> +#include <sys/types.h> #include <sys/ioctl.h> +#include <unistd.h> #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_data( term_screen* ); -int term_get_col( ); -int term_get_row( ); +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 |