summaryrefslogtreecommitdiffstats
path: root/src/c_init.h
diff options
context:
space:
mode:
authorsalad <fmoenne-@student.le-101.fr>2020-08-27 23:29:07 +0200
committersalad <fmoenne-@student.le-101.fr>2020-08-27 23:29:07 +0200
commit9ca75e7eb366800b3c602fb948167bcb185bed37 (patch)
treeee3af6a1489226a8bdc6c741ad0fcb7a105d6e64 /src/c_init.h
parents**** f***** (diff)
download42-minishell-9ca75e7eb366800b3c602fb948167bcb185bed37.tar.gz
42-minishell-9ca75e7eb366800b3c602fb948167bcb185bed37.tar.bz2
42-minishell-9ca75e7eb366800b3c602fb948167bcb185bed37.tar.xz
42-minishell-9ca75e7eb366800b3c602fb948167bcb185bed37.tar.zst
42-minishell-9ca75e7eb366800b3c602fb948167bcb185bed37.zip
added init, samarche pas, peutetre go GNL
Diffstat (limited to 'src/c_init.h')
-rw-r--r--src/c_init.h20
1 files changed, 18 insertions, 2 deletions
diff --git a/src/c_init.h b/src/c_init.h
index da3d549..69d626a 100644
--- a/src/c_init.h
+++ b/src/c_init.h
@@ -13,7 +13,23 @@
#ifndef U_INIT_H
#define U_INIT_H
-int c_init_tcaps(void);
-void u_handle_sigwinch(int dummy_signal);
+#include <termios.h>
+
+typedef struct s_caps {
+ struct termios tios;
+ char *cm_str; /*cursor mobility*/
+ char *nl; /*newline, returned by tgoto()*/
+ char *ks; /*indicate that keys transmit from now on*/
+ char *kl; /*Key Left Key Right*/
+ char *kr;
+ char *pc; /*padding char --> do not touch (default 0)*/
+ char *bc; /*left one char*/
+ char *up; /*up one line*/
+ char *nd; /*right one char*/
+ char *lc; /*line clear*/
+
+} t_caps;
+
+int16_t c_init_tcaps(void);
#endif