aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/9term/wind.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/cmd/9term/wind.c')
-rw-r--r--src/cmd/9term/wind.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/cmd/9term/wind.c b/src/cmd/9term/wind.c
index b03f15fc..7dc20443 100644
--- a/src/cmd/9term/wind.c
+++ b/src/cmd/9term/wind.c
@@ -705,6 +705,11 @@ wkeyctl(Window *w, Rune r)
wcut(w);
}
switch(r){
+ case 0x03: /* maybe send interrupt */
+ /* since ^C is so commonly used as interrupt, special case it */
+ if (intrc() != 0x03)
+ break;
+ /* fall through */
case 0x7F: /* send interrupt */
w->qh = w->nr;
wshow(w, w->qh);