diff options
author | bptato <nincsnevem662@gmail.com> | 2021-02-18 18:18:06 +0000 |
---|---|---|
committer | bptato <nincsnevem662@gmail.com> | 2021-02-18 18:18:06 +0000 |
commit | 3304675affd22e9ede2c92b5c0085961a797485e (patch) | |
tree | f476160aca8d8700798d5ec97b33339d2514f025 /image.c | |
parent | Handle iTerm2 images more efficiently (diff) | |
download | w3m-3304675affd22e9ede2c92b5c0085961a797485e.tar.gz w3m-3304675affd22e9ede2c92b5c0085961a797485e.zip |
Support kitty image protocol
Diffstat (limited to 'image.c')
-rw-r--r-- | image.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -198,6 +198,8 @@ syncImage(void) void put_image_osc5379(char *url, int x, int y, int w, int h, int sx, int sy, int sw, int sh); void put_image_sixel(char *url, int x, int y, int w, int h, int sx, int sy, int sw, int sh, int n_terminal_image); void put_image_iterm2(char *url, int x, int y, int w, int h); +void put_image_kitty(char *url, int x, int y, int w, int h, int sx, int sy, int + sw, int sh, int c, int r); void drawImage() @@ -256,6 +258,8 @@ drawImage() put_image_osc5379(url, x, y, w, h, sx, sy, sw, sh); } else if (enable_inline_image == INLINE_IMG_ITERM2) { put_image_iterm2(url, x, y, sw, sh); + } else if (enable_inline_image == INLINE_IMG_KITTY) { + put_image_kitty(url, x, y, w, h, i->sx, i->sy, sw * pixel_per_char, sh * pixel_per_line_i, sw, sh); } continue ; |