misc

package
v1.3.20 Latest Latest
Warning

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

Go to latest
Published: May 13, 2020 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Blue = makeColorFunc("blue")

Blue outputs ANSI color if stdout is a tty

View Source
var Bold = makeColorFunc("default+b")

Bold outputs ANSI color if stdout is a tty

View Source
var Cyan = makeColorFunc("cyan")

Cyan outputs ANSI color if stdout is a tty

View Source
var Gray = makeColorFunc("black+h")

Gray outputs ANSI color if stdout is a tty

View Source
var Green = makeColorFunc("green")

Green outputs ANSI color if stdout is a tty

View Source
var Magenta = makeColorFunc("magenta")

Magenta outputs ANSI color if stdout is a tty

View Source
var Red = makeColorFunc("red")

Red outputs ANSI color if stdout is a tty

View Source
var Yellow = makeColorFunc("yellow")

Yellow outputs ANSI color if stdout is a tty

Functions

func IsTerminal

func IsTerminal(f *os.File) bool

IsTerminal reports whether the file descriptor is connected to a terminal

func NewColorable

func NewColorable(f *os.File) io.Writer

NewColorable returns an output stream that handles ANSI color sequences on Windows

Types

This section is empty.

Jump to

Keyboard shortcuts

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