- Notifications
You must be signed in to change notification settings - Fork4
Get the terminal window size on macOS
License
NotificationsYou must be signed in to change notification settings
sindresorhus/macos-terminal-size
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
Get the terminal window size on macOS
Works even when runnon-interactively, for example, in a child process or when piped.
Download the binary and put it in/usr/local/bin
.
$ terminal-size14324
Where143
are the number of columns and24
are the number of rows.
$ tput cols158$ tput cols &> x; cat x80
$ terminal-size15825$ terminal-size &> x; cat x15825
./build
- terminal-size - Get the terminal window size, cross-platform
- windows-terminal-size - Get the terminal window size on Windows
About
Get the terminal window size on macOS
Topics
Resources
License
Code of conduct
Stars
Watchers
Forks
Packages0
No packages published