func NewConsole(addOns []addons.UI) *Console {
	uiConfig := config.GetConfig().UI
	rand.Seed(time.Now().Unix())
	return &Console{
		colorSeed:       rand.Intn(termui.NumberofColors - 2),
		addOns:          addOns,
		maxRowN:         uiConfig.MaxRow,
		sparklineHeight: uiConfig.SparklineHeight,
	}
}
NewConsole init console
package ui
import (
	"context"
	"fmt"
	"math/rand"
	"time"
	"github.com/gizak/termui"
	"github.com/yittg/ving/addons"
	"github.com/yittg/ving/config"
	"github.com/yittg/ving/statistic"
	"github.com/yittg/ving/types"
	"github.com/yittg/ving/utils/slices"
)
type Console struct {
	colorSeed int
	activeAddOn addons.UI
	addOns      []addons.UI
	chartColumnN int
	chartRowN    int
	active       int
	dead         int
	collapseDead bool
	maxRowN         int
	sparklineHeight int
}