Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Get the terminal window size on macOS

License

NotificationsYou must be signed in to change notification settings

sindresorhus/macos-terminal-size

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Get the terminal window size on macOS

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

Install

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

Usage

$ terminal-size14324

Where143 are the number of columns and24 are the number of rows.

Comparison

$ tput cols158$ tput cols &> x; cat x80
$ terminal-size15825$ terminal-size &> x; cat x15825

Build

./build

Related


[8]ページ先頭

©2009-2025 Movatter.jp