Using ANSI escape code to CTRL+C instead of SIGINT

This commit is contained in:
Rekketstone 2025-01-15 20:56:31 -07:00
parent f3b05c3929
commit 8b171bbb5a

View File

@ -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)) {