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

Bug#605380: ITP: aha -- ANSI HTML Adapter



Hi Adam,

Adam Borowski wrote:
> I vaguely recall there being some program with this functionality in Debian
> already, however, after a (very brief) search I can't seem to find it.  If
> there indeed is none, you can use my implementation:
> 
> http://angband.pl/svn/kbtin/trunk/ansi2html.c
> 
> It can handle all standard SGR codes.  There's no support for xterm-256
> colors, but I can add that if it would be useful for someone.

JFTR: "echo q | env TERM=xterm htop | ansi2html" doesn't catch all
codes either.

But "screen -c /dev/null -L ccal ; cat screenlog.0 | ./ansi2html > ccal.html"
works fine with your implementation. "screen -c /dev/null -L htop ; cat
screenlog.0 | ./ansi2html > htop2.html" and quickly pressing works only
slightly better.

P.S.: Looking at http://angband.pl/svn/kbtin/trunk/COPYING I'd expect
ansi2html is GPL'ed code, right?

		Regards, Axel
-- 
 ,''`.  |  Axel Beckert <abe@debian.org>, http://people.debian.org/~abe/
: :' :  |  Debian Developer, ftp.ch.debian.org Admin
`. `'   |  1024D: F067 EA27 26B9 C3FC 1486  202E C09E 1D89 9593 0EDE
  `-    |  4096R: 2517 B724 C5F6 CA99 5329  6E61 2FF9 CD59 6126 16B5



Reply to: