hugo: Index | Files

package terminal

import ""

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


Package Files


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 14 packages. Updated 2018-11-10. Refresh now. Tools for package owners.