Registry / cli / tty-screen

tty-screen

JSON →
library0.8.2rbrubygemsunverified

Terminal screen size detection that works on Linux, macOS and Windows systems and supports Ruby MRI, JRuby, TruffleRuby and Rubinius interpreters.

gem install tty-screen
INSTALL
IMPORT
SIG · TTY-SCREEN
T
tty-screen
clirubyv0.8.2
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

TTY::Screen
require 'tty/screen'

Detect terminal width and height

require 'tty/screen' width = TTY::Screen.width height = TTY::Screen.height puts "Terminal size: #{width}x#{height}"
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.8.2latest on RubyGems
Audit
Dependencies

No dependency data recorded yet.

Agent activity
30 hits · last 30 days
node
26
OpenAI (training)
1
Resources
tty-screen — gem install tty-screen · libregistry