From d66973d28edb1e78ff534ff016d59c54d40eefe6 Mon Sep 17 00:00:00 2001 From: Russ Cox Date: Thu, 13 Nov 2008 15:49:48 -0800 Subject: win: handle DEL internally so that it always works --- src/cmd/9term/win.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src') diff --git a/src/cmd/9term/win.c b/src/cmd/9term/win.c index 2d82f5b9..93409f96 100644 --- a/src/cmd/9term/win.c +++ b/src/cmd/9term/win.c @@ -371,6 +371,12 @@ stdinproc(void *v) case 'M': switch(e.c2){ case 'I': + if(e.nr == 1 && e.r[0] == 0x7F) { + postnote(PNGROUP, pid, "interrupt"); + fsprint(addrfd, "#%ud,#%ud", e.q0, e.q1); + fswrite(datafd, "", 0); + break; + } if(e.q0 < q.p){ if(debug) fprint(2, "shift typing %d... ", e.q1-e.q0); -- cgit v1.2.3