[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 deltaTime parameter to reduce()

Charles Lowell (Apr 21, 2026, 10:28 PM -0500) 04ae09ce 272acd0b

+3 -3
+2 -2
src/clayterm.c
··· 467 467 return ct; 468 468 } 469 469 470 - void reduce(struct Clayterm *ct, uint32_t *buf, int len, int mode, int row) { 470 + void reduce(struct Clayterm *ct, uint32_t *buf, int len, int mode, int row, float deltaTime) { 471 471 int i = 0; 472 472 ct->error_count = 0; 473 473 ··· 590 590 } 591 591 } 592 592 593 - Clay_RenderCommandArray cmds = Clay_EndLayout(0.0f); 593 + Clay_RenderCommandArray cmds = Clay_EndLayout(deltaTime); 594 594 595 595 /* reset output state */ 596 596 ct->out.length = 0;
+1 -1
src/clayterm.h
··· 12 12 /* WASM exports */ 13 13 int clayterm_size(int w, int h); 14 14 struct Clayterm *init(void *mem, int w, int h); 15 - void reduce(struct Clayterm *ct, uint32_t *buf, int len, int mode, int row); 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 18 void measure(int ret, int txt);