w3mimgdisplay program displays images in buffered terminal emulators. This is how: http://blog.z3bra.org/2014/01/images-in-terminal.html . But it is not very well documented. As pointed out in the post, this thread is probably the best you can get.
Now, the problem is that the image does not stays when the terminal scrolls up. This post argues that "
w3m uses it as a persistent process to handle scrolling", but prefixing the command in line 7 with
nohup or subfixing with
& does not make any change. (And it's hard for me to trace back the use of
So the question resumes as how to execute this command line as a persistent process:
echo -e "2;3;\n0;1;0;100;0;0;0;0;0;0;./image.png\n4;\n3;" | /usr/lib/w3m/w3mimgdisplay
gnome-terminal on Lubuntu 16.04.
This is the X-face patch by Tamo referred in the post above.