All of the open source software that I used，only w3m can display image clearly,I want to try to display image in xterm,how can I accomplish it? I tried 'tput' command to change the color of output characters to display a similar photo.
w3m uses a trick to show an image on top of an
xterm window, and according to a comment in the code, that applies to more than one terminal emulator. The trick relies upon finding a suitable X window by looking for the
WINDOWID of the terminal.
Refer to w3m/w3mimg/x11/x11_w3mimg.c to see how it does this.
tput: it is not used for drawing images on a terminal. It retrieves capabilities from the terminal database and (with either exit-codes or writing text) makes the capabilities available for use in scripts that manipulate the terminal.