Sha256: a445af78f483a8b47b6ceadcaab38209c1ea240aa5c4162f779fc0c211153d2a

Contents?: true

Size: 312 Bytes

Versions: 16

Compression:

Stored size: 312 Bytes

Contents

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