Lumiere is a Clojure library that allows you to output stylized text to the terminal using ANSI escape sequences.
(defproject your-project "1.0" :dependencies [[lumiere "1.0.0-SNAPSHOT"]])
Lumiere has a very simple API. To use it, simple
require it in your namespace:
(ns your-namespace (:refer [lumiere :refer :all]))
and start decorating your text:
(print (str (red "Are you sure you want to quit? [Y/n]"))) (print (str (green "Continue"))) (print (str (bold (green "Have a nice day!")))) (-> "Stop right there" red bold underline str print)
Available colours (functions) are:
Available styles (functions) are:
italic(not supported on many terminals)
Copyright (C) 2012 Kevin J. Qiu
Distributed under the Eclipse Public License, the same as Clojure.