GitShow/sindresorhus/macos-terminal-size
sindresorhus

macos-terminal-size

Get the terminal window size on macOS

by sindresorhus
ccolumnsmacosrowssizeterminaltty
Star on GitHubFork

C

43 stars5 forks4 contributorsQuiet · 2y agoSince 2017v1.0.0MIT

Meet the team

See all 4 on GitHub →
sindresorhus
sindresorhus3 contributions
Qix-
Qix-1 contribution
leonardodino
leonardodino1 contribution
rvagg
rvagg1 contribution

Languages

View on GitHub →
C57.2%
Shell42.8%

Commit activity

Last 12 weeks · 0 commits

Full graph →

Community health

4 of 6 standards met

Community profile →
71
✓README✓License✓Contributing✓Code of Conduct○Issue Template○PR Template

Recent fixes

View closed PRs →
runeimp
What is the rational?ClosedIssue

I'm curious what use case you had where the terminal size was needed but not available, such as in a non-interactive shell? BTW, you can use the POSIX standard utility , on everything but Windows from what I can tell, to get the terminal size. Subwindow of KiTTY If you just want the cols iTerm2 tmux in iTerm2 Apple Terminal

runeimp · 2y ago
leonardodino
Output a universal binaryMergedPR

it will require macos 11 sdk, but compiled binary can be run on previous versions (tested at a 2012 intel macmini running catalina, can later test on a mavericks install, just need to dust off some HDDs 😅 )

leonardodino · 4y ago
rvagg
Codesign and harden the binaryMergedPR

Closes #2 Apparently this doesn't need any special entitlements, the hardened gives it the access it needs.

rvagg · 6y ago
Structured data for AI agents

Repository: sindresorhus/macos-terminal-size. Description: Get the terminal window size on macOS Stars: 43, Forks: 5. Primary language: C. Languages: C (57.2%), Shell (42.8%). License: MIT. Topics: c, columns, macos, rows, size, terminal, tty. Latest release: v1.0.0 (6y ago). Open PRs: 0, open issues: 0. Last activity: 2y ago. Community health: 71%. Top contributors: sindresorhus, Qix-, leonardodino, rvagg.

·@ofershap

Replace github.com with gitshow.dev