aboutsummaryrefslogtreecommitdiff
path: root/terminal.h
diff options
context:
space:
mode:
Diffstat (limited to 'terminal.h')
-rw-r--r--terminal.h17
1 files changed, 17 insertions, 0 deletions
diff --git a/terminal.h b/terminal.h
index d9727b32..756b0554 100644
--- a/terminal.h
+++ b/terminal.h
@@ -131,6 +131,7 @@ struct vt {
uint8_t *data;
size_t size;
size_t idx;
+ void (*put_handler)(struct terminal *term, uint8_t c);
void (*unhook_handler)(struct terminal *term);
} dcs;
struct attributes attrs;
@@ -344,6 +345,22 @@ struct terminal {
int upper_fd;
} delayed_render_timer;
+ struct {
+ enum { SIXEL_SIXEL, SIXEL_REPEAT, SIXEL_RASTER, SIXEL_COLOR, SIXEL_COLOR_SPEC} state;
+ int row;
+ int col;
+ int color_idx;
+ int max_col;
+ unsigned params[4];
+ uint32_t *palette;
+ uint32_t *image;
+
+ unsigned int param;
+ unsigned param_idx;
+
+ pixman_image_t *pix;
+ } sixel;
+
bool hold_at_exit;
bool is_shutting_down;
void (*shutdown_cb)(void *data, int exit_code);