repositorypackage
0.0.0-20161127222035-5b193934532c
Repository: https://github.com/minomino/minterm.git
Documentation: pkg.go.dev
# README
minterm
Just a small library to help manipulate the terminal in Go.
I needed something like Python's shutil.get_terminal_size()
,
so I wrote this, then added some more stuff I ended up needing.
Usage
###Import
import "github.com/MinoMino/minterm"
###Terminal Size
columns, rows, err := minterm.TerminalSize()
###Line Reservation
lr, _ := NewLineReserver()
defer lr.Release()
lr.Set("This line will always be the last line.")
fmt.Println("You can now print normally.")
An example of it used in conjunction with minprogress:
License
MIT. See LICENSE
for details.