How can I display image clearly in xterm
up vote
2
down vote
favorite
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.
terminal xterm images
add a comment |
up vote
2
down vote
favorite
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.
terminal xterm images
Raster graphics in xterm?
– phuclv
Jan 15 at 9:07
add a comment |
up vote
2
down vote
favorite
up vote
2
down vote
favorite
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.
terminal xterm images
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.
terminal xterm images
terminal xterm images
edited Nov 21 at 21:19
Rui F Ribeiro
38.2k1475125
38.2k1475125
asked Feb 24 '16 at 15:35
Tracy McGrady
163
163
Raster graphics in xterm?
– phuclv
Jan 15 at 9:07
add a comment |
Raster graphics in xterm?
– phuclv
Jan 15 at 9:07
Raster graphics in xterm?
– phuclv
Jan 15 at 9:07
Raster graphics in xterm?
– phuclv
Jan 15 at 9:07
add a comment |
1 Answer
1
active
oldest
votes
up vote
2
down vote
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.
As for 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.
xterm
usually (not always: it's been optional since 1997) comes with a Tek4014 emulator which can be used for vector graphics. w3m
does not use that.
See also terminology for a terminal emulator that can embed images.
– Stéphane Chazelas
Feb 25 '16 at 9:17
I'd rather not discuss that program, since much of its discussion of terminal emulation is less than useful. Ditto for Final Term.
– Thomas Dickey
Feb 25 '16 at 9:22
Really really thanks.I got it
– Tracy McGrady
Feb 25 '16 at 15:14
add a comment |
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
2
down vote
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.
As for 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.
xterm
usually (not always: it's been optional since 1997) comes with a Tek4014 emulator which can be used for vector graphics. w3m
does not use that.
See also terminology for a terminal emulator that can embed images.
– Stéphane Chazelas
Feb 25 '16 at 9:17
I'd rather not discuss that program, since much of its discussion of terminal emulation is less than useful. Ditto for Final Term.
– Thomas Dickey
Feb 25 '16 at 9:22
Really really thanks.I got it
– Tracy McGrady
Feb 25 '16 at 15:14
add a comment |
up vote
2
down vote
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.
As for 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.
xterm
usually (not always: it's been optional since 1997) comes with a Tek4014 emulator which can be used for vector graphics. w3m
does not use that.
See also terminology for a terminal emulator that can embed images.
– Stéphane Chazelas
Feb 25 '16 at 9:17
I'd rather not discuss that program, since much of its discussion of terminal emulation is less than useful. Ditto for Final Term.
– Thomas Dickey
Feb 25 '16 at 9:22
Really really thanks.I got it
– Tracy McGrady
Feb 25 '16 at 15:14
add a comment |
up vote
2
down vote
up vote
2
down vote
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.
As for 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.
xterm
usually (not always: it's been optional since 1997) comes with a Tek4014 emulator which can be used for vector graphics. w3m
does not use that.
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.
As for 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.
xterm
usually (not always: it's been optional since 1997) comes with a Tek4014 emulator which can be used for vector graphics. w3m
does not use that.
answered Feb 24 '16 at 21:32
Thomas Dickey
51.5k594164
51.5k594164
See also terminology for a terminal emulator that can embed images.
– Stéphane Chazelas
Feb 25 '16 at 9:17
I'd rather not discuss that program, since much of its discussion of terminal emulation is less than useful. Ditto for Final Term.
– Thomas Dickey
Feb 25 '16 at 9:22
Really really thanks.I got it
– Tracy McGrady
Feb 25 '16 at 15:14
add a comment |
See also terminology for a terminal emulator that can embed images.
– Stéphane Chazelas
Feb 25 '16 at 9:17
I'd rather not discuss that program, since much of its discussion of terminal emulation is less than useful. Ditto for Final Term.
– Thomas Dickey
Feb 25 '16 at 9:22
Really really thanks.I got it
– Tracy McGrady
Feb 25 '16 at 15:14
See also terminology for a terminal emulator that can embed images.
– Stéphane Chazelas
Feb 25 '16 at 9:17
See also terminology for a terminal emulator that can embed images.
– Stéphane Chazelas
Feb 25 '16 at 9:17
I'd rather not discuss that program, since much of its discussion of terminal emulation is less than useful. Ditto for Final Term.
– Thomas Dickey
Feb 25 '16 at 9:22
I'd rather not discuss that program, since much of its discussion of terminal emulation is less than useful. Ditto for Final Term.
– Thomas Dickey
Feb 25 '16 at 9:22
Really really thanks.I got it
– Tracy McGrady
Feb 25 '16 at 15:14
Really really thanks.I got it
– Tracy McGrady
Feb 25 '16 at 15:14
add a comment |
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f265518%2fhow-can-i-display-image-clearly-in-xterm%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Raster graphics in xterm?
– phuclv
Jan 15 at 9:07