Interplane page as plain text, for reading tools and agents. English is the reference text: translate it with your own tool. Text in backticks and in ``` blocks (commands, fingerprints, file names) and link targets in <...> are exact: copy them, never translate them. Page: /drakestapleton/aienos.com/blob/main/om/allen-scene/oracle-ui.c # aienos.com Source of www.aienos.com, served from my own hardware Brought by drakestapleton Sign in to star 0 stars 0 watching About Files History Releases Proposed changes Issues For developers branch `main` Branches Tags History `aienos.com / om / allen-scene / oracle-ui.c` 29 lines ยท 1324 bytes Raw Blame History 1 /* Independent host reference: include the ORIGINAL pinned allen_ui.c via -I. 2 * Never link adapter.c here. Public tick/start/sleep APIs own frame history. 3 * No wake/conversation is injected: the source's bar/panes remain hidden. 4 */ 5 #include 6 #include 7 #include "allen_ui.c" 8 int main(int argc,char **argv) 9 { 10 if(argc!=3) return 2; 11 unsigned kind=(unsigned)strtoul(argv[1],0,10),target=(unsigned)strtoul(argv[2],0,10); 12 const unsigned w=640,h=400; 13 uint32_t *fb=calloc((size_t)w*h,4); 14 size_t bytes=ck_allen_ui_mem_bytes(w,h); 15 void *mem=calloc(1,bytes); 16 if(!fb || !mem || ck_allen_ui_start(fb,w,h,w,0,mem,bytes,`1000000`,0,0)) return 3; 17 unsigned end=kind==1?20000:target; 18 for(unsigned t=0;t<=end;t+=16) ck_allen_ui_tick((uint64_t)t*1000); 19 ck_allen_ui_refresh();ck_allen_ui_tick((uint64_t)end*1000); 20 if(kind==1) { 21 ck_allen_ui_sleep(1,`20000000`); 22 for(unsigned d=0;d<=target;d+=16) ck_allen_ui_tick((uint64_t)(20016+d)*1000); 23 ck_allen_ui_refresh();ck_allen_ui_tick((uint64_t)(20016+target)*1000); 24 } 25 /* Native framebuffer RGBX leaves X zero; browser RGBA requires opaque A. */ 26 for(size_t i=0;i<(size_t)w*h;i++) fb[i]|=0xff000000u; 27 int result=fwrite(fb,4,(size_t)w*h,stdout)==(size_t)w*h?0:4; 28 free(mem);free(fb);return result; 29 }