Sha256: 1e043d60724f558c72a417dea6fa140bb47fa50cf40df5ce2a11fb8a220dbbf5

Contents?: true

Size: 156 Bytes

Versions: 1

Compression:

Stored size: 156 Bytes

Contents

module Screen
  extend self

  def clear!
    print "\e[2J\e[f"
  end

  def height
    `tput lines`.to_i
  end

  def width
    `tput cols`.to_i
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
tp-0.0.2 lib/screen.rb