summaryrefslogtreecommitdiff
path: root/ext/io/console
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2019-12-29 16:12:19 +0900
committerNobuyoshi Nakada <nobu@ruby-lang.org>2019-12-29 16:26:22 +0900
commit31e2f035121a4c07d6ea3b5eab69bc97749a022b (patch)
treea7bd4ff7dfc7350524091e522b165d86a7a330b9 /ext/io/console
parente5c441a4a2885da61df9894ac17b69cb3c5811f2 (diff)
[ruby/io-console] Enable only interrupt bits on `intr: true`
https://github.com/ruby/io-console/commit/baaf929041
Diffstat (limited to 'ext/io/console')
-rw-r--r--ext/io/console/console.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/io/console/console.c b/ext/io/console/console.c
index ac5b6a611c..3a6bb25db2 100644
--- a/ext/io/console/console.c
+++ b/ext/io/console/console.c
@@ -188,7 +188,7 @@ set_rawmode(conmode *t, void *arg)
#endif
#ifdef ISIG
if (r->intr) {
- t->c_iflag |= BRKINT|IXON;
+ t->c_iflag |= BRKINT;
t->c_lflag |= ISIG;
}
#endif