window-size

get the height and width of the terminal

Install

All systems
curl cmd.cat/window-size.sh
Debian Debian
apt-get install window-size
Ubuntu
apt-get install window-size
image/svg+xml Kali Linux
apt-get install window-size
Windows (WSL2)
sudo apt-get update sudo apt-get install window-size
Raspbian
apt-get install window-size

window-size

get the height and width of the terminal

reliable way to get the height and width of the terminal/console in a node.js environment. Node.js is an event-based server-side JavaScript engine.