text

package
v0.0.25 Latest Latest
Warning

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

Go to latest
Published: Feb 18, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var TAB_SIZE = 4

Functions

This section is empty.

Types

type TextGrid

type TextGrid struct {
	Lines  []string
	Cursor geom.Point2
}

func NewTextGrid

func NewTextGrid() *TextGrid

func (*TextGrid) AppendRune

func (g *TextGrid) AppendRune(r rune)

func (*TextGrid) AppendString

func (g *TextGrid) AppendString(s string)

func (*TextGrid) BoxedLines

func (g *TextGrid) BoxedLines(width, height, font, marginSpaceWrap int, flipBreak bool) []string

BoxedLines width, height, font - in units marginSpaceWrap - in runes

func (*TextGrid) Print

func (g *TextGrid) Print(a ...any)

func (*TextGrid) Printf

func (g *TextGrid) Printf(format string, a ...any)

func (*TextGrid) Println

func (g *TextGrid) Println(a ...any)

func (*TextGrid) RewindTo

func (g *TextGrid) RewindTo(cur geom.Point2)

Jump to

Keyboard shortcuts

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