What Mime-Type for text with ANSI Escape-Sequences (Color Codes)

323 Views Asked by At

The log files on our build server come with ANSI Escape Sequences for colored text. (As you can tell from the square brackets, semicolons, trailing m's...)

enter image description here

So this looks ugly (raw view in its own browser tab). Just like if a webserver was passing a jpeg as mimetype text/plain to you, or you opening it in notepad.exe... So my question is:

Is there a mimetype for properly displaying ANSI-color-codes enriched text?


  • same grief – pointing correctly out that strictly speaking it's just an encoding...
  • a bookmarklet to help survive
0

There are 0 best solutions below