1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-06-15 23:35:34 +00:00

[xterm] check also for cases like screen.xterm-256color

This commit is contained in:
Witold Filipczyk 2024-05-20 17:06:35 +02:00
parent 9e4541a0b2
commit f5ecff0fd0

View File

@ -330,7 +330,7 @@ is_xterm(void)
if (xt == -1) {
char *term = getenv("TERM");
if (term && !strncmp("xterm", term, 5)) {
if (term && strstr(term, "xterm")) {
xt = 1;
} else {
char *wayland = getenv("WAYLAND_DISPLAY");