diff options
author | salad <fmoenne-@student.le-101.fr> | 2020-10-01 16:24:51 +0200 |
---|---|---|
committer | salad <fmoenne-@student.le-101.fr> | 2020-10-01 16:24:51 +0200 |
commit | 730d58157c26bd551bcd0c06047a95f4f9e3d358 (patch) | |
tree | d52f5b030dd1b3dff02cce60b3e7eded02407daf /src/c_input.c | |
parent | call a plumber (diff) | |
download | 42-minishell-730d58157c26bd551bcd0c06047a95f4f9e3d358.tar.gz 42-minishell-730d58157c26bd551bcd0c06047a95f4f9e3d358.tar.bz2 42-minishell-730d58157c26bd551bcd0c06047a95f4f9e3d358.tar.xz 42-minishell-730d58157c26bd551bcd0c06047a95f4f9e3d358.tar.zst 42-minishell-730d58157c26bd551bcd0c06047a95f4f9e3d358.zip |
lessgo
Diffstat (limited to 'src/c_input.c')
-rw-r--r-- | src/c_input.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/c_input.c b/src/c_input.c index 7c6d351..d3360cd 100644 --- a/src/c_input.c +++ b/src/c_input.c @@ -13,6 +13,7 @@ #include <libft.h> #include <term.h> #include <unistd.h> +#include <signal.h> #include "c_init.h" #include "c_input.h" @@ -25,6 +26,8 @@ int16_t { if (tcaps) { + c_set_term_raw(1); + signal(SIGINT, SIG_IGN); tcaps->cpos = 0; tcaps->lpos = 0; return (1); |