Skip to content

Commit e9e8e3f

Browse files
committed
Disable implementation-defined special control characters
In raw mode with interrupt enabled.
1 parent 4f01db1 commit e9e8e3f

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

ext/io/console/console.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ set_rawmode(conmode *t, void *arg)
187187
#ifdef ISIG
188188
if (r->intr) {
189189
t->c_iflag |= BRKINT|IXON;
190-
t->c_lflag |= ISIG|IEXTEN;
190+
t->c_lflag |= ISIG;
191191
}
192192
#endif
193193
(void)r;

test/io/console/test_io_console.rb

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -337,6 +337,16 @@ def test_intr
337337
assert_ctrl("#{cc.ord}", cc, r, w)
338338
assert_ctrl("Interrupt", cc, r, w)
339339
end
340+
if cc = ctrl["dsusp"]
341+
assert_ctrl("#{cc.ord}", cc, r, w)
342+
assert_ctrl("#{cc.ord}", cc, r, w)
343+
assert_ctrl("#{cc.ord}", cc, r, w)
344+
end
345+
if cc = ctrl["lnext"]
346+
assert_ctrl("#{cc.ord}", cc, r, w)
347+
assert_ctrl("#{cc.ord}", cc, r, w)
348+
assert_ctrl("#{cc.ord}", cc, r, w)
349+
end
340350
end
341351
end
342352

0 commit comments

Comments
 (0)