summaryrefslogtreecommitdiffstats
path: root/src/c_init.h
diff options
context:
space:
mode:
authorsalad <fmoenne-@student.le-101.fr>2020-09-07 20:13:27 +0200
committersalad <fmoenne-@student.le-101.fr>2020-09-07 20:13:27 +0200
commit3ead2ff516490a87574347c7fd489330d5c7e8a7 (patch)
tree68968ccdddffe2cfd181a644746790261dbbde5d /src/c_init.h
parenthoHOOOOOOOOO (diff)
download42-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.h4
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);