diff options
author | salad <fmoenne-@student.le-101.fr> | 2020-09-07 20:13:27 +0200 |
---|---|---|
committer | salad <fmoenne-@student.le-101.fr> | 2020-09-07 20:13:27 +0200 |
commit | 3ead2ff516490a87574347c7fd489330d5c7e8a7 (patch) | |
tree | 68968ccdddffe2cfd181a644746790261dbbde5d /src/c_init.h | |
parent | hoHOOOOOOOOO (diff) | |
download | 42-minishell-3ead2ff516490a87574347c7fd489330d5c7e8a7.tar.gz 42-minishell-3ead2ff516490a87574347c7fd489330d5c7e8a7.tar.bz2 42-minishell-3ead2ff516490a87574347c7fd489330d5c7e8a7.tar.xz 42-minishell-3ead2ff516490a87574347c7fd489330d5c7e8a7.tar.zst 42-minishell-3ead2ff516490a87574347c7fd489330d5c7e8a7.zip |
TODO tommorrow
Diffstat (limited to 'src/c_init.h')
-rw-r--r-- | src/c_init.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/c_init.h b/src/c_init.h index 7924478..281bf72 100644 --- a/src/c_init.h +++ b/src/c_init.h @@ -14,11 +14,14 @@ #define U_INIT_H #include <termios.h> +#include <sys/ioctl.h> #include "s_struct.h" typedef struct s_caps { 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*/ @@ -32,7 +35,6 @@ typedef struct s_caps { char *DO; /*down one line*/ char *nd; /*right one char*/ char *cl; /*line clear*/ - } t_caps; int16_t c_init_tcaps(t_msh *msh); |