Using ANSI escape code to CTRL+C instead of SIGINT
This commit is contained in:
parent
f3b05c3929
commit
8b171bbb5a
@ -754,7 +754,7 @@ static void key_press_cb(XKeyEvent *event, void *data) {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if ((keysym & 0x1f) == ('C' & 0x1f)) {
|
if ((keysym & 0x1f) == ('C' & 0x1f)) {
|
||||||
kill(child_pid, SIGINT);
|
write(*master, "\x03", 1);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if ((keysym & 0x1f) == ('U' & 0x1f)) {
|
if ((keysym & 0x1f) == ('U' & 0x1f)) {
|
||||||
|
Loading…
Reference in New Issue
Block a user