csi

package module
v0.0.0-...-47eb4c0 Latest Latest
Warning

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

Go to latest
Published: Sep 9, 2025 License: GPL-2.0 Imports: 1 Imported by: 3

Documentation

Index

Constants

View Source
const (
	SigInt  = "\003"
	SigTstp = "\004"

	Backspace = "\x7f"

	Clear       = "\033[H\033[2J"
	CursorHide  = "\033[?25l"
	CursorShow  = "\033[?25h"
	CursorUp    = "\033[A"
	CursorDown  = "\033[B"
	CursorRight = "\033[C"
	CursorLeft  = "\033[D"
	Home        = "\x1b[H"
	Insert      = "\033[2~"
	Delete      = "\033[3~"
	PgUp        = "\033[5~"
	PgDown      = "\033[6~"
	End         = "\x1b[F"
	FgDefault   = "\033[39m"
	BgDefault   = "\033[49m"
)

Variables

This section is empty.

Functions

func SetCursor

func SetCursor(
	x int,
	y int,
)

func SetCursorAligned

func SetCursorAligned(
	alignment string,
	rowLen int,
	termW int,
	x int,
	y int,
)

Types

type BgColor

type BgColor struct {
	Active  bool
	R, G, B uint
}

func (BgColor) String

func (c BgColor) String() string

type FgColor

type FgColor struct {
	Active  bool
	R, G, B uint
}

func (FgColor) String

func (c FgColor) String() string

Jump to

Keyboard shortcuts

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