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