Pages

Wednesday, December 9, 2015

Colored output from Bash

Problem:
I've got colored output from bash (mostly git diffs) which I need to save *with* the coloring intact.

Solution:
- Pipe the output (*with coloring enabled - use --color switch or equivalent*) to a file.
- Get ansifilter
Download source , compile and install.
- Convert input to latex, compile the tex, save the PDF

No comments: