diff options
Diffstat (limited to 'src/c_keys.c')
-rw-r--r-- | src/c_keys.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/c_keys.c b/src/c_keys.c index 6d472c4..8c06a85 100644 --- a/src/c_keys.c +++ b/src/c_keys.c @@ -12,6 +12,7 @@ #include <term.h> #include <libft.h> +#include <unistd.h> #include "c_init.h" #include "c_utils.h" @@ -26,6 +27,16 @@ short return (1); } +char + *c_ctrl_c(char **line, char *buf, t_msh *msh) +{ + msh->ret = 130; + buf[0] = '\n'; + write(1, "\n", 1); + ft_memdel((void**)line); + return (ft_strdup("\0")); +} + short c_home_key(unsigned int plen, t_caps *tcaps) { |