#!/usr/bin/ruby require 'io/console' height, width = IO.console.winsize print "#{width} x #{height}\n"