aboutsummaryrefslogtreecommitdiff
path: root/sixel.h
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2020-02-22 21:06:14 +0000
committerDaniel Eklöf <daniel@ekloef.se>2020-02-22 21:06:14 +0000
commit3a24777e45238a896743707cad65f2b5bef0a708 (patch)
tree0f524d0e80fb81e1b1086e00b771e21b768d6139 /sixel.h
parentkeymap: tab: handle all modifiers (diff)
parentREADME: add screenshot of sixel graphics (diff)
Merge branch 'sixel-graphics'
Diffstat (limited to 'sixel.h')
-rw-r--r--sixel.h22
1 files changed, 22 insertions, 0 deletions
diff --git a/sixel.h b/sixel.h
new file mode 100644
index 00000000..c5c489af
--- /dev/null
+++ b/sixel.h
@@ -0,0 +1,22 @@
+#pragma once
+
+#include "terminal.h"
+
+#define SIXEL_MAX_COLORS 1024u
+
+void sixel_init(struct terminal *term);
+void sixel_put(struct terminal *term, uint8_t c);
+void sixel_unhook(struct terminal *term);
+
+void sixel_destroy(struct sixel *sixel);
+void sixel_purge_at_cursor(struct terminal *term);
+
+void sixel_colors_report_current(struct terminal *term);
+void sixel_colors_reset(struct terminal *term);
+void sixel_colors_set(struct terminal *term, unsigned count);
+void sixel_colors_report_max(struct terminal *term);
+
+void sixel_geometry_report_current(struct terminal *term);
+void sixel_geometry_reset(struct terminal *term);
+void sixel_geometry_set(struct terminal *term, unsigned width, unsigned height);
+void sixel_geometry_report_max(struct terminal *term);