term

package
v1.10.0 Latest Latest
Warning

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

Go to latest
Published: Mar 31, 2023 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Rendered for windows/amd64

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetColumns

func GetColumns() int

GetColumns gets the number of character columns.

func NewFrameBuffer

func NewFrameBuffer() (io.Writer, error)

NewFrameBuffer builds a fresh frame buffer.

Types

type FrameBuffer

type FrameBuffer struct {
	// contains filtered or unexported fields
}

FrameBuffer is a special type of the I/O writer that outputs the character stream to the active console screen buffer.

func (*FrameBuffer) Close

func (fb *FrameBuffer) Close() error

Close closes this frame buffer.

func (FrameBuffer) Write

func (fb FrameBuffer) Write(p []byte) (int, error)

Write draws the character buffer to the screen frame buffer.

Jump to

Keyboard shortcuts

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