twin: another attempt at DEL - plan9port - [fork] Plan 9 from user space
git clone git://src.adamsgaard.dk/plan9port
Log
Files
Refs
README
LICENSE
---
commit 95cb0f633d59b3b5b33bba11d8564ef68e817e7e
parent d66973d28edb1e78ff534ff016d59c54d40eefe6
Author: Russ Cox 
Date:   Thu, 13 Nov 2008 18:21:10 -0800

win: another attempt at DEL

Diffstat:
  M src/cmd/9term/win.c                 |       4 +++-

1 file changed, 3 insertions(+), 1 deletion(-)
---
diff --git a/src/cmd/9term/win.c b/src/cmd/9term/win.c
t@@ -372,9 +372,11 @@ stdinproc(void *v)
                         switch(e.c2){
                         case 'I':
                                 if(e.nr == 1 && e.r[0] == 0x7F) {
-                                        postnote(PNGROUP, pid, "interrupt");
+                                        char buf[1];
                                         fsprint(addrfd, "#%ud,#%ud", e.q0, e.q1);
                                         fswrite(datafd, "", 0);
+                                        buf[0] = 0x7F;
+                                        write(fd0, buf, 1);
                                         break;
                                 }
                                 if(e.q0 < q.p){