util

package
v0.1.4 Latest Latest
Warning

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

Go to latest
Published: Sep 12, 2022 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EscOffset

func EscOffset(s string) (string, int)

EscOffset returns the offset of an escape string

Types

type Coord

type Coord struct {
	X, Y int
}

Coord is a struct which represents

type RenderObj

type RenderObj struct {
	Dims     Coord
	Offset   Coord
	IsOffset bool
	Label    string
}

RenderObj is the base object for objects renderable on the screen

type Renderable

type Renderable interface {
	Draw()
	Hide()
	Interrupt() error
}

Renderable is the interface all objects drawable on the screen must use

Jump to

Keyboard shortcuts

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