If you want to convert the output of some program into HTML it should be possible by piping through a small perl script or something. If you want to do it with an interactive session this could be harder, especially if you also want to include the stuff you type.

Perhaps there's an easier way if you tell us what you’re trying to accomplish.

HTH_________________Please add [SOLVED] to your message title if your problem is solved.

yes, let me expand on that. I am hoping to be able to print on a webpage the standard output I see in the terminal. More specifically Portage emerges, and grep output. I was hoping/thinking there would be a program around that would be able to print both colored output and translate whatever HTML character entities it runs into._________________• Helpful Linux Tidbits

I know the above works because I have no need of a MUD client but stumbled onto its Subversion repository by googling for "ansi2html."

Writing the above as an ebuild is left as an exercise for the reader, I'm feeling entirely too lazy. _________________Plants are pithy, brooks tend to babble--I'm content to lie between them.
Super-short f.g.o checklist: Search first, strip comments, mark solved, help others.

Note, though, that if portage detects that its output isn't going to a terminal it will automatically disable coloured output.

Likewise.
Most tools that colorize output (ls, grep, etc.--not just emerge) suppress color unless told otherwise when they detect standard output is not a tty. Many if not all provide a switch to force color, but it varies._________________Plants are pithy, brooks tend to babble--I'm content to lie between them.
Super-short f.g.o checklist: Search first, strip comments, mark solved, help others.