Remix.run Logo
atulvi a day ago

Why can't we have proper graphics on terminal? years ago I remember being able to use graphics.h to draw on MS-DOS terminal and print letters on it (text mode).

ilaksh a day ago | parent | next [-]

Most popular terminals now have support for `kitty` graphics protocol which can smoothly and efficiently render raster images. So chafa is a way to get some backwards compatibility for some types of applications that want to show images but may not support that.

d-lisp a day ago | parent | prev | next [-]

Did you try notcurses ? [0]

[0] https://notcurses.com/

aragilar 20 hours ago | parent [-]

notcurses is probably the best option for getting the best you can out of a random terminal (see https://github.com/dankamongmen/notcurses/blob/master/TERMIN... which details the status of most terminals people use), but the main thing is to choose a decent terminal that meets your needs. I personally use xterm (after using various other terminals, both "modern" and VTE-based), as I'm on Linux, and I need to connect to various devices (e.g. networking gear) where I need a reliable terminal that handles whatever those devices throw at it. The graphical mechanisms that work for me therefore are sixel and tektronic.

aragilar 21 hours ago | parent | prev [-]

There are multiple graphics mechanisms on terminals (both real, and the virtual ones that have replaced them), the issue is which ones your terminal supports (probably none, given most terminal/libraries are bad at supporting features that have been around since the 80s), and which libraries you are using to draw them.

nottorp 16 hours ago | parent [-]

Does any of those graphics mechanisms work over ssh?

aragilar 14 hours ago | parent [-]

Yes, any of the inline ones should work.