what TERM to use to get rid of color escape codes?

Posted by slivu on Server Fault See other posts from Server Fault or by slivu
Published on 2012-11-05T05:00:04Z Indexed on 2012/11/05 5:02 UTC
Read the original article Hit count: 109

Filed under:
|
|

Is there a way to get rid of escape codes in terminal output?

Say even if the script are sending that codes they are ignored by terminal and text displayed as is, without colors, bolds etc.

I need to display terminal output on a HTML page.

For now i'm using javascript to remove escape codes, but it becomes clunky cause i receive output by chars, and have to wait until all content received then update it, leading in weird effects.

© Server Fault or respective owner

Related posts about linux

Related posts about bash