termbox

package
v0.0.0-...-f32bd76 Latest Latest
Warning

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

Go to latest
Published: Oct 11, 2012 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/jteeuwen/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

Overview

This is a keyboard backend for termbox.

Termbox should be initialized by the host application. This package accepts termbox events through the `Poll` method.

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 libGLFW.

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