diff options
author | salad <fmoenne-@student.le-101.fr> | 2020-09-02 15:32:39 +0200 |
---|---|---|
committer | salad <fmoenne-@student.le-101.fr> | 2020-09-02 15:32:39 +0200 |
commit | 40ce30cead49a9b3527420427dff1145ac0acad4 (patch) | |
tree | 0804e6f0ae6c47b94434e9b4a3b7732aa0434a92 /src/c_init.h | |
parent | cursor soon(TM) (diff) | |
download | 42-minishell-40ce30cead49a9b3527420427dff1145ac0acad4.tar.gz 42-minishell-40ce30cead49a9b3527420427dff1145ac0acad4.tar.bz2 42-minishell-40ce30cead49a9b3527420427dff1145ac0acad4.tar.xz 42-minishell-40ce30cead49a9b3527420427dff1145ac0acad4.tar.zst 42-minishell-40ce30cead49a9b3527420427dff1145ac0acad4.zip |
enter and keys, cat line until enter pressed inc
Diffstat (limited to 'src/c_init.h')
-rw-r--r-- | src/c_init.h | 16 |
1 files changed, 15 insertions, 1 deletions
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 <termios.h> +#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); */ |