Inspired from [[https://raw.githubusercontent.com/ibdknox/colorize/master/src/colorize/core.clj]] A set of functions to wrap strings in ansi-colors.
Inspired from [[https://raw.githubusercontent.com/ibdknox/colorize/master/src/colorize/core.clj]] A set of functions to wrap strings in ansi-colors.
(ansi code)
Get the ansi code for a specific color
Get the ansi code for a specific color
(black & s__1836__auto__)
(black-bg & s__1836__auto__)
(blue & s__1836__auto__)
(blue-bg & s__1836__auto__)
(bold & s__1836__auto__)
(color code & s)
Wrap the given strings in the provided color. Color should be a keyword and can be any of the following:
[:reset :default :white :black :red :green :blue :yellow :magenta :cyan :black-bg :red-bg :green-bg :yellow-bg :blue-bg :magenta-bg :cyan-bg :white-bg :underline :italic :bold :strikethrough :inverse].
Each of these also has a function created for it: (cyan "woohoo")
Wrap the given strings in the provided color. Color should be a keyword and can be any of the following: [:reset :default :white :black :red :green :blue :yellow :magenta :cyan :black-bg :red-bg :green-bg :yellow-bg :blue-bg :magenta-bg :cyan-bg :white-bg :underline :italic :bold :strikethrough :inverse]. Each of these also has a function created for it: (cyan "woohoo")
(colorize codes & forms)
Wrap the given form in the provided color
Wrap the given form in the provided color
(create-colors)
(cyan & s__1836__auto__)
(cyan-bg & s__1836__auto__)
(default & s__1836__auto__)
(green & s__1836__auto__)
(green-bg & s__1836__auto__)
(inverse & s__1836__auto__)
(italic & s__1836__auto__)
(magenta & s__1836__auto__)
(magenta-bg & s__1836__auto__)
(red & s__1836__auto__)
(red-bg & s__1836__auto__)
(reset & s__1836__auto__)
(show-all)
(strikethrough & s__1836__auto__)
(underline & s__1836__auto__)
(white & s__1836__auto__)
(white-bg & s__1836__auto__)
(yellow & s__1836__auto__)
(yellow-bg & s__1836__auto__)
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close