thandle interrupt right - 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 048610b7ea50507c6987d5b0cc0c4810cda87d53
 (DIR) parent fd4016445014dda2ee4f45ddc105d7eaf93b14bc
 (HTM) Author: rsc <devnull@localhost>
       Date:   Fri, 22 Oct 2004 18:11:38 +0000
       
       handle interrupt right
       
       Diffstat:
         M src/cmd/9term/9term.c               |       4 +++-
       
       1 file changed, 3 insertions(+), 1 deletion(-)
       ---
 (DIR) diff --git a/src/cmd/9term/9term.c b/src/cmd/9term/9term.c
       t@@ -902,7 +902,9 @@ key(Rune r)
                        paste(&r, 1, 1);
                        t.qh = t.q0 = t.q1 = t.nr;
                        show(t.q0);
       -                postnote(PNGROUP, rcpid, "interrupt");
       +                /* must write the interrupt character in case app is in raw mode (e.g., ssh) */
       +                write(rcfd, "\x7F", 1);
       +        //        postnote(PNGROUP, rcpid, "interrupt");
                        return;
                }