diff options
author | bptato <nincsnevem662@gmail.com> | 2021-02-02 14:06:53 +0000 |
---|---|---|
committer | bptato <nincsnevem662@gmail.com> | 2021-02-02 14:06:53 +0000 |
commit | c5cd2b5716b999c32b120b220846e57a3f67e260 (patch) | |
tree | c9c953d3fead431e0a30399f18cb6a3f73f4541c /main.c | |
parent | Update ChangeLog (diff) | |
download | w3m-c5cd2b5716b999c32b120b220846e57a3f67e260.tar.gz w3m-c5cd2b5716b999c32b120b220846e57a3f67e260.zip |
sixel and osc5379 image display protocols can be chosen in options
Diffstat (limited to 'main.c')
-rw-r--r-- | main.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -123,7 +123,7 @@ static int searchKeyNum(void); #define help() fusage(stdout, 0) #define usage() fusage(stderr, 1) -int enable_inline_image; /* 1 == mlterm OSC 5379, 2 == sixel */ +int enable_inline_image; static void fversion(FILE * f) @@ -692,10 +692,10 @@ main(int argc, char **argv, char **envp) } #endif else if (!strcmp("-ri", argv[i])) { - enable_inline_image = 1; + enable_inline_image = INLINE_IMG_OSC5379; } else if (!strcmp("-sixel", argv[i])) { - enable_inline_image = 2; + enable_inline_image = INLINE_IMG_SIXEL; } else if (!strcmp("-num", argv[i])) showLineNum = TRUE; @@ -5961,7 +5961,7 @@ deleteFiles() } while ((f = popText(fileToDelete)) != NULL) { unlink(f); - if (enable_inline_image == 2 && strcmp(f+strlen(f)-4, ".gif") == 0) { + if (enable_inline_image == INLINE_IMG_SIXEL && strcmp(f+strlen(f)-4, ".gif") == 0) { Str firstframe = Strnew_charp(f); Strcat_charp(firstframe, "-1"); unlink(firstframe->ptr); |