Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/perkovec/tutils
Various go helper functions for work with terminal
https://github.com/perkovec/tutils
cli go golang terminal tui
Last synced: 11 days ago
JSON representation
Various go helper functions for work with terminal
- Host: GitHub
- URL: https://github.com/perkovec/tutils
- Owner: Perkovec
- License: mit
- Created: 2024-10-14T19:25:31.000Z (4 months ago)
- Default Branch: main
- Last Pushed: 2024-10-16T22:25:05.000Z (4 months ago)
- Last Synced: 2025-02-02T03:17:38.492Z (11 days ago)
- Topics: cli, go, golang, terminal, tui
- Language: Go
- Homepage:
- Size: 1.95 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# TUtils
TUtils is a simple library with various helpers that can be used in terminal applications
## Installation
```bash
go get github.com/Perkovec/tutils
```## Methods
### GetSize
Returns the size of the terminal window
```go
package mainimport (
"fmt"
"github.com/Perkovec/tutils"
)func main() {
fmt.Println(tutils.GetSize()) // example: Size{Rows: 24, Columns: 80}
}
```