public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
From: Hans-Werner Hilse <hilse@web.de>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] [OT] Terminal formatting and colors escape sequences
Date: Thu, 2 Mar 2006 15:56:01 +0100	[thread overview]
Message-ID: <20060302155601.dd1bee7c.hilse@web.de> (raw)
In-Reply-To: <200603021449.51145.bo.andresen@gmail.com>

Hi,

On Thu, 2 Mar 2006 14:49:49 +0100 Bo Andresen <bo.andresen@gmail.com>
wrote:

> I wish to be able to run a program (eix-sync/diff-eix) in cron that
> prints colors (with use of --force-color) and then send that colored
> output as a mail. In order to get colors in a mail a have to use
> html. If there exist a program that is capable of converting escape
> sequences used for formatting and coloring an xterm to html I would
> love to know about it. 

I'd say, the Perl module HTML::FromANSI should do what you want
(available from cpan). It brings a script, ansi2html, that provides
access from the command line. Note that you might have to play with the
TERM environment variable.

-hwh
-- 
gentoo-user@gentoo.org mailing list



  parent reply	other threads:[~2006-03-02 15:03 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-03-02 13:49 [gentoo-user] [OT] Terminal formatting and colors escape sequences Bo Andresen
2006-03-02 14:01 ` Bo Andresen
2006-03-02 14:11 ` Jason Stubbs
2006-03-02 14:56 ` Hans-Werner Hilse [this message]
2006-03-02 15:43   ` Bo Andresen
2006-03-02 15:27 ` [gentoo-user] " Remy Blank
2006-03-02 15:42   ` Bo Andresen
2006-03-02 17:23 ` [gentoo-user] " Bo Andresen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20060302155601.dd1bee7c.hilse@web.de \
    --to=hilse@web.de \
    --cc=gentoo-user@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox