Skip to content

clojure/clojurescript ASCII color formatting for terminal output

License

Notifications You must be signed in to change notification settings

imakira/clojure-term-colors

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

clojure-term-colors

This is a fork of original trhura/clojure-term-colors, now made work with Clojurescript running on nodejs. The missing :italic is also added.

A Clojure library for ASCII terminal color output, based on python termcolor package

Screenshot

deps.edn

clojure-term-colors/clojure-term-colors {:git/url "[email protected]:imakira/clojure-term-colors.git"
                                                 :git/sha "b6d90ed1fe95f005740ecdc7dbd3f8d1faa1f889"}

Usage

Example

You can also set the *disable-colors* flag variable (using binding) if you want to disable colors temporarily.

Available Functions

white, cyan, magenta, blue, yellow, green, red, grey, on-white,
on-cyan, on-magenta, on-blue, on-yellow, on-green, on-red, on-grey,
concealed, reverse-color, blink, underline, dark, italic ,bold

Bonus Point

You can even call it from javascript if for some reason you want to do it. Calling From Js

License

Copyright © 2014 Thura Hlaing

Distributed under the Eclipse Public License either version 1.0 or (at your option) any later version.

About

clojure/clojurescript ASCII color formatting for terminal output

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Clojure 100.0%