package utils import ( "time" "github.com/gdamore/tcell/v2" "github.com/rivo/tview" ) const ( RefreshInterval = 250 * time.Millisecond ) func EmptyBoxSpace(bgColor tcell.Color) *tview.Box { box := tview.NewBox() box.SetBackgroundColor(bgColor) box.SetBorder(false) return box } func CheckFocus(prims ...tview.Primitive) bool { for _, prim := range prims { if prim.HasFocus() { return true } } return false }