A tiny gem to accomplish a simple task: Determining the terminal size.
p Terminal.size # ⇒ {height: 90, width: 161} p Terminal.size! # to get 80×25 as a fallback instead of nil
☈king, Norrin
gem "terminal-size", "~> 0.0.6"