From 8b171bbb5a0ed7af1644cc83ee51bb0643e5da7b Mon Sep 17 00:00:00 2001 From: Rekketstone Date: Wed, 15 Jan 2025 20:56:31 -0700 Subject: [PATCH] Using ANSI escape code to CTRL+C instead of SIGINT --- cowterm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cowterm.c b/cowterm.c index 277d624..2aaca80 100644 --- a/cowterm.c +++ b/cowterm.c @@ -754,7 +754,7 @@ static void key_press_cb(XKeyEvent *event, void *data) { return; } if ((keysym & 0x1f) == ('C' & 0x1f)) { - kill(child_pid, SIGINT); + write(*master, "\x03", 1); return; } if ((keysym & 0x1f) == ('U' & 0x1f)) {