Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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 main

import (
"fmt"
"github.com/Perkovec/tutils"
)

func main() {
fmt.Println(tutils.GetSize()) // example: Size{Rows: 24, Columns: 80}
}
```