aboutsummaryrefslogtreecommitdiff
path: root/src/resolve_deps.c
diff options
context:
space:
mode:
authordacctal <dacctal@symlinx.net>2026-05-24 10:23:38 +0000
committerdacctal <dacctal@symlinx.net>2026-05-24 10:23:38 +0000
commitaa0d78815004ae6b0c4a42b0e024f5c4ef555ae2 (patch)
tree62f97b4c5acfdb98003568466f878fbd3d6b9dfb /src/resolve_deps.c
parent83d471f2c1d1b1fa6be51f41e4f1c36ab19d7094 (diff)
c rewrite
Diffstat (limited to 'src/resolve_deps.c')
-rw-r--r--src/resolve_deps.c28
1 files changed, 28 insertions, 0 deletions
diff --git a/src/resolve_deps.c b/src/resolve_deps.c
new file mode 100644
index 0000000..e4d50f6
--- /dev/null
+++ b/src/resolve_deps.c
@@ -0,0 +1,28 @@
+#include <stdio.h>
+#include <unistd.h>
+
+#include "resolve_deps.h"
+
+void resolve_deps(void) {
+ const char *frame_top = " (C_C)";
+ const char *frame1_bot = "_/ \\-";
+ const char *frame2_bot = "-/ \\_";
+
+ printf("\033[2J\033[H");
+ printf("Unfortunately due to budget issues, we could not afford a progress bar. Enjoy this instead:\n\n");
+
+ for (int i = 0; i < 16; i++) {
+ printf("%s\n%s\n", frame_top, i % 2 == 0 ? frame1_bot : frame2_bot);
+ for (int j = 0; j <= i; j++) {
+ printf("67! ");
+ }
+ printf("\n");
+ fflush(stdout);
+ usleep(300000);
+ if (i < 15) {
+ printf("\033[3A");
+ }
+ }
+ printf("\n");
+ printf("Dependencies resolved! 1 pregnancy found.\n");
+}