Add helpers to scroll image up and a flag to copy the colours.

This commit is contained in:
Nicholas Marriott
2019-12-05 08:32:25 +00:00
parent 49f2f0a8f1
commit 86c5098a88
3 changed files with 52 additions and 5 deletions

5
tmux.h
View File

@@ -2721,10 +2721,11 @@ struct window_pane *spawn_pane(struct spawn_context *, char **);
char *regsub(const char *, const char *, const char *, int);
/* image.c */
void image_free_all(struct screen *);
int image_free_all(struct screen *);
void image_store(struct screen *, struct sixel_image *);
int image_check_line(struct screen *, u_int, u_int);
int image_check_area(struct screen *, u_int, u_int, u_int, u_int);
int image_scroll_up(struct screen *, u_int);
/* sixel.c */
struct sixel_image *sixel_parse(const char *, size_t, u_int, u_int);
@@ -2732,7 +2733,7 @@ void sixel_free(struct sixel_image *);
void sixel_log(struct sixel_image *);
void sixel_size_in_cells(struct sixel_image *, u_int *, u_int *);
struct sixel_image *sixel_scale(struct sixel_image *, u_int, u_int, u_int,
u_int, u_int, u_int);
u_int, u_int, u_int, int);
char *sixel_print(struct sixel_image *, struct sixel_image *,
size_t *);
struct screen *sixel_to_screen(struct sixel_image *);