Skip to content

Commit

Permalink
Consistently use Readline::readline instead of IO#gets
Browse files Browse the repository at this point in the history
  • Loading branch information
ephox-rob authored and njonsson committed Oct 12, 2010
1 parent c7522ca commit d491297
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/htty/cli/commands/body_set.rb
@@ -1,3 +1,4 @@
require 'readline'
require File.expand_path("#{File.dirname __FILE__}/../command")
require File.expand_path("#{File.dirname __FILE__}/../display")
require File.expand_path("#{File.dirname __FILE__}/body_request")
Expand Down Expand Up @@ -45,7 +46,7 @@ def perform
lines = []
empty_line_count = 0
while empty_line_count < 2 do
if (input = $stdin.gets).nil?
if (input = Readline.readline).nil?
break
end
lines << input.chomp
Expand Down

0 comments on commit d491297

Please sign in to comment.