aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTatsuya Kinoshita <tats@debian.org>2018-01-06 09:19:10 +0000
committerTatsuya Kinoshita <tats@debian.org>2018-01-06 09:19:10 +0000
commitd7afaf68087bfdeb849799c4c486928077f66d13 (patch)
tree242efaa324a8464e5b6862defda12b7f6485f60b
parentUpdate ChangeLog (diff)
downloadw3m-d7afaf68087bfdeb849799c4c486928077f66d13.tar.gz
w3m-d7afaf68087bfdeb849799c4c486928077f66d13.zip
Accept TERM=fbterm
cf. https://bushowhige.blogspot.jp/2015/01/fbterm-w3m-img.html
-rw-r--r--w3mimg/fb/fb_w3mimg.c4
1 files changed, 2 insertions, 2 deletions
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;
}