Sha256: 303c178743f75460eb095fbf71d2ab4d789e6da6d1e250ed9ff9291c7fab000e

Contents?: true

Size: 330 Bytes

Versions: 16

Compression:

Stored size: 330 Bytes

Contents

win = RubyText.window(10, 70, 4, 14, fg: Yellow, bg: Black)

win.output do
  puts "Without scrolling, this is what happens when your window fills up..."
  puts "This behavior will probably change later."
  sleep 1
  puts "Let's print 10 more lines now:"
  sleep 1
  
  10.times {|i| puts "Printing line #{i}..."; sleep 0.2 }
end

Version data entries

16 entries across 16 versions & 1 rubygems

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