Sha256: 36bff283d015bc561bd60b5793ced3bc57b88cdd9b8df1fdceb7a547ccee95f6

Contents?: true

Size: 500 Bytes

Versions: 42

Compression:

Stored size: 500 Bytes

Contents

win = RubyText.window(12, 65, r: 2, c: 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

42 entries across 42 versions & 1 rubygems

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