diff --git a/cmd/clientFunc.go b/cmd/clientFunc.go index 2fc6bd0..d359f60 100644 --- a/cmd/clientFunc.go +++ b/cmd/clientFunc.go @@ -159,9 +159,9 @@ func initKeybindings(g *gocui.Gui) error { log.Panicln(err) } - if err := g.SetKeybinding("button", gocui.MouseLeft, gocui.ModNone, sendToServer); err != nil { - log.Panicln(err) - } + // if err := g.SetKeybinding("button", gocui.MouseLeft, gocui.ModNone, sendToServer); err != nil { + // log.Panicln(err) + // } if err := g.SetKeybinding("textarea", gocui.KeyEnter, gocui.ModNone, sendToServer); err != nil { log.Panicln(err) @@ -197,17 +197,17 @@ func layout(g *gocui.Gui) error { chatbox.Title = "Chat Box" } - if button, err := g.SetView("button", maxX/2+32, maxY-4, maxX-28, maxY-2); err != nil { - if err != gocui.ErrUnknownView { - return err - } + // if button, err := g.SetView("button", maxX/2+32, maxY-4, maxX-28, maxY-2); err != nil { + // if err != gocui.ErrUnknownView { + // return err + // } + // + // button.Wrap = true + // button.Frame = true + // fmt.Fprintln(button, "Send it") + // } - button.Wrap = true - button.Frame = true - fmt.Fprintln(button, "Send it") - } - - if textarea, err := g.SetView("textarea", 2, maxY-4, maxX-40, maxY-2); err != nil { + if textarea, err := g.SetView("textarea", 2, maxY-4, maxX-28, maxY-2); err != nil { if err != gocui.ErrUnknownView { return err }