Sha256: 53d883157a46867ae691351e6a374efb29f2252eda658bdb2470dc8c375c8e71

Contents?: true

Size: 374 Bytes

Versions: 16

Compression:

Stored size: 374 Bytes

Contents

win = RubyText.window(11, 65, 0, 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.68 examples/prog13.rb
rubytext-0.0.67 examples/prog13.rb
rubytext-0.0.66 examples/prog13.rb
rubytext-0.0.65 examples/prog13.rb
rubytext-0.0.64 examples/prog13.rb
rubytext-0.0.63 examples/prog13.rb
rubytext-0.0.62 examples/prog13.rb
rubytext-0.0.61 examples/prog13.rb
rubytext-0.0.60 examples/prog13.rb
rubytext-0.0.59 examples/prog13.rb
rubytext-0.0.58 examples/prog13.rb
rubytext-0.0.57 examples/prog13.rb
rubytext-0.0.56 examples/prog13.rb
rubytext-0.0.55 examples/prog13.rb
rubytext-0.0.54 examples/prog13.rb
rubytext-0.0.53 examples/prog13.rb