handle interrupt right
This commit is contained in:
parent
fd40164450
commit
048610b7ea
1 changed files with 3 additions and 1 deletions
|
|
@ -902,7 +902,9 @@ key(Rune r)
|
||||||
paste(&r, 1, 1);
|
paste(&r, 1, 1);
|
||||||
t.qh = t.q0 = t.q1 = t.nr;
|
t.qh = t.q0 = t.q1 = t.nr;
|
||||||
show(t.q0);
|
show(t.q0);
|
||||||
postnote(PNGROUP, rcpid, "interrupt");
|
/* must write the interrupt character in case app is in raw mode (e.g., ssh) */
|
||||||
|
write(rcfd, "\x7F", 1);
|
||||||
|
// postnote(PNGROUP, rcpid, "interrupt");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue