{"id":15042793,"url":"https://github.com/sindresorhus/windows-terminal-size","last_synced_at":"2025-10-19T19:31:15.949Z","repository":{"id":65974653,"uuid":"67812716","full_name":"sindresorhus/windows-terminal-size","owner":"sindresorhus","description":"Get the terminal window size on Windows","archived":false,"fork":false,"pushed_at":"2023-11-04T18:11:07.000Z","size":3,"stargazers_count":12,"open_issues_count":0,"forks_count":1,"subscribers_count":6,"default_branch":"main","last_synced_at":"2025-01-28T19:28:20.922Z","etag":null,"topics":["c","columns","rows","size","terminal","tty","windows"],"latest_commit_sha":null,"homepage":"","language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/sindresorhus.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":"license","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null},"funding":{"github":"sindresorhus","open_collective":"sindresorhus","custom":"https://sindresorhus.com/donate"}},"created_at":"2016-09-09T16:00:15.000Z","updated_at":"2024-06-14T12:36:50.000Z","dependencies_parsed_at":"2023-02-19T18:01:13.964Z","dependency_job_id":"30329f48-13a9-435f-b390-e94bf4a4eb55","html_url":"https://github.com/sindresorhus/windows-terminal-size","commit_stats":{"total_commits":4,"total_committers":1,"mean_commits":4.0,"dds":0.0,"last_synced_commit":"a546187411113d72f3ba3fc8abde9f34c926571c"},"previous_names":["sindresorhus/windows-terminal-size"],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sindresorhus%2Fwindows-terminal-size","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sindresorhus%2Fwindows-terminal-size/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sindresorhus%2Fwindows-terminal-size/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sindresorhus%2Fwindows-terminal-size/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sindresorhus","download_url":"https://codeload.github.com/sindresorhus/windows-terminal-size/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":237201091,"owners_count":19271262,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["c","columns","rows","size","terminal","tty","windows"],"created_at":"2024-09-24T20:47:59.011Z","updated_at":"2025-10-19T19:31:10.662Z","avatar_url":"https://github.com/sindresorhus.png","language":"C","funding_links":["https://github.com/sponsors/sindresorhus","https://opencollective.com/sindresorhus","https://sindresorhus.com/donate"],"categories":[],"sub_categories":[],"readme":"# windows-terminal-size\n\n\u003e Get the terminal window size on Windows\n\nWorks even when run [non-interactively](https://www.tldp.org/LDP/abs/html/intandnonint.html), for example, in a child process or when piped.\n\n## Install\n\n[Download](https://github.com/sindresorhus/windows-terminal-size/releases/latest) the binary and put it somewhere in your [`%path%`](https://stackoverflow.com/a/28778358/64949).\n\n## Usage\n\n```\n$ terminal-size\n143\n24\n```\n\nWhere `143` are the number of columns and `24` are the number of rows.\n\n## Build\n\nInstall [`MinGW-w64`](https://sourceforge.net/projects/mingw-w64/) and run:\n\n```sh\nbuild\n```\n\n## Related\n\n- [terminal-size](https://github.com/sindresorhus/terminal-size) - Get the terminal window size, cross-platform\n- [macos-terminal-size](https://github.com/sindresorhus/macos-terminal-size) - Get the terminal window size on macOS\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsindresorhus%2Fwindows-terminal-size","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsindresorhus%2Fwindows-terminal-size","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsindresorhus%2Fwindows-terminal-size/lists"}