public
Description: Colourful strings in Clojure
Homepage:
Clone URL: git://github.com/alexyoung/cojor.git
alexyoung (author)
Mon Nov 02 07:25:11 -0800 2009
commit  de5cc3f4a81499c779a335aad6e9e759edaa283f
tree    688099fa34c197e8e2f4f20c3198bcbf9b109155
cojor /
name age message
file .gitignore Loading commit data...
file README.textile
file cojor.clj
file test.clj
README.textile

Colourful strings in Clojure.

Colours

  • red
  • green
  • yellow
  • blue
  • purple
  • lightblue
  • white

Examples

Functions named after a colour will return a string wrapped with colour escape codes. Functions postfixed with ln will print a line in that colour.

(use 'cojor)
(println (red "hello"))
(println (green "hello"))
(greenln "hello")
(blueln "hello")

All colour named methods call this function:

(str-col :red "hello")