mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
[ruby/io-console] Disable implementation-defined special control characters
In raw mode with interrupt enabled.
e9e8e3ff17
This commit is contained in:
parent
ec89a0f803
commit
81eb2d16ef
2 changed files with 11 additions and 1 deletions
|
@ -187,7 +187,7 @@ set_rawmode(conmode *t, void *arg)
|
||||||
#ifdef ISIG
|
#ifdef ISIG
|
||||||
if (r->intr) {
|
if (r->intr) {
|
||||||
t->c_iflag |= BRKINT|IXON;
|
t->c_iflag |= BRKINT|IXON;
|
||||||
t->c_lflag |= ISIG|IEXTEN;
|
t->c_lflag |= ISIG;
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
(void)r;
|
(void)r;
|
||||||
|
|
|
@ -352,6 +352,16 @@ 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("Interrupt", cc, r, w)
|
assert_ctrl("Interrupt", cc, r, w)
|
||||||
end
|
end
|
||||||
|
if cc = ctrl["dsusp"]
|
||||||
|
assert_ctrl("#{cc.ord}", cc, r, w)
|
||||||
|
assert_ctrl("#{cc.ord}", cc, r, w)
|
||||||
|
assert_ctrl("#{cc.ord}", cc, r, w)
|
||||||
|
end
|
||||||
|
if cc = ctrl["lnext"]
|
||||||
|
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…
Add table
Add a link
Reference in a new issue