diff options
Diffstat (limited to 'cmds/buttonplugin/main.go')
| -rw-r--r-- | cmds/buttonplugin/main.go | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/cmds/buttonplugin/main.go b/cmds/buttonplugin/main.go index 0c72c3f..8a76a8b 100644 --- a/cmds/buttonplugin/main.go +++ b/cmds/buttonplugin/main.go @@ -10,13 +10,18 @@ import ( ) var title string = "Demo Plugin Window" +var outfile string = "/tmp/guilogfile" + +// this is broken. delete this func main() { + // this set the xterm and mate-terminal window title. maybe works generally? fmt.Println("\033]0;" + title + "\007") // time.Sleep(5 * time.Second) // var w *gui.Node + // this doesn't seem to work - captureSTDOUT() + // captureSTDOUT() // gui.LoadToolkit("default") // panic("WTF gocui not happening") @@ -57,6 +62,10 @@ func buttonWindow() { w = gui.NewWindow() g = w.NewGroup("buttonGroup") + g.NewButton("this app is old", func () { + }) + g.NewLabel("STDOUT is set to: " + outfile) + g.NewButton("hello", func () { log.Println("world") }) |
