Sha256: b796bc994ae74d54698d03851051e23f98cb8d3c51771fc02cdfba48f4faface
Contents?: true
Size: 319 Bytes
Versions: 5
Compression:
Stored size: 319 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 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
5 entries across 5 versions & 1 rubygems
Version | Path |
---|---|
rubytext-0.0.89 | examples/prog08.rb |
rubytext-0.0.88 | examples/prog08.rb |
rubytext-0.0.87 | examples/prog08.rb |
rubytext-0.0.86 | examples/prog08.rb |
rubytext-0.0.85 | examples/prog08.rb |