printers

package
v0.32.6 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AllowsColorOutput

func AllowsColorOutput(w io.Writer) bool

AllowsColorOutput returns true if the specified writer is a terminal and the process environment indicates color output is supported and desired.

func EscapeTerminal

func EscapeTerminal(in string) string

EscapeTerminal escapes terminal special characters in a human readable (but non-reversible) format.

func IsTerminal

func IsTerminal(i interface{}) bool

IsTerminal returns whether the passed object is a terminal or not.

func WriteEscaped

func WriteEscaped(writer io.Writer, output string) error

WriteEscaped replaces unsafe terminal characters with replacement strings and writes them to the given writer.

Types

This section is empty.

Jump to

Keyboard shortcuts

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