From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Richard Todd Newsgroups: gmane.lisp.guile.user Subject: (term ansi-color) module Date: Sun, 21 Dec 2003 21:18:09 -0600 Sender: guile-user-bounces+guile-user=m.gmane.org@gnu.org Message-ID: <20031222031809.GA4979@Richard-Todds-Computer.local> Reply-To: Richard Todd NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1072063410 3107 80.91.224.253 (22 Dec 2003 03:23:30 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 22 Dec 2003 03:23:30 +0000 (UTC) Original-X-From: guile-user-bounces+guile-user=m.gmane.org@gnu.org Mon Dec 22 04:23:28 2003 Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1AYGfI-0000IQ-00 for ; Mon, 22 Dec 2003 04:23:28 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.24) id 1AYHZP-0001xU-3O for guile-user@m.gmane.org; Sun, 21 Dec 2003 23:21:27 -0500 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24) id 1AYHYC-0001hk-Vm for guile-user@gnu.org; Sun, 21 Dec 2003 23:20:12 -0500 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24) id 1AYHXg-0001Q3-5t for guile-user@gnu.org; Sun, 21 Dec 2003 23:20:11 -0500 Original-Received: from [66.171.153.8] (helo=Richard-Todds-Computer.local) by monty-python.gnu.org with esmtp (Exim 4.24) id 1AYHXe-0001Pm-KV for guile-user@gnu.org; Sun, 21 Dec 2003 23:19:38 -0500 Original-Received: by Richard-Todds-Computer.local (Postfix, from userid 501) id 4E2525A3B6; Sun, 21 Dec 2003 21:18:10 -0600 (CST) Original-To: guile-user@gnu.org Content-Disposition: inline User-Agent: Mutt/1.4i X-BeenThere: guile-user@gnu.org X-Mailman-Version: 2.1.2 Precedence: list List-Id: General Guile related discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guile-user-bounces+guile-user=m.gmane.org@gnu.org Xref: main.gmane.org gmane.lisp.guile.user:2465 X-Report-Spam: http://spam.gmane.org/gmane.lisp.guile.user:2465 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