Sha256: 779bf9bc27fc7948eb88ed56f18675a177a73ae0ddbf322e104e47a63af6b738

Contents?: true

Size: 382 Bytes

Versions: 12

Compression:

Stored size: 382 Bytes

Contents

win = RubyText.window(11, 65, 0, 15, true, 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

12 entries across 12 versions & 1 rubygems

Version Path
rubytext-0.0.51 examples/prog13.rb
rubytext-0.0.50 examples/prog13.rb
rubytext-0.0.49 examples/prog13.rb
rubytext-0.0.48 examples/prog13.rb
rubytext-0.0.47 examples/prog13.rb
rubytext-0.0.46 examples/prog13.rb
rubytext-0.0.45 examples/prog13.rb
rubytext-0.0.44 examples/prog13.rb
rubytext-0.0.43 examples/prog13.rb
rubytext-0.0.42 examples/prog13.rb
rubytext-0.0.41 examples/prog13.rb
rubytext-0.0.40 examples/prog13.rb