hugo: github.com/gohugoio/hugo/common/terminal Index | Files

package terminal

import "github.com/gohugoio/hugo/common/terminal"

Package terminal contains helper for the terminal, such as coloring output.

Index

Package Files

colors.go

func Error Uses

func Error(s string) string

Error colorizes the string in a colour that grabs attention.

func IsTerminal Uses

func IsTerminal(f *os.File) bool

IsTerminal return true if the file descriptor is terminal and the TERM environment variable isn't a dumb one.

func Notice Uses

func Notice(s string) string

Notice colorizes the string in a noticeable color.

func Warning Uses

func Warning(s string) string

Warning colorizes the string in a colour that warns.

Package terminal imports 5 packages (graph) and is imported by 13 packages. Updated 2018-11-10. Refresh now. Tools for package owners.