I want to display inline images in a Emacs process running in iTerm2. Here is a demonstration of what I'm expecting, using imgcat
(a iTerm2 shell integration utility).
To begin with, I executed the following code within an *eshell*
buffer. The rationale is that if this works out, I can simply setup a separate window dedicated to running eshell
, and then update the image with a hook.
imgcat -u https://cdn.sstatic.net/Sites/stackoverflow/company/img/logos/so/so-icon.png
However, all I got is a bunch of base64 characters, even if I have set TERM
to xterm-256color
(was dumb
).
The reason I chose eshell
instead of shell
, term
, ansi-term
or anything else is that it's implemented in Emacs Lisp, so it should be the most extensible one. On the other hand, using other terminal emulators is also OK if you find them more handy.