terminal

package
v0.0.0-...-aeff351 Latest Latest
Warning

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

Go to latest
Published: Mar 24, 2015 License: GPL-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ColorDefault Color = (Color)(termbox.ColorDefault)
	ColorBlack         = (Color)(termbox.ColorBlack)
	ColorRed           = (Color)(termbox.ColorRed)
	ColorGreen         = (Color)(termbox.ColorGreen)
	ColorYellow        = (Color)(termbox.ColorYellow)
	ColorBlue          = (Color)(termbox.ColorBlue)
	ColorMagenta       = (Color)(termbox.ColorMagenta)
	ColorCyan          = (Color)(termbox.ColorCyan)
	ColorWhite         = (Color)(termbox.ColorWhite)
)

Variables

This section is empty.

Functions

func PrintText

func PrintText(value interface{}, p Position)

func SetCell

func SetCell(x, y int, char rune, fg, bg Color)

Types

type Color

type Color termbox.Attribute

type Drawable

type Drawable interface {
	Draw()
	DrawFrame()
	DrawShadow()
}

type Position

type Position struct {
	X int
	Y int
}

type Terminal

type Terminal struct {
	NewDrawableEvent chan Drawable
	DrawEvent        chan Drawable
	CloseEvent       chan bool
}

func New

func New() *Terminal

func (*Terminal) Handle

func (terminal *Terminal) Handle(wg *sync.WaitGroup)

func (*Terminal) HandleKeys

func (terminal *Terminal) HandleKeys(wg *sync.WaitGroup, gameCloseEvent chan bool, brickOperationEvent chan string)

Jump to

Keyboard shortcuts

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