func scrollView(v *gocui.View, dy int) error { if v != nil { v.Autoscroll = false ox, oy := v.Origin() if err := v.SetOrigin(ox, oy+dy); err != nil { return err } } return nil }
func FocusStatusView(g *gocui.Gui, v *gocui.View) error { v.Autoscroll = true if _, err := g.SetCurrentView(client.StatusChannel); err != nil { return err } return nil }
func renderHelp(v *gocui.View, refresh bool) { v.Wrap = true v.Autoscroll = false Help.draw(v, refresh) }
func renderStack(v *gocui.View, refresh bool) { v.Wrap = true v.Autoscroll = false Stack.draw(v, refresh) }
func renderVm(v *gocui.View, refresh bool) { v.Wrap = true v.Autoscroll = false VM.draw(v, refresh) }
func renderSource(v *gocui.View, refresh bool) { v.Wrap = true v.Autoscroll = false Source.draw(v, refresh) }
func autoscroll(g *gocui.Gui, v *gocui.View) error { v.Autoscroll = true return nil }