Sha256: edefea8bfa446f101a87bc2a1729bfb228d408981df382fb97e7d64f3356e666

Contents?: true

Size: 433 Bytes

Versions: 16

Compression:

Stored size: 433 Bytes

Contents

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