boltbrowser/ui/ui.go
2022-04-14 11:32:39 -05:00

32 lines
441 B
Go

package ui
import (
"os"
"git.bullercodeworks.com/brian/wandle"
)
const (
BrowseId = iota << 5
AboutId
)
type Ui struct {
config Config
wandle *wandle.Program
browseScreen *browseScreen
}
func NewUi() *Ui {
u := new(Ui)
u.browseScreen = NewBrowseScreen(u)
u.config = Config{
sep: string(os.PathSeparator),
}
u.wandle = wandle.NewProgram(u.browseScreen)
return u
}
func (u *Ui) Start() error { return u.wandle.Start() }