ui

package
v0.9.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 24, 2017 License: BSD-3-Clause Imports: 15 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// Server Global
	Server *client.Server

	// Editor for input
	Editor gocui.Editor
)
View Source
var (
	// LoadingChannel global channel for irc connection state
	LoadingChannel = nbc.New()
)

Functions

func BindHandlers

func BindHandlers()

BindHandlers for irc communications with the cui

func HeaderView

func HeaderView(g *gocui.Gui, x, y, maxX, maxY int) error

HeaderView creates a new view for the header of the ui

func InputView

func InputView(g *gocui.Gui, x, y, maxX, maxY int) error

InputView creates a new view for input for the cui

func Layout

func Layout(g *gocui.Gui) error

Layout builds the default cui layout

func MenuView(g *gocui.Gui, maxX, maxY int) error

MenuView creates a new view for the menu

func UpdateHeaderView

func UpdateHeaderView(g *gocui.Gui)

UpdateHeaderView loop to keep information current

func UpdateMenuView

func UpdateMenuView(gui *gocui.Gui)

UpdateMenuView loop to keep the information updated

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL