Skip to content

Commit

Permalink
Added readline
Browse files Browse the repository at this point in the history
  • Loading branch information
paulsonkoly committed Feb 17, 2019
1 parent 347f675 commit a701967
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions bin/console
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
#!/usr/bin/env ruby

require 'bundler/setup'
require 'readline'
require 'yarr'

bot = Yarr::Bot.new
puts "Yarr Version #{Yarr::VERSION}"

loop do
request = gets
puts bot.reply_to(request)
while line = Readline.readline('> ', true)
puts bot.reply_to(line)
STDOUT.flush
end

0 comments on commit a701967

Please sign in to comment.