Coloring implementation that applies ANSI color codes to text designed to be output to a terminal.
Use with a :color-markup
of :ansi
.
Coloring implementation that applies ANSI color codes to text designed to be output to a terminal. Use with a `:color-markup` of `:ansi`.
(esc codes)
Returns an ANSI escope string which will apply the given collection of SGR codes.
Returns an ANSI escope string which will apply the given collection of SGR codes.
(escape & codes)
Returns an ANSI escope string which will enact the given SGR codes.
Returns an ANSI escope string which will enact the given SGR codes.
(sgr string & codes)
Wraps the given string with SGR escapes to apply the given codes, then reset the graphics.
Wraps the given string with SGR escapes to apply the given codes, then reset the graphics.
Map of symbols to numeric SGR (select graphic rendition) codes.
Map of symbols to numeric SGR (select graphic rendition) codes.
(strip string)
Removes color codes from the given string.
Removes color codes from the given string.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close