You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

22 lines
410 B

package ui
import "github.com/rivo/tview"
type Bottom struct {
View tview.Primitive
StatusBar *StatusBar
Cmd *CmdBar
}
func NewBottom(tv *TutView) *Bottom {
b := &Bottom{
StatusBar: NewStatusBar(tv),
Cmd: NewCmdBar(tv),
}
view := tview.NewFlex().SetDirection(tview.FlexRow).
AddItem(b.StatusBar.View, 1, 0, false).
AddItem(b.Cmd.View, 1, 0, false)
b.View = view
return b
}