(blink & args)
(blue & args)
(bold & args)
(bright-blue & args)
(bright-cyan & args)
(bright-green & args)
(bright-grey & args)
(bright-magenta & args)
(bright-red & args)
(bright-white & args)
(bright-yellow & args)
(concealed & args)
(cyan & args)
(dark & args)
(define-ansi-forms)
defines ansi forms given by the lookups
;; Text: ;; [blue cyan green grey magenta red white yellow]
(blue "hello") => "[34mhello[0m"
;; Background: ;; [on-blue on-cyan on-green on-grey ;; on-magenta on-red on-white on-yellow]
(on-white "hello") => "[47mhello[0m"
;; Attributes: ;; [blink bold concealed dark reverse-color underline]
(blink "hello") => "[5mhello[0m"
defines ansi forms given by the lookups ;; Text: ;; [blue cyan green grey magenta red white yellow] (blue "hello") => "[34mhello[0m" ;; Background: ;; [on-blue on-cyan on-green on-grey ;; on-magenta on-red on-white on-yellow] (on-white "hello") => "[47mhello[0m" ;; Attributes: ;; [blink bold concealed dark reverse-color underline] (blink "hello") => "[5mhello[0m"
(encode & modifiers)
encodes the ansi characters for modifiers (encode :bold) => "[1m"
(encode :red) => "[31m"
encodes the ansi characters for modifiers (encode :bold) => "[1m" (encode :red) => "[31m"
(encode-raw codes)
encodes the raw ansi modifier codes to string
(encode-raw [30 20]) => "[30;20m"
encodes the raw ansi modifier codes to string (encode-raw [30 20]) => "[30;20m"
(green & args)
(grey & args)
(italic & args)
(magenta & args)
(normal & args)
(on-blue & args)
(on-cyan & args)
(on-green & args)
(on-grey & args)
(on-magenta & args)
(on-red & args)
(on-white & args)
(on-yellow & args)
(red & args)
(reverse-color & args)
(style text modifiers)
styles the text according to the modifiers
(style "hello" [:bold :red]) => "[1;31mhello[0m"
styles the text according to the modifiers (style "hello" [:bold :red]) => "[1;31mhello[0m"
(underline & args)
(white & args)
(yellow & args)
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close