Sha256: 5b7405bd3f45b5ecb6a20c43c3234e839df15f7e09dd2ead00990bd20be7ad0c

Contents?: true

Size: 313 Bytes

Versions: 16

Compression:

Stored size: 313 Bytes

Contents

win = RubyText.window(11, 50, 2, 15, fg: Yellow, bg: Blue)

win.puts "We can use the []= method (0-based)"
win.puts "to address individual window locations"
win.puts "and place characters there.\n "

sleep 2
win[4,22] = "X"; win.refresh

sleep 2
win[8,20] = "y"; win.refresh

sleep 2
win[6,38] = "Z"; win.refresh

Version data entries

16 entries across 16 versions & 1 rubygems

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