ruby-changes:59300
From: Nobuyoshi <ko1@a...>
Date: Tue, 17 Dec 2019 19:17:22 +0900 (JST)
Subject: [ruby-changes:59300] 11db4d3a3b (master): [ruby/reline] Disable any implementation-defined special control characters
https://git.ruby-lang.org/ruby.git/commit/?id=11db4d3a3b From 11db4d3a3b315ed2495ec0cdde4449554c002bff Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada <nobu@r...> Date: Sat, 14 Dec 2019 11:05:16 +0900 Subject: [ruby/reline] Disable any implementation-defined special control characters Including dsusp, lnext, and so on. https://github.com/ruby/reline/commit/a44abe586b diff --git a/lib/reline/ansi.rb b/lib/reline/ansi.rb index f69187c..e29ee75 100644 --- a/lib/reline/ansi.rb +++ b/lib/reline/ansi.rb @@ -121,15 +121,11 @@ class Reline::ANSI https://github.com/ruby/ruby/blob/trunk/lib/reline/ansi.rb#L121 retrieve_keybuffer int_handle = Signal.trap('INT', 'IGNORE') otio = `stty -g`.chomp - setting = ' -echo -icrnl cbreak' + setting = ' -echo -icrnl cbreak -ixoff -iexten' stty = `stty -a` if /-parenb\b/ =~ stty setting << ' pass8' end - if /\bdsusp *=/ =~ stty - setting << ' dsusp undef' - end - setting << ' -ixoff' `stty #{setting}` Signal.trap('INT', int_handle) otio -- cgit v0.10.2 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/