diff options
| author | Daniel Eklöf <daniel@ekloef.se> | 2020-02-21 20:53:23 +0000 |
|---|---|---|
| committer | Daniel Eklöf <daniel@ekloef.se> | 2020-02-21 20:53:23 +0000 |
| commit | 9e3bfb1eab2c7b1c7a1ec6021331fddc57e8a266 (patch) | |
| tree | 35d03f0099762cb82ca23e584d4bd4464d548332 /sixel.h | |
| parent | keymap: 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.h | 7 |
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); |
