Sha256: 66f0906b589c474dc893d77d84a5143d94f55e854a4acd110b07c072f8926166

Contents?: true

Size: 340 Bytes

Versions: 16

Compression:

Stored size: 340 Bytes

Contents

win = RubyText.window(15, 65, 2, 14, fg: Green, bg: Blue)

win.puts "#center will print text centered on the current row"
win.puts "and do an implicit CRLF at the end.\n "

stuff = ["I","can","never","imagine","good sets","of real words",
         "which can somehow", "produce tree shapes", "|", "|"]

stuff.each {|str| win.center(str) }

Version data entries

16 entries across 16 versions & 1 rubygems

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