GitShow/sindresorhus/terminal-size
sindresorhus

terminal-size

Reliably get the terminal window size

by sindresorhus
Star on GitHubForknpm

JavaScript

147 stars16 forks11 contributorsQuiet · 5mo agoSince 2016v4.0.1MIT

Meet the team

See all 11 on GitHub →
sindresorhus
sindresorhus35 contributions
brandon93s
brandon93s1 contribution
coreyfarrell
coreyfarrell1 contribution
BendingBender
BendingBender1 contribution
fabiospampinato
fabiospampinato1 contribution
ianobermiller
ianobermiller1 contribution
Richienb
Richienb1 contribution
rvagg
rvagg1 contribution

Languages

View on GitHub →
JavaScript96.8%
TypeScript3.2%

Commit activity

Last 12 weeks · 0 commits

Full graph →

Community health

4 of 6 standards met

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

Recent fixes

View closed PRs →
pablopunk
Process suspended when stdout and stderr are redirected and the process is daemonizedClosedIssue

So trying to fix this issue I found that in this line of stops the execution: Reproduce With the binary, execute a script: And executing like this: This doesn't happen when you don't run the process in the background (so, without the last ): This could be an error in or in the binary, I have no clue.

pablopunk · 5mo ago
Velociraptor45
Window size detection for Git Bash pager falls back to default valuesClosedIssue

Hey there, this is kind of a follow-up to #22. It works fine for the normal git bash window, however when opening e.g. a less pager in that window, it falls back to the default 80/24 values. I've debugged it and I think I found a bug, but I'd like your confirmation on this. STR 1. Comment out the following in the to simulate the pager without having to actually have a pager (line 60 is where we'd like to go): !grafik 2. Temporarily add the following to the bottom of the to execute the size function upon calling the script 3. Execute the in a Git Bash and see that it's not returning the correct window size. !grafik Possible Solution The index.js contains this line: !grafik The is duplicated and when I replace the second one with , it's working fine. !grafik Resulting in correct window sizes: !grafik Any opinion on this?

Velociraptor45 · 9mo ago
atulmahankal
not work in windows 10 git bash terminalClosedIssue

not work in windows 10 git bash terminal

atulmahankal · 9mo ago
Structured data for AI agents

Repository: sindresorhus/terminal-size. Description: Reliably get the terminal window size Stars: 147, Forks: 16. Primary language: JavaScript. Languages: JavaScript (96.8%), TypeScript (3.2%). License: MIT. Latest release: v4.0.1 (5mo ago). Open PRs: 0, open issues: 1. Last activity: 5mo ago. Community health: 85%. Top contributors: sindresorhus, brandon93s, coreyfarrell, BendingBender, fabiospampinato, ianobermiller, Richienb, rvagg, shinnn, styfle and others.

·@ofershap

Replace github.com with gitshow.dev