unofficial mirror of guile-user@gnu.org 
 help / color / mirror / Atom feed
* (term ansi-color) module
@ 2003-12-22  3:18 Richard Todd
  0 siblings, 0 replies; only message in thread
From: Richard Todd @ 2003-12-22  3:18 UTC (permalink / raw)


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


_______________________________________________
Guile-user mailing list
Guile-user@gnu.org
http://mail.gnu.org/mailman/listinfo/guile-user


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2003-12-22  3:18 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-12-22  3:18 (term ansi-color) module Richard Todd

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).