imgcon

package
v0.0.0-...-deee935 Latest Latest
Warning

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

Go to latest
Published: Jan 25, 2024 License: AGPL-3.0 Imports: 6 Imported by: 0

Documentation

Overview

Package imgcon implements a console renderer that renders its buffer to an image.Image.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Console

type Console struct {
	FBDirty bool // If true, fb needs to be re-drawn
	// contains filtered or unexported fields
}

Console implements a console renderer that renders its buffer to an image.Image.

func New

func New(b util.Rect) *Console

New returns a new Console ready for use.

func (*Console) Draw

func (c *Console) Draw() image.Image

Draw returns a pointer to the newly updated screen image.

func (*Console) GetCell

func (c *Console) GetCell(p util.Point) termui.Glyph

GetCell implements the termui.TerminalDriver interface.

func (*Console) Resize

func (c *Console) Resize(b util.Rect)

Resize resizes the console buffers to the given size.

func (*Console) SetCell

func (c *Console) SetCell(p util.Point, g termui.Glyph)

SetCell implements the termui.TerminalDriver interface.

func (*Console) Show

func (d *Console) Show()

Show implements the termui.TerminalDriver interface.

func (*Console) Size

func (c *Console) Size() (int, int)

Size implements the termui.TerminalDriver interface.

func (*Console) Sync

func (c *Console) 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