diff --git a/color.go b/color.go index 2e6811c..78845ba 100644 --- a/color.go +++ b/color.go @@ -10,7 +10,7 @@ var ( Tag0 = frame.ATag0 Tag1 = frame.ATag1 Tag2 = frame.ATag1 - Body2 = frame.A + Body2 = frame.Mono ) func usedarkcolors() { diff --git a/main.go b/main.go index c996c31..0e22b16 100644 --- a/main.go +++ b/main.go @@ -6,6 +6,7 @@ import ( "image" "log" "os" + "os/exec" "runtime" "github.com/as/shiny/screen" @@ -15,6 +16,7 @@ import ( "github.com/as/edit" "github.com/as/ui/col" "github.com/as/ui/tag" + "github.com/as/ui/win" ) var ( @@ -89,6 +91,20 @@ func main() { g.Move(sp) g.Resize(size) + asm := col.New(dev, ColConfig) + asm.Tag.InsertString("Build |", 0) + asm.Move(sp) + asm.Resize(size) + act = New(asm, "", "asm0").(*tag.Tag) + { + cmd := exec.Command("go", "build", "-a", "-gcflags", "-S -m=2") + cmd.Stderr = act.(*tag.Tag).Body.(*win.Win) + cmd.Run() + } + + col.Attach(g, asm, sp) + sp.X += size.X / len(list) + for _, v := range list { col.Attach(g, NewCol(dev, ft, image.ZP, image.ZP, v), sp) sp.X += size.X / len(list)