Sha256: 6deaef72d56d7a60fbca2983839291e2970dc17a0564ac339376978f33b66f2e

Contents?: true

Size: 380 Bytes

Versions: 42

Compression:

Stored size: 380 Bytes

Contents

win = RubyText.window(11, 65, r: 2, c: 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

42 entries across 42 versions & 1 rubygems

Version Path
rubytext-0.1.6 examples/go_meth.rb
rubytext-0.1.5 examples/go_meth.rb
rubytext-0.1.4 examples/go_meth.rb
rubytext-0.1.3 examples/go_meth.rb
rubytext-0.1.2 examples/go_meth.rb
rubytext-0.1.1 examples/go_meth.rb
rubytext-0.1.0 examples/go_meth.rb
rubytext-0.0.99 examples/go_meth.rb
rubytext-0.0.98 examples/go_meth.rb
rubytext-0.0.97 examples/go_meth.rb
rubytext-0.0.96 examples/go_meth.rb
rubytext-0.0.95 examples/go_meth.rb
rubytext-0.0.94 examples/go_meth.rb
rubytext-0.0.93 examples/go_meth.rb
rubytext-0.0.92 examples/go_meth.rb
rubytext-0.0.91 examples/go_meth.rb
rubytext-0.0.90 examples/go_meth.rb
rubytext-0.0.89 examples/prog13.rb
rubytext-0.0.88 examples/prog13.rb
rubytext-0.0.87 examples/prog13.rb