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.29 examples/go_meth.rb
rubytext-0.1.28 examples/go_meth.rb
rubytext-0.1.26 examples/go_meth.rb
rubytext-0.1.25 examples/go_meth.rb
rubytext-0.1.23 examples/go_meth.rb
rubytext-0.1.22 examples/go_meth.rb
rubytext-0.1.21 examples/go_meth.rb
rubytext-0.1.20 examples/go_meth.rb
rubytext-0.1.19 examples/go_meth.rb
rubytext-0.1.18 examples/go_meth.rb
rubytext-0.1.17 examples/go_meth.rb
rubytext-0.1.16 examples/go_meth.rb
rubytext-0.1.15 examples/go_meth.rb
rubytext-0.1.14 examples/go_meth.rb
rubytext-0.1.13 examples/go_meth.rb
rubytext-0.1.12 examples/go_meth.rb
rubytext-0.1.11 examples/go_meth.rb
rubytext-0.1.10 examples/go_meth.rb
rubytext-0.1.8 examples/go_meth.rb
rubytext-0.1.7 examples/go_meth.rb