我想用ANSI颜色做一些terminal输出的全屏副本,并生成HTML,以便发布到博客或维基。
我的真实世界的例子:我想要logging所有的ANSI颜色善良的top
。 (我宁愿不做一个位图截图,文字更有效率。)想法?
我有这个想法: 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