console

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Sep 5, 2021 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BeforeExitConsole

func BeforeExitConsole()

BeforeExitConsole is a hook to call before console / program terminates

func CBgBlue

func CBgBlue(arg string) string

CBgBlue conditionally colored output with blue background

func CBlue

func CBlue(arg string) string

CBlue conditionally colored output in blue

func CBrown

func CBrown(arg string) string

CBrown conditionally colored output in brown

func CGray

func CGray(arg string) string

CGray conditionally colored output in grey

func CGreen

func CGreen(arg string) string

CGreen conditionally colored output in green

func CRed

func CRed(arg string) string

CRed conditionally colored output in red

func ClearConsole

func ClearConsole()

ClearConsole clears previous output based on the given os

func InitConsole

func InitConsole(coloredParam bool)

InitConsole inits the console package and persists the colored flag

func SupportsColors

func SupportsColors()

SupportsColors was supposed for terminal color detection - not used at the moment

Types

This section is empty.

Jump to

Keyboard shortcuts

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