diff options
author | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2019-12-14 11:05:16 +0900 |
---|---|---|
committer | aycabta <aycabta@gmail.com> | 2019-12-17 13:19:37 +0900 |
commit | 11db4d3a3b315ed2495ec0cdde4449554c002bff (patch) | |
tree | 83ee23a2c48cadc0966c7b2a7ffec3f653877d86 | |
parent | fbe229906b6e55c2e7bb1e68452d5c225503b9ca (diff) |
[ruby/reline] Disable any implementation-defined special control characters
Including dsusp, lnext, and so on.
https://github.com/ruby/reline/commit/a44abe586b
-rw-r--r-- | lib/reline/ansi.rb | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/lib/reline/ansi.rb b/lib/reline/ansi.rb index f69187cc18..e29ee75537 100644 --- a/lib/reline/ansi.rb +++ b/lib/reline/ansi.rb @@ -121,15 +121,11 @@ class Reline::ANSI 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 |