summaryrefslogtreecommitdiff
path: root/userspace/shell.c
diff options
context:
space:
mode:
Diffstat (limited to 'userspace/shell.c')
-rw-r--r--userspace/shell.c30
1 files changed, 27 insertions, 3 deletions
diff --git a/userspace/shell.c b/userspace/shell.c
index 83f1e6f..bb8b873 100644
--- a/userspace/shell.c
+++ b/userspace/shell.c
@@ -1,12 +1,30 @@
#include <stdio.h>
#include <stdint.h>
+#include <stdbool.h>
#include <string.h>
-
+// ascci art: http://patorjk.com/software/taag/#p=testall&f=Cards&t=Fool%20OS
+//
void hello()
{
puts(
- "Welcome to FoolShell v0.1"
+
+ " ______ __ ____ _____\n"
+ " / ____/___ ____ / / / __ \\/ ___/\n"
+ " / /_ / __ \\/ __ \\/ / / / / /\\__ \\ \n"
+ " / __/ / /_/ / /_/ / / / /_/ /___/ / \n"
+ " /_/ \\____/\\____/_/ \\____//____/ \n"
+ "\n"
+
+
+
+
+
+
+ "Welcome to FoolShell v0.2 (Compiled on " __DATE__ " at " __TIME__ "\n"
+ "--------------------------------------------------------------------\n\n"
+ "type 'help' anytime to show shell built-ins\n"
+ "or execute programms/commands that are on your $PATH (e.g. ls)\n"
);
}
@@ -20,7 +38,13 @@ void prompt()
int main(int argc, char **argv)
{
-// hello();
+ bool silent=false;
+ for(int i=0;i<argc;i++)
+ {
+ if(!strcmp(argv[i],"--silent"))silent=true;
+ }
+
+ if(!silent)hello();
char *buf=malloc(256);