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