summaryrefslogtreecommitdiffstats
path: root/src/c_input.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/c_input.c')
-rw-r--r--src/c_input.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/c_input.c b/src/c_input.c
index 874d55a..7848f93 100644
--- a/src/c_input.c
+++ b/src/c_input.c
@@ -14,6 +14,7 @@
#include <stdlib.h>
#include <libft.h>
#include <term.h>
+#include <signal.h>
#include "c_ctrls.h"
#include "c_init.h"
@@ -29,6 +30,8 @@ short
{
char term[4096];
+ signal(SIGINT, c_signal_int);
+ signal(SIGQUIT, c_signal_ign);
if (tcaps)
{
u_get_var_value(term, "$TERM", 4096, msh);