about summary refs log blame commit diff stats
path: root/subx/build_and_test_until
blob: 710e1d552523931e006a12f0afadc14c5c58ff72 (plain) (tree)
x">callback func(d ui.Drawable)) { // no-op } func (f fill) Invalidate() { // no-op } func main() { var logOut io.Writer var logger *log.Logger if !isatty.IsTerminal(os.Stdout.Fd()) { logOut = os.Stdout } else { logOut = ioutil.Discard } logger = log.New(logOut, "", log.LstdFlags) logger.Println("Starting up aerc") conf, err := config.LoadConfig(nil) if err != nil { panic(err) } grid := ui.NewGrid() grid.Rows = []ui.DimSpec{ ui.DimSpec{ui.SIZE_EXACT, 4}, ui.DimSpec{ui.SIZE_WEIGHT, 1}, ui.DimSpec{ui.SIZE_WEIGHT, 1}, ui.DimSpec{ui.SIZE_EXACT, 1}, } grid.Columns = []ui.DimSpec{ ui.DimSpec{ui.SIZE_WEIGHT, 3}, ui.DimSpec{ui.SIZE_WEIGHT, 2}, } grid.AddChild(fill('★')).At(0, 0).Span(1, 2) grid.AddChild(fill('☆')).At(1, 0).Span(1, 2) grid.AddChild(fill('.')).At(2, 0).Span(1, 2) grid.AddChild(fill('•')).At(2, 1).Span(1, 1) grid.AddChild(fill('+')).At(3, 0).Span(1, 2) _ui, err := ui.Initialize(conf, grid) if err != nil { panic(err) } defer _ui.Close() for !_ui.Exit { if !_ui.Tick() { time.Sleep(100 * time.Millisecond) } } }