driver

package
v0.0.0-...-3d35843 Latest Latest
Warning

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

Go to latest
Published: May 17, 2019 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Driver

type Driver interface {
	Init() error
	Done()

	// only the following two methods update the screen contents
	// (by moving the back buffer to the terminal screen buffer
	Refresh()
	Clear(fg, bg style.CellStyle)

	Size() (width, height int)

	Fill(fg, bg style.CellStyle, ch rune)
	FillRect(rect geometry.Rectangle, fg, bg style.CellStyle, ch rune)

	SetCell(x, y int, ch rune, fg, bg style.CellStyle)
}

Driver specifies the private interface required of system-specific terminal libraries. This layer of indirection allows the Terminal interface to evolve independently from the relatively small, stable Driver interface.

func NewTermbox

func NewTermbox(logger logging.LogPrinter) Driver

Jump to

Keyboard shortcuts

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