terminal

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Apr 3, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckIsTerminal

func CheckIsTerminal(w io.Writer) bool

Types

type Color

type Color uint8
const (
	Black Color = iota + 30
	Red
	Green
	Yellow
	Blue
	Magenta
	Cyan
	Gray
)
const NoColor Color = 0

func (Color) Append

func (c Color) Append(b []byte, s []byte) []byte

func (Color) Format

func (c Color) Format(s string) string

Format adds the coloring to the given string.

Jump to

Keyboard shortcuts

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