display

package
v1.5.0 Latest Latest
Warning

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

Go to latest
Published: Dec 6, 2021 License: MIT Imports: 5 Imported by: 0

README

go-ansi/display

This package aims to allow updating Screens of text without flickering.

It is currently not handling UTF-8 very well.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Display

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

func (*Display) InsertLine

func (d *Display) InsertLine(position int, content string)

func (*Display) Update

func (d *Display) Update(str ...string)

func (*Display) UpdateLine

func (d *Display) UpdateLine(index int, content string)

type LineBuffer

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

LineBuffer is the type containing written lines.

func (*LineBuffer) Add

func (lb *LineBuffer) Add(text string)

func (*LineBuffer) Set

func (lb *LineBuffer) Set(line int, text string)

Jump to

Keyboard shortcuts

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