From 0122a21d6d4e98e426acd8d4faf143f5d51f4ad1 Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada Date: Fri, 17 Jan 2020 23:49:26 +0900 Subject: [PATCH] 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 --- ext/io/console/console.c | 1 + 1 file changed, 1 insertion(+) diff --git a/ext/io/console/console.c b/ext/io/console/console.c index 3a6bb25..bfba1e7 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;