tcelldriver

package
v0.0.0-...-db92557 Latest Latest
Warning

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

Go to latest
Published: Aug 17, 2024 License: AGPL-3.0 Imports: 4 Imported by: 0

Documentation

Overview

Package tcelldriver implements a termui.TerminalDriver for a tty using tcell as the backing library.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Driver

type Driver struct {
	commondriver.Driver
	// contains filtered or unexported fields
}

Driver is the termui.Driver implementation over tcell.

func New

func New() *Driver

New returns a new Driver ready for use.

func (*Driver) Fini

func (d *Driver) Fini()

Fini must be called to close the driver.

func (*Driver) GetCell

func (d *Driver) GetCell(p util.Point) termui.Glyph

GetCell implements the termui.TerminalDriver interface.

func (*Driver) Init

func (d *Driver) Init() error

Init must be called to initialize the driver.

func (*Driver) Quit

func (d *Driver) Quit()

Quit implements the termui.Driver interface.

func (*Driver) SetCell

func (d *Driver) SetCell(p util.Point, g termui.Glyph)

SetCell implements the termui.TerminalDriver interface.

func (*Driver) Show

func (d *Driver) Show()

Show implements the termui.TerminalDriver interface.

func (*Driver) Size

func (d *Driver) Size() (w, h int)

Size implements the termui.TerminalDriver interface.

func (*Driver) Sync

func (d *Driver) Sync()

Sync implements the termui.TerminalDriver interface.

Jump to

Keyboard shortcuts

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