term

package
v0.0.0-...-d5439da Latest Latest
Warning

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

Go to latest
Published: Oct 14, 2024 License: ISC Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CSI = "\u001b["
)

Variables

View Source
var StdinFd = int(os.Stdin.Fd())

Functions

func CursorDown

func CursorDown(n int)

func CursorLeft

func CursorLeft(n int)

func CursorRight

func CursorRight(n int)

func CursorToHome

func CursorToHome()

func CursorUp

func CursorUp(n int)

func DisableAltBuffer

func DisableAltBuffer()

func EnableAltBuffer

func EnableAltBuffer()

func HideCursor

func HideCursor()

func IsTerminal

func IsTerminal() bool

func MakeRaw

func MakeRaw() error

func SetState

func SetState(state *State) error

func ShowCursor

func ShowCursor()

func Size

func Size() (width, height int, err error)

Types

type State

type State = term.State

func GetState

func GetState() (*State, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳