Hacker Read top | best | new | newcomments | leaders | about | bookmarklet login

Nope - it's pretty unreadable in iterm2 for me - http://i.imgur.com/bKQwIdJ.jpg

Shame, the idea is pretty neat. If you can solve that issue, OP, I'd love to give it a proper try.



sort by: page size:

iTerm can display images, but I don't think there's a universal way to do it. https://www.iterm2.com/documentation-images.html

iTerm2 has a escape codes for viewing images, but I haven’t seen any other terminals picking it up: https://www.iterm2.com/documentation-images.html


These iterm image extensions are almost there. It is unfortunate that it can only display files, and not image created on the fly (i.e., you dump all the pixel values into the terminal and it shows an image).

It would get really interesting if this combined with the new inline image support present in iTerm2 (only nightly builds for now).

Basically you can do something like :

  ESC ] 1337 ; File = [optional arguments] : base-64 encoded file contents ^G
And then display an image inline along with other text. E.g. that ascii rendering of the world could be replaced by an actual image of the world.

+ inline images in iTerm2 v3 ;)

Some terminals can.

https://iterm2.com/documentation-images.html

That's iterm's own implementation. There's also sixel, as pointed out by another comment.


The iterm image support is pretty simple (just a VT100-style command wrapped around a base64 encoded png). Maybe somebody can implement it for gnome/vte or something, and see if there's any traction.

iTerm 2 supports imgcat, which shows images inline in the terminal:

https://www.iterm2.com/documentation-images.html


wezterm "iTerm Image Protocol Support" https://wezfurlong.org/wezterm/imgcat.html

And, while not quite the same thing, if you are a user of iTerm2, it includes the script "imgcat" that will display an image directly in the terminal window.

https://www.iterm2.com/documentation-images.html


iTerm2 kinda has the image option, but it's not a cat overload.

https://www.iterm2.com/documentation-images.html


No, a better standard does exist: https://iterm2.com/documentation-images.html

In fact, mintty already supports it. Only xterm doesn't. Sixel really is just retrocomputing at this point.


iTerm2 supports images in the terminal. May as well take this as far as it will go.

https://iterm2.com/images.html

Edit: even animated gifs



Using gnuplot is a nice idea, but the protocol doesn't play nice with other terminals that don't support inline images. See what iTerm2 is doing along these lines. http://www.iterm2.com/images.html

Aside: Although iTerm2 (on macOS) doesn't appear to work with this, iTerm2 actually supports full-color inline images, and has an "imgls" script which does something similar. (There's also "imgcat".)

https://www.iterm2.com/documentation-images.html


FWIW, it might be worth mentioning in this context that iTerm 2 also has its own protocol for displaying pixels, so you can cat images in the terminal using an "imgcat" script that they offer for download:

https://iterm2.com/documentation-images.html


iterm2/wezterm/etc will display images.

https://iterm2.com/documentation-images.html

there is also sixel. https://github.com/saitoha/libsixel

next

Legal | privacy