diff options
Diffstat (limited to 'src/c_init.h')
-rw-r--r-- | src/c_init.h | 41 |
1 files changed, 23 insertions, 18 deletions
diff --git a/src/c_init.h b/src/c_init.h index 730ba9f..d5f2c89 100644 --- a/src/c_init.h +++ b/src/c_init.h @@ -18,34 +18,39 @@ #include "s_struct.h" +# define LEFT_K 0x445b1b +# define RIGHT_K 0x435b1b +# define HOME_K 0x485b1b +# define END_K 0x7e345b1b +# define DEL_K 0x7f +# define RET_K 0x0d + +# define CTRL_C 0x03 +# define CTRL_L 0x0c + + 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; uint32_t cpos; /*cursor position (column)*/ uint32_t lpos; /*cursor position (line)*/ uint32_t nlines; /*cursor position (line)*/ - 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 + +/* cm_str; cursor mobility*/ +/* nl; newline, returned by tgoto()*/ +/* ks; indicate that keys transmit from now on*/ +/* ke; indicate that keys transmit from now on*/ +/* pc; padding char --> do not touch (default 0)*/ +/* bc; left one char*/ +/* le; left one char*/ +/* up; up one line*/ +/* DO; down one line*/ +/* nd; right one char*/ +/* cl; line clear*/ |