macOS
brew install macos-term-sizelocal Homebrew formula metadata
安装
brew install macos-term-sizelocal Homebrew formula metadata
概览
Get the terminal window size on macOS
历史
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.
安全态势
narrow executable package without higher-risk signals.
绿色 风险 · 低 置信度 · appliance
在无人值守的代理使用前,请检查该工具是否读取明文凭据、写入远程状态、发布制品或调用插件。
可执行文件
| 命令 | 类型 | 暴露范围 | 备注 |
|---|---|---|---|
term-size | cli | 全局可执行文件 |
新鲜度
这些信号区分页生成时间、软件包管理器活动和上游发布比较。只有存在证据 URL 和可比较版本时,才会提示版本落后。
https://github.com/sindresorhus/macos-terminal-size
安装元数据
| 软件包键 | brew:macos-term-size |
|---|---|
| 版本 | 1.0.0 |
| 软件包管理器 | Homebrew |
| 软件包管理器页面 | https://formulae.brew.sh/formula/macos-term-size |
| 主页 | https://github.com/sindresorhus/macos-terminal-size |
| 仓库 | https://github.com/sindresorhus/macos-terminal-size |
| 上游文档 | https://github.com/sindresorhus/macos-terminal-size#readme |
| 许可证 | MIT |
| 源码归档 | https://github.com/sindresorhus/macos-terminal-size/archive/refs/tags/v1.0.0.tar.gz |
| Bottle | 可用 (于 arm64_sequoia, arm64_sonoma, arm64_tahoe, arm64_ventura, sonoma, ventura) |
| Homebrew post-install | 未定义 |
| 服务 | 未声明 |
注册表事实
| 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 |
|
来源线索
此页面由 av-web 从 scripts/generate-pkg-sqlite.py 生成的私有软件包 SQLite 工件提供。
View the package source record on GitHub.