<-- back to the mailing list

Ansi colour markup - what encoding or mime type

Case Duckworth acdw at acdw.net

Fri Jul 10 17:42:56 BST 2020

- - - - - - - - - - - - - - - - - - - 

On 2020-07-10 (Friday) at 11:38, Hannu Hartikainen <hannu.hartikainen+gemini at gmail.com> wrote:

You can, in terminals with ANSI support. Some Gemini clients might
even let ANSI sequences through, but they'd be wise to strip them for
text/gemini content.

I know that with bollux at least (and I think Castor, at least last time I checked, though it's been a while), only the SGR parameters[1] are passed through. That's done automatically with less in bollux, but there are libraries for other languages that can apply highlighting.

Of course, I agree that ANSI escapes should be used *very* sparingly, if indeed at all.