Console

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Jun 27, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Invisible = false
	Visible   = true
)

Variables

View Source
var Cursor cursorPal = *initCursorPal()

Functions

func ClearFromCursorToEndOfLine

func ClearFromCursorToEndOfLine()

func ClearFromCursorToEndOfScreen

func ClearFromCursorToEndOfScreen()

func ClearFromCursorToStartOfLine

func ClearFromCursorToStartOfLine()

func ClearFromCursorToStartOfScreen

func ClearFromCursorToStartOfScreen()

func ClearLine

func ClearLine()

func ClearScreen

func ClearScreen()

func DisableAlternateBuffer

func DisableAlternateBuffer()

func EnableAlternateBuffer

func EnableAlternateBuffer()

func Write

func Write(value string) (int, error)

func Writef

func Writef(format string, a ...any) (int, error)

func Writeln

func Writeln(a ...any) (int, error)

Types

type AreaInfo

type AreaInfo struct {
	Width  uint
	Height uint
}

func GetTermSize

func GetTermSize() *AreaInfo

type Visibility

type Visibility = bool

Jump to

Keyboard shortcuts

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