diff --git a/TODO b/TODO index db0b6b2..5f4007a 100644 --- a/TODO +++ b/TODO @@ -4,6 +4,8 @@ \subsection dep API-dependent stuff + - support for holes in canvas (eg. not full EOL) + - support for TAB - allow to change the canvas size in a per-frame basis. - export attribute parsing functions such as attr_to_ansi4fg etc. @@ -28,7 +30,7 @@ \subsection dep API-dependent stuff - - nothing more! + - beep support \subsection indep API-independent stuff diff --git a/cucul/export.c b/cucul/export.c index a5daf58..5e6dc07 100644 --- a/cucul/export.c +++ b/cucul/export.c @@ -166,10 +166,10 @@ static void *export_caca(cucul_canvas_t *cv, unsigned long int *bytes) char *data, *cur; unsigned int n; - /* 44 bytes for the header: + /* 52 bytes for the header: * - 4 bytes for "\xCA\xCA" + "CV" * - 16 bytes for the canvas header - * - 24 bytes for the frame info + * - 32 bytes for the frame info * 8 bytes for each character cell */ *bytes = 52 + 8 * cv->width * cv->height; cur = data = malloc(*bytes);