Comment by 🦂 zzo38

=> Re: "Can't find in Gemini specification something about terminal..." | In: s/Gemini

The use of SGR codes in Gemini text is a nonstandard feature, and is not implemented by all clients. (ANSI escape codes other than SGR codes probably would not be meaningful and probably should not be used.)

=> 🦂 zzo38

2024-12-04 · 8 weeks ago

3 Later Comments ↓

=> 👻 ps [OP] · Dec 04 at 21:33:

So if nobody use other ANSI features in preformatted text, I will integrate SGR colors only

Thanks!

=> 🚀 stack · Dec 04 at 22:25:

A consequence of early terminal clients dumping content... Please try to support at least foreground, and preferably background especially in preformatted mode so that games work

=> 🕹️ skyjake [mod...] · Dec 05 at 04:32:

ANSI escape codes other than SGR codes probably would not be meaningful and probably should not be used.

I've found that correctly rendering many ASCII art images requires a few cursor control sequences, too, like moving right by N columns.

If one's goal is rendering ASCII art in plaintext documents and Gemtext preformatted blocks, implementing support for ANSI escape sequences is needed.

The Gemtext specification says nothing about the use of ANSI escape sequences, though. This leaves the client free to present them however they choose to, which basically is either stripping them out or applying the corresponding formatting.

Generally speaking, I would recommend that these are only applied inside preformatted blocks, since they are formatting instructions, and the client provides settings to disable them.

Original Post

=> 🌒 s/Gemini

Can't find in Gemini specification something about terminal emulation feature, that is client-side improvisation? [https link]

=> 💬 ps · 4 comments · 1 like · 2024-12-04 · 8 weeks ago

Proxy Information
Original URL
gemini://bbs.geminispace.org/u/zzo38/22450
Status Code
Success (20)
Meta
text/gemini; charset=utf-8
Capsule Response Time
81.654718 milliseconds
Gemini-to-HTML Time
0.623524 milliseconds

This content has been proxied by September (3851b).