tview icon indicating copy to clipboard operation
tview copied to clipboard

Draw a graph, open a png image

Open OsvaldoTCF opened this issue 3 years ago • 4 comments

Hello. I need to generate graphics and present them. I would like in a box, open an image with framebuffer, for example.

OsvaldoTCF avatar Apr 30 '22 21:04 OsvaldoTCF

I'd like to add the display of images at some point but demand for this is low so it's not high on the list.

I.e. currently, tview doesn't support graphics.

rivo avatar Jun 10 '22 16:06 rivo

Would be nice if it did.

Awesome-Sauces avatar Jul 14 '22 02:07 Awesome-Sauces

Hi, does this mean rendering an Image like ueberzug? or another way?

there has been some work done for a pure go implementation of ueberzug Link Although the creator says its "half-ass" it is useable and maybe some improvements can be made too. It uses child windows (X Server) under the hood. I have used it in gomp although the implementation isn't very robust making a primitive out of it is possible. I would like to know your views on this. @rivo

akurdunkar avatar Oct 02 '22 18:10 akurdunkar

Not really sure that the uberzug GitHub page provides a good explanation of what exactly it does. But it sounds to me like it's using some X11 trickery to display images. I don't think tview will ever go that way. It's supposed to be platform-independent, at least to the extent that tcell is platform-independent. And it's also supposed to stay within the terminal so you can, for example, use a tview application over an SSH connection.

What I meant above was using primitive UTF-8 characters along with some colour information to roughly display an image. Something along the lines of this: https://justine.lol/printimage.html

rivo avatar Oct 02 '22 20:10 rivo