still moving everything to initPlugin()
This commit is contained in:
parent
c5472a42a2
commit
c215e3c2c4
|
@ -6,7 +6,6 @@ package main
|
||||||
import (
|
import (
|
||||||
"fmt"
|
"fmt"
|
||||||
"syscall"
|
"syscall"
|
||||||
"time"
|
|
||||||
|
|
||||||
"github.com/awesome-gocui/gocui"
|
"github.com/awesome-gocui/gocui"
|
||||||
"go.wit.com/log"
|
"go.wit.com/log"
|
||||||
|
@ -61,17 +60,6 @@ func registerHandlers(g *gocui.Gui) {
|
||||||
g.SetKeybinding("", 'f', gocui.ModNone, theFind) // 'f' shows what is under your mouse
|
g.SetKeybinding("", 'f', gocui.ModNone, theFind) // 'f' shows what is under your mouse
|
||||||
g.SetKeybinding("", 'd', gocui.ModNone, theLetterD) // 'd' toggles on and off debugging buttons
|
g.SetKeybinding("", 'd', gocui.ModNone, theLetterD) // 'd' toggles on and off debugging buttons
|
||||||
g.SetKeybinding("", 'q', gocui.ModNone, quit) // 'q' only exits gocui. plugin stays alive (?)
|
g.SetKeybinding("", 'q', gocui.ModNone, quit) // 'q' only exits gocui. plugin stays alive (?)
|
||||||
|
|
||||||
time.Sleep(100 * time.Millisecond)
|
|
||||||
|
|
||||||
fmt.Fprintln(outf, "hello world", time.Since(me.starttime))
|
|
||||||
|
|
||||||
// coreStdout()
|
|
||||||
// createStdout(g)
|
|
||||||
// tell 'tree' that we are okay to start talking to
|
|
||||||
me.myTree.InitOK()
|
|
||||||
me.ok = true // this tells init() it's okay to work with gocui
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// flips on 'super mouse' mode // this was awesome for debugging gocui. never remove this code.
|
// flips on 'super mouse' mode // this was awesome for debugging gocui. never remove this code.
|
||||||
|
|
10
init.go
10
init.go
|
@ -126,6 +126,16 @@ func initPlugin() {
|
||||||
// registered event handlers still have the events sent to gocuiEvent() above
|
// registered event handlers still have the events sent to gocuiEvent() above
|
||||||
registerHandlers(g)
|
registerHandlers(g)
|
||||||
|
|
||||||
|
time.Sleep(100 * time.Millisecond)
|
||||||
|
|
||||||
|
fmt.Fprintln(outf, "hello world", time.Since(me.starttime))
|
||||||
|
|
||||||
|
// coreStdout()
|
||||||
|
// createStdout(g)
|
||||||
|
// tell 'tree' that we are okay to start talking to
|
||||||
|
me.myTree.InitOK()
|
||||||
|
me.ok = true // this tells init() it's okay to work with gocui
|
||||||
|
|
||||||
go gocuiMain()
|
go gocuiMain()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue