twin: handle DEL internally so that it always works - plan9port - [fork] Plan 9 from user space
 (HTM) git clone git://src.adamsgaard.dk/plan9port
 (DIR) Log
 (DIR) Files
 (DIR) Refs
 (DIR) README
 (DIR) LICENSE
       ---
 (DIR) commit d66973d28edb1e78ff534ff016d59c54d40eefe6
 (DIR) parent e1118cf27c9f66dfc90d2ead51a25602335bf9bf
 (HTM) Author: Russ Cox <rsc@swtch.com>
       Date:   Thu, 13 Nov 2008 15:49:48 -0800
       
       win: handle DEL internally so that it always works
       
       Diffstat:
         M src/cmd/9term/win.c                 |       6 ++++++
       
       1 file changed, 6 insertions(+), 0 deletions(-)
       ---
 (DIR) diff --git a/src/cmd/9term/win.c b/src/cmd/9term/win.c
       t@@ -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);