internal

package
v0.0.0-...-4d48ef5 Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2020 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HideCursor

func HideCursor(w io.Writer)

func ShowCursor

func ShowCursor(w io.Writer)

func TriggerConsoleCSI

func TriggerConsoleCSI(w io.Writer, seq string, a ...interface{})

Types

type CloseChan

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

func NewCloseChan

func NewCloseChan() *CloseChan

func (*CloseChan) Chan

func (r *CloseChan) Chan() chan struct{}

func (*CloseChan) Close

func (r *CloseChan) Close()

func (*CloseChan) IsClosed

func (r *CloseChan) IsClosed() bool

type Renderer

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

Renderer is a timer-based Renderer, updating the view at a given framerate to avoid overloading the terminal emulator.

In cases where very high performance is needed the Renderer can be told to exclude ranges of lines, allowing them to be written to directly.

func NewRenderer

func NewRenderer(out *os.File, mtx *sync.Mutex) *Renderer

newRenderer creates a new Renderer. Normally you'll want to initialize it with os.Stdout as the first argument.

func (*Renderer) Start

func (r *Renderer) Start()

Start starts the Renderer.

func (*Renderer) Stop

func (r *Renderer) Stop()

Stop permanently halts the Renderer.

func (*Renderer) Write

func (r *Renderer) Write(s string)

Jump to

Keyboard shortcuts

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