buffer

package
v1.99.0 Latest Latest
Warning

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

Go to latest
Published: Aug 19, 2025 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	TermW = 78
	TermH = 24
)
View Source
const (
	Size = 1024
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Buffer

type Buffer struct {
	W int
	H int
}

type Context

type Context struct {
	Heap *heap.Heap

	Context bool
	Numbers bool
	Wrap    bool

	Nr int

	X int
	Y int
	W int
	H int
}

func NewContext added in v1.80.0

func NewContext(h *heap.Heap) *Context

func (*Context) Hash

func (ctx *Context) Hash() string

type HexBuffer

type HexBuffer struct {
	Buffer
	Lines chan HexLine
}

func Hex

func Hex(ctx *Context) (buf HexBuffer)

type HexLine

type HexLine struct {
	Line
	Hex string
}

func (HexLine) String

func (hl HexLine) String() string

type Line

type Line struct {
	Nr  string
	Grp int
	Str string
}

type Part

type Part struct {
	X   int
	Y   int
	Grp int
	Str string
}

type TextBuffer

type TextBuffer struct {
	Buffer
	Y int
	N int

	Lines chan TextLine
	Parts chan TextPart

	FMap *smap.SMap
}

func Text

func Text(ctx *Context) (buf TextBuffer)

type TextLine

type TextLine struct {
	Line
}

func (TextLine) String

func (tl TextLine) String() string

type TextPart

type TextPart struct {
	Part
}

Jump to

Keyboard shortcuts

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