💾 Archived View for gmi.noulin.net › gitRepositories › clispinner › file › test.c.gmi captured on 2024-07-09 at 00:12:17. Gemini links have been rewritten to link to archived content
⬅️ Previous capture (2023-01-29)
-=-=-=-=-=-=-
test.c (1040B)
1 #! /usr/bin/env sheepy 2 /* or direct path to sheepy: #! /usr/local/bin/sheepy */ 3 4 #include "libsheepyObject.h" 5 #include "clispinner.h" 6 7 /* signalTimert theSignalTimer; */ 8 9 int argc; char **argv; 10 11 int main(int ARGC, char** ARGV) { 12 13 argc = ARGC; argv = ARGV; 14 15 initLibsheepy(argv[0]); 16 17 puts("C template"); 18 /* initiateSignalTimer(&theSignalTimer); */ 19 20 clispinnert *sp = allocClispinner(50, "processing.. "); 21 //setSpinStringG(sp, ".oO'Oo."); 22 setSpinStringG(sp, ".oO@*"); 23 setIntervalG(sp, 150); 24 /* createAllocateClispinner(sp); */ 25 /* setSignalTimerG(sp, &theSignalTimer); */ 26 /* createTheSignalTimerG(sp); */ 27 28 startG(sp); 29 30 i16 c = 0; 31 while(1) { 32 /* theSignalTimer.f->pauseProcess(&theSignalTimer); */ 33 pauseProcessG(sp); 34 c++; 35 if (c == 60) break; 36 } 37 38 stopG(sp); 39 logVarG(isSpinningG(sp)); 40 put; 41 42 startG(sp); 43 44 c = 0; 45 while(1) { 46 /* theSignalTimer.f->pauseProcess(&theSignalTimer); */ 47 pauseProcessG(sp); 48 c++; 49 if (c == 20) break; 50 } 51 52 logVarG(isSpinningG(sp)); 53 terminateG(sp); 54 55 }