macOS
brew install macos-term-sizelocal Homebrew formula metadata
brew
Get the terminal window size on macOS. Version 1.0.0 via Homebrew; verified from local package data.
install
brew install macos-term-sizelocal Homebrew formula metadata
overview
Get the terminal window size on macOS
history
macos-term-size is a small C command-line utility that prints the current terminal window size on macOS.
The official repository was created in May 2017. Its README describes a focused macOS utility that works even when run non-interactively, such as from a child process or with output redirected.
The batch input records Homebrew packaging, and the README points users to downloadable release binaries. Repository metadata captured during this run showed modest GitHub adoption, which fits the project's role as a tiny single-purpose helper rather than a broad framework.
The command is installed as `terminal-size` and prints columns followed by rows. The README contrasts this with `tput cols`, showing that `terminal-size` keeps reporting the actual terminal size in situations where `tput` may fall back to a default.
The package is useful because terminal dimensions are a small but annoying portability edge case for scripts. Packaging it in Homebrew gives macOS shell users a dependable native helper without pulling in a larger cross-platform stack.
security posture
narrow executable package without higher-risk signals.
green risk · low confidence · appliance
Before unattended agent use, check whether the tool reads plaintext credentials, writes remote state, publishes artifacts, or shells out to plugins.
executables
| Command | Kind | Exposure | Note |
|---|---|---|---|
term-size | cli | global executable |
freshness
These signals separate page generation age, package-manager activity, and upstream release comparison. Version lag is warned only when an evidence URL and comparable versions are present.
https://github.com/sindresorhus/macos-terminal-size
install metadata
| Package key | brew:macos-term-size |
|---|---|
| Version | 1.0.0 |
| Package manager | Homebrew |
| Package manager page | https://formulae.brew.sh/formula/macos-term-size |
| Homepage | https://github.com/sindresorhus/macos-terminal-size |
| Repository | https://github.com/sindresorhus/macos-terminal-size |
| Upstream docs | https://github.com/sindresorhus/macos-terminal-size#readme |
| License | MIT |
| Source archive | https://github.com/sindresorhus/macos-terminal-size/archive/refs/tags/v1.0.0.tar.gz |
| Bottle | available (on arm64_sequoia, arm64_sonoma, arm64_tahoe, arm64_ventura, sonoma, ventura) |
| Homebrew post-install | not defined |
| Service | none declared |
registry facts
| Source Database | Homebrew formula API |
|---|---|
| Tap | homebrew/core |
| Full Name | macos-term-size |
| Version Scheme | 0 |
| Revision | 0 |
| Head Version | HEAD |
| Requirements |
|
| Bottle Stable Root URL | https://ghcr.io/v2/homebrew/core |
| Deprecated | no |
| Disabled | no |
| Keg Only | no |
| URL Keys |
|
source trail
This page is generated by av-web from the private package SQLite artifact built by scripts/generate-pkg-sqlite.py.
View the package source record on GitHub.