[READ-ONLY] Mirror of https://github.com/bombshell-dev/tty. Platform independent 2D layout engine for terminal applications based on Clay
5

Configure Feed

Select the types of activity you want to include in your feed.

✨ add animating_count to Clayterm context

Charles Lowell (Apr 21, 2026, 10:35 PM -0500) e486d56b 00db8aa2

+5
+4
src/clayterm.c
··· 51 51 /* error collection */ 52 52 Clay_ErrorData errors[MAX_ERRORS]; 53 53 int error_count; 54 + int animating_count; 54 55 }; 55 56 56 57 /* Memory layout inside the arena provided by the host: ··· 470 471 void reduce(struct Clayterm *ct, uint32_t *buf, int len, int mode, int row, float deltaTime) { 471 472 int i = 0; 472 473 ct->error_count = 0; 474 + ct->animating_count = 0; 473 475 474 476 Clay_BeginLayout(); 475 477 ··· 643 645 char *output(struct Clayterm *ct) { return ct->out.data; } 644 646 645 647 int length(struct Clayterm *ct) { return ct->out.length; } 648 + 649 + int animating(struct Clayterm *ct) { return ct->animating_count; } 646 650 647 651 int get_element_bounds(const char *name, int name_len, float *out) { 648 652 Clay_String str = {.length = name_len, .chars = name};
+1
src/clayterm.h
··· 15 15 void reduce(struct Clayterm *ct, uint32_t *buf, int len, int mode, int row, float deltaTime); 16 16 char *output(struct Clayterm *ct); 17 17 int length(struct Clayterm *ct); 18 + int animating(struct Clayterm *ct); 18 19 void measure(int ret, int txt); 19 20 20 21 int get_element_bounds(const char *name, int name_len, float *out);