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
Click to show internal directories.
Click to hide internal directories.