Macos Term Size Save

Get the terminal window size on macOS

Project README

macos-terminal-size

Get the terminal window size on macOS

Works even when run non-interactively, for example, in a child process or when piped.

Install

Download the binary and put it in /usr/local/bin.

Usage

$ terminal-size
143
24

Where 143 are the number of columns and 24 are the number of rows.

Comparison

$ tput cols
158
$ tput cols &> x; cat x
80
$ terminal-size
158
25
$ terminal-size &> x; cat x
158
25

Build

./build
Open Source Agenda is not affiliated with "Macos Term Size" Project. README Source: sindresorhus/macos-terminal-size
Stars
39
Open Issues
0
Last Commit
6 months ago
License
MIT

Open Source Agenda Badge

Open Source Agenda Rating