Sha256: fb4afa1f993793f66f91cf4e9c1ed3039c52ac693ca4486b5cafa8b0ebf2785f

Contents?: true

Size: 155 Bytes

Versions: 7

Compression:

Stored size: 155 Bytes

Contents

module TerminalGameEngine
  class Window
    def self.rows
      $stdin.winsize[0]
    end

    def self.columns
      $stdin.winsize[1]
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
terminal_game_engine-0.4.1 lib/terminal_game_engine/window.rb
terminal_game_engine-0.4.0 lib/terminal_game_engine/window.rb
terminal_game_engine-0.3.0 lib/terminal_game_engine/window.rb
terminal_game_engine-0.2.0 lib/terminal_game_engine/window.rb
terminal_game_engine-0.1.2 lib/terminal_game_engine/window.rb
terminal_game_engine-0.1.1 lib/terminal_game_engine/window.rb
terminal_game_engine-0.1.0 lib/terminal_game_engine/window.rb