Sha256: 98223baaef78037a8768f803cc4b3f76dadf66c0c48abbaf753a01d58df8696a

Contents?: true

Size: 494 Bytes

Versions: 16

Compression:

Stored size: 494 Bytes

Contents

win = RubyText.window(12, 65, 2, 11, fg: Yellow, bg: Blue)

win.output do
  puts "You can detect the size and cursor position of any window."
  puts "\nSTDSCR is #{STDSCR.rows} rows by #{STDSCR.cols} columns"
  puts "win is     #{win.rows} rows by #{win.cols} columns"
  puts "\nSlightly Heisenbergian report of cursor position:"
  puts "  STDSCR.rc = #{STDSCR.rc.inspect}\n  win.rc    = #{win.rc.inspect}"
  puts "\nFor fun, I'll print \"ABC\" to STDSCR..."
  sleep 2
  STDSCR.print "ABC"
end

Version data entries

16 entries across 16 versions & 1 rubygems

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