All Projects → hopkinsr → terminal-color

hopkinsr / terminal-color

Licence: other
A Racket library to output colored text to the terminal on any platform, including Windows

Programming Languages

racket
414 projects
Makefile
30231 projects

terminal-color

A Racket library to output colored text to the terminal on any platform, including Windows.

NOTE: This library is currently in development so things may change before v1.0 is released. The current version should be usable on all platforms with Racket 5.3.6 and 6.x series. Compatability will try to be kept for existing users.

Documentation

A rendered version of the documentation for this library is available via Github Pages:

Example

In short this library provides corresponding procedures for the standard display, displayln, print and write procedures, allowing you to write things like

(require terminal-color)

(displayln-color "1: Default colors")
(displayln-color "2: Green" #:fg 'green)
(displayln-color "3: White on red" #:fg 'white #:bg 'red)

Requirements

It should be possible to install this package as normal using raco on both Racket 5.3.6 and 6.x.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].