Article 5985Y Saving colored output of a script

Saving colored output of a script

by
gehilpiku84
from LinuxQuestions.org on (#5985Y)
Hello everyone. I want your help. I'm making a tool using python and the output that I'm displaying is colored. It has horizontal lines, blue, green, red texts.... I wanted to know if there's any way I can save the output in a text file, or pdf format. I tried redirecting the output to a text file but it separates the black and white output and the colored output. Any solution?latest?d=yIl2AUoC8zA latest?i=3sNYNhYpC24:Cd3gJTSeNKE:F7zBnMy latest?i=3sNYNhYpC24:Cd3gJTSeNKE:V_sGLiP latest?d=qj6IDK7rITs latest?i=3sNYNhYpC24:Cd3gJTSeNKE:gIN9vFw3sNYNhYpC24
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments