Accept TERM=fbterm

cf. https://bushowhige.blogspot.jp/2015/01/fbterm-w3m-img.html
This commit is contained in:
Tatsuya Kinoshita
2018-01-06 18:19:10 +09:00
parent eadbfc2556
commit d7afaf6808

View File

@@ -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;
}