Three SIXEL improvements from nincsnevem662 at gmail dot com in GitHub issue

4149:

- Pass P2 on the received image through when forwarding the image to the
  outside terminal to preserve transparency;

- Preserve raster attribute dimensions which may be smaller than the actual
  image (used to crop out parts of the image to work around the limitation that
  rows must come in groups of six);

- To avoid collapsing empty sixel lines, no longer ignore duplicate "-" new
  line specifiers.
This commit is contained in:
Nicholas Marriott
2024-10-04 07:49:07 +01:00
parent 2df15ad08c
commit 7a78cdf78c
3 changed files with 39 additions and 8 deletions

2
tmux.h
View File

@ -3493,7 +3493,7 @@ int image_scroll_up(struct screen *, u_int);
/* image-sixel.c */
#define SIXEL_COLOUR_REGISTERS 1024
struct sixel_image *sixel_parse(const char *, size_t, u_int, u_int);
struct sixel_image *sixel_parse(const char *, size_t, u_int, u_int, u_int);
void sixel_free(struct sixel_image *);
void sixel_log(struct sixel_image *);
void sixel_size_in_cells(struct sixel_image *, u_int *, u_int *);