diff options
Diffstat (limited to 'eventBindings.go')
| -rw-r--r-- | eventBindings.go | 33 |
1 files changed, 2 insertions, 31 deletions
diff --git a/eventBindings.go b/eventBindings.go index 121f95f..b309142 100644 --- a/eventBindings.go +++ b/eventBindings.go @@ -5,7 +5,6 @@ package main import ( "fmt" - "strings" "syscall" "github.com/awesome-gocui/gocui" @@ -64,34 +63,6 @@ func theSuperMouse(g *gocui.Gui, v *gocui.View) error { return nil } -func (tk *guiWidget) makeTK(ddItems []string) { - items := strings.Join(ddItems, "\n") - var err error - tk.labelN = items - tk.SetText(items) - tk.gocuiSize.w0 = 100 - tk.gocuiSize.w1 = 120 - tk.gocuiSize.h0 = 15 - tk.gocuiSize.h1 = 18 - tk.v, err = me.baseGui.SetView(tk.cuiName, - tk.gocuiSize.w0, - tk.gocuiSize.h0, - tk.gocuiSize.w1, - tk.gocuiSize.h1, 0) - if err != nil { - log.Info("makeTK() err", err) - return - } - if tk.v == nil { - return - } - tk.v.Wrap = true - tk.v.Frame = true - tk.v.Clear() - fmt.Fprint(tk.v, items) - tk.Show() -} - /* func addDropdown() *tree.Node { return addDropdownNew(-222) @@ -172,12 +143,12 @@ func theStdout(g *gocui.Gui, v *gocui.View) error { if me.stdout.outputOnTop { if me.stdout.outputOffscreen { me.stdout.outputOffscreen = false - log.Info(fmt.Sprintf("set stdout off screen pager=%d len(%d)", me.stdout.pager, len(me.stdout.outputS))) + log.Info(fmt.Sprintf("stdout moved off screen pager=%d len(%d)", me.stdout.pager, len(me.stdout.outputS))) relocateStdoutOffscreen() return nil } else { me.stdout.outputOffscreen = true - log.Info("set stdout on screen here") + log.Info(fmt.Sprintf("stdout moved on screen pager=%d len(%d)", me.stdout.pager, len(me.stdout.outputS))) } // move the stdout window back onscreen me.stdout.tk.relocateStdout(me.stdout.lastW, me.stdout.lastH) |
