func (l *tuiLogger) Print(message string) {
	l.box.Append(tui.NewHBox(
		tui.NewPadder(1, 0, tui.NewLabel(message)),
		tui.NewSpacer(),
	))
}
Print wrap the given message in tui elements to display in a tui.Box
package logger
import (
	"fmt"
	tui "github.com/marcusolsson/tui-go"
)
type Logger interface {
	Errorf(fmtSpec string, args ...interface{})
	Error(message string)
	Printf(fmtSpec string, args ...interface{})
	Print(message string)
}
type tuiLogger struct {
	box *tui.Box
}
func NewTUILogger(box *tui.Box) Logger {
	return &tuiLogger{
		box: box,
	}
}
func (l *tuiLogger) Errorf(fmtSpec string, args ...interface{}) {
	l.Error(fmt.Sprintf(fmtSpec, args...))
}
func (l *tuiLogger) Error(message string) {
	l.Printf("error: %s", message)
}
func (l *tuiLogger) Printf(fmtSpec string, args ...interface{}) {
	l.Print(fmt.Sprintf(fmtSpec, args...))
}