lib/twurl/cli.rb in twurl-0.6.7 vs lib/twurl/cli.rb in twurl-0.7.0
- old
+ new
@@ -90,13 +90,15 @@
end
end
def print(*args, &block)
output.print(*args, &block)
+ output.flush if output.respond_to?(:flush)
end
def puts(*args, &block)
output.puts(*args, &block)
+ output.flush if output.respond_to?(:flush)
end
def prompt_for(label)
system "stty -echo"
CLI.print "#{label}: "