[前][次][番号順一覧][スレッド一覧]

ruby-changes:60394

From: Nobuyoshi <ko1@a...>
Date: Sat, 14 Mar 2020 20:28:01 +0900 (JST)
Subject: [ruby-changes:60394] 60d98fad86 (ruby_2_7): [ruby/io-console] Set `OPOST` when `intr` is true

https://git.ruby-lang.org/ruby.git/commit/?id=60d98fad86

From 60d98fad86da1ada204c53789431ac0f5f3390ff Mon Sep 17 00:00:00 2001
From: Nobuyoshi Nakada <nobu@r...>
Date: Fri, 17 Jan 2020 23:49:26 +0900
Subject: [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)

diff --git a/ext/io/console/console.c b/ext/io/console/console.c
index ac5b6a6..3688fd4 100644
--- a/ext/io/console/console.c
+++ b/ext/io/console/console.c
@@ -190,6 +190,7 @@ set_rawmode(conmode *t, void *arg) https://github.com/ruby/ruby/blob/trunk/ext/io/console/console.c#L190
 	if (r->intr) {
 	    t->c_iflag |= BRKINT|IXON;
 	    t->c_lflag |= ISIG;
+	    t->c_oflag |= OPOST;
 	}
 #endif
 	(void)r;
-- 
cgit v0.10.2


--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]