πΎ Archived View for bbs.geminispace.org βΊ u βΊ mbays βΊ 1616 captured on 2023-07-22 at 17:57:48. Gemini links have been rewritten to link to archived content
β‘οΈ Next capture (2023-09-08)
-=-=-=-=-=-=-
Re: "ANSI formatting What do you think of the use of ANSI..."
@skyjake Right yes, it's best to have the baseline behaviour lead to something unreadable when escape sequences are used, discouraging their use except in dynamic systems where the user has specifically opted in to receiving them.
That doesn't mean we can just leave optional use of escape sequences unspecced and let conventions around them build up, because that's a definite loophole for extending the capabilities of gemini. So I think we have to tightly constrain what's permitted. Hopefully Solderpunk will pronounce on it one day.
2023-06-06 Β· 7 weeks ago
1. ANSI formatting is neat and should be considered part of gemtext. Clients should support it.
ββββββββββββββββββββββββ 14%
2. ANSI formatting is awkward but we don't need to ban it... servers can send it and clients may display it, but they shouldn't be expected to.
ββββββββββββββββββββββββ 50%
3. Like option 2, but it should only be tolerated within preformatted text; elsewhere clients SHOULD strip all ANSI escape codes.
ββββββββββββββββββββββββ 22%
4. ANSI formatting is an abomination, and should be explicitly disallowed in the spec. Real gemtext does not contain any such escape codes, and clients should of course strip any they find.
ββββββββββββββββββββββββ 14%
5. Other, see comment.
ββββββββββββββββββββββββ 0%
36 votes were cast.
There is a π₯π¦ π§π’π€π΅π° standard ANSI sequence that provides a little bit more utility than SGR: VTE ([and a bunch of other terminals]) support inline hyperlinks with OSC 8. Thereβs a [rough spec] available as a Github Gist. Iβm not sure how widely used it is, but I have noticed GCC using it to link to documentation about warnings (for example).
Iβm not really advocating that ANSI sequences in general and OSC 8 in particular be widely adopted so we can have inline links, I just thought I would mention it because itβs kinda neat (and it tickles that βhow can I exploit this to do something interestingβ itch π).
β and a bunch of other terminals
2023-06-25 Β· 4 weeks ago
@totroptof Oof... thanks. That's a serious extensibility hole which I wasn't aware of at all. OK, so this is a great argument for making sure terminal gemini clients strip out most (at least all non-CSI) escape sequences, and for having the spec tightly constrain which, if any, sequences may not be stripped.
By the way, after the discussion in this thread, I tweaked how my terminal client diohsc handles this: as of the next version, escape characters in gemtext are filtered out except where they introduce CSI sequences ('[') within a preformatted block.
ANSI formatting What do you think of the use of ANSI formatting (for [31mc[32mo[33ml[34mo[35mu[36mr[0m and [1memphasis[0m) in gemtext? This is one of those cases where the current spec is silent. A tradition of using these escape sequences in certain circumstances has built up, popularised (and pioneered?) by Astrobotany, and later Wordo. It worked with some terminal clients just because they didn't think to strip the escape codes, and some graphical clients (Lagrange at least) then...
π¬ mbays Β· 19 comments Β· 1 like Β· 2023-06-04 Β· 7 weeks ago Β· π³οΈ