From d7afaf68087bfdeb849799c4c486928077f66d13 Mon Sep 17 00:00:00 2001 From: Tatsuya Kinoshita Date: Sat, 6 Jan 2018 18:19:10 +0900 Subject: Accept TERM=fbterm cf. https://bushowhige.blogspot.jp/2015/01/fbterm-w3m-img.html --- w3mimg/fb/fb_w3mimg.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'w3mimg') diff --git a/w3mimg/fb/fb_w3mimg.c b/w3mimg/fb/fb_w3mimg.c index fb323f5..62511f0 100644 --- a/w3mimg/fb/fb_w3mimg.c +++ b/w3mimg/fb/fb_w3mimg.c @@ -178,8 +178,8 @@ w3mimg_fbopen() memset(wop, 0, sizeof(w3mimg_op)); if (!check_tty_console(getenv("W3M_TTY")) && - strcmp("jfbterm", getenv("TERM")) != 0 && - strncmp("jfbterm-", getenv("TERM"), 8) != 0) { + strncmp("fbterm", getenv("TERM"), 6) != 0 && + strncmp("jfbterm", getenv("TERM"), 7) != 0) { fprintf(stderr, "w3mimgdisplay/fb: tty is not console\n"); goto error; } -- cgit v1.2.3