1

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 ?

1

aha - Ansi HTML Adapter

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.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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