termi

package module
v0.0.0-...-d87a5f8 Latest Latest
Warning

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

Go to latest
Published: Mar 29, 2026 License: MIT Imports: 6 Imported by: 0

README

termi - An Text Terminal Library

Documentation

Index

Constants

View Source
const RuneBackspace rune = '\b'
View Source
const RuneDelete rune = 0x7f
View Source
const RuneEnter rune = '\r'
View Source
const RuneEscape rune = 0x1b

Variables

This section is empty.

Functions

func Clear

func Clear()

func ClearTail

func ClearTail()

func Cooked

func Cooked()

func DisableInvert

func DisableInvert()

func Draw

func Draw(s string)

func EnableInvert

func EnableInvert()

func HideCursor

func HideCursor()

func HomeCursor

func HomeCursor()

func LoadCursor

func LoadCursor()

func MoveCursor

func MoveCursor(x, y int)

func Print

func Print(s string)

func Printf

func Printf(format string, a ...any) (n int, err error)

func Raw

func Raw()

func SaveCursor

func SaveCursor()

func ScrollRange

func ScrollRange(top, bottom int)

func ShowCursor

func ShowCursor()

func Size

func Size() (int, int)

func StringWidth

func StringWidth(s string, col int) int

Types

type Key

type Key struct {
	Kind KeyKind
	Rune rune
	Raw  string
}

func ReadKey

func ReadKey() Key

type KeyKind

type KeyKind int
const (
	KeyRune KeyKind = iota
	KeyUp
	KeyDown
	KeyRight
	KeyLeft
)

Jump to

Keyboard shortcuts

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