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