Sha256: dda36e9af57d0a994871477da5fb0f017518f62eca652889489bb48a0955c2d0
Contents?: true
Size: 493 Bytes
Versions: 16
Compression:
Stored size: 493 Bytes
Contents
win = RubyText.window(12, 65, 1, 5, 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