Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/mattn/go-colorable
/ functions
Functions
36 in github.com/mattn/go-colorable
⨍
Functions
36
◇
Types & classes
13
↓ 5 callers
Function
NewNonColorable
NewNonColorable returns new instance of Writer which removes escape sequence from Writer.
noncolorable.go:14
↓ 4 callers
Method
Write
Write writes data on console
colorable_windows.go:437
↓ 2 callers
Function
NewColorable
NewColorable returns new instance of Writer which handles escape sequence from File.
colorable_windows.go:102
↓ 2 callers
Function
NewColorable
NewColorable returns new instance of Writer which handles escape sequence.
colorable_others.go:14
↓ 2 callers
Function
NewColorableStdout
NewColorableStdout returns new instance of Writer which handles escape sequence for stdout.
colorable_others.go:23
↓ 2 callers
Function
toHSV
(rgb int)
colorable_windows.go:945
↓ 1 callers
Function
NewColorableStderr
NewColorableStderr returns new instance of Writer which handles escape sequence for stderr.
colorable_others.go:28
↓ 1 callers
Function
atoiWithDefault
returns Atoi(s) unless s == "" in which case it returns def
colorable_windows.go:429
↓ 1 callers
Method
backgroundAttr
()
colorable_windows.go:893
↓ 1 callers
Function
checkEncoding
checkEncoding checks that colorable is output encoding agnostic as long as the encoding is a superset of ASCII. This implies that one byte not part of
colorable_test.go:13
↓ 1 callers
Method
dist
(b hsv)
colorable_windows.go:932
↓ 1 callers
Function
doTitleSequence
`\033]0;TITLESTR\007`
colorable_windows.go:390
↓ 1 callers
Method
find
(rgb int)
colorable_windows.go:982
↓ 1 callers
Method
foregroundAttr
()
colorable_windows.go:877
↓ 1 callers
Function
minmax3f
(a, b, c float32)
colorable_windows.go:995
↓ 1 callers
Function
n256setup
()
colorable_windows.go:1018
↓ 1 callers
Function
toHSVTable
(rgbTable []consoleColor)
colorable_windows.go:974
Function
EnableColorsStdout
EnableColorsStdout enable colors if possible.
colorable_windows.go:1030
Function
EnableColorsStdout
EnableColorsStdout enable colors if possible.
colorable_appengine.go:33
Function
EnableColorsStdout
EnableColorsStdout enable colors if possible.
colorable_others.go:33
Function
NewColorable
NewColorable returns new instance of Writer which handles escape sequence.
colorable_appengine.go:14
Function
NewColorableStderr
NewColorableStderr returns new instance of Writer which handles escape sequence for stderr.
colorable_windows.go:126
Function
NewColorableStderr
NewColorableStderr returns new instance of Writer which handles escape sequence for stderr.
colorable_appengine.go:28
Function
NewColorableStdout
NewColorableStdout returns new instance of Writer which handles escape sequence for stdout.
colorable_windows.go:121
Function
NewColorableStdout
NewColorableStdout returns new instance of Writer which handles escape sequence for stdout.
colorable_appengine.go:23
Function
TestColorable
(t *testing.T)
colorable_test.go:82
Function
TestEncoding
(t *testing.T)
colorable_test.go:26
Function
TestNonColorable
(t *testing.T)
colorable_test.go:33
Function
TestNonColorableBadESC
(t *testing.T)
colorable_test.go:74
Function
TestNonColorableESC
(t *testing.T)
colorable_test.go:66
Function
TestNonColorableNil
(t *testing.T)
colorable_test.go:50
Method
Write
Write writes data on console
noncolorable.go:19
Function
main
()
cmd/colorable/colorable.go:10
Function
main
()
_example/logrus/main.go:8
Function
main
()
_example/title/main.go:10
Function
main
()
_example/escape-seq/main.go:10