2 ms·
Sorry for the slow response. I was resting after some travel. > The stdin and stdout that the commands use actually have multiple channels, with html, json, an
by brandonpayton 1mo ago
Sorry for the slow response. I was resting after some travel.
> The stdin and stdout that the commands use actually have multiple channels, with html, json, and raw output possible. Commands can provide different output to each channel or just one.
This is pretty interesting!
> The contents are auto downgraded to whatever the reader can handle. So a program can actually output an <img> tag but if it is piped to something that can't handle html input it will receive it as text of the html source.
Like a stream of typed entities? This is a neat idea and one I'll need to digest. What kinds of ways do you use it?
> If it had hooks for allowing the host environment to manage operations for some file descriptors then my environment would be able to assemble something that looked like stdin and stdout to the running process.
I think there should be a protocol for custom mount types and made a Kandelo issue for it [1].
> There's obviously a lot more going on for things that do graphics. Something that hid KMS stuff inside an iframe doesn't seem like it would be impossible though.
We have Linux-style framebuffer support and exploratory devices for direct rendering. IIRC, all target a <canvas> context from a worker, so it seems like there should be a path to rendering to one embedded in an iframe.
[1] https://github.com/Automattic/kandelo/issues/1315 https://github.com/Automattic/kandelo/issues/1315