Sha256: d3bd849086ced2f21009fce7d0605d46bfe62d61b5625e947294751bd3a0a386

Contents?: true

Size: 489 Bytes

Versions: 3

Compression:

Stored size: 489 Bytes

Contents

warn "io/console not supported; tty will not be manipulated" if $VERBOSE

# Windows version is always stubbed for now
class IO
  def raw(*, min: 1, time: nil, intr: nil)
    yield self
  end

  def raw!(*)
  end

  def cooked(*)
    yield self
  end

  def cooked!(*)
  end

  def echo=(echo)
  end

  def echo?
    true
  end

  def noecho
    yield self
  end

  def winsize
    [25, 80]
  end

  def winsize=(size)
  end

  def iflush
  end

  def oflush
  end

  def ioflush
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
io-console-0.8.0-java lib/ffi/io/console/stub_console.rb
io-console-0.8.0.beta1-java lib/ffi/io/console/stub_console.rb
io-console-0.7.2-java lib/ffi/io/console/stub_console.rb