Last active
June 30, 2017 14:20
-
-
Save oubiwann/63aa9c7f9c4d2fc35a4b77b9317e14e7 to your computer and use it in GitHub Desktop.
Clojure ANSI Example
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(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)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(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