How to display inline images in a terminal that update on scroll with w3mimgdisplay
4
votes
0
answers
3266
views
The
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 w3mimgdisplay
in w3m
.)
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
Update:
Tested on gnome-terminal
on Lubuntu 16.04.
This is the X-face patch by Tamo referred in the post above.
Asked by nightcod3r
(982 rep)
Jun 2, 2017, 06:05 PM
Last activity: Jun 3, 2017, 08:53 AM
Last activity: Jun 3, 2017, 08:53 AM