summaryrefslogtreecommitdiff
path: root/ext
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2020-01-17 23:49:26 +0900
committerNARUSE, Yui <naruse@airemix.jp>2020-03-13 22:10:07 +0900
commit60d98fad86da1ada204c53789431ac0f5f3390ff (patch)
tree2066f296587189474ee264832b754e04add539a5 /ext
parent9f504bb474770f1cac68988eac2a410e41c4bbb8 (diff)
[ruby/io-console] Set `OPOST` when `intr` is true
To enable implementation-defined output processing, for the compatibility with readline. [Bug #16509] https://bugs.ruby-lang.org/issues/16509 https://github.com/ruby/io-console/commit/8c8b0b6757 (cherry picked from commit 4e56ec4ef74cf77dbcb4ce7c669e0595cd0d12fa)
Diffstat (limited to 'ext')
-rw-r--r--ext/io/console/console.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/ext/io/console/console.c b/ext/io/console/console.c
index ac5b6a611c..3688fd4240 100644
--- a/ext/io/console/console.c
+++ b/ext/io/console/console.c
@@ -190,6 +190,7 @@ set_rawmode(conmode *t, void *arg)
if (r->intr) {
t->c_iflag |= BRKINT|IXON;
t->c_lflag |= ISIG;
+ t->c_oflag |= OPOST;
}
#endif
(void)r;