Documentation ¶
Index ¶
- Constants
- func DisableColor()
- func EnableColor()
- func EnableVirtualTerminalProcessing(stream syscall.Handle, enable bool) error
- func ForceColor()
- func InitOsStd()
- func InitTerminal(out io.Writer)
- type Color
- func (c Color) Code() string
- func (c Color) Print(a ...interface{})
- func (c Color) Printf(format string, a ...interface{})
- func (c Color) Println(a ...interface{})
- func (c Color) Sprint(a ...interface{}) string
- func (c Color) Sprintf(format string, a ...interface{}) string
- func (c Color) Sprintln(a ...interface{}) string
- func (c Color) String() string
Constants ¶
View Source
const (
FullColorTpl = "\x1b[%dm%s\x1b[0m"
)
Variables ¶
This section is empty.
Functions ¶
func DisableColor ¶
func DisableColor()
func EnableColor ¶
func EnableColor()
func ForceColor ¶
func ForceColor()
func InitTerminal ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.