On Mon, Nov 29, 2010 at 01:55:05PM +0100, Axel Beckert wrote: > * Package name : aha > * URL or Web page : http://ziz.delphigl.com/tool_aha.php > > aha converts ANSI colors to HTML, e.g. if you want to publish the > output of ls --color=yes as static HTML somewhere, e.g. in your blog. Uhm, except it doesn't even work. Or rather, there might possibly be some program whose output it happens to handle, but even ls isn't one of those. For example: <span style="color:black;">43mwall</span> Besides totally broken parsing and handling of SGR codes, it will also take anything that starts with \e[ to be a SGR. Not to mention writing all messages in German. 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. Cheers and schtuff. -- 1KB // Microsoft corollary to Hanlon's razor: // Never attribute to stupidity what can be // adequately explained by malice.
Attachment:
signature.asc
Description: Digital signature