Sha256: 6d027fad972d2fc5b7586459f93bc36b4a64d6dcf19a2bdeba8269d975ed364d

Contents?: true

Size: 545 Bytes

Versions: 16

Compression:

Stored size: 545 Bytes

Contents

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