aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/cmd/9term/win.c6
1 files changed, 6 insertions, 0 deletions
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);