terminal

package
v0.0.0-...-fc6873a Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2017 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Terminal

type Terminal struct {
	Width, Height    int
	CursorX, CursorY int
	OffsetX, OffsetY int
	Tree             *jsontree.JsonTree
}

func New

func New(tree *jsontree.JsonTree) (*Terminal, error)

func (*Terminal) Close

func (t *Terminal) Close()

func (*Terminal) EnsureCursorWithinWindow

func (t *Terminal) EnsureCursorWithinWindow()

func (*Terminal) MoveCursor

func (t *Terminal) MoveCursor(x, y int)

func (*Terminal) Poll

func (t *Terminal) Poll() termbox.Event

func (*Terminal) Render

func (t *Terminal) Render()

func (*Terminal) Resize

func (t *Terminal) Resize(width, height int)

Jump to

Keyboard shortcuts

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