Alt text and media types for preformatted text
Sean Conner sean at conman.org
Mon Mar 1 21:24:43 GMT 2021
It was thus said that the Great Thomas Frohwein once stated:
> On Mon, Mar 01, 2021 at 10:12:18AM +0000, Caolan McMahon wrote:
> [...]
> > > > 2. Knowing the content type upfront would allow clients to present streaming
> > > > data correctly using appropriate colours and escape codes for code
> > > > highlighting, for example.
> > >
> > > A solution to a problem of its own making.
> >
> > Sorry, I don't follow this point.
>
> IMO escape codes are a hack, and universal client support can't be
> expected. In fact, those may break different terminal/client types.
>
> I think color escape codes should not be considered expected with
> clients. In fact, there should probably a discussion if this should be
> discouraged in the spec.
I've talked on this before (several times in fact) and my stance is that
controls codes aside from HTAB, CR and LF should not be used in text/gemini.
There's the issue that "color escape codes" are an artifact or side effect
of a terminal-based Gemini browser and it can't be relied to even exist in
the graphical browsers that are popping up. Then there's the security
issue---there are escape codes that can reprogram the keyboard, and although
the usage is rare, it is possible. There are also escape codes that can
resize the window and reposition the window, and there's no telling what
state the terminal can end in.
While I would like to disallow control codes in the specification, that
might be too big of a change, and *will* affect some sites, but adding
verbiage that discourages it can be added.
-spc
Archive home | About this archive