Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/heapwolf/go-termsize
Get the current size (width and height) of the terminal (nothing more!)
https://github.com/heapwolf/go-termsize
Last synced: 25 days ago
JSON representation
Get the current size (width and height) of the terminal (nothing more!)
- Host: GitHub
- URL: https://github.com/heapwolf/go-termsize
- Owner: heapwolf
- License: mit
- Created: 2015-05-03T10:20:00.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2015-05-03T10:40:40.000Z (over 9 years ago)
- Last Synced: 2024-10-18T17:15:59.812Z (26 days ago)
- Language: Go
- Size: 113 KB
- Stars: 5
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# SYNOPSIS
Get the width and height of the terminal (nothing more!)# USAGE
```go
import "github.com/hij1nx/go-termSize"func main() {
err, w, h := TermSize()
// ...do some math
}
```