multiline

package
v2.20.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const ESC = 27

ESC is the ASCII code for escape character

Variables

This section is empty.

Functions

func Spinner

func Spinner() string

Types

type Line

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

func (*Line) Remove

func (l *Line) Remove(pushToTop bool)

type LineFunc

type LineFunc func() string

type MultiLinePrinter

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

func (*MultiLinePrinter) Flush

func (ml *MultiLinePrinter) Flush()

func (*MultiLinePrinter) NewLine

func (ml *MultiLinePrinter) NewLine(s LineFunc) *Line

func (*MultiLinePrinter) NewTopLine

func (ml *MultiLinePrinter) NewTopLine(s LineFunc)

func (*MultiLinePrinter) Start

func (ml *MultiLinePrinter) Start(w io.Writer)

func (*MultiLinePrinter) Stop

func (ml *MultiLinePrinter) Stop()

Jump to

Keyboard shortcuts

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