5

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?

David J.
  • 229

1 Answers1

7

I got this idea from: http://www.linuxquestions.org/questions/linux-desktop-74/preserve-colors-when-copy-pasting-from-terminal-943213/

sudo apt-get install aha
timestamp=$(date +%Y%m%d-%H%M%S)
top -n 1 | aha > top-$timestamp.html
David J.
  • 229