ascii

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Mar 24, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package ascii is used to output asci content to a terminal

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsWriterTerminal

func IsWriterTerminal(w io.Writer) bool

Types

type Lines

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

func NewLines

func NewLines(w io.Writer) *Lines

func (*Lines) Add

func (b *Lines) Add(add []byte)

func (*Lines) Clear

func (b *Lines) Clear()

func (*Lines) Del

func (b *Lines) Del()

func (*Lines) Flush

func (b *Lines) Flush()

func (*Lines) Return

func (b *Lines) Return()

type ProgressBar

type ProgressBar struct {
	Width, Min, Max                   int
	Start, Done, Active, Pending, End byte
	Out                               io.Writer
}

func NewProgressBar

func NewProgressBar(w io.Writer) *ProgressBar

func (*ProgressBar) Generate

func (p *ProgressBar) Generate(pct float64, pre, post string) []byte

Jump to

Keyboard shortcuts

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