When I use some command in bash like npm audit
, I can see the output with some colored text.I want to save the output with colored text preserved.I have tried selecting the text and saving in LibreOffice document but it saves text without any formatting.
Is there any way to save the output with colored text preserved?