diff options
author | Russ Cox <rsc@swtch.com> | 2008-11-13 15:49:48 -0800 |
---|---|---|
committer | Russ Cox <rsc@swtch.com> | 2008-11-13 15:49:48 -0800 |
commit | d66973d28edb1e78ff534ff016d59c54d40eefe6 (patch) | |
tree | f518de225941e4ee2c1307728cbfe762faabe031 /src/cmd/9term | |
parent | e1118cf27c9f66dfc90d2ead51a25602335bf9bf (diff) | |
download | plan9port-d66973d28edb1e78ff534ff016d59c54d40eefe6.tar.gz plan9port-d66973d28edb1e78ff534ff016d59c54d40eefe6.tar.bz2 plan9port-d66973d28edb1e78ff534ff016d59c54d40eefe6.zip |
win: handle DEL internally so that it always works
Diffstat (limited to 'src/cmd/9term')
-rw-r--r-- | src/cmd/9term/win.c | 6 |
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); |