diff options
author | aycabta <aycabta@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2019-04-21 09:13:49 +0000 |
---|---|---|
committer | aycabta <aycabta@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2019-04-21 09:13:49 +0000 |
commit | 51cec00953ff8d7baa483d3846aa1dbdb89101aa (patch) | |
tree | 2900ea0ba7c09379990e9da2edda5d6ef8fa075c /lib/irb/input-method.rb | |
parent | 683834eb72cfa77f4eac1c705327b522302b1721 (diff) |
Revert "IRB is improved with Reline and RDoc"
This reverts commit 7f273ac6d0f05208b5b228da95205e20c0e8286c.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@67691 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/irb/input-method.rb')
-rw-r--r-- | lib/irb/input-method.rb | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/lib/irb/input-method.rb b/lib/irb/input-method.rb index 1f4f1d4746..f491d5a760 100644 --- a/lib/irb/input-method.rb +++ b/lib/irb/input-method.rb @@ -142,17 +142,13 @@ module IRB @stdout = IO.open(STDOUT.to_i, 'w', :external_encoding => IRB.conf[:LC_MESSAGES].encoding, :internal_encoding => "-") end - def check_termination(&block) - @check_termination_proc = block - end - # Reads the next line from this input method. # # See IO#gets for more information. def gets Readline.input = @stdin Readline.output = @stdout - if l = readmultiline(@prompt, false, &@check_termination_proc) + if l = readline(@prompt, false) HISTORY.push(l) if !l.empty? @line[@line_no += 1] = l + "\n" else |