Sha256: a18b455fa6f510574fc2c818296e31d3a324c7ea102e50db51cd254cdb8ae721

Contents?: true

Size: 434 Bytes

Versions: 16

Compression:

Stored size: 434 Bytes

Contents

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

win.go 2,0
win.puts "We also have: up!, down!, left!, and right! which can" 
win.puts "Take us to the edges of the window."

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

Version data entries

16 entries across 16 versions & 1 rubygems

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