vercel / hyper

A terminal built on web technologies
https://hyper.is
MIT License
43.16k stars 3.5k forks source link

Any way to display images inline in terminal? #6748

Closed lokize closed 1 year ago

lokize commented 1 year ago

Hi, is there any way to display images in terminal, i using zsh in my wsl with neofetch and w3m and i can't display images in terminal with hyper.

LabhanshAgrawal commented 1 year ago

Not right now afaik, once xterm has sixel support, we'd be able to add it easily.

jessebot commented 1 year ago

This was last discussed here #2529 and the original concern was that xterm.js did not support sixel. Xterm.js now supports sixel, but there was no follow up on the issue and it was closed. I am not sure how to make hyper.js use an xterm.js addon :(

jessebot commented 1 year ago

I found this:

https://github.com/vercel/hyper/blob/80c7e67a0d3c83baa2124ef5b1fa8a88f8b56808/PLUGINS.md?plain=1#L210

I can't tell if we need hyper to support this optional add-on, or if we just need someone to write a plugin.

Just to put everything in this ticket, because this one is open and the other one is closed:

jerch/xterm-addon-image is now an available addon for xterm.js, and can be installed via npm. The usage instructions are here.

marvinruder commented 1 year ago

Let’s get this started then: https://github.com/vercel/hyper/pull/6987