Sha256: 18e79f8468e764865fc1121f08b81e5192b128888fda6012e0810a3fed710113
Contents?: true
Size: 348 Bytes
Versions: 1
Compression:
Stored size: 348 Bytes
Contents
module Vedeu class Terminal def width size[1] end def height size[0] end private def size IO.console.winsize end end def self.test_Vedue__Terminal(klass = Vedeu::Terminal) terminal = klass.new puts "Width: #{terminal.width}" puts "Height: #{terminal.height}" puts end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
vedeu-0.0.3 | lib/vedeu/terminal.rb |