From 048610b7ea50507c6987d5b0cc0c4810cda87d53 Mon Sep 17 00:00:00 2001 From: rsc Date: Fri, 22 Oct 2004 18:11:38 +0000 Subject: [PATCH] handle interrupt right --- src/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 index 0e64e143..ffaf5291 100644 --- 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; }