Sha256: 5b81fe08f7924fd4eb3950101cd16243a82addd6cea30f494c679cd5c4394f42

Contents?: true

Size: 546 Bytes

Versions: 16

Compression:

Stored size: 546 Bytes

Contents

win = RubyText.window(11, 65, 2, 14, fg: Blue, bg: White)

win.go 2,0
win.puts "   Method #home will home the cursor..."
win.puts "   and #putch will put a character at the current location."
sleep 2
win.home; win.putch "H"; sleep 2
win.rcprint 4,3, "We can also move up/down/left/right..."; sleep 2

win.go 7, 29;            win.putch("+"); sleep 1
win.go 7, 29; win.up;    win.putch("U"); sleep 1
win.go 7, 29; win.down;  win.putch("D"); sleep 1
win.go 7, 29; win.left;  win.putch("L"); sleep 1
win.go 7, 29; win.right; win.putch("R"); sleep 1

Version data entries

16 entries across 16 versions & 1 rubygems

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