/* ************************************************************************** */ /* */ /* ::: :::::::: */ /* c_init.h :+: :+: :+: */ /* +:+ +:+ +:+ */ /* By: rbousset +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2020/02/14 17:19:27 by rbousset #+# #+# */ /* Updated: 2020/02/14 17:19:29 by rbousset ### ########lyon.fr */ /* */ /* ************************************************************************** */ #ifndef U_INIT_H #define U_INIT_H #include #include #include "s_struct.h" typedef struct s_caps { char KL[4]; char KR[4]; char CL[4]; char CC[4]; char HM[4]; char ND[4]; struct termios tios; struct winsize ws; uint8_t cpos; /*cursor position (column)*/ char *cm_str; /*cursor mobility*/ char *nl; /*newline, returned by tgoto()*/ char *ks; /*indicate that keys transmit from now on*/ char *ke; /*indicate that keys transmit from now on*/ char *kr; char *pc; /*padding char --> do not touch (default 0)*/ char *bc; /*left one char*/ char *le; /*left one char*/ char *up; /*up one line*/ char *DO; /*down one line*/ char *nd; /*right one char*/ char *cl; /*line clear*/ } t_caps; int16_t c_init_tcaps(t_msh *msh); int16_t c_set_term_raw(uint8_t mode); #endif