Sha256: cfcc741559f5bfc5cf8f988ebe12016391a6952f4d8b2eecfbb577b3448462e1

Contents?: true

Size: 371 Bytes

Versions: 61

Compression:

Stored size: 371 Bytes

Contents

require 'rubytext'

RubyText.start(:raw, log: "foo", fg: :white, bg: :black)

cmax = STDSCR.cols
rmax = STDSCR.rows

rbest, cbest = 32, 80

RubyText.hide_cursor

if rmax < rbest || cmax < rbest
  puts "\n  Your window should be #{rbest}x#{cbest} or larger,"
  puts   "  but this one is only  #{rmax}x#{cmax}."
  puts "  Please resize and run again!"
  getch
  exit 1
end

Version data entries

61 entries across 61 versions & 1 rubygems

Version Path
rubytext-0.0.86 examples/check.rb
rubytext-0.0.85 examples/check.rb
rubytext-0.0.84 examples/check.rb
rubytext-0.0.83 examples/check.rb
rubytext-0.0.82 examples/check.rb
rubytext-0.0.81 examples/check.rb
rubytext-0.0.80 examples/check.rb
rubytext-0.0.79 examples/check.rb
rubytext-0.0.78 examples/check.rb
rubytext-0.0.77 examples/check.rb
rubytext-0.0.76 examples/check.rb
rubytext-0.0.75 examples/check.rb
rubytext-0.0.74 examples/check.rb
rubytext-0.0.73 examples/check.rb
rubytext-0.0.72 examples/check.rb
rubytext-0.0.71 examples/check.rb
rubytext-0.0.70 examples/check.rb
rubytext-0.0.69 examples/check.rb
rubytext-0.0.68 examples/check.rb
rubytext-0.0.67 examples/check.rb