term

package
v0.0.0-...-deba36d Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const ESC = 27

Variables

View Source
var BlackBold = ansi.ColorCode("black+b")
View Source
var Blue = ansi.ColorCode("blue+h")
View Source
var Bold = "\u001b[1m"
View Source
var Green = ansi.ColorCode("green+h")
View Source
var IsTerminal = terminal.IsTerminal(int(os.Stdout.Fd()))
View Source
var Red = ansi.ColorCode("red+h")
View Source
var RedBold = ansi.ColorCode("red+b")
View Source
var Reset = "\033[0m"
View Source
var White = ansi.ColorCode("white+h")
View Source
var Yellow = ansi.ColorCode("yellow+h")

Functions

func EraseCurrentLine

func EraseCurrentLine()

func FlushBuffer

func FlushBuffer(printBuffer bool)

func GetDimensions

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

func MoveUp

func MoveUp(nLines int)

func Print

func Print(str string)

func StartBuffer

func StartBuffer()

Types

This section is empty.

Jump to

Keyboard shortcuts

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