guile-user
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

(term ansi-color) module


From: Richard Todd
Subject: (term ansi-color) module
Date: Sun, 21 Dec 2003 21:18:09 -0600
User-agent: Mutt/1.4i

FYI,

I've made a module that does similar work to the Perl Term::ANSIColor.pm module.

It's available here:  
  http://www.vzavenue.net/~rwtodd5128/index.html

Texinfo documentation is included.  Here is an example of usage:


     (use-modules (term ansi-color))
     
     ;; method one: safer, since you know the colors
     ;; will get reset automatically
     (display (colorize-string "Hello!" 'RED 'BOLD 'ON_BLUE))
     
     ;; method two: insert the colors by hand
     (for-each display
               (list (color 'RED 'BOLD 'ON-BLUE)
                     "Hello!"
                      (color 'RESET)))


Richard Todd




reply via email to

[Prev in Thread] Current Thread [Next in Thread]