Back to godoc.org

Package terminal

v0.74.3
Latest Go to latest

The latest major version is .

Published: Jul 23, 2020 | License: Apache-2.0 | Module: github.com/gohugoio/hugo

Overview

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

Index

func Error

func Error(s string) string

Error colorizes the string in a colour that grabs attention.

func IsTerminal

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

func Notice(s string) string

Notice colorizes the string in a noticeable color.

func Warning

func Warning(s string) string

Warning colorizes the string in a colour that warns.

Documentation was rendered with GOOS=linux and GOARCH=amd64.

Jump to identifier

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to identifier