Sha256: 605568678a2f081b0964a2df8cc5196e153bc37247b7418bb7d8b24a2558b712

Contents?: true

Size: 459 Bytes

Versions: 7

Compression:

Stored size: 459 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(*)
    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

7 entries across 7 versions & 1 rubygems

Version Path
io-console-0.7.1-java lib/ffi/io/console/stub_console.rb
io-console-0.7.0-java lib/ffi/io/console/stub_console.rb
io-console-0.6.0-java lib/io/console/ffi/stub_console.rb
io-console-0.5.11-java lib/io/console/ffi/stub_console.rb
io-console-0.5.9-java lib/io/console/ffi/stub_console.rb
io-console-0.5.8-java lib/io/console/ffi/stub_console.rb
io-console-0.5.7-java jruby/io/console/stub_console.rb