terminal-size 0.0.6
A tiny gem to accomplish a simple task: Determining the terminal size.
Usage
p Terminal.size # ⇒ {height: 90, width: 161}
p Terminal.size! # to get 80×25 as a fallback instead of nil
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