ter

package
v0.0.0-...-9bfccbc Latest Latest
Warning

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

Go to latest
Published: Sep 2, 2021 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type TerminalOut

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

func InitTerminal

func InitTerminal(o io.Writer, lines []string, autoUpdate bool) *TerminalOut

Create a terminalOut object that can be used to display and change lines

func (*TerminalOut) Close

func (t *TerminalOut) Close()

Stops the auto update and makes sure that all updates are displayed

func (*TerminalOut) ManualRefresh

func (t *TerminalOut) ManualRefresh()

Updates the displayed lines. Use this only for the first time or when autoupdate is false

func (*TerminalOut) UpdateLine

func (t *TerminalOut) UpdateLine(position int, newStr string)

Update the text on line "position" (starts at 0). Can used concurrently without problems

Jump to

Keyboard shortcuts

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