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.
###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:
MIT. See LICENSE
for details.