aboutsummaryrefslogtreecommitdiff
path: root/sixel.h
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2020-02-21 20:53:23 +0000
committerDaniel Eklöf <daniel@ekloef.se>2020-02-21 20:53:23 +0000
commit9e3bfb1eab2c7b1c7a1ec6021331fddc57e8a266 (patch)
tree35d03f0099762cb82ca23e584d4bd4464d548332 /sixel.h
parentkeymap: tab: handle all modifiers (diff)
sixel: initial support
This implements basic parsing of sixel data. Lots of limitations and temporary solutions as this is still work-in-progress: * Maximum image size hardcoded to 800x800 * No HLS color format support * Image is always rendered at 0x0 in the terminal
Diffstat (limited to 'sixel.h')
-rw-r--r--sixel.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/sixel.h b/sixel.h
new file mode 100644
index 00000000..0cb24bfe
--- /dev/null
+++ b/sixel.h
@@ -0,0 +1,7 @@
+#pragma once
+
+#include "terminal.h"
+
+void sixel_init(struct terminal *term);
+void sixel_put(struct terminal *term, uint8_t c);
+void sixel_unhook(struct terminal *term);