Sha256: 5c2ac0b4d10caab7848f2c0fe6f13702fe59ff161e01668428aba6cb5a57443a

Contents?: true

Size: 320 Bytes

Versions: 37

Compression:

Stored size: 320 Bytes

Contents

win = RubyText.window(11, 50, r: 2, c: 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 1; win[4,22] = "X"; win.refresh
sleep 1; win[8,20] = "y"; win.refresh
sleep 1; win[6,38] = "Z"; win.refresh

Version data entries

37 entries across 37 versions & 1 rubygems

Version Path
rubytext-0.1.29 examples/brack_equal.rb
rubytext-0.1.28 examples/brack_equal.rb
rubytext-0.1.26 examples/brack_equal.rb
rubytext-0.1.25 examples/brack_equal.rb
rubytext-0.1.23 examples/brack_equal.rb
rubytext-0.1.22 examples/brack_equal.rb
rubytext-0.1.21 examples/brack_equal.rb
rubytext-0.1.20 examples/brack_equal.rb
rubytext-0.1.19 examples/brack_equal.rb
rubytext-0.1.18 examples/brack_equal.rb
rubytext-0.1.17 examples/brack_equal.rb
rubytext-0.1.16 examples/brack_equal.rb
rubytext-0.1.15 examples/brack_equal.rb
rubytext-0.1.14 examples/brack_equal.rb
rubytext-0.1.13 examples/brack_equal.rb
rubytext-0.1.12 examples/brack_equal.rb
rubytext-0.1.11 examples/brack_equal.rb
rubytext-0.1.10 examples/brack_equal.rb
rubytext-0.1.8 examples/brack_equal.rb
rubytext-0.1.7 examples/brack_equal.rb