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.1.29 examples/check.rb
rubytext-0.1.28 examples/check.rb
rubytext-0.1.26 examples/check.rb
rubytext-0.1.25 examples/check.rb
rubytext-0.1.23 examples/check.rb
rubytext-0.1.22 examples/check.rb
rubytext-0.1.21 examples/check.rb
rubytext-0.1.20 examples/check.rb
rubytext-0.1.19 examples/check.rb
rubytext-0.1.18 examples/check.rb
rubytext-0.1.17 examples/check.rb
rubytext-0.1.16 examples/check.rb
rubytext-0.1.15 examples/check.rb
rubytext-0.1.14 examples/check.rb
rubytext-0.1.13 examples/check.rb
rubytext-0.1.12 examples/check.rb
rubytext-0.1.11 examples/check.rb
rubytext-0.1.10 examples/check.rb
rubytext-0.1.8 examples/check.rb
rubytext-0.1.7 examples/check.rb