cybre.space has reached the end-of-life and is now read-only. Please see the EOL announcement for details

@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

· · brutaldon · 3 · 0 · 1

@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

@Shamar @ckeen @bugaevc @grainloom
$www-browser --dump $file

where www-browser is something like lynx or w3m.

@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.

@Shamar @ckeen @grainloom @bugaevc
If a program is hijacking your shell you have a serious Operating System hell.
Anyway elinks has CSS and probable JS support and does work in a terminal.

@lanodan @Shamar @ckeen @grainloom @bugaevc In fact it already has been done multiple times before :

TermKit
Terminology
Notty
Hyper

Sometime there is a working PoC sometimes just specs.

@lord @ckeen @bugaevc@mastodon.technology @lanodan @Shamar and it seems like a lot of them just needlessly replicate functionality that is better served by other applications, like image rendering :blobsad:

@grainloom @Shamar @lanodan @bugaevc @lord

On a more serious note: the disability to just render images on screen is the serial line interface heritage.

Plan 9's graphical windows are just graphical windows, you can blit anything on them. Even the shell could, no special support required (apart from generating the right pixels).

@ckeen @Shamar @bugaevc@mastodon.technology @lord @lanodan
yup, what we need isn't better terminals, it's better operating systems

@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?

@Shamar @ckeen @bugaevc@mastodon.technology @lord @lanodan
how do you reflow the text + images if you don't have a flow direction? rio windows can be resized and as a user i absolutely despise unresizable windows

@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?

Sign in to participate in the conversation
Cybrespace

the mastodon instance at cybre.space is retired

see the end-of-life plan for details: https://cybre.space/~chr/cybre-space-eol