Skip to content

taksatou/cl-rainbow

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Cl-Rainbow

Common Lisp port of rubygem's rainbow

see. https://github.com/sickill/rainbow

Usage

(setf cl-rainbow:*enabled* t)
(print (cl-rainbow:color :red "red string"))
(print (cl-rainbow:color #x5599ff "rgb color code"))
(loop for c across "rainbow" do (format t "~A" (cl-rainbow:color (random #xffffff) c)))

Color can be one of following symbols: :black :red :green :yellow :blue :magenta :cyan :white :default

If you have 256-colors capable terminal you can also specify color in RGB which will find the nearest match from 256 colors palette.

Installation

TODO

lisp

  • allegro cl
  • clozure cl
  • sbcl
  • clisp
  • abcl

Copyright

Copyright (c) 2012 Takayuki Sato (takayuki.sato.dev@gmail.com)

License

Licensed under the LLGPL License.

About

Common Lisp port of rubygem's rainbow

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published