From 0ab31d63699467d72f09327171b735ed2152bf2c Mon Sep 17 00:00:00 2001 From: FreeArtMan Date: Mon, 29 Dec 2014 16:07:24 +0900 Subject: Bump libterm --- libterm/term.h | 27 +++++++++++++++++++++++---- 1 file changed, 23 insertions(+), 4 deletions(-) (limited to 'libterm/term.h') 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 +#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_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 -- cgit v1.2.3