doc

package
v1.18.1 Latest Latest
Warning

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

Go to latest
Published: Mar 26, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const DefaultPadding = 1

Variables

This section is empty.

Functions

This section is empty.

Types

type Writer

type Writer struct {
	Flags   *option.Flags
	Palette *color.Palette

	MaxWidth    int
	Padding     int
	Indent      int
	IndentWidth int

	Title1       string
	Title1Effect string
	Title2       string
	Title2Effect string

	Column int
	// contains filtered or unexported fields
}

func NewWriter

func NewWriter(screenWidth int, flags *option.Flags, palette *color.Palette) *Writer

func (*Writer) BeginBlock

func (w *Writer) BeginBlock()

func (*Writer) BeginSubBlock

func (w *Writer) BeginSubBlock()

func (*Writer) Clear

func (w *Writer) Clear()

func (*Writer) ClearBlock

func (w *Writer) ClearBlock()

func (*Writer) EndBlock

func (w *Writer) EndBlock()

func (*Writer) EndSubBlock

func (w *Writer) EndSubBlock()

func (*Writer) FitInLine

func (w *Writer) FitInLine(s string) bool

func (*Writer) LeadingSpacesWidth

func (w *Writer) LeadingSpacesWidth() int

func (*Writer) NewLine

func (w *Writer) NewLine()

func (*Writer) String

func (w *Writer) String() string

func (*Writer) Write

func (w *Writer) Write(s string)

func (*Writer) WriteColor

func (w *Writer) WriteColor(s string, effect string)

func (*Writer) WriteColorWithoutLineBreak

func (w *Writer) WriteColorWithoutLineBreak(s string, effect string)

func (*Writer) WriteSpaces

func (w *Writer) WriteSpaces(l int)

func (*Writer) WriteWithAutoLineBreak

func (w *Writer) WriteWithAutoLineBreak(s string)

func (*Writer) WriteWithAutoLineBreakWithContinueMark

func (w *Writer) WriteWithAutoLineBreakWithContinueMark(s string)

func (*Writer) WriteWithoutLineBreak

func (w *Writer) WriteWithoutLineBreak(s string)

Jump to

Keyboard shortcuts

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