Liking cljdoc? Tell your friends :D

hara.string.base.ansi


*custom*clj


+attributes+clj


+colors+clj


+highlights+clj


+init+clj


+lookup+clj


(blink & args)

blueclj

(blue & args)

boldclj

(bold & args)

bright-blueclj

(bright-blue & args)

bright-cyanclj

(bright-cyan & args)

bright-greenclj

(bright-green & args)

bright-greyclj

(bright-grey & args)

bright-magentaclj

(bright-magenta & args)

bright-redclj

(bright-red & args)

bright-whiteclj

(bright-white & args)

bright-yellowclj

(bright-yellow & args)

concealedclj

(concealed & args)

cyanclj

(cyan & args)

darkclj

(dark & args)

define-ansi-formscljmacro

(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")
=> "hello"

;; Background:
;; [on-blue on-cyan on-green on-grey
;;  on-magenta on-red on-white on-yellow]

(on-white "hello")
=> "hello"

;; Attributes:
;; [blink bold concealed dark reverse-color underline]

(blink "hello")
=> "hello"
raw docstring

encodeclj

(encode & modifiers)

encodes the ansi characters for modifiers (encode :bold) => "[1m"

(encode :red) => "[31m"

encodes the ansi characters for modifiers
(encode :bold)
=> ""

(encode :red)
=> ""
raw docstring

encode-rawclj

(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])
=> ""
raw docstring

greenclj

(green & args)

greyclj

(grey & args)

italicclj

(italic & args)

magentaclj

(magenta & args)

normalclj

(normal & args)

on-blueclj

(on-blue & args)

on-cyanclj

(on-cyan & args)

on-greenclj

(on-green & args)

on-greyclj

(on-grey & args)

on-magentaclj

(on-magenta & args)

on-redclj

(on-red & args)

on-whiteclj

(on-white & args)

on-yellowclj

(on-yellow & args)

redclj

(red & args)

reverse-colorclj

(reverse-color & args)

styleclj

(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])
=> "hello"
raw docstring

underlineclj

(underline & args)

whiteclj

(white & args)

yellowclj

(yellow & args)

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close