@bugaevc@mastodon.technology @ckeen I'm not a huge emacs user either, I sometimes use it with Idris and the Idris shell displays an image on startup
but maybe things like Jupyter are more relevant to the "what if we could render HTML in the terminal" question
@bugaevc @grainloom @ckeen @lanodan
I appreciate the objection, but printing text extracted by HTML is not rendering HTML for any useful definition of rendering. :-)
#Lynx dump IS rendering but without any interactivity.
Until it ignores #CSS, #JavaScript and any other external resource, it's not a road to #hell.
But integrate the rendering into a terminal emulator and you'll soon face the joy of #JS hijacking your shell.
@lanodan @Shamar @ckeen @grainloom @bugaevc In fact it already has been done multiple times before :
Sometime there is a working PoC sometimes just specs.
@grainloom @ckeen @bugaevc @lord @lanodan
Yet on rio, window + rc cannot intersperse text and graphics: when you need to see an image, you either open a new window or replace the contents of the current one.
AFAIK, you would need a different `window` program and a different shell to do that, exposing to rc a new folder (say /dev/images/) where you can copy an raster image to see it rendered as the output (under the command, before the next prompt).
I wonder if it's worth the effort though.
@grainloom @ckeen @bugaevc @lord @lanodan
I mean: once you are freed from the scrolling nature of a teletype, why you need a top-down sequence for image?
For text it make sense anyway, but for images?
@grainloom @ckeen @bugaevc @lord @lanodan
With text you have a flow direction.
Do you have a flow direction with images? It depends.
For example why the water-drop photo should be flowing with text in this screenshot?
@Shamar @ckeen @bugaevc@mastodon.technology @lord @lanodan
could it not work like a nested rio session where each (top-level ?) command in rc gets its own /dev/draw while it's running which is drawn under its invocation and after it finished running the multiplexing stuff is dropped and the image is stored with its position
slight problem: how do you echo -n > /dev/text for clearing images as well?
@grainloom @ckeen @bugaevc @lord @lanodan
You don't need a rio: AFAIK you can do most of this scripting a window: each window has it's own /dev/draw and if you cat it's wsys/n/window you get an image to show.
The "problem" is to show, scroll and reflow the immage with the text: simply there is no program that do that on Plan 9.
Actually, it shouldn't be that hard to write (but I've never programmed graphics in Plan 9 for real, just made others' programs work).
But is it a good idea or not?
@bugaevc@mastodon.technology @ckeen and these all use their own languages (well, jupyter has multiple kernels but whatever) so I'm curious how these would fit in with the shell
do they need a new shell language? or just new escape codes?
if this was Plan 9 these could be handled by things like /dev/draw but it's not