summaryrefslogtreecommitdiffstats
path: root/src/c_init.h
diff options
context:
space:
mode:
Diffstat (limited to '')
-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);