Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
Is it possible for a2ps to interpret the ANSI escape codes ?
$ echo -e "\033[31mHello\e[0m World" | ./bin/a2ps -o output.ps
if not, do you know another tool that would do this task ?
Converts ANSI escape sequences of a unix terminal to HTML code.
aha Git repo
Then you just need a tool to make HTML to PS like html2ps.
Required, but never shown