Skip to content

Instantly share code, notes, and snippets.

@oubiwann
Last active June 30, 2017 14:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save oubiwann/63aa9c7f9c4d2fc35a4b77b9317e14e7 to your computer and use it in GitHub Desktop.
Save oubiwann/63aa9c7f9c4d2fc35a4b77b9317e14e7 to your computer and use it in GitHub Desktop.
Clojure ANSI Example
(ns ansi-example
(:require [clansi :as ansi]))
(defn -main
"COLORS!!!
From a terminal in the direectory where you cloned this gist,
just run:
```
$ lein run
```"
[]
(println \newline
\tab
(ansi/style "It " :blue)
(ansi/style "isn't " :white)
(ansi/style "easy " :red)
(ansi/style "being " :green)
(ansi/style "green." :green :bright)
\newline))
(defproject ansi-example "0.1.0-SNAPSHOT"
:description "Clojure ANSI Example"
:url "https://gist.github.com/oubiwann/63aa9c7f9c4d2fc35a4b77b9317e14e7"
:license {:name "Eclipse Public License"
:url "http://www.eclipse.org/legal/epl-v10.html"}
:dependencies [[org.clojure/clojure "1.8.0"]
[clansi "1.0.0"]]
:source-paths ["."]
:main ansi-example)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment