summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--fs/init2
-rw-r--r--fs/splash58
-rw-r--r--stage3/shell.c29
3 files changed, 88 insertions, 1 deletions
diff --git a/fs/init b/fs/init
index 6ff2326..e37cf51 100644
--- a/fs/init
+++ b/fs/init
@@ -1,3 +1,3 @@
font fonts/Bm437_IBM_VGA_8x16.cuddlefont
loadkeys keymap/de
-echo hello world
+choose splash
diff --git a/fs/splash b/fs/splash
new file mode 100644
index 0000000..da07d89
--- /dev/null
+++ b/fs/splash
@@ -0,0 +1,58 @@
+work in progress ^w^
+why do they call it oven when you of in the cold food of out hot eat the food
+floof <3 <3 <3
+anna <3 <3 <3
+// TODO: fix this
+now with 3d rotating cheese support
+The fog is coming. The fog is coming. The fog is coming.
+gosh !!
+meow :3
+Many such cases!
+powered by estrogen
+You may fascinate a woman by giving her a piece of cheese
+You may fascinate a woman by giving her a woman
+Error: Success
+Task failed sucessfully
+Impressive. Very nice. Now let's see Paul Allen's OS.
+put on the cat ears and maid outfit
+join the matrix
+*headpats you* what a good girl
+*headpats you* what a good floof
+*headpats you* what a good boy
+did you just assume my gender???
+can't spell assembly without ass :3c
+going to the CCC (Cuddly Catgirl Convention)
+Primadonna girl, yeah! All I ever wanted was the world...
+now delta-time independent
+May contain Page Faults
+Trusted by twinks worldwide
+certified gay technology
+making the internet an unsafer place since 2022
+the last OS you'll ever need to install
+add your own splashes in fs/splash
+This could be your ad!
+Femboy Friday!
+always remember: mommy loves you no matter what
+United we stand against OOP-ression
+As seen on Linus Twink Tips
+the true gamer's choice
+the 'C' in the C programming langugage stands for catgirl
+Install Gentoo!
+cuddles included
+Won't you flyyyyyyyy highhhhhhhhhhhhh FreeeeeeeeeBSD, yea
+Friends with Tux!
+Mit Kuschelkätzchen!
+Protect trans kids
+<3 BLAHAJ <3
+I know what you are.
+You like kissing boys, don't you?
+You like kissing girls, don't you?
+You like kissing floofs, don't you?
+the answer is 42
+Incompatible with the Apple Polishing Cloth
+Used by woke communists!
+NSA monitored device
+A trans person peed here and you had no idea.
+Contains witches and dolls
+nya~
+*hug*
diff --git a/stage3/shell.c b/stage3/shell.c
index 079580e..d64e5be 100644
--- a/stage3/shell.c
+++ b/stage3/shell.c
@@ -280,6 +280,34 @@ static void cmd_clocktest(str arg)
}
}
+static void cmd_choose(str arg)
+{
+ str f = fs_read(arg);
+
+ if (f.data == nil) {
+ print(S("choose: file not found: "));
+ print(arg);
+ print(S("\n"));
+ } else {
+ str iter = f;
+ int choices = 0;
+ while (str_walk(&iter, S("\n")).len > 0)
+ choices++;
+
+ if (choices > 0) {
+ iter = f;
+ int chosen = rand() % choices;
+ str line;
+ for (int i = 0; i < chosen; i++)
+ line = str_walk(&iter, S("\n"));
+ print(line);
+ print_char('\n');
+ }
+
+ free(f.data);
+ }
+}
+
typedef struct {
str name;
void (*fn)(str arg);
@@ -302,6 +330,7 @@ static command registry[] = {
{ S("cheese"), &cmd_cheese },
{ S("watchdog"), &cmd_watchdog },
{ S("clocktest"), &cmd_clocktest },
+ { S("choose"), &cmd_choose },
};
void shell_run_cmd(str cmd)