From 40ce30cead49a9b3527420427dff1145ac0acad4 Mon Sep 17 00:00:00 2001 From: salad Date: Wed, 2 Sep 2020 15:32:39 +0200 Subject: enter and keys, cat line until enter pressed inc --- src/c_init.h | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) (limited to 'src/c_init.h') diff --git a/src/c_init.h b/src/c_init.h index c85f6b7..7924478 100644 --- a/src/c_init.h +++ b/src/c_init.h @@ -15,6 +15,8 @@ #include +#include "s_struct.h" + typedef struct s_caps { struct termios tios; char *cm_str; /*cursor mobility*/ @@ -33,6 +35,18 @@ typedef struct s_caps { } t_caps; -int16_t c_init_tcaps(void); +int16_t c_init_tcaps(t_msh *msh); #endif + + /* tcaps.cl = tgetstr("cl", &term); */ + /* tcaps.ks = tgetstr("ks", &term); */ + /* tcaps.kl = tgetstr("kl", &term); */ + /* tcaps.ke = tgetstr("ke", &term); */ + /* tcaps.kr = tgetstr("kr", &term); */ + /* tcaps.pc = tgetstr("pc", &term); */ + /* tcaps.bc = tgetstr("bc", &term); */ + /* tcaps.up = tgetstr("up", &term); */ + /* tcaps.nd = tgetstr("nd", &term); */ + /* tcaps.le = tgetstr("le", &term); */ + /* tcaps.DO = tgetstr("do", &term); */ -- cgit v1.2.3