From 9e3bfb1eab2c7b1c7a1ec6021331fddc57e8a266 Mon Sep 17 00:00:00 2001 From: Daniel Eklöf Date: Fri, 21 Feb 2020 21:53:23 +0100 Subject: 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 --- sixel.h | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 sixel.h (limited to 'sixel.h') 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); -- cgit v1.3