summaryrefslogtreecommitdiff
path: root/ext/io/console
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2020-01-17 23:49:26 +0900
committerNobuyoshi Nakada <nobu@ruby-lang.org>2020-01-18 00:15:02 +0900
commit4e56ec4ef74cf77dbcb4ce7c669e0595cd0d12fa (patch)
tree75f905649eb01399a6a1c90bf37c37dbbd33e358 /ext/io/console
parent569f56e0f74e29924a63579e77e3e60411dc0479 (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
Diffstat (limited to 'ext/io/console')
-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 3a6bb25db2..bfba1e7152 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;
t->c_lflag |= ISIG;
+ t->c_oflag |= OPOST;
}
#endif
(void)r;