[ruby/io-console] Enable only interrupt bits on intr: true
https://github.com/ruby/io-console/commit/baaf929041
This commit is contained in:
parent
e5c441a4a2
commit
31e2f03512
@ -188,7 +188,7 @@ set_rawmode(conmode *t, void *arg)
|
|||||||
#endif
|
#endif
|
||||||
#ifdef ISIG
|
#ifdef ISIG
|
||||||
if (r->intr) {
|
if (r->intr) {
|
||||||
t->c_iflag |= BRKINT|IXON;
|
t->c_iflag |= BRKINT;
|
||||||
t->c_lflag |= ISIG;
|
t->c_lflag |= ISIG;
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
@ -364,6 +364,11 @@ defined?(PTY) and defined?(IO.console) and TestIO_Console.class_eval do
|
|||||||
assert_ctrl("#{cc.ord}", cc, r, w)
|
assert_ctrl("#{cc.ord}", cc, r, w)
|
||||||
assert_ctrl("#{cc.ord}", cc, r, w)
|
assert_ctrl("#{cc.ord}", cc, r, w)
|
||||||
end
|
end
|
||||||
|
if cc = ctrl["stop"]
|
||||||
|
assert_ctrl("#{cc.ord}", cc, r, w)
|
||||||
|
assert_ctrl("#{cc.ord}", cc, r, w)
|
||||||
|
assert_ctrl("#{cc.ord}", cc, r, w)
|
||||||
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user