plan9port

fork of plan9port with libvec, libstr and libsdb
Log | Files | Refs | README | LICENSE

commit 048610b7ea50507c6987d5b0cc0c4810cda87d53
parent fd4016445014dda2ee4f45ddc105d7eaf93b14bc
Author: rsc <devnull@localhost>
Date:   Fri, 22 Oct 2004 18:11:38 +0000

handle interrupt right

Diffstat:
Msrc/cmd/9term/9term.c | 4+++-
1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/src/cmd/9term/9term.c b/src/cmd/9term/9term.c @@ -902,7 +902,9 @@ key(Rune r) paste(&r, 1, 1); t.qh = t.q0 = t.q1 = t.nr; 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; }