vendor/cache/ruby/2.6.0/gems/tty-reader-0.8.0/lib/tty/reader.rb
# Get input in unbuffered mode.
#
# @example
#   unbufferred do
#     ...
#   end
#
# @api public
Get input in unbuffered mode.
Get input in unbuffered mode .
def unbufferred(&block)
      bufferring = output.sync
      output.sync = true
      block[] if block_given?
    ensure
      output.sync = bufferring
    end
def unbufferred ( & block ) bufferring = output . sync output . sync = true block [ ] if block_given? ensure output . sync = bufferring end
Get input in unbuffered mode.
Get input in unbuffered mode .
# Immediately flush output
block
example
unbufferred do ... end
unbufferred do ... end
api
None