Sha256: 33727a656965dd24478040a5785201d0892c4758b2ed68cab1ace819aca36298

Contents?: true

Size: 374 Bytes

Versions: 16

Compression:

Stored size: 374 Bytes

Contents

win = RubyText.window(11, 65, 2, 15, fg: Blue, bg: Black)

win.puts "The #go method will move the cursor to a specific location."
win.go 2, 5
win.puts "x  <-- The x is at 2,5"

win.puts "\nWith a block, it will execute the block and then"
win.puts "return to its previous location."

win.print "\n   ABC..."
sleep 2
win.go(8, 20) { win.print "XYZ" }
sleep 2
win.print "DEF"

Version data entries

16 entries across 16 versions & 1 rubygems

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