💾 Archived View for rawtext.club › ~sloum › geminilist › 002183.gmi captured on 2020-09-24 at 01:22:43. Gemini links have been rewritten to link to archived content

View Raw

More Information

-=-=-=-=-=-=-

<-- 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.