termbox

package module
v0.0.0-...-8367444 Latest Latest
Warning

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

Go to latest
Published: May 7, 2017 License: BSD-1-Clause Imports: 2 Imported by: 0

README

termbox

This is a keyboard backend for termbox.

Termbox should be initialized by the host application. This package accepts termbox events through the Poll method. Refer to keyboard_test.go for an example.

Dependencies

go get github.com/nsf/termbox-go

Usage

go get github.com/julienroland/keyboard-termbox

License

Unless otherwise stated, all of the work in this project is subject to a 1-clause BSD license. Its contents can be found in the enclosed LICENSE file.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New() keyboard.Keyboard

New constructs a new keyboard instance.

Types

type Keyboard

type Keyboard struct {
	*keyboard.Base
}

Keyboard is a keyboard backend for termbox-go.

func (*Keyboard) Poll

func (kb *Keyboard) Poll(data interface{})

Poll should be called in the termbox event loop. The argument should be a valid termbox event object.

Jump to

Keyboard shortcuts

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