Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I want to do a full screen copy of some terminal output, with ANSI colors, and generate HTML so I can post to a blog or wiki.

My real world example: I want to document top with all of its ANSI color goodness. (I'd rather not do a bitmap screenshot. Text is more efficient.) Ideas?

share|improve this question

closed as off topic by Michael Hampton, mdpc, Sven, RobM, EEAA Oct 29 '12 at 1:37

Questions on Server Fault are expected to relate to server, networking, or related infrastructure administration within the scope defined by the community. Consider editing the question or leaving comments for improvement if you believe the question can be reworded to fit within the scope. Read more about reopening questions here.If this question can be reworded to fit the rules in the help center, please edit the question.

See Converting colored output into html at our Stack Exchange sister site, Unix & Linux. – Michael Hampton Oct 8 '12 at 18:16
@MichaelHampton Thanks, that is helpful – David James Oct 8 '12 at 18:25
Shouldn't this be on superuser? – Alexander Janssen Oct 8 '12 at 18:36
This probably belongs on -- which I just heard about today! -- as mentioned above. – David James Oct 8 '12 at 18:42

I got this idea from:

sudo apt-get install aha
timestamp=$(date +%Y%m%d-%H%M%S)
top -n 1 | aha > top-$timestamp.html
share|improve this answer

Not the answer you're looking for? Browse other questions tagged or ask your own question.